├── .gitignore ├── LICENSE ├── README.md ├── pom.xml └── src ├── main └── java │ └── com │ └── amazon │ └── spapi │ ├── SellingPartnerAPIAA │ ├── LWAAccessTokenCache.java │ ├── LWAAccessTokenCacheImpl.java │ ├── LWAAccessTokenCacheItem.java │ ├── LWAAccessTokenRequestMeta.java │ ├── LWAAuthorizationCredentials.java │ ├── LWAAuthorizationSigner.java │ ├── LWAClient.java │ ├── LWAClientScopes.java │ ├── LWAClientScopesSerializerDeserializer.java │ ├── README.md │ ├── RateLimitConfiguration.java │ ├── RateLimitConfigurationOnRequests.java │ ├── ScopeConstants.java │ └── SignableRequestImpl.java │ ├── api │ ├── AplusContentApi.java │ ├── AuthorizationApi.java │ ├── AwdApi.java │ ├── CatalogApi.java │ ├── DefinitionsApi.java │ ├── FbaInboundApi.java │ ├── FbaInboundEligibilityApi.java │ ├── FbaInventoryApi.java │ ├── FbaOutboundApi.java │ ├── FeedsApi.java │ ├── FeedsV2Api.java │ ├── FeesApi.java │ ├── FinancesApi.java │ ├── ListingsApi.java │ ├── MerchantFulfillmentApi.java │ ├── MessagingApi.java │ ├── NotificationsApi.java │ ├── OrdersV0Api.java │ ├── ProductPricingApi.java │ ├── ReportsApi.java │ ├── ReportsV2Api.java │ ├── SalesApi.java │ ├── SellersApi.java │ ├── ServiceApi.java │ ├── ShipmentApi.java │ ├── ShippingApi.java │ ├── SmallAndLightApi.java │ ├── SolicitationsApi.java │ ├── TokensApi.java │ ├── TransactionApi.java │ ├── UploadsApi.java │ └── VendorOrdersApi.java │ ├── auth │ ├── ApiKeyAuth.java │ ├── Authentication.java │ ├── HttpBasicAuth.java │ ├── OAuth.java │ └── OAuthFlow.java │ ├── client │ ├── ApiCallback.java │ ├── ApiClient.java │ ├── ApiException.java │ ├── ApiResponse.java │ ├── Configuration.java │ ├── GzipRequestInterceptor.java │ ├── JSON.java │ ├── Pair.java │ ├── ProgressRequestBody.java │ ├── ProgressResponseBody.java │ └── StringUtil.java │ ├── common │ └── AwsAuthInfo.java │ ├── config │ ├── AesUtil.java │ ├── AmazonAuthConfig.java │ └── AmazonAuthorConfig.java │ ├── documents │ ├── CompressionAlgorithm.java │ ├── CryptoStreamFactory.java │ ├── DownloadBundle.java │ ├── DownloadDocument.java │ ├── DownloadHelper.java │ ├── DownloadSpecification.java │ ├── HttpTransferClient.java │ ├── OkHttpUtils.java │ ├── UploadDocument.java │ ├── UploadHelper.java │ ├── UploadSpecification.java │ ├── exception │ │ ├── CryptoException.java │ │ ├── HttpResponseException.java │ │ └── MissingCharsetException.java │ └── impl │ │ ├── AESCryptoStreamFactory.java │ │ └── OkHttpTransferClient.java │ ├── enums │ ├── EndpointsEnum.java │ ├── LabelTypeEnum.java │ ├── PageTypeEnum.java │ └── ReportTypeEnum.java │ ├── model │ ├── Error.java │ ├── ErrorList.java │ ├── apluscontent │ │ ├── AplusPaginatedResponse.java │ │ ├── AplusResponse.java │ │ ├── AsinBadge.java │ │ ├── AsinBadgeSet.java │ │ ├── AsinMetadata.java │ │ ├── AsinMetadataSet.java │ │ ├── AsinSet.java │ │ ├── ColorType.java │ │ ├── ContentBadge.java │ │ ├── ContentBadgeSet.java │ │ ├── ContentDocument.java │ │ ├── ContentMetadata.java │ │ ├── ContentMetadataRecord.java │ │ ├── ContentMetadataRecordList.java │ │ ├── ContentModule.java │ │ ├── ContentModuleList.java │ │ ├── ContentModuleType.java │ │ ├── ContentRecord.java │ │ ├── ContentRecordList.java │ │ ├── ContentReferenceKeySet.java │ │ ├── ContentStatus.java │ │ ├── ContentType.java │ │ ├── Decorator.java │ │ ├── DecoratorSet.java │ │ ├── DecoratorType.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── GetContentDocumentIncludedDataType.java │ │ ├── GetContentDocumentResponse.java │ │ ├── ImageComponent.java │ │ ├── ImageCropSpecification.java │ │ ├── ImageDimensions.java │ │ ├── ImageOffsets.java │ │ ├── IntegerWithUnits.java │ │ ├── ListContentDocumentAsinRelationsIncludedDataType.java │ │ ├── ListContentDocumentAsinRelationsResponse.java │ │ ├── MessageSet.java │ │ ├── ParagraphComponent.java │ │ ├── PlainTextItem.java │ │ ├── PositionType.java │ │ ├── PostContentDocumentApprovalSubmissionResponse.java │ │ ├── PostContentDocumentAsinRelationsRequest.java │ │ ├── PostContentDocumentAsinRelationsResponse.java │ │ ├── PostContentDocumentRequest.java │ │ ├── PostContentDocumentResponse.java │ │ ├── PostContentDocumentSuspendSubmissionResponse.java │ │ ├── PublishRecord.java │ │ ├── PublishRecordList.java │ │ ├── SearchContentDocumentsResponse.java │ │ ├── SearchContentPublishRecordsResponse.java │ │ ├── StandardCompanyLogoModule.java │ │ ├── StandardComparisonProductBlock.java │ │ ├── StandardComparisonTableModule.java │ │ ├── StandardFourImageTextModule.java │ │ ├── StandardFourImageTextQuadrantModule.java │ │ ├── StandardHeaderImageTextModule.java │ │ ├── StandardHeaderTextListBlock.java │ │ ├── StandardImageCaptionBlock.java │ │ ├── StandardImageSidebarModule.java │ │ ├── StandardImageTextBlock.java │ │ ├── StandardImageTextCaptionBlock.java │ │ ├── StandardImageTextOverlayModule.java │ │ ├── StandardMultipleImageTextModule.java │ │ ├── StandardProductDescriptionModule.java │ │ ├── StandardSingleImageHighlightsModule.java │ │ ├── StandardSingleImageSpecsDetailModule.java │ │ ├── StandardSingleSideImageModule.java │ │ ├── StandardTechSpecsModule.java │ │ ├── StandardTextBlock.java │ │ ├── StandardTextListBlock.java │ │ ├── StandardTextModule.java │ │ ├── StandardTextPairBlock.java │ │ ├── StandardThreeImageTextModule.java │ │ ├── TextComponent.java │ │ ├── TextItem.java │ │ └── ValidateContentDocumentAsinRelationsResponse.java │ ├── authorization │ │ ├── AuthorizationCode.java │ │ └── GetAuthorizationCodeResponse.java │ ├── awd │ │ ├── Address.java │ │ ├── CarrierCode.java │ │ ├── CarrierCodeType.java │ │ ├── DimensionUnitOfMeasurement.java │ │ ├── DistributionPackage.java │ │ ├── DistributionPackageContents.java │ │ ├── DistributionPackageQuantity.java │ │ ├── DistributionPackageType.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── InboundShipment.java │ │ ├── InboundShipmentStatus.java │ │ ├── InboundShipmentSummary.java │ │ ├── InventoryDetails.java │ │ ├── InventoryDetailsVisibility.java │ │ ├── InventoryListing.java │ │ ├── InventoryQuantity.java │ │ ├── InventorySummary.java │ │ ├── InventoryUnitOfMeasurement.java │ │ ├── MeasurementData.java │ │ ├── PackageDimensions.java │ │ ├── PackageVolume.java │ │ ├── PackageWeight.java │ │ ├── ProductAttribute.java │ │ ├── ProductQuantity.java │ │ ├── ShipmentListing.java │ │ ├── ShipmentSortableField.java │ │ ├── SkuQuantitiesVisibility.java │ │ ├── SkuQuantity.java │ │ ├── SortOrder.java │ │ ├── VolumeUnitOfMeasurement.java │ │ └── WeightUnitOfMeasurement.java │ ├── catalogitems │ │ ├── ASINIdentifier.java │ │ ├── AttributeSetList.java │ │ ├── AttributeSetListType.java │ │ ├── BrandRefinement.java │ │ ├── Categories.java │ │ ├── ClassificationRefinement.java │ │ ├── CreatorType.java │ │ ├── DecimalWithUnits.java │ │ ├── Dimension.java │ │ ├── DimensionType.java │ │ ├── Dimensions.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── GetCatalogItemResponse.java │ │ ├── IdentifierType.java │ │ ├── Image.java │ │ ├── Item.java │ │ ├── ItemAttributes.java │ │ ├── ItemBrowseClassification.java │ │ ├── ItemClassificationSalesRank.java │ │ ├── ItemContributor.java │ │ ├── ItemContributorRole.java │ │ ├── ItemDimensions.java │ │ ├── ItemDimensionsByMarketplace.java │ │ ├── ItemDisplayGroupSalesRank.java │ │ ├── ItemIdentifier.java │ │ ├── ItemIdentifiers.java │ │ ├── ItemIdentifiersByMarketplace.java │ │ ├── ItemImage.java │ │ ├── ItemImages.java │ │ ├── ItemImagesByMarketplace.java │ │ ├── ItemList.java │ │ ├── ItemProductTypeByMarketplace.java │ │ ├── ItemProductTypes.java │ │ ├── ItemRelationship.java │ │ ├── ItemRelationships.java │ │ ├── ItemRelationshipsByMarketplace.java │ │ ├── ItemSalesRanks.java │ │ ├── ItemSalesRanksByMarketplace.java │ │ ├── ItemSearchResults.java │ │ ├── ItemSummaries.java │ │ ├── ItemSummaryByMarketplace.java │ │ ├── ItemVariationTheme.java │ │ ├── ItemVendorDetails.java │ │ ├── ItemVendorDetailsByMarketplace.java │ │ ├── ItemVendorDetailsCategory.java │ │ ├── LanguageType.java │ │ ├── ListCatalogCategoriesResponse.java │ │ ├── ListCatalogItemsResponse.java │ │ ├── ListMatchingItemsResponse.java │ │ ├── ListOfCategories.java │ │ ├── NumberOfOfferListingsList.java │ │ ├── OfferListingCountType.java │ │ ├── Pagination.java │ │ ├── Price.java │ │ ├── QualifiersType.java │ │ ├── Refinements.java │ │ ├── RelationshipList.java │ │ ├── RelationshipType.java │ │ ├── SalesRankList.java │ │ ├── SalesRankType.java │ │ ├── SellerSKUIdentifier.java │ │ └── ShippingTimeType.java │ ├── definitions │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── ProductType.java │ │ ├── ProductTypeDefinition.java │ │ ├── ProductTypeList.java │ │ ├── ProductTypeVersion.java │ │ ├── PropertyGroup.java │ │ ├── SchemaLink.java │ │ └── SchemaLinkLink.java │ ├── fbainboundeligibility │ │ ├── GetItemEligibilityPreviewResponse.java │ │ └── ItemEligibilityPreview.java │ ├── fbainventory │ │ ├── GetInventorySummariesResponse.java │ │ ├── GetInventorySummariesResult.java │ │ ├── Granularity.java │ │ ├── InventoryDetails.java │ │ ├── InventorySummaries.java │ │ ├── InventorySummary.java │ │ ├── Pagination.java │ │ ├── ResearchingQuantity.java │ │ ├── ResearchingQuantityEntry.java │ │ ├── ReservedQuantity.java │ │ └── UnfulfillableQuantity.java │ ├── fbasmallandlight │ │ ├── FeeLineItem.java │ │ ├── FeePreview.java │ │ ├── Item.java │ │ ├── MoneyType.java │ │ ├── SmallAndLightEligibility.java │ │ ├── SmallAndLightEligibilityStatus.java │ │ ├── SmallAndLightEnrollment.java │ │ ├── SmallAndLightEnrollmentStatus.java │ │ ├── SmallAndLightFeePreviewRequest.java │ │ └── SmallAndLightFeePreviews.java │ ├── feeds │ │ ├── CancelFeedResponse.java │ │ ├── CreateFeedDocumentResponse.java │ │ ├── CreateFeedDocumentResult.java │ │ ├── CreateFeedDocumentSpecification.java │ │ ├── CreateFeedResponse.java │ │ ├── CreateFeedResult.java │ │ ├── CreateFeedSpecification.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── Feed.java │ │ ├── FeedDocument.java │ │ ├── FeedDocumentEncryptionDetails.java │ │ ├── FeedList.java │ │ ├── FeedOptions.java │ │ ├── GetFeedDocumentResponse.java │ │ ├── GetFeedResponse.java │ │ └── GetFeedsResponse.java │ ├── feedsV2 │ │ ├── CreateFeedDocumentResponse.java │ │ ├── CreateFeedDocumentSpecification.java │ │ ├── CreateFeedResponse.java │ │ ├── CreateFeedSpecification.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── Feed.java │ │ ├── FeedDocument.java │ │ ├── FeedList.java │ │ ├── FeedOptions.java │ │ └── GetFeedsResponse.java │ ├── finances │ │ ├── AdhocDisbursementEvent.java │ │ ├── AdhocDisbursementEventList.java │ │ ├── AdjustmentEvent.java │ │ ├── AdjustmentEventList.java │ │ ├── AdjustmentItem.java │ │ ├── AdjustmentItemList.java │ │ ├── AffordabilityExpenseEvent.java │ │ ├── AffordabilityExpenseEventList.java │ │ ├── CapacityReservationBillingEvent.java │ │ ├── CapacityReservationBillingEventList.java │ │ ├── ChargeComponent.java │ │ ├── ChargeComponentList.java │ │ ├── ChargeInstrument.java │ │ ├── ChargeInstrumentList.java │ │ ├── ChargeRefundEvent.java │ │ ├── ChargeRefundEventList.java │ │ ├── ChargeRefundTransaction.java │ │ ├── CouponPaymentEvent.java │ │ ├── CouponPaymentEventList.java │ │ ├── Currency.java │ │ ├── DebtRecoveryEvent.java │ │ ├── DebtRecoveryEventList.java │ │ ├── DebtRecoveryItem.java │ │ ├── DebtRecoveryItemList.java │ │ ├── DirectPayment.java │ │ ├── DirectPaymentList.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── FBALiquidationEvent.java │ │ ├── FBALiquidationEventList.java │ │ ├── FailedAdhocDisbursementEvent.java │ │ ├── FailedAdhocDisbursementEventList.java │ │ ├── FeeComponent.java │ │ ├── FeeComponentList.java │ │ ├── FinancialEventGroup.java │ │ ├── FinancialEventGroupList.java │ │ ├── FinancialEvents.java │ │ ├── ImagingServicesFeeEvent.java │ │ ├── ImagingServicesFeeEventList.java │ │ ├── ListFinancialEventGroupsPayload.java │ │ ├── ListFinancialEventGroupsResponse.java │ │ ├── ListFinancialEventsPayload.java │ │ ├── ListFinancialEventsResponse.java │ │ ├── LoanServicingEvent.java │ │ ├── LoanServicingEventList.java │ │ ├── NetworkComminglingTransactionEvent.java │ │ ├── NetworkComminglingTransactionEventList.java │ │ ├── PayWithAmazonEvent.java │ │ ├── PayWithAmazonEventList.java │ │ ├── ProductAdsPaymentEvent.java │ │ ├── ProductAdsPaymentEventList.java │ │ ├── Promotion.java │ │ ├── PromotionList.java │ │ ├── RemovalShipmentAdjustmentEvent.java │ │ ├── RemovalShipmentAdjustmentEventList.java │ │ ├── RemovalShipmentEvent.java │ │ ├── RemovalShipmentEventList.java │ │ ├── RemovalShipmentItem.java │ │ ├── RemovalShipmentItemAdjustment.java │ │ ├── RemovalShipmentItemList.java │ │ ├── RentalTransactionEvent.java │ │ ├── RentalTransactionEventList.java │ │ ├── RetrochargeEvent.java │ │ ├── RetrochargeEventList.java │ │ ├── SAFETReimbursementEvent.java │ │ ├── SAFETReimbursementEventList.java │ │ ├── SAFETReimbursementItem.java │ │ ├── SAFETReimbursementItemList.java │ │ ├── SellerDealPaymentEvent.java │ │ ├── SellerDealPaymentEventList.java │ │ ├── SellerReviewEnrollmentPaymentEvent.java │ │ ├── SellerReviewEnrollmentPaymentEventList.java │ │ ├── ServiceFeeEvent.java │ │ ├── ServiceFeeEventList.java │ │ ├── ShipmentEvent.java │ │ ├── ShipmentEventList.java │ │ ├── ShipmentItem.java │ │ ├── ShipmentItemList.java │ │ ├── ShipmentSettleEventList.java │ │ ├── SolutionProviderCreditEvent.java │ │ ├── SolutionProviderCreditEventList.java │ │ ├── TDSReimbursementEvent.java │ │ ├── TDSReimbursementEventList.java │ │ ├── TaxWithheldComponent.java │ │ ├── TaxWithheldComponentList.java │ │ ├── TaxWithholdingEvent.java │ │ ├── TaxWithholdingEventList.java │ │ ├── TaxWithholdingPeriod.java │ │ ├── TrialShipmentEvent.java │ │ ├── TrialShipmentEventList.java │ │ ├── ValueAddedServiceChargeEvent.java │ │ └── ValueAddedServiceChargeEventList.java │ ├── fulfillmentinbound │ │ ├── ASINInboundGuidance.java │ │ ├── ASINInboundGuidanceList.java │ │ ├── ASINPrepInstructions.java │ │ ├── ASINPrepInstructionsList.java │ │ ├── Address.java │ │ ├── AmazonPrepFeesDetails.java │ │ ├── AmazonPrepFeesDetailsList.java │ │ ├── Amount.java │ │ ├── BarcodeInstruction.java │ │ ├── BillOfLadingDownloadURL.java │ │ ├── BoxContentsFeeDetails.java │ │ ├── BoxContentsSource.java │ │ ├── CommonTransportResult.java │ │ ├── Condition.java │ │ ├── ConfirmPreorderResponse.java │ │ ├── ConfirmPreorderResult.java │ │ ├── ConfirmTransportResponse.java │ │ ├── Contact.java │ │ ├── CreateInboundShipmentPlanRequest.java │ │ ├── CreateInboundShipmentPlanResponse.java │ │ ├── CreateInboundShipmentPlanResult.java │ │ ├── CurrencyCode.java │ │ ├── Dimensions.java │ │ ├── ErrorReason.java │ │ ├── EstimateTransportResponse.java │ │ ├── GetBillOfLadingResponse.java │ │ ├── GetInboundGuidanceResponse.java │ │ ├── GetInboundGuidanceResult.java │ │ ├── GetLabelsResponse.java │ │ ├── GetPreorderInfoResponse.java │ │ ├── GetPreorderInfoResult.java │ │ ├── GetPrepInstructionsResponse.java │ │ ├── GetPrepInstructionsResult.java │ │ ├── GetShipmentItemsResponse.java │ │ ├── GetShipmentItemsResult.java │ │ ├── GetShipmentsResponse.java │ │ ├── GetShipmentsResult.java │ │ ├── GetTransportDetailsResponse.java │ │ ├── GetTransportDetailsResult.java │ │ ├── GuidanceReason.java │ │ ├── GuidanceReasonList.java │ │ ├── InboundGuidance.java │ │ ├── InboundShipmentHeader.java │ │ ├── InboundShipmentInfo.java │ │ ├── InboundShipmentItem.java │ │ ├── InboundShipmentItemList.java │ │ ├── InboundShipmentList.java │ │ ├── InboundShipmentPlan.java │ │ ├── InboundShipmentPlanItem.java │ │ ├── InboundShipmentPlanItemList.java │ │ ├── InboundShipmentPlanList.java │ │ ├── InboundShipmentPlanRequestItem.java │ │ ├── InboundShipmentPlanRequestItemList.java │ │ ├── InboundShipmentRequest.java │ │ ├── InboundShipmentResponse.java │ │ ├── InboundShipmentResult.java │ │ ├── IntendedBoxContentsSource.java │ │ ├── InvalidASIN.java │ │ ├── InvalidASINList.java │ │ ├── InvalidSKU.java │ │ ├── InvalidSKUList.java │ │ ├── LabelDownloadURL.java │ │ ├── LabelPrepPreference.java │ │ ├── LabelPrepType.java │ │ ├── NonPartneredLtlDataInput.java │ │ ├── NonPartneredLtlDataOutput.java │ │ ├── NonPartneredSmallParcelDataInput.java │ │ ├── NonPartneredSmallParcelDataOutput.java │ │ ├── NonPartneredSmallParcelPackageInput.java │ │ ├── NonPartneredSmallParcelPackageInputList.java │ │ ├── NonPartneredSmallParcelPackageOutput.java │ │ ├── NonPartneredSmallParcelPackageOutputList.java │ │ ├── PackageStatus.java │ │ ├── Pallet.java │ │ ├── PalletList.java │ │ ├── PartneredEstimate.java │ │ ├── PartneredLtlDataInput.java │ │ ├── PartneredLtlDataOutput.java │ │ ├── PartneredSmallParcelDataInput.java │ │ ├── PartneredSmallParcelDataOutput.java │ │ ├── PartneredSmallParcelPackageInput.java │ │ ├── PartneredSmallParcelPackageInputList.java │ │ ├── PartneredSmallParcelPackageOutput.java │ │ ├── PartneredSmallParcelPackageOutputList.java │ │ ├── PrepDetails.java │ │ ├── PrepDetailsList.java │ │ ├── PrepGuidance.java │ │ ├── PrepInstruction.java │ │ ├── PrepInstructionList.java │ │ ├── PrepOwner.java │ │ ├── PutTransportDetailsRequest.java │ │ ├── PutTransportDetailsResponse.java │ │ ├── SKUInboundGuidance.java │ │ ├── SKUInboundGuidanceList.java │ │ ├── SKUPrepInstructions.java │ │ ├── SKUPrepInstructionsList.java │ │ ├── SellerFreightClass.java │ │ ├── ShipmentStatus.java │ │ ├── ShipmentType.java │ │ ├── TransportContent.java │ │ ├── TransportDetailInput.java │ │ ├── TransportDetailOutput.java │ │ ├── TransportHeader.java │ │ ├── TransportResult.java │ │ ├── TransportStatus.java │ │ ├── UnitOfMeasurement.java │ │ ├── UnitOfWeight.java │ │ ├── VoidTransportResponse.java │ │ └── Weight.java │ ├── fulfillmentoutbound │ │ ├── AdditionalLocationInfo.java │ │ ├── Address.java │ │ ├── CODSettings.java │ │ ├── CancelFulfillmentOrderResponse.java │ │ ├── CreateFulfillmentOrderItem.java │ │ ├── CreateFulfillmentOrderItemList.java │ │ ├── CreateFulfillmentOrderRequest.java │ │ ├── CreateFulfillmentOrderResponse.java │ │ ├── CreateFulfillmentReturnRequest.java │ │ ├── CreateFulfillmentReturnResponse.java │ │ ├── CreateFulfillmentReturnResult.java │ │ ├── CreateReturnItem.java │ │ ├── CreateReturnItemList.java │ │ ├── CurrentStatus.java │ │ ├── DeliveryWindow.java │ │ ├── DeliveryWindowList.java │ │ ├── EventCode.java │ │ ├── Feature.java │ │ ├── FeatureSettings.java │ │ ├── FeatureSku.java │ │ ├── Features.java │ │ ├── Fee.java │ │ ├── FeeList.java │ │ ├── FulfillmentAction.java │ │ ├── FulfillmentOrder.java │ │ ├── FulfillmentOrderItem.java │ │ ├── FulfillmentOrderItemList.java │ │ ├── FulfillmentOrderStatus.java │ │ ├── FulfillmentPolicy.java │ │ ├── FulfillmentPreview.java │ │ ├── FulfillmentPreviewItem.java │ │ ├── FulfillmentPreviewItemList.java │ │ ├── FulfillmentPreviewList.java │ │ ├── FulfillmentPreviewShipment.java │ │ ├── FulfillmentPreviewShipmentList.java │ │ ├── FulfillmentReturnItemStatus.java │ │ ├── FulfillmentShipment.java │ │ ├── FulfillmentShipmentItem.java │ │ ├── FulfillmentShipmentItemList.java │ │ ├── FulfillmentShipmentList.java │ │ ├── FulfillmentShipmentPackage.java │ │ ├── FulfillmentShipmentPackageList.java │ │ ├── GetFeatureInventoryResponse.java │ │ ├── GetFeatureInventoryResult.java │ │ ├── GetFeatureSkuResponse.java │ │ ├── GetFeatureSkuResult.java │ │ ├── GetFeaturesResponse.java │ │ ├── GetFeaturesResult.java │ │ ├── GetFulfillmentOrderResponse.java │ │ ├── GetFulfillmentOrderResult.java │ │ ├── GetFulfillmentPreviewItem.java │ │ ├── GetFulfillmentPreviewItemList.java │ │ ├── GetFulfillmentPreviewRequest.java │ │ ├── GetFulfillmentPreviewResponse.java │ │ ├── GetFulfillmentPreviewResult.java │ │ ├── GetPackageTrackingDetailsResponse.java │ │ ├── InvalidItemReason.java │ │ ├── InvalidItemReasonCode.java │ │ ├── InvalidReturnItem.java │ │ ├── InvalidReturnItemList.java │ │ ├── ListAllFulfillmentOrdersResponse.java │ │ ├── ListAllFulfillmentOrdersResult.java │ │ ├── ListReturnReasonCodesResponse.java │ │ ├── ListReturnReasonCodesResult.java │ │ ├── Money.java │ │ ├── NotificationEmailList.java │ │ ├── PackageTrackingDetails.java │ │ ├── ReasonCodeDetails.java │ │ ├── ReasonCodeDetailsList.java │ │ ├── ReturnAuthorization.java │ │ ├── ReturnAuthorizationList.java │ │ ├── ReturnItem.java │ │ ├── ReturnItemDisposition.java │ │ ├── ReturnItemList.java │ │ ├── ScheduledDeliveryInfo.java │ │ ├── ShippingSpeedCategory.java │ │ ├── ShippingSpeedCategoryList.java │ │ ├── StringList.java │ │ ├── TrackingAddress.java │ │ ├── TrackingEvent.java │ │ ├── TrackingEventList.java │ │ ├── UnfulfillablePreviewItem.java │ │ ├── UnfulfillablePreviewItemList.java │ │ ├── UpdateFulfillmentOrderItem.java │ │ ├── UpdateFulfillmentOrderItemList.java │ │ ├── UpdateFulfillmentOrderRequest.java │ │ ├── UpdateFulfillmentOrderResponse.java │ │ └── Weight.java │ ├── listings │ │ ├── Audience.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── FulfillmentAvailability.java │ │ ├── Issue.java │ │ ├── IssueEnforcementAction.java │ │ ├── IssueEnforcements.java │ │ ├── IssueExemption.java │ │ ├── Item.java │ │ ├── ItemAttributes.java │ │ ├── ItemIdentifiers.java │ │ ├── ItemIdentifiersByMarketplace.java │ │ ├── ItemImage.java │ │ ├── ItemIssues.java │ │ ├── ItemOfferByMarketplace.java │ │ ├── ItemOffers.java │ │ ├── ItemProcurement.java │ │ ├── ItemProductTypeByMarketplace.java │ │ ├── ItemProductTypes.java │ │ ├── ItemRelationship.java │ │ ├── ItemRelationships.java │ │ ├── ItemRelationshipsByMarketplace.java │ │ ├── ItemSearchResults.java │ │ ├── ItemSummaries.java │ │ ├── ItemSummaryByMarketplace.java │ │ ├── ItemVariationTheme.java │ │ ├── ListingsItemPatchRequest.java │ │ ├── ListingsItemPutRequest.java │ │ ├── ListingsItemSubmissionResponse.java │ │ ├── Money.java │ │ ├── OurPrice.java │ │ ├── Pagination.java │ │ ├── PatchOperation.java │ │ ├── Points.java │ │ ├── PurchasableOffer.java │ │ └── Schedule.java │ ├── merchantfulfillment │ │ ├── AdditionalInputs.java │ │ ├── AdditionalInputsList.java │ │ ├── AdditionalSellerInput.java │ │ ├── AdditionalSellerInputs.java │ │ ├── AdditionalSellerInputsList.java │ │ ├── Address.java │ │ ├── AvailableCarrierWillPickUpOption.java │ │ ├── AvailableCarrierWillPickUpOptionsList.java │ │ ├── AvailableDeliveryExperienceOption.java │ │ ├── AvailableDeliveryExperienceOptionsList.java │ │ ├── AvailableFormatOptionsForLabel.java │ │ ├── AvailableFormatOptionsForLabelList.java │ │ ├── AvailableShippingServiceOptions.java │ │ ├── CancelShipmentResponse.java │ │ ├── CarrierWillPickUpOption.java │ │ ├── Constraint.java │ │ ├── Constraints.java │ │ ├── CreateShipmentRequest.java │ │ ├── CreateShipmentResponse.java │ │ ├── CurrencyAmount.java │ │ ├── DeliveryExperienceOption.java │ │ ├── DeliveryExperienceType.java │ │ ├── FileContents.java │ │ ├── FileType.java │ │ ├── GetAdditionalSellerInputsRequest.java │ │ ├── GetAdditionalSellerInputsResponse.java │ │ ├── GetAdditionalSellerInputsResult.java │ │ ├── GetEligibleShipmentServicesRequest.java │ │ ├── GetEligibleShipmentServicesResponse.java │ │ ├── GetEligibleShipmentServicesResult.java │ │ ├── GetShipmentResponse.java │ │ ├── HazmatType.java │ │ ├── InputTargetType.java │ │ ├── Item.java │ │ ├── ItemLevelFields.java │ │ ├── ItemLevelFieldsList.java │ │ ├── ItemList.java │ │ ├── Label.java │ │ ├── LabelCustomization.java │ │ ├── LabelDimensions.java │ │ ├── LabelFormat.java │ │ ├── LabelFormatList.java │ │ ├── LabelFormatOption.java │ │ ├── LabelFormatOptionRequest.java │ │ ├── Length.java │ │ ├── PackageDimensions.java │ │ ├── PredefinedPackageDimensions.java │ │ ├── RejectedShippingService.java │ │ ├── RejectedShippingServiceList.java │ │ ├── RestrictedSetValues.java │ │ ├── SellerInputDefinition.java │ │ ├── Shipment.java │ │ ├── ShipmentRequestDetails.java │ │ ├── ShipmentStatus.java │ │ ├── ShippingOfferingFilter.java │ │ ├── ShippingService.java │ │ ├── ShippingServiceList.java │ │ ├── ShippingServiceOptions.java │ │ ├── StandardIdForLabel.java │ │ ├── TemporarilyUnavailableCarrier.java │ │ ├── TemporarilyUnavailableCarrierList.java │ │ ├── TermsAndConditionsNotAcceptedCarrier.java │ │ ├── TermsAndConditionsNotAcceptedCarrierList.java │ │ ├── TransparencyCodeList.java │ │ ├── UnitOfLength.java │ │ ├── UnitOfWeight.java │ │ └── Weight.java │ ├── messaging │ │ ├── Attachment.java │ │ ├── CreateAmazonMotorsRequest.java │ │ ├── CreateAmazonMotorsResponse.java │ │ ├── CreateConfirmCustomizationDetailsRequest.java │ │ ├── CreateConfirmCustomizationDetailsResponse.java │ │ ├── CreateConfirmDeliveryDetailsRequest.java │ │ ├── CreateConfirmDeliveryDetailsResponse.java │ │ ├── CreateConfirmOrderDetailsRequest.java │ │ ├── CreateConfirmOrderDetailsResponse.java │ │ ├── CreateConfirmServiceDetailsRequest.java │ │ ├── CreateConfirmServiceDetailsResponse.java │ │ ├── CreateDigitalAccessKeyRequest.java │ │ ├── CreateDigitalAccessKeyResponse.java │ │ ├── CreateLegalDisclosureRequest.java │ │ ├── CreateLegalDisclosureResponse.java │ │ ├── CreateNegativeFeedbackRemovalResponse.java │ │ ├── CreateUnexpectedProblemRequest.java │ │ ├── CreateUnexpectedProblemResponse.java │ │ ├── CreateWarrantyRequest.java │ │ ├── CreateWarrantyResponse.java │ │ ├── GetAttributesResponse.java │ │ ├── GetAttributesResponseBuyer.java │ │ ├── GetMessagingActionResponse.java │ │ ├── GetMessagingActionResponseEmbedded.java │ │ ├── GetMessagingActionResponseLinks.java │ │ ├── GetMessagingActionsForOrderResponse.java │ │ ├── GetMessagingActionsForOrderResponseEmbedded.java │ │ ├── GetMessagingActionsForOrderResponseLinks.java │ │ ├── GetSchemaResponse.java │ │ ├── GetSchemaResponseLinks.java │ │ ├── LinkObject.java │ │ ├── MessagingAction.java │ │ └── Schema.java │ ├── notifications │ │ ├── CreateDestinationRequest.java │ │ ├── CreateDestinationResponse.java │ │ ├── CreateSubscriptionRequest.java │ │ ├── CreateSubscriptionResponse.java │ │ ├── DeleteDestinationResponse.java │ │ ├── DeleteSubscriptionByIdResponse.java │ │ ├── Destination.java │ │ ├── DestinationList.java │ │ ├── DestinationResource.java │ │ ├── DestinationResourceSpecification.java │ │ ├── EventBridgeResource.java │ │ ├── EventBridgeResourceSpecification.java │ │ ├── GetDestinationResponse.java │ │ ├── GetDestinationsResponse.java │ │ ├── GetSubscriptionByIdResponse.java │ │ ├── GetSubscriptionResponse.java │ │ ├── SqsResource.java │ │ └── Subscription.java │ ├── orders │ │ ├── Address.java │ │ ├── AutomatedShippingSettings.java │ │ ├── BuyerCustomizedInfoDetail.java │ │ ├── BuyerInfo.java │ │ ├── BuyerRequestedCancel.java │ │ ├── BuyerTaxInfo.java │ │ ├── BuyerTaxInformation.java │ │ ├── EasyShipShipmentStatus.java │ │ ├── ElectronicInvoiceStatus.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── FulfillmentInstruction.java │ │ ├── GetOrderAddressResponse.java │ │ ├── GetOrderBuyerInfoResponse.java │ │ ├── GetOrderItemsBuyerInfoResponse.java │ │ ├── GetOrderItemsResponse.java │ │ ├── GetOrderRegulatedInfoResponse.java │ │ ├── GetOrderResponse.java │ │ ├── GetOrdersResponse.java │ │ ├── ItemBuyerInfo.java │ │ ├── MarketplaceTaxInfo.java │ │ ├── Money.java │ │ ├── Order.java │ │ ├── OrderAddress.java │ │ ├── OrderBuyerInfo.java │ │ ├── OrderItem.java │ │ ├── OrderItemBuyerInfo.java │ │ ├── OrderItemBuyerInfoList.java │ │ ├── OrderItemList.java │ │ ├── OrderItems.java │ │ ├── OrderItemsBuyerInfoList.java │ │ ├── OrderItemsInner.java │ │ ├── OrderItemsList.java │ │ ├── OrderList.java │ │ ├── OrderRegulatedInfo.java │ │ ├── OrdersList.java │ │ ├── PaymentExecutionDetailItem.java │ │ ├── PaymentExecutionDetailItemList.java │ │ ├── PaymentMethodDetailItemList.java │ │ ├── PointsGrantedDetail.java │ │ ├── ProductInfoDetail.java │ │ ├── PromotionIdList.java │ │ ├── RegulatedInformation.java │ │ ├── RegulatedInformationField.java │ │ ├── RegulatedOrderVerificationStatus.java │ │ ├── RejectionReason.java │ │ ├── ShipmentStatus.java │ │ ├── TaxClassification.java │ │ ├── TaxCollection.java │ │ ├── UpdateShipmentStatusErrorResponse.java │ │ ├── UpdateShipmentStatusRequest.java │ │ ├── UpdateVerificationStatusErrorResponse.java │ │ ├── UpdateVerificationStatusRequest.java │ │ ├── UpdateVerificationStatusRequestBody.java │ │ └── VerificationStatus.java │ ├── productfees │ │ ├── FeeDetail.java │ │ ├── FeeDetailList.java │ │ ├── FeesEstimate.java │ │ ├── FeesEstimateError.java │ │ ├── FeesEstimateErrorDetail.java │ │ ├── FeesEstimateIdentifier.java │ │ ├── FeesEstimateRequest.java │ │ ├── FeesEstimateResult.java │ │ ├── GetMyFeesEstimateRequest.java │ │ ├── GetMyFeesEstimateResponse.java │ │ ├── GetMyFeesEstimateResult.java │ │ ├── IncludedFeeDetail.java │ │ ├── IncludedFeeDetailList.java │ │ ├── MoneyType.java │ │ ├── Points.java │ │ └── PriceToEstimateFees.java │ ├── productpricing │ │ ├── ASINIdentifier.java │ │ ├── AttributeSetList.java │ │ ├── BatchOffersRequestParams.java │ │ ├── BatchOffersResponse.java │ │ ├── BatchRequest.java │ │ ├── BuyBoxEligibleOffers.java │ │ ├── BuyBoxPriceType.java │ │ ├── BuyBoxPrices.java │ │ ├── CompetitivePriceList.java │ │ ├── CompetitivePriceType.java │ │ ├── CompetitivePricingType.java │ │ ├── ConditionType.java │ │ ├── CustomerType.java │ │ ├── DetailedShippingTimeType.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── Errors.java │ │ ├── FulfillmentChannelType.java │ │ ├── GetItemOffersBatchRequest.java │ │ ├── GetItemOffersBatchResponse.java │ │ ├── GetListingOffersBatchRequest.java │ │ ├── GetListingOffersBatchResponse.java │ │ ├── GetOffersHttpStatusLine.java │ │ ├── GetOffersResponse.java │ │ ├── GetOffersResult.java │ │ ├── GetPricingResponse.java │ │ ├── HttpMethod.java │ │ ├── HttpRequestHeaders.java │ │ ├── HttpResponseHeaders.java │ │ ├── IdentifierType.java │ │ ├── ItemCondition.java │ │ ├── ItemIdentifier.java │ │ ├── ItemOffersRequest.java │ │ ├── ItemOffersRequestList.java │ │ ├── ItemOffersRequestParams.java │ │ ├── ItemOffersResponse.java │ │ ├── ItemOffersResponseList.java │ │ ├── ListingOffersRequest.java │ │ ├── ListingOffersRequestList.java │ │ ├── ListingOffersRequestParams.java │ │ ├── ListingOffersResponse.java │ │ ├── ListingOffersResponseList.java │ │ ├── LowestPriceType.java │ │ ├── LowestPrices.java │ │ ├── MoneyType.java │ │ ├── NumberOfOfferListingsList.java │ │ ├── NumberOfOffers.java │ │ ├── OfferCountType.java │ │ ├── OfferCustomerType.java │ │ ├── OfferDetail.java │ │ ├── OfferDetailList.java │ │ ├── OfferListingCountType.java │ │ ├── OfferType.java │ │ ├── OffersList.java │ │ ├── Points.java │ │ ├── Price.java │ │ ├── PriceList.java │ │ ├── PriceType.java │ │ ├── PrimeInformationType.java │ │ ├── Product.java │ │ ├── QuantityDiscountPriceType.java │ │ ├── QuantityDiscountType.java │ │ ├── RelationshipList.java │ │ ├── SalesRankList.java │ │ ├── SalesRankType.java │ │ ├── SellerFeedbackType.java │ │ ├── SellerSKUIdentifier.java │ │ ├── ShipsFromType.java │ │ └── Summary.java │ ├── reports │ │ ├── CancelReportResponse.java │ │ ├── CancelReportScheduleResponse.java │ │ ├── CreateReportResponse.java │ │ ├── CreateReportResult.java │ │ ├── CreateReportScheduleResponse.java │ │ ├── CreateReportScheduleResult.java │ │ ├── CreateReportScheduleSpecification.java │ │ ├── CreateReportSpecification.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── GetReportDocumentResponse.java │ │ ├── GetReportResponse.java │ │ ├── GetReportScheduleResponse.java │ │ ├── GetReportSchedulesResponse.java │ │ ├── GetReportsResponse.java │ │ ├── Report.java │ │ ├── ReportDocument.java │ │ ├── ReportDocumentEncryptionDetails.java │ │ ├── ReportList.java │ │ ├── ReportOptions.java │ │ ├── ReportSchedule.java │ │ └── ReportScheduleList.java │ ├── reportsv2 │ │ ├── CreateReportResponse.java │ │ ├── CreateReportScheduleResponse.java │ │ ├── CreateReportScheduleSpecification.java │ │ ├── CreateReportSpecification.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── GetReportsResponse.java │ │ ├── Report.java │ │ ├── ReportDocument.java │ │ ├── ReportList.java │ │ ├── ReportOptions.java │ │ ├── ReportSchedule.java │ │ └── ReportScheduleList.java │ ├── sales │ │ ├── GetOrderMetricsResponse.java │ │ ├── Money.java │ │ ├── OrderMetricsInterval.java │ │ └── OrderMetricsList.java │ ├── sellers │ │ ├── GetMarketplaceParticipationsResponse.java │ │ ├── Marketplace.java │ │ ├── MarketplaceParticipation.java │ │ ├── MarketplaceParticipationList.java │ │ └── Participation.java │ ├── services │ │ ├── AddAppointmentRequest.java │ │ ├── Address.java │ │ ├── Appointment.java │ │ ├── AppointmentTime.java │ │ ├── AppointmentTimeInput.java │ │ ├── AssociatedItem.java │ │ ├── Buyer.java │ │ ├── CancelServiceJobByServiceJobIdResponse.java │ │ ├── CompleteServiceJobByServiceJobIdResponse.java │ │ ├── GetServiceJobByServiceJobIdResponse.java │ │ ├── GetServiceJobsResponse.java │ │ ├── ItemDelivery.java │ │ ├── ItemDeliveryPromise.java │ │ ├── JobListing.java │ │ ├── Poa.java │ │ ├── RescheduleAppointmentRequest.java │ │ ├── ScopeOfWork.java │ │ ├── Seller.java │ │ ├── ServiceJob.java │ │ ├── ServiceJobProvider.java │ │ ├── ServiceLocation.java │ │ ├── SetAppointmentResponse.java │ │ ├── Technician.java │ │ ├── Warning.java │ │ └── WarningList.java │ ├── shipping │ │ ├── AcceptedRate.java │ │ ├── Account.java │ │ ├── Address.java │ │ ├── CancelShipmentResponse.java │ │ ├── Container.java │ │ ├── ContainerItem.java │ │ ├── ContainerList.java │ │ ├── ContainerSpecification.java │ │ ├── ContainerSpecificationList.java │ │ ├── CreateShipmentRequest.java │ │ ├── CreateShipmentResponse.java │ │ ├── CreateShipmentResult.java │ │ ├── Currency.java │ │ ├── Dimensions.java │ │ ├── Event.java │ │ ├── EventList.java │ │ ├── GetAccountResponse.java │ │ ├── GetRatesRequest.java │ │ ├── GetRatesResponse.java │ │ ├── GetRatesResult.java │ │ ├── GetShipmentResponse.java │ │ ├── GetTrackingInformationResponse.java │ │ ├── Label.java │ │ ├── LabelResult.java │ │ ├── LabelResultList.java │ │ ├── LabelSpecification.java │ │ ├── Location.java │ │ ├── Party.java │ │ ├── PurchaseLabelsRequest.java │ │ ├── PurchaseLabelsResponse.java │ │ ├── PurchaseLabelsResult.java │ │ ├── PurchaseShipmentRequest.java │ │ ├── PurchaseShipmentResponse.java │ │ ├── PurchaseShipmentResult.java │ │ ├── Rate.java │ │ ├── RateList.java │ │ ├── RetrieveShippingLabelRequest.java │ │ ├── RetrieveShippingLabelResponse.java │ │ ├── RetrieveShippingLabelResult.java │ │ ├── ServiceRate.java │ │ ├── ServiceRateList.java │ │ ├── ServiceType.java │ │ ├── ServiceTypeList.java │ │ ├── Shipment.java │ │ ├── ShippingPromiseSet.java │ │ ├── TimeRange.java │ │ ├── TrackingInformation.java │ │ ├── TrackingSummary.java │ │ └── Weight.java │ ├── solicitations │ │ ├── CreateProductReviewAndSellerFeedbackSolicitationResponse.java │ │ ├── GetSchemaResponse.java │ │ ├── GetSchemaResponseLinks.java │ │ ├── GetSolicitationActionResponse.java │ │ ├── GetSolicitationActionResponseEmbedded.java │ │ ├── GetSolicitationActionResponseLinks.java │ │ ├── GetSolicitationActionsForOrderResponse.java │ │ ├── GetSolicitationActionsForOrderResponseEmbedded.java │ │ ├── GetSolicitationActionsForOrderResponseLinks.java │ │ ├── LinkObject.java │ │ ├── Schema.java │ │ └── SolicitationsAction.java │ ├── tokens │ │ ├── CreateRestrictedDataTokenRequest.java │ │ ├── CreateRestrictedDataTokenResponse.java │ │ └── RestrictedResource.java │ ├── transaction │ │ ├── AmazonPayContext.java │ │ ├── Breakdown.java │ │ ├── Breakdowns.java │ │ ├── Context.java │ │ ├── Contexts.java │ │ ├── Currency.java │ │ ├── DeferredContext.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── GetTransactionResponse.java │ │ ├── Item.java │ │ ├── ItemRelatedIdentifier.java │ │ ├── ItemRelatedIdentifiers.java │ │ ├── Items.java │ │ ├── ListTransactionsResponse.java │ │ ├── MarketplaceDetails.java │ │ ├── PaymentsContext.java │ │ ├── ProductContext.java │ │ ├── RelatedIdentifier.java │ │ ├── RelatedIdentifiers.java │ │ ├── SellingPartnerMetadata.java │ │ ├── TimeRangeContext.java │ │ ├── Transaction.java │ │ └── Transactions.java │ ├── uploads │ │ ├── CreateUploadDestinationResponse.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ └── UploadDestination.java │ └── vendororders │ │ ├── AcknowledgementStatusDetails.java │ │ ├── Address.java │ │ ├── Error.java │ │ ├── ErrorList.java │ │ ├── GetPurchaseOrderResponse.java │ │ ├── GetPurchaseOrdersResponse.java │ │ ├── GetPurchaseOrdersStatusResponse.java │ │ ├── ImportDetails.java │ │ ├── ItemQuantity.java │ │ ├── ItemStatus.java │ │ ├── Money.java │ │ ├── Order.java │ │ ├── OrderAcknowledgement.java │ │ ├── OrderAcknowledgementItem.java │ │ ├── OrderDetails.java │ │ ├── OrderItem.java │ │ ├── OrderItemAcknowledgement.java │ │ ├── OrderItemStatus.java │ │ ├── OrderItemStatusAcknowledgementStatus.java │ │ ├── OrderItemStatusOrderedQuantity.java │ │ ├── OrderList.java │ │ ├── OrderListStatus.java │ │ ├── OrderStatus.java │ │ ├── OrderedQuantityDetails.java │ │ ├── Pagination.java │ │ ├── PartyIdentification.java │ │ ├── SubmitAcknowledgementRequest.java │ │ ├── SubmitAcknowledgementResponse.java │ │ ├── TaxRegistrationDetails.java │ │ └── TransactionId.java │ └── utils │ └── StringBuilderPlus.java └── test ├── java └── com │ └── amazon │ └── spapi │ ├── DateTimeTest.java │ ├── SellingPartnerAPIAA │ ├── LWAAuthorizationSignerTest.java │ ├── LWAClientScopesSerializerDeserializerTest.java │ ├── LWAClientTest.java │ └── SignableRequestImplTest.java │ ├── api │ ├── AplusContentApiTest.java │ ├── AuthorizationApiTest.java │ ├── CatalogApiTest.java │ ├── FbaInboundApiTest.java │ ├── FbaInboundEligibilityApiTest.java │ ├── FbaInventoryApiTest.java │ ├── FbaOutboundApiTest.java │ ├── FeedsApiTest.java │ ├── FeesApiTest.java │ ├── FinancesApiTest.java │ ├── ListingsApiTest.java │ ├── MerchantFulfillmentApiTest.java │ ├── MessagingApiTest.java │ ├── NotificationsApiTest.java │ ├── OrdersV0ApiTest.java │ ├── ProductPricingApiTest.java │ ├── ReportsApiTest.java │ ├── SalesApiTest.java │ ├── SellersApiTest.java │ ├── ServiceApiTest.java │ ├── ShippingApiTest.java │ ├── SmallAndLightApiTest.java │ ├── SolicitationsApiTest.java │ ├── TokensApiTest.java │ ├── UploadsApiTest.java │ └── VendorOrdersApiTest.java │ └── documents │ ├── CompressionAlgorithmTest.java │ ├── DownloadBundleTest.java │ ├── DownloadHelperTest.java │ ├── DownloadSpecificationTest.java │ ├── UploadHelperTest.java │ ├── UploadSpecificationTest.java │ ├── exception │ ├── CryptoExceptionTest.java │ ├── HttpResponseExceptionTest.java │ └── MissingCharsetExceptionTest.java │ └── impl │ ├── AESCryptoStreamFactoryTest.java │ └── OkHttpTransferClientTest.java └── resources └── mockito-extensions └── org.mockito.plugins.Mockmaker /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /.idea 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # amazon-sp-api 2 | amazon sp api java sdk 3 | 背景: 4 | 5 | 本项目基于参考大佬penghaiping的项目结构:https://github.com/penghaiping/amazon-sp-api 6 | 由于这个项目年份已久很少更新,加上还有调用的问题,在参考次基础上将我的扩展奉上,供各位同行兄弟参考使用。 7 | 1.升级最新版本 8 | 2.修复相关bug 9 | refreshe_token缓存失效问题 10 | 报告download解压bug 11 | 官网swagger-code源码异常 12 | 3.扩展授权配置信息 13 | .... 14 | 15 | 16 | 17 | 18 | SP-API(amazon selling partner api): 19 | 20 | 官网文档: https://developer-docs.amazon.com/sp-api 21 | 22 | 问题集合GitHub: https://github.com/amzn/selling-partner-api-docs/issues 23 | 24 | models: https://github.com/amzn/selling-partner-api-models/ 25 | 26 | SDK生成教程:https://developer-docs.amazon.com/sp-api/docs/generating-a-java-sdk-with-lwa-token-exchange 27 | 28 | 29 | 30 | 使用说明: 31 | 32 | 1.所有refrences相关的api的调用类都在src/main/java/com/amazon/spapi/api 33 | 34 | 2.所有refrences相关的api的调用测试类都在src/test/java/com/amazon/spapi/api 35 | 36 | 3.几乎都有测试调用类,可参考:com.amazon.spapi.api.Test 37 | 38 | 4.在FeedApi及reportApi中上传和下载文件的工具类在:com.amazon.spapi.documents.DownloadDocument,修复了官网的bug 39 | 40 | 5.所有的API都是手动添加方法: 41 | 新增配置文件:com.amazon.spapi.config.AmazonAuthorConfig 42 | com.amazon.spapi.common.AwsAuthInfo 43 | ```java 44 | public static FeedsApi amazonAuthorizationApi(AmazonAuthorConfig authorConfigDTO) { 45 | var authInfo=new AwsAuthInfo(authorConfigDTO); 46 | FeedsApi feedsApi =new FeedsApi.Builder() 47 | 48 | .lwaAuthorizationCredentials(authInfo.getLwaAuthorizationCredentials()) 49 | 50 | .endpoint(authorConfigDTO.getSpEndPoint()) 51 | .build(); 52 | 53 | //授权失败,未获取到API实例的话抛出异常,进行重试 54 | if(null == feedsApi) { 55 | throw new RuntimeException("授权失败,未获取到API实例,请重试"); 56 | } 57 | return feedsApi; 58 | } 59 | ``` 60 | reportApiTest 61 | ![image](https://github.com/supoman-service/Amazon-SP-API-JAVA/assets/20614254/58636c6c-f521-4156-be21-0657746d0bc5) 62 | 63 | 64 | # 交流 65 | ![image](https://github.com/supoman-service/Amazon-SP-API-JAVA/assets/20614254/edf2bf77-716a-4ae4-9f11-672512e3d53d) 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/SellingPartnerAPIAA/LWAAccessTokenCache.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.SellingPartnerAPIAA; 2 | 3 | public interface LWAAccessTokenCache { 4 | String get(Object key); 5 | void put(Object key, String accessToken, long tokenTTLInSeconds); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/SellingPartnerAPIAA/LWAAccessTokenCacheImpl.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.SellingPartnerAPIAA; 2 | 3 | import java.util.concurrent.ConcurrentHashMap; 4 | 5 | public class LWAAccessTokenCacheImpl implements LWAAccessTokenCache { 6 | //in milliseconds; to avoid returning a token that would expire before or while a request is made 7 | private long expiryAdjustment = 60 * 1000; 8 | private static final long SECOND_TO_MILLIS = 1000; 9 | private static ConcurrentHashMap accessTokenHashMap = 10 | new ConcurrentHashMap(); 11 | @Override 12 | public void put(Object oLWAAccessTokenRequestMeta, String accessToken, long tokenTTLInSeconds) { 13 | LWAAccessTokenCacheItem accessTokenCacheItem = new LWAAccessTokenCacheItem(); 14 | long insertTime = System.currentTimeMillis(); 15 | long accessTokenExpiresValueMillis = (tokenTTLInSeconds * SECOND_TO_MILLIS) + insertTime; 16 | accessTokenCacheItem.setAccessToken(accessToken); 17 | accessTokenCacheItem.setAccessTokenExpiredTime(accessTokenExpiresValueMillis); 18 | accessTokenHashMap.put(oLWAAccessTokenRequestMeta, accessTokenCacheItem); 19 | } 20 | 21 | @Override 22 | public String get(Object oLWAAccessTokenRequestMeta) { 23 | Object accessTokenValue = accessTokenHashMap.get(oLWAAccessTokenRequestMeta); 24 | if (accessTokenValue != null) { 25 | LWAAccessTokenCacheItem accessTokenData = 26 | (LWAAccessTokenCacheItem) accessTokenValue; 27 | long currentTime = System.currentTimeMillis(); 28 | long accessTokenExpiredTime = accessTokenData.getAccessTokenExpiredTime() - expiryAdjustment; 29 | if (currentTime < accessTokenExpiredTime) { 30 | return accessTokenData.getAccessToken(); 31 | } 32 | } 33 | return null; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/SellingPartnerAPIAA/LWAAccessTokenCacheItem.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.SellingPartnerAPIAA; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | class LWAAccessTokenCacheItem { 7 | 8 | private String accessToken; 9 | private long accessTokenExpiredTime; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/SellingPartnerAPIAA/LWAAccessTokenRequestMeta.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.SellingPartnerAPIAA; 2 | 3 | import com.google.gson.annotations.SerializedName; 4 | import lombok.Builder; 5 | import lombok.Data; 6 | 7 | @Data 8 | @Builder 9 | class LWAAccessTokenRequestMeta { 10 | @SerializedName("grant_type") 11 | private String grantType; 12 | 13 | @SerializedName("refresh_token") 14 | private String refreshToken; 15 | 16 | @SerializedName("client_id") 17 | private String clientId; 18 | 19 | @SerializedName("client_secret") 20 | private String clientSecret; 21 | 22 | @SerializedName("scope") 23 | private LWAClientScopes scopes; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/SellingPartnerAPIAA/LWAAuthorizationCredentials.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.SellingPartnerAPIAA; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | import lombok.NonNull; 6 | 7 | import java.util.Arrays; 8 | import java.util.HashSet; 9 | 10 | /** 11 | * LWAAuthorizationCredentials 12 | */ 13 | @Data 14 | @Builder 15 | public class LWAAuthorizationCredentials { 16 | /** 17 | * LWA Client Id 18 | */ 19 | @NonNull 20 | private String clientId; 21 | 22 | /** 23 | * LWA Client Secret 24 | */ 25 | @NonNull 26 | private String clientSecret; 27 | 28 | /** 29 | * LWA Refresh Token 30 | */ 31 | private String refreshToken; 32 | 33 | /** 34 | * LWA Authorization Server Endpoint 35 | */ 36 | @NonNull 37 | private String endpoint; 38 | 39 | /** 40 | * LWA Client Scopes 41 | */ 42 | private LWAClientScopes scopes; 43 | 44 | public static class LWAAuthorizationCredentialsBuilder { 45 | 46 | { 47 | scopes = new LWAClientScopes(new HashSet<>()); 48 | } 49 | 50 | public LWAAuthorizationCredentialsBuilder withScope(String scope) { 51 | return withScopes(scope); 52 | } 53 | 54 | public LWAAuthorizationCredentialsBuilder withScopes(String... scopes) { 55 | if (scopes != null) { 56 | Arrays.stream(scopes) 57 | .forEach(this.scopes::addScope); 58 | } 59 | return this; 60 | } 61 | 62 | 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/SellingPartnerAPIAA/LWAClientScopes.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.SellingPartnerAPIAA; 2 | 3 | 4 | import com.google.gson.annotations.JsonAdapter; 5 | import lombok.AllArgsConstructor; 6 | import lombok.Getter; 7 | 8 | import java.util.Set; 9 | 10 | @AllArgsConstructor 11 | @Getter 12 | @JsonAdapter(LWAClientScopesSerializerDeserializer.class) 13 | public class LWAClientScopes { 14 | 15 | private final Set scopes; 16 | 17 | protected void addScope(String scope) { 18 | scopes.add(scope); 19 | 20 | } 21 | 22 | protected boolean isEmpty() { 23 | return scopes.isEmpty(); 24 | } 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/SellingPartnerAPIAA/LWAClientScopesSerializerDeserializer.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.SellingPartnerAPIAA; 2 | 3 | import com.google.gson.*; 4 | 5 | import java.lang.reflect.Type; 6 | import java.util.Arrays; 7 | import java.util.HashSet; 8 | import java.util.Set; 9 | 10 | public class LWAClientScopesSerializerDeserializer implements JsonDeserializer, 11 | JsonSerializer { 12 | 13 | @Override 14 | public JsonElement serialize(LWAClientScopes src, Type typeOfSrc, JsonSerializationContext context) { 15 | return new JsonPrimitive(String.join(" ", src.getScopes())); 16 | } 17 | 18 | @Override 19 | public LWAClientScopes deserialize(JsonElement jsonElement, Type type, 20 | JsonDeserializationContext jsonDeserializationContext) 21 | throws JsonParseException { 22 | JsonObject jsonObj = jsonElement.getAsJsonObject(); 23 | Set scopeSet = new HashSet<>(Arrays.asList(jsonObj.get("scope").getAsString().split(" "))); 24 | return new LWAClientScopes(scopeSet); 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/SellingPartnerAPIAA/RateLimitConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.SellingPartnerAPIAA; 2 | 3 | public interface RateLimitConfiguration { 4 | 5 | Double getRateLimitPermit(); 6 | 7 | Long getTimeOut(); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/SellingPartnerAPIAA/RateLimitConfigurationOnRequests.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.SellingPartnerAPIAA; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | 6 | @Data 7 | @Builder 8 | public class RateLimitConfigurationOnRequests implements RateLimitConfiguration { 9 | 10 | /** 11 | * RateLimiter Permit 12 | */ 13 | private Double rateLimitPermit; 14 | 15 | /** 16 | * Timeout for RateLimiter 17 | */ 18 | private Long waitTimeOutInMilliSeconds; 19 | 20 | @Override 21 | public Long getTimeOut() { 22 | return waitTimeOutInMilliSeconds; 23 | } 24 | 25 | @Override 26 | public Double getRateLimitPermit() { 27 | return rateLimitPermit; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/SellingPartnerAPIAA/ScopeConstants.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.SellingPartnerAPIAA; 2 | 3 | public final class ScopeConstants { 4 | 5 | private ScopeConstants(){ 6 | } 7 | 8 | public static final String SCOPE_NOTIFICATIONS_API = "sellingpartnerapi::notifications"; 9 | public static final String SCOPE_MIGRATION_API = "sellingpartnerapi::migration"; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/auth/Authentication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Authorization 3 | * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.auth; 15 | 16 | import com.amazon.spapi.client.Pair; 17 | 18 | import java.util.Map; 19 | import java.util.List; 20 | 21 | public interface Authentication { 22 | /** 23 | * Apply authentication settings to header and query params. 24 | * 25 | * @param queryParams List of query parameters 26 | * @param headerParams Map of header parameters 27 | */ 28 | void applyToParams(List queryParams, Map headerParams); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/auth/HttpBasicAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Authorization 3 | * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.auth; 15 | 16 | import com.amazon.spapi.client.Pair; 17 | 18 | import com.squareup.okhttp.Credentials; 19 | 20 | import java.util.Map; 21 | import java.util.List; 22 | 23 | import java.io.UnsupportedEncodingException; 24 | 25 | public class HttpBasicAuth implements Authentication { 26 | private String username; 27 | private String password; 28 | 29 | public String getUsername() { 30 | return username; 31 | } 32 | 33 | public void setUsername(String username) { 34 | this.username = username; 35 | } 36 | 37 | public String getPassword() { 38 | return password; 39 | } 40 | 41 | public void setPassword(String password) { 42 | this.password = password; 43 | } 44 | 45 | @Override 46 | public void applyToParams(List queryParams, Map headerParams) { 47 | if (username == null && password == null) { 48 | return; 49 | } 50 | headerParams.put("Authorization", Credentials.basic( 51 | username == null ? "" : username, 52 | password == null ? "" : password)); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/auth/OAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Authorization 3 | * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.auth; 15 | 16 | import com.amazon.spapi.client.Pair; 17 | 18 | import java.util.Map; 19 | import java.util.List; 20 | 21 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T16:24:23.485+08:00") 22 | public class OAuth implements Authentication { 23 | private String accessToken; 24 | 25 | public String getAccessToken() { 26 | return accessToken; 27 | } 28 | 29 | public void setAccessToken(String accessToken) { 30 | this.accessToken = accessToken; 31 | } 32 | 33 | @Override 34 | public void applyToParams(List queryParams, Map headerParams) { 35 | if (accessToken != null) { 36 | headerParams.put("Authorization", "Bearer " + accessToken); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/auth/OAuthFlow.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Authorization 3 | * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.auth; 15 | 16 | public enum OAuthFlow { 17 | accessCode, implicit, password, application 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/client/ApiResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Authorization 3 | * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.client; 15 | 16 | import java.util.List; 17 | import java.util.Map; 18 | 19 | /** 20 | * API response returned by API call. 21 | * 22 | * @param The type of data that is deserialized from response body 23 | */ 24 | public class ApiResponse { 25 | final private int statusCode; 26 | final private Map> headers; 27 | final private T data; 28 | 29 | /** 30 | * @param statusCode The status code of HTTP response 31 | * @param headers The headers of HTTP response 32 | */ 33 | public ApiResponse(int statusCode, Map> headers) { 34 | this(statusCode, headers, null); 35 | } 36 | 37 | /** 38 | * @param statusCode The status code of HTTP response 39 | * @param headers The headers of HTTP response 40 | * @param data The object deserialized from response bod 41 | */ 42 | public ApiResponse(int statusCode, Map> headers, T data) { 43 | this.statusCode = statusCode; 44 | this.headers = headers; 45 | this.data = data; 46 | } 47 | 48 | public int getStatusCode() { 49 | return statusCode; 50 | } 51 | 52 | public Map> getHeaders() { 53 | return headers; 54 | } 55 | 56 | public T getData() { 57 | return data; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/client/Configuration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Authorization 3 | * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.client; 15 | 16 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T16:24:23.485+08:00") 17 | public class Configuration { 18 | private static ApiClient defaultApiClient = new ApiClient(); 19 | 20 | /** 21 | * Get the default API client, which would be used when creating API 22 | * instances without providing an API client. 23 | * 24 | * @return Default API client 25 | */ 26 | public static ApiClient getDefaultApiClient() { 27 | return defaultApiClient; 28 | } 29 | 30 | /** 31 | * Set the default API client, which would be used when creating API 32 | * instances without providing an API client. 33 | * 34 | * @param apiClient API client 35 | */ 36 | public static void setDefaultApiClient(ApiClient apiClient) { 37 | defaultApiClient = apiClient; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/client/Pair.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Authorization 3 | * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.client; 15 | 16 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T16:24:23.485+08:00") 17 | public class Pair { 18 | private String name = ""; 19 | private String value = ""; 20 | 21 | public Pair (String name, String value) { 22 | setName(name); 23 | setValue(value); 24 | } 25 | 26 | private void setName(String name) { 27 | if (!isValidString(name)) return; 28 | 29 | this.name = name; 30 | } 31 | 32 | private void setValue(String value) { 33 | if (!isValidString(value)) return; 34 | 35 | this.value = value; 36 | } 37 | 38 | public String getName() { 39 | return this.name; 40 | } 41 | 42 | public String getValue() { 43 | return this.value; 44 | } 45 | 46 | private boolean isValidString(String arg) { 47 | if (arg == null) return false; 48 | if (arg.trim().isEmpty()) return false; 49 | 50 | return true; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/config/AesUtil.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.config; 2 | 3 | import sun.misc.BASE64Decoder; 4 | 5 | import javax.crypto.Cipher; 6 | import javax.crypto.spec.IvParameterSpec; 7 | import javax.crypto.spec.SecretKeySpec; 8 | 9 | /** 10 | *
11 | * 12 | * @author supoman
13 | * @version 1.0
14 | * @date 2024/01/01
15 | */ 16 | 17 | public class AesUtil { 18 | /* 19 | * 解密方法 20 | * content 需要解密的密文 21 | * key 解密的秘钥 22 | * return 解密后的内容 23 | */ 24 | public static String Decrypt(String content, String key) throws Exception { 25 | try { 26 | // 判断Key是否正确 27 | if (key == null) { 28 | System.out.print("Key为空null"); 29 | return null; 30 | } 31 | // 判断Key是否为16位 32 | if (key.length() != 16) { 33 | System.out.print("Key长度不是16位"); 34 | return null; 35 | } 36 | byte[] raw = key.getBytes("ASCII"); //参数类型 37 | SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES"); 38 | Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); //"算法/模式/补码方式" 39 | //CBC模式需要配置偏移量,设置这个后,不会出来同一个明文加密为同一个密文的问题,达到密文唯一性 40 | IvParameterSpec iv = new IvParameterSpec("1234567890123456".getBytes()); 41 | cipher.init(Cipher.DECRYPT_MODE, skeySpec, iv); 42 | byte[] encrypted1 = new BASE64Decoder().decodeBuffer(content);//先用base64解密 43 | try { 44 | byte[] original = cipher.doFinal(encrypted1); 45 | String originalString = new String(original); 46 | return originalString; 47 | } catch (Exception e) { 48 | System.out.println(e.toString()); 49 | return null; 50 | } 51 | } catch (Exception ex) { 52 | System.out.println(ex.toString()); 53 | return null; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/config/AmazonAuthConfig.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.config; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @author supoman 7 | * @date 2024/01/01 8 | */ 9 | @Data 10 | public class AmazonAuthConfig { 11 | private String key; 12 | public AmazonAuthConfig(String key){ 13 | this.key=key; 14 | } 15 | public AmazonAuthConfig(String refreshToken, String region, String spEndPoint) throws Exception { 16 | 17 | //Amazon APP 18 | this.clientId=AesUtil.Decrypt("f5bed884cf288379933b249fecebefe5d9de67561f66666666666666666664e71db9bdb394a77a14e3d58cd6b676c84edd4085748379370d",key); 19 | this.clientSecret=AesUtil.Decrypt("0129ae15cf7abf358da7dac1fab49fb86a66666666666666666f7ac31e529dbbac99ed0b9e47a061b2125a30ce10c18afc985c3201331f20a1f788fe6d86c317549697fbf0c07fa43",key); 20 | this.lwaEndpoint="https://api.amazon.com/auth/o2/token"; 21 | this.refreshToken=refreshToken; 22 | this.region=region;//根据区域确定 23 | this.spEndPoint=spEndPoint;//根据区域确定 24 | } 25 | 26 | 27 | /** 28 | * 区域 29 | */ 30 | private String region; 31 | 32 | 33 | 34 | /** 35 | * IAM职权名称 36 | */ 37 | private String roleSessionName; 38 | 39 | /** 40 | * LWA客户端编码 41 | */ 42 | private String clientId; 43 | 44 | /** 45 | * LWA客户端秘钥 46 | */ 47 | private String clientSecret; 48 | 49 | /** 50 | * LWA客户端令牌 51 | */ 52 | private String refreshToken; 53 | 54 | /** 55 | * LWA授权服务器的节点地址 56 | */ 57 | private String lwaEndpoint; 58 | 59 | /** 60 | * SP授权服务器节点地址 61 | */ 62 | private String spEndPoint; 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/config/AmazonAuthorConfig.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.config; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class AmazonAuthorConfig { 7 | public AmazonAuthorConfig(){ } 8 | public AmazonAuthorConfig(String refreshToken,String region,String spEndPoint){ 9 | //APP Name 10 | this.appId="amzn1.sp.solution.6666666666666666"; 11 | 12 | this.clientId="amzn1.application-oa2-client.6666666666666666666"; 13 | //此参数需要半年180定期更换一次,否则Amazon江停止API使用 14 | /** 15 | * 注意:生成新的 LWA 凭据(客户端密码)后,您必须为调用 Amazon API 的任何应用程序更新您的凭据。您的旧凭据会在您生成新凭据 7 天后过期。记录您的凭据以供参考。 16 | * 更多信息有关更多信息,请参阅 SP-API 文档中的轮换应用程序的 LWA 凭证。 17 | * https://developer-docs.amazon.com/sp-api/docs/rotating-your-apps-lwa-credentials 18 | * @author supoman 19 | * @date 2023/2/7 20 | */ 21 | this.clientSecret="amzn1.oa2-cs.v1.66666666666666666"; 22 | this.lwaEndpoint="https://api.amazon.com/auth/o2/token"; 23 | 24 | 25 | //注意,以下的endpoint分北美,欧洲,远东三个地域,每个区域的链接是不一样的 26 | this.refreshToken=refreshToken; 27 | this.region=region;//根据区域确定 28 | this.spEndPoint=spEndPoint;//根据区域确定 29 | } 30 | 31 | 32 | /** 33 | * 区域 34 | */ 35 | private String region; 36 | 37 | 38 | 39 | /** 40 | 41 | 42 | /** 43 | * APP LWA客户端编码 44 | */ 45 | private String clientId; 46 | 47 | /** 48 | * APP LWA客户端秘钥 49 | */ 50 | private String clientSecret; 51 | 52 | /** 53 | * LWA客户端令牌 54 | */ 55 | private String refreshToken; 56 | 57 | /** 58 | * LWA授权服务器的节点地址 59 | */ 60 | private String lwaEndpoint; 61 | 62 | /** 63 | * SP授权服务器节点地址 64 | */ 65 | private String spEndPoint; 66 | /** 67 | * 开发者APP 68 | */ 69 | private String appId; 70 | } 71 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/documents/CompressionAlgorithm.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents; 2 | 3 | /** 4 | * The compression algorithm. 5 | */ 6 | public enum CompressionAlgorithm { 7 | GZIP; 8 | 9 | /** 10 | * Convert from any equivalent enum value. If the specified enum value is null, return null. 11 | * 12 | * @param val The equivalent enum value to convert 13 | * @return This enum's equivalent to the specified enum value 14 | */ 15 | public static CompressionAlgorithm fromEquivalent(T val) { 16 | if (val != null) { 17 | return CompressionAlgorithm.valueOf(val.toString()); 18 | } 19 | 20 | return null; 21 | } 22 | 23 | /** 24 | * Convert from a string. If the specified string is null, return null. 25 | * 26 | * @param val The value to convert. 27 | * @return This enum's equivalent to the specified string 28 | */ 29 | public static CompressionAlgorithm fromEquivalent(String val) { 30 | if (val != null) { 31 | return CompressionAlgorithm.valueOf(val); 32 | } 33 | 34 | return null; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/documents/CryptoStreamFactory.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents; 2 | 3 | import com.amazon.spapi.documents.exception.CryptoException; 4 | 5 | import java.io.InputStream; 6 | 7 | /** 8 | * Crypto stream factory interface. 9 | */ 10 | public interface CryptoStreamFactory { 11 | /** 12 | * Create a new {@link InputStream} that decrypts a stream of encrypted data. 13 | * 14 | * @param source The source for encrypted data to decrypt 15 | * @return A new {@link InputStream} from which decrypted data can be read 16 | * @throws CryptoException Crypto exception 17 | */ 18 | InputStream newDecryptStream(InputStream source) throws CryptoException; 19 | 20 | /** 21 | * Create a new {@link InputStream} that encrypts a stream of unencrypted data. 22 | * 23 | * @param source The source for unencrypted data to encrypt 24 | * @return A new {@link InputStream} from which encrypted data can be read 25 | * @throws CryptoException Crypto exception 26 | */ 27 | InputStream newEncryptStream(InputStream source) throws CryptoException; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/documents/HttpTransferClient.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents; 2 | 3 | import com.amazon.spapi.documents.exception.HttpResponseException; 4 | 5 | import java.io.File; 6 | import java.io.IOException; 7 | 8 | /** 9 | * HTTP transfer client. Implementations of this interface must be thread-safe and reusable for multiple requests. 10 | */ 11 | public interface HttpTransferClient { 12 | /** 13 | * Perform an HTTP GET on the specified url, storing the response body to destination. 14 | * 15 | * @param url The url to perform an HTTP GET on 16 | * @param destination The file to write the HTTP GET response body to 17 | * @return The Content-Type header value extracted from the response to the HTTP GET 18 | * @throws HttpResponseException On failure HTTP response 19 | * @throws IOException IO exception 20 | */ 21 | String download(String url, File destination) throws HttpResponseException, IOException; 22 | 23 | /** 24 | * Perform an HTTP PUT on the specified url, uploading the contents of source to the body 25 | * of the request. 26 | * 27 | * @param url The url to perform an HTTP PUT on 28 | * @param contentType The Content-Type header to be used for the HTTP PUT request 29 | * @param source The file to read the HTTP PUT body from 30 | * @throws HttpResponseException On failure HTTP response 31 | * @throws IOException IO exception 32 | */ 33 | void upload(String url, String contentType, File source) throws HttpResponseException, IOException; 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/documents/OkHttpUtils.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents; 2 | 3 | import okhttp3.*; 4 | 5 | import java.util.concurrent.TimeUnit; 6 | 7 | /** 8 | *
9 | * 10 | * @author Amte Ma
11 | * @version 1.0
12 | * @date 2023/01/05
13 | */ 14 | public class OkHttpUtils { 15 | 16 | private final static int READ_TIMEOUT = 100; 17 | 18 | private final static int CONNECT_TIMEOUT = 60; 19 | 20 | private final static int WRITE_TIMEOUT = 60; 21 | 22 | private static volatile OkHttpClient okHttpClient; 23 | 24 | private OkHttpUtils(){ 25 | 26 | okhttp3.OkHttpClient.Builder clientBuilder = new okhttp3.OkHttpClient.Builder(); 27 | //读取超时 28 | clientBuilder.readTimeout(READ_TIMEOUT, TimeUnit.SECONDS); 29 | //连接超时 30 | clientBuilder.connectTimeout(CONNECT_TIMEOUT, TimeUnit.SECONDS); 31 | //写入超时 32 | clientBuilder.writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS); 33 | //自定义连接池最大空闲连接数和等待时间大小,否则默认最大5个空闲连接 34 | clientBuilder.connectionPool(new ConnectionPool(32,5,TimeUnit.MINUTES)); 35 | 36 | okHttpClient = clientBuilder.build(); 37 | } 38 | /** 39 | * 重新定义okhttp连接池最大空闲数量设为32,防止无连接可用等待超时后抛异常 40 | * @author AmteMa 41 | * @date 2023/1/5 42 | */ 43 | public static OkHttpClient getInstance(){ 44 | if (null == okHttpClient){ 45 | synchronized (OkHttpUtils.class){ 46 | if (okHttpClient == null){ 47 | new OkHttpUtils(); 48 | return okHttpClient; 49 | } 50 | } 51 | } 52 | return okHttpClient; 53 | } 54 | } 55 | 56 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/documents/exception/CryptoException.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents.exception; 2 | 3 | /** 4 | * Crypto exception. 5 | */ 6 | public class CryptoException extends Exception { 7 | /** 8 | * {@inheritDoc} 9 | */ 10 | public CryptoException(Throwable cause) { 11 | super(cause); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/documents/exception/HttpResponseException.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents.exception; 2 | 3 | /** 4 | * The details of an HTTP response that indicates failure. 5 | */ 6 | public class HttpResponseException extends Exception { 7 | private final String body; 8 | private final int code; 9 | 10 | /** 11 | * {@inheritDoc} 12 | * 13 | * @param message The {@link Exception} message 14 | * @param body The body 15 | * @param code The HTTP status code 16 | */ 17 | public HttpResponseException(String message, String body, int code) { 18 | super(message); 19 | this.body = body; 20 | this.code = code; 21 | } 22 | 23 | /** 24 | * {@inheritDoc} 25 | * 26 | * @param message The {@link Exception} message 27 | * @param cause The {@link Exception} cause 28 | * @param body The body 29 | * @param code The HTTP status code 30 | */ 31 | public HttpResponseException(String message, Throwable cause, String body, int code) { 32 | super(message, cause); 33 | this.body = body; 34 | this.code = code; 35 | } 36 | 37 | /** 38 | * The body. To ensure that a remote server cannot overwhelm heap memory, the body may have been truncated. 39 | * 40 | * @return The body 41 | */ 42 | public String getBody() { 43 | return body; 44 | } 45 | 46 | /** 47 | * The HTTP status code 48 | * 49 | * @return The HTTP status code 50 | */ 51 | public int getCode() { 52 | return code; 53 | } 54 | 55 | @Override 56 | public String toString() { 57 | return super.toString() + " {code=" 58 | + getCode() 59 | + ", body=" 60 | + getBody() 61 | + '}'; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/documents/exception/MissingCharsetException.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents.exception; 2 | 3 | /** 4 | * Missing charset exception. 5 | */ 6 | public class MissingCharsetException extends Exception { 7 | /** 8 | * {@inheritDoc} 9 | */ 10 | public MissingCharsetException(String message) { 11 | super(message); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/enums/LabelTypeEnum.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.enums; 2 | 3 | import com.amazon.spapi.model.fulfillmentinbound.LabelPrepType; 4 | import com.google.gson.TypeAdapter; 5 | import com.google.gson.annotations.JsonAdapter; 6 | import com.google.gson.stream.JsonReader; 7 | import com.google.gson.stream.JsonWriter; 8 | 9 | import java.io.IOException; 10 | 11 | /** 12 | * @author: ty 13 | * @description: LabelType枚举类 14 | * @date: 2021/8/11 15 | */ 16 | @JsonAdapter(LabelTypeEnum.Adapter.class) 17 | public enum LabelTypeEnum { 18 | /** 19 | * 2D条码:此选项仅适用于将 2D 条码应用于所有包裹的货件。亚马逊强烈建议使用 UNIQUE 选项而不是 BARCODE_2D 选项来获取包裹标签。 20 | */ 21 | BARCODE_2D("BARCODE_2D"), 22 | 23 | /** 24 | * 唯一:用于打印入库货件的唯一货件标签和承运商标签的文档数据 25 | */ 26 | UNIQUE("UNIQUE"), 27 | 28 | /** 29 | * 托盘:用于打印零担/整车 (LTL/FTL) 入库货件的托盘标签的文档数据。 30 | */ 31 | PALLET("PALLET"); 32 | 33 | private String value; 34 | 35 | LabelTypeEnum(String value) { 36 | this.value = value; 37 | } 38 | 39 | public String getValue() { 40 | return value; 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return String.valueOf(value); 46 | } 47 | 48 | public static LabelTypeEnum fromValue(String text) { 49 | for (LabelTypeEnum b : LabelTypeEnum.values()) { 50 | if (String.valueOf(b.value).equals(text)) { 51 | return b; 52 | } 53 | } 54 | return null; 55 | } 56 | 57 | public static class Adapter extends TypeAdapter { 58 | @Override 59 | public void write(final JsonWriter jsonWriter, final LabelTypeEnum enumeration) throws IOException { 60 | jsonWriter.value(enumeration.getValue()); 61 | } 62 | 63 | @Override 64 | public LabelTypeEnum read(final JsonReader jsonReader) throws IOException { 65 | String value = jsonReader.nextString(); 66 | return LabelTypeEnum.fromValue(String.valueOf(value)); 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/apluscontent/AsinSet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for A+ Content Management 3 | * With the A+ Content API, you can build applications that help selling partners add rich marketing content to their Amazon product detail pages. A+ content helps selling partners share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners assemble content by choosing from content modules and adding images and text. 4 | * 5 | * OpenAPI spec version: 2020-11-01 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.apluscontent; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * The set of ASINs. 23 | */ 24 | @ApiModel(description = "The set of ASINs.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-04-13T15:02:00.299+08:00") 26 | public class AsinSet extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class AsinSet {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/awd/CarrierCodeType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The Selling Partner API for Amazon Warehousing and Distribution 3 | * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory. 4 | * 5 | * OpenAPI spec version: 2024-05-09 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.awd; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.stream.JsonReader; 19 | import com.google.gson.stream.JsonWriter; 20 | 21 | import java.io.IOException; 22 | 23 | /** 24 | * Denotes the type for the carrier. 25 | */ 26 | @JsonAdapter(CarrierCodeType.Adapter.class) 27 | public enum CarrierCodeType { 28 | 29 | SCAC("SCAC"); 30 | 31 | private String value; 32 | 33 | CarrierCodeType(String value) { 34 | this.value = value; 35 | } 36 | 37 | public String getValue() { 38 | return value; 39 | } 40 | 41 | @Override 42 | public String toString() { 43 | return String.valueOf(value); 44 | } 45 | 46 | public static CarrierCodeType fromValue(String text) { 47 | for (CarrierCodeType b : CarrierCodeType.values()) { 48 | if (String.valueOf(b.value).equals(text)) { 49 | return b; 50 | } 51 | } 52 | return null; 53 | } 54 | 55 | public static class Adapter extends TypeAdapter { 56 | @Override 57 | public void write(final JsonWriter jsonWriter, final CarrierCodeType enumeration) throws IOException { 58 | jsonWriter.value(enumeration.getValue()); 59 | } 60 | 61 | @Override 62 | public CarrierCodeType read(final JsonReader jsonReader) throws IOException { 63 | String value = jsonReader.nextString(); 64 | return CarrierCodeType.fromValue(String.valueOf(value)); 65 | } 66 | } 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/awd/DistributionPackageType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The Selling Partner API for Amazon Warehousing and Distribution 3 | * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory. 4 | * 5 | * OpenAPI spec version: 2024-05-09 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.awd; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.stream.JsonReader; 19 | import com.google.gson.stream.JsonWriter; 20 | 21 | import java.io.IOException; 22 | 23 | /** 24 | * Type of distribution packages. 25 | */ 26 | @JsonAdapter(DistributionPackageType.Adapter.class) 27 | public enum DistributionPackageType { 28 | 29 | CASE("CASE"), 30 | 31 | PALLET("PALLET"); 32 | 33 | private String value; 34 | 35 | DistributionPackageType(String value) { 36 | this.value = value; 37 | } 38 | 39 | public String getValue() { 40 | return value; 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return String.valueOf(value); 46 | } 47 | 48 | public static DistributionPackageType fromValue(String text) { 49 | for (DistributionPackageType b : DistributionPackageType.values()) { 50 | if (String.valueOf(b.value).equals(text)) { 51 | return b; 52 | } 53 | } 54 | return null; 55 | } 56 | 57 | public static class Adapter extends TypeAdapter { 58 | @Override 59 | public void write(final JsonWriter jsonWriter, final DistributionPackageType enumeration) throws IOException { 60 | jsonWriter.value(enumeration.getValue()); 61 | } 62 | 63 | @Override 64 | public DistributionPackageType read(final JsonReader jsonReader) throws IOException { 65 | String value = jsonReader.nextString(); 66 | return DistributionPackageType.fromValue(String.valueOf(value)); 67 | } 68 | } 69 | } 70 | 71 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/awd/SortOrder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The Selling Partner API for Amazon Warehousing and Distribution 3 | * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory. 4 | * 5 | * OpenAPI spec version: 2024-05-09 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.awd; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.stream.JsonReader; 19 | import com.google.gson.stream.JsonWriter; 20 | 21 | import java.io.IOException; 22 | 23 | /** 24 | * Sort order for a collection of items. For example, order or shipment. 25 | */ 26 | @JsonAdapter(SortOrder.Adapter.class) 27 | public enum SortOrder { 28 | 29 | ASCENDING("ASCENDING"), 30 | 31 | DESCENDING("DESCENDING"); 32 | 33 | private String value; 34 | 35 | SortOrder(String value) { 36 | this.value = value; 37 | } 38 | 39 | public String getValue() { 40 | return value; 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return String.valueOf(value); 46 | } 47 | 48 | public static SortOrder fromValue(String text) { 49 | for (SortOrder b : SortOrder.values()) { 50 | if (String.valueOf(b.value).equals(text)) { 51 | return b; 52 | } 53 | } 54 | return null; 55 | } 56 | 57 | public static class Adapter extends TypeAdapter { 58 | @Override 59 | public void write(final JsonWriter jsonWriter, final SortOrder enumeration) throws IOException { 60 | jsonWriter.value(enumeration.getValue()); 61 | } 62 | 63 | @Override 64 | public SortOrder read(final JsonReader jsonReader) throws IOException { 65 | String value = jsonReader.nextString(); 66 | return SortOrder.fromValue(String.valueOf(value)); 67 | } 68 | } 69 | } 70 | 71 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/catalogitems/AttributeSetList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Catalog Items 3 | * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.catalogitems; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of attributes for the item. 24 | */ 25 | @ApiModel(description = "A list of attributes for the item.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:17:36.166+08:00") 27 | public class AttributeSetList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class AttributeSetList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/catalogitems/ItemImages.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Catalog Items 3 | * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. For more information, refer to the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2022-04-01-use-case-guide). 4 | * 5 | * OpenAPI spec version: 2022-04-01 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.catalogitems; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * Images for an item in the Amazon catalog. 23 | */ 24 | @ApiModel(description = "Images for an item in the Amazon catalog.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-10-24T10:28:43.527+08:00") 26 | public class ItemImages extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ItemImages {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/catalogitems/ItemList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Catalog Items 3 | * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.catalogitems; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of items. 24 | */ 25 | @ApiModel(description = "A list of items.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:17:36.166+08:00") 27 | public class ItemList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class ItemList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/catalogitems/ItemProductTypes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Catalog Items 3 | * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. For more information, refer to the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2022-04-01-use-case-guide). 4 | * 5 | * OpenAPI spec version: 2022-04-01 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.catalogitems; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * Product types associated with the Amazon catalog item. 23 | */ 24 | @ApiModel(description = "Product types associated with the Amazon catalog item.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-10-24T10:28:43.527+08:00") 26 | public class ItemProductTypes extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ItemProductTypes {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/catalogitems/ItemSalesRanks.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Catalog Items 3 | * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. For more information, refer to the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2022-04-01-use-case-guide). 4 | * 5 | * OpenAPI spec version: 2022-04-01 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.catalogitems; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * Sales ranks of an Amazon catalog item. 23 | */ 24 | @ApiModel(description = "Sales ranks of an Amazon catalog item.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-10-24T10:28:43.527+08:00") 26 | public class ItemSalesRanks extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ItemSalesRanks {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/catalogitems/ItemSummaries.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Catalog Items 3 | * The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. For more information, refer to the [Catalog Items API Use Case Guide](doc:catalog-items-api-v2022-04-01-use-case-guide). 4 | * 5 | * OpenAPI spec version: 2022-04-01 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.catalogitems; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * Summary details of an Amazon catalog item. 23 | */ 24 | @ApiModel(description = "Summary details of an Amazon catalog item.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-10-24T10:28:43.527+08:00") 26 | public class ItemSummaries extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ItemSummaries {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/catalogitems/ListOfCategories.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Catalog Items 3 | * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.catalogitems; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.amazon.spapi.model.catalogitems.Categories; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * ListOfCategories 24 | */ 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:17:36.166+08:00") 26 | public class ListOfCategories extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(java.lang.Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ListOfCategories {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(java.lang.Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/catalogitems/SalesRankList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Catalog Items 3 | * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.catalogitems; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.amazon.spapi.model.catalogitems.SalesRankType; 19 | import io.swagger.annotations.ApiModel; 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | /** 24 | * A list of sales rank information for the item by category. 25 | */ 26 | @ApiModel(description = "A list of sales rank information for the item by category.") 27 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:17:36.166+08:00") 28 | public class SalesRankList extends ArrayList { 29 | 30 | @Override 31 | public boolean equals(java.lang.Object o) { 32 | if (this == o) { 33 | return true; 34 | } 35 | if (o == null || getClass() != o.getClass()) { 36 | return false; 37 | } 38 | return super.equals(o); 39 | } 40 | 41 | @Override 42 | public int hashCode() { 43 | return Objects.hash(super.hashCode()); 44 | } 45 | 46 | 47 | @Override 48 | public String toString() { 49 | StringBuilder sb = new StringBuilder(); 50 | sb.append("class SalesRankList {\n"); 51 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 52 | sb.append("}"); 53 | return sb.toString(); 54 | } 55 | 56 | /** 57 | * Convert the given object to string with each line indented by 4 spaces 58 | * (except the first line). 59 | */ 60 | private String toIndentedString(java.lang.Object o) { 61 | if (o == null) { 62 | return "null"; 63 | } 64 | return o.toString().replace("\n", "\n "); 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fbainventory/InventorySummaries.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for FBA Inventory 3 | * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fbainventory; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of inventory summaries. 24 | */ 25 | @ApiModel(description = "A list of inventory summaries.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:24:28.343+08:00") 27 | public class InventorySummaries extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class InventorySummaries {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/feeds/FeedList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Feeds 3 | * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. 4 | * 5 | * OpenAPI spec version: 2020-09-04 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.feeds; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import java.util.ArrayList; 19 | import java.util.List; 20 | 21 | /** 22 | * FeedList 23 | */ 24 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:33:48.553+08:00") 25 | public class FeedList extends ArrayList { 26 | 27 | @Override 28 | public boolean equals(java.lang.Object o) { 29 | if (this == o) { 30 | return true; 31 | } 32 | if (o == null || getClass() != o.getClass()) { 33 | return false; 34 | } 35 | return super.equals(o); 36 | } 37 | 38 | @Override 39 | public int hashCode() { 40 | return Objects.hash(super.hashCode()); 41 | } 42 | 43 | 44 | @Override 45 | public String toString() { 46 | StringBuilder sb = new StringBuilder(); 47 | sb.append("class FeedList {\n"); 48 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 49 | sb.append("}"); 50 | return sb.toString(); 51 | } 52 | 53 | /** 54 | * Convert the given object to string with each line indented by 4 spaces 55 | * (except the first line). 56 | */ 57 | private String toIndentedString(java.lang.Object o) { 58 | if (o == null) { 59 | return "null"; 60 | } 61 | return o.toString().replace("\n", "\n "); 62 | } 63 | 64 | } 65 | 66 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/feeds/FeedOptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Feeds 3 | * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. 4 | * 5 | * OpenAPI spec version: 2020-09-04 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.feeds; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.HashMap; 20 | import java.util.Map; 21 | 22 | /** 23 | * Additional options to control the feed. These vary by feed type. 24 | */ 25 | @ApiModel(description = "Additional options to control the feed. These vary by feed type.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:33:48.553+08:00") 27 | public class FeedOptions extends HashMap { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class FeedOptions {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/feedsV2/FeedList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Feeds 3 | * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. 4 | * 5 | * OpenAPI spec version: 2021-06-30 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.feedsV2; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of feeds. 23 | */ 24 | @ApiModel(description = "A list of feeds.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-01-05T10:11:03.184+08:00") 26 | public class FeedList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class FeedList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/feedsV2/FeedOptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Feeds 3 | * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. 4 | * 5 | * OpenAPI spec version: 2021-06-30 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.feedsV2; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.HashMap; 19 | import java.util.Objects; 20 | 21 | /** 22 | * Additional options to control the feed. These vary by feed type. 23 | */ 24 | @ApiModel(description = "Additional options to control the feed. These vary by feed type.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-01-05T10:11:03.184+08:00") 26 | public class FeedOptions extends HashMap { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class FeedOptions {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/finances/ChargeInstrumentList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Finances 3 | * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.finances; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of payment instruments. 23 | */ 24 | @ApiModel(description = "A list of payment instruments.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-04-21T12:22:28.126+08:00") 26 | public class ChargeInstrumentList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ChargeInstrumentList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/finances/DirectPaymentList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Finances 3 | * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.finances; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of direct payment information. 23 | */ 24 | @ApiModel(description = "A list of direct payment information.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-04-21T12:22:28.126+08:00") 26 | public class DirectPaymentList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class DirectPaymentList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/finances/FeeComponentList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Finances 3 | * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.finances; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of fee component information. 23 | */ 24 | @ApiModel(description = "A list of fee component information.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-04-21T12:22:28.126+08:00") 26 | public class FeeComponentList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class FeeComponentList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/finances/PromotionList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Finances 3 | * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.finances; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of promotions. 23 | */ 24 | @ApiModel(description = "A list of promotions.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-04-21T12:22:28.126+08:00") 26 | public class PromotionList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class PromotionList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/finances/ShipmentItemList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Finances 3 | * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.finances; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of shipment items. 23 | */ 24 | @ApiModel(description = "A list of shipment items.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-04-21T12:22:28.126+08:00") 26 | public class ShipmentItemList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ShipmentItemList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentinbound/ASINPrepInstructionsList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Fulfillment Inbound 3 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentinbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of item preparation instructions. 24 | */ 25 | @ApiModel(description = "A list of item preparation instructions.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:38:48.493+08:00") 27 | public class ASINPrepInstructionsList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class ASINPrepInstructionsList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentinbound/GuidanceReasonList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Fulfillment Inbound 3 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentinbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of inbound guidance reason information. 24 | */ 25 | @ApiModel(description = "A list of inbound guidance reason information.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:38:48.493+08:00") 27 | public class GuidanceReasonList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class GuidanceReasonList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentinbound/InboundShipmentItemList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Fulfillment Inbound 3 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentinbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of inbound shipment item information. 24 | */ 25 | @ApiModel(description = "A list of inbound shipment item information.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:38:48.493+08:00") 27 | public class InboundShipmentItemList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class InboundShipmentItemList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentinbound/InboundShipmentList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Fulfillment Inbound 3 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentinbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of inbound shipment information. 24 | */ 25 | @ApiModel(description = "A list of inbound shipment information.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:38:48.493+08:00") 27 | public class InboundShipmentList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class InboundShipmentList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentinbound/InboundShipmentPlanList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Fulfillment Inbound 3 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentinbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of inbound shipment plan information 24 | */ 25 | @ApiModel(description = "A list of inbound shipment plan information") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:38:48.493+08:00") 27 | public class InboundShipmentPlanList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class InboundShipmentPlanList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentinbound/InboundShipmentPlanRequestItemList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Fulfillment Inbound 3 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentinbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import java.util.ArrayList; 19 | import java.util.List; 20 | 21 | /** 22 | * InboundShipmentPlanRequestItemList 23 | */ 24 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:38:48.493+08:00") 25 | public class InboundShipmentPlanRequestItemList extends ArrayList { 26 | 27 | @Override 28 | public boolean equals(java.lang.Object o) { 29 | if (this == o) { 30 | return true; 31 | } 32 | if (o == null || getClass() != o.getClass()) { 33 | return false; 34 | } 35 | return super.equals(o); 36 | } 37 | 38 | @Override 39 | public int hashCode() { 40 | return Objects.hash(super.hashCode()); 41 | } 42 | 43 | 44 | @Override 45 | public String toString() { 46 | StringBuilder sb = new StringBuilder(); 47 | sb.append("class InboundShipmentPlanRequestItemList {\n"); 48 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 49 | sb.append("}"); 50 | return sb.toString(); 51 | } 52 | 53 | /** 54 | * Convert the given object to string with each line indented by 4 spaces 55 | * (except the first line). 56 | */ 57 | private String toIndentedString(java.lang.Object o) { 58 | if (o == null) { 59 | return "null"; 60 | } 61 | return o.toString().replace("\n", "\n "); 62 | } 63 | 64 | } 65 | 66 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentinbound/InvalidASINList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Fulfillment Inbound 3 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentinbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of invalid ASIN values and the reasons they are invalid. 24 | */ 25 | @ApiModel(description = "A list of invalid ASIN values and the reasons they are invalid.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:38:48.493+08:00") 27 | public class InvalidASINList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class InvalidASINList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentinbound/InvalidSKUList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Fulfillment Inbound 3 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentinbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of invalid SKU values and the reason they are invalid. 24 | */ 25 | @ApiModel(description = "A list of invalid SKU values and the reason they are invalid.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:38:48.493+08:00") 27 | public class InvalidSKUList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class InvalidSKUList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentinbound/PalletList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Fulfillment Inbound 3 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentinbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of pallet information. 24 | */ 25 | @ApiModel(description = "A list of pallet information.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:38:48.493+08:00") 27 | public class PalletList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class PalletList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentinbound/SKUInboundGuidanceList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Fulfillment Inbound 3 | * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentinbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of SKU inbound guidance information. 24 | */ 25 | @ApiModel(description = "A list of SKU inbound guidance information.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:38:48.493+08:00") 27 | public class SKUInboundGuidanceList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class SKUInboundGuidanceList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/fulfillmentoutbound/StringList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner APIs for Fulfillment Outbound 3 | * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. 4 | * 5 | * OpenAPI spec version: 2020-07-01 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.fulfillmentoutbound; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import java.util.ArrayList; 19 | import java.util.List; 20 | 21 | /** 22 | * StringList 23 | */ 24 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:44:18.412+08:00") 25 | public class StringList extends ArrayList { 26 | 27 | @Override 28 | public boolean equals(java.lang.Object o) { 29 | if (this == o) { 30 | return true; 31 | } 32 | if (o == null || getClass() != o.getClass()) { 33 | return false; 34 | } 35 | return super.equals(o); 36 | } 37 | 38 | @Override 39 | public int hashCode() { 40 | return Objects.hash(super.hashCode()); 41 | } 42 | 43 | 44 | @Override 45 | public String toString() { 46 | StringBuilder sb = new StringBuilder(); 47 | sb.append("class StringList {\n"); 48 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 49 | sb.append("}"); 50 | return sb.toString(); 51 | } 52 | 53 | /** 54 | * Convert the given object to string with each line indented by 4 spaces 55 | * (except the first line). 56 | */ 57 | private String toIndentedString(java.lang.Object o) { 58 | if (o == null) { 59 | return "null"; 60 | } 61 | return o.toString().replace("\n", "\n "); 62 | } 63 | 64 | } 65 | 66 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/listings/OurPrice.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.model.listings; 2 | 3 | import com.google.gson.annotations.SerializedName; 4 | import lombok.Data; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | *
10 | * 11 | * @author Amte Ma
12 | * @version 1.0
13 | * @date 2023/05/11
14 | */ 15 | @Data 16 | public class OurPrice{ 17 | @SerializedName("schedule") 18 | private List schedule; 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/listings/PurchasableOffer.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.model.listings; 2 | 3 | import com.google.gson.annotations.SerializedName; 4 | import lombok.Data; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | *
10 | * 11 | * @author Amte Ma
12 | * @version 1.0
13 | * @date 2023/05/11
14 | */ 15 | @Data 16 | public class PurchasableOffer { 17 | @SerializedName("currency") 18 | private String currency; 19 | @SerializedName("our_price") 20 | private List ourPrice; 21 | @SerializedName("marketplace_id") 22 | private String marketplaceId; 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/listings/Schedule.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.model.listings; 2 | 3 | import com.google.gson.annotations.SerializedName; 4 | import lombok.Data; 5 | 6 | /** 7 | *
8 | * 9 | * @author Amte Ma
10 | * @version 1.0
11 | * @date 2023/05/11
12 | */ 13 | @Data 14 | public class Schedule { 15 | @SerializedName("value_with_tax") 16 | private double valueWithTax; 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/merchantfulfillment/AvailableFormatOptionsForLabel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Merchant Fulfillment 3 | * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.merchantfulfillment; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | 19 | /** 20 | * AvailableFormatOptionsForLabel 21 | */ 22 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:46:23.921+08:00") 23 | public class AvailableFormatOptionsForLabel { 24 | 25 | @Override 26 | public boolean equals(java.lang.Object o) { 27 | if (this == o) { 28 | return true; 29 | } 30 | if (o == null || getClass() != o.getClass()) { 31 | return false; 32 | } 33 | return true; 34 | } 35 | 36 | @Override 37 | public int hashCode() { 38 | return Objects.hash(); 39 | } 40 | 41 | 42 | @Override 43 | public String toString() { 44 | StringBuilder sb = new StringBuilder(); 45 | sb.append("class AvailableFormatOptionsForLabel {\n"); 46 | 47 | sb.append("}"); 48 | return sb.toString(); 49 | } 50 | 51 | /** 52 | * Convert the given object to string with each line indented by 4 spaces 53 | * (except the first line). 54 | */ 55 | private String toIndentedString(java.lang.Object o) { 56 | if (o == null) { 57 | return "null"; 58 | } 59 | return o.toString().replace("\n", "\n "); 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/merchantfulfillment/Constraints.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Merchant Fulfillment 3 | * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.merchantfulfillment; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.amazon.spapi.model.merchantfulfillment.Constraint; 19 | import io.swagger.annotations.ApiModel; 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | /** 24 | * List of constraints. 25 | */ 26 | @ApiModel(description = "List of constraints.") 27 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:46:23.921+08:00") 28 | public class Constraints extends ArrayList { 29 | 30 | @Override 31 | public boolean equals(java.lang.Object o) { 32 | if (this == o) { 33 | return true; 34 | } 35 | if (o == null || getClass() != o.getClass()) { 36 | return false; 37 | } 38 | return super.equals(o); 39 | } 40 | 41 | @Override 42 | public int hashCode() { 43 | return Objects.hash(super.hashCode()); 44 | } 45 | 46 | 47 | @Override 48 | public String toString() { 49 | StringBuilder sb = new StringBuilder(); 50 | sb.append("class Constraints {\n"); 51 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 52 | sb.append("}"); 53 | return sb.toString(); 54 | } 55 | 56 | /** 57 | * Convert the given object to string with each line indented by 4 spaces 58 | * (except the first line). 59 | */ 60 | private String toIndentedString(java.lang.Object o) { 61 | if (o == null) { 62 | return "null"; 63 | } 64 | return o.toString().replace("\n", "\n "); 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/merchantfulfillment/TransparencyCodeList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Merchant Fulfillment 3 | * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.merchantfulfillment; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of transparency codes. 24 | */ 25 | @ApiModel(description = "A list of transparency codes.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:46:23.921+08:00") 27 | public class TransparencyCodeList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class TransparencyCodeList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/orders/ErrorList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Orders 3 | * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.orders; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of error responses returned when a request is unsuccessful. 23 | */ 24 | @ApiModel(description = "A list of error responses returned when a request is unsuccessful.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-03-10T10:27:36.694+08:00") 26 | public class ErrorList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ErrorList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/orders/OrderItemBuyerInfoList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Orders 3 | * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.orders; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A single order item's buyer information list. 23 | */ 24 | @ApiModel(description = "A single order item's buyer information list.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-03-10T10:27:36.694+08:00") 26 | public class OrderItemBuyerInfoList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class OrderItemBuyerInfoList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/orders/OrderItemList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Orders 3 | * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.orders; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of order items. 23 | */ 24 | @ApiModel(description = "A list of order items.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-03-10T10:27:36.694+08:00") 26 | public class OrderItemList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class OrderItemList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/orders/OrderList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Orders 3 | * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.orders; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of orders. 23 | */ 24 | @ApiModel(description = "A list of orders.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-03-10T10:27:36.694+08:00") 26 | public class OrderList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class OrderList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/orders/PaymentExecutionDetailItemList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Orders 3 | * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.orders; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of payment execution detail items. 23 | */ 24 | @ApiModel(description = "A list of payment execution detail items.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-03-10T10:27:36.694+08:00") 26 | public class PaymentExecutionDetailItemList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class PaymentExecutionDetailItemList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/orders/PaymentMethodDetailItemList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Orders 3 | * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.orders; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of payment method detail items. 23 | */ 24 | @ApiModel(description = "A list of payment method detail items.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-03-10T10:27:36.694+08:00") 26 | public class PaymentMethodDetailItemList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class PaymentMethodDetailItemList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productfees/FeeDetailList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Product Fees 3 | * The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productfees; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.amazon.spapi.model.productfees.FeeDetail; 19 | import io.swagger.annotations.ApiModel; 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | /** 24 | * A list of other fees that contribute to a given fee. 25 | */ 26 | @ApiModel(description = "A list of other fees that contribute to a given fee.") 27 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:52:41.175+08:00") 28 | public class FeeDetailList extends ArrayList { 29 | 30 | @Override 31 | public boolean equals(java.lang.Object o) { 32 | if (this == o) { 33 | return true; 34 | } 35 | if (o == null || getClass() != o.getClass()) { 36 | return false; 37 | } 38 | return super.equals(o); 39 | } 40 | 41 | @Override 42 | public int hashCode() { 43 | return Objects.hash(super.hashCode()); 44 | } 45 | 46 | 47 | @Override 48 | public String toString() { 49 | StringBuilder sb = new StringBuilder(); 50 | sb.append("class FeeDetailList {\n"); 51 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 52 | sb.append("}"); 53 | return sb.toString(); 54 | } 55 | 56 | /** 57 | * Convert the given object to string with each line indented by 4 spaces 58 | * (except the first line). 59 | */ 60 | private String toIndentedString(java.lang.Object o) { 61 | if (o == null) { 62 | return "null"; 63 | } 64 | return o.toString().replace("\n", "\n "); 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/AttributeSetList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of product attributes if they are applicable to the product that is returned. 23 | */ 24 | @ApiModel(description = "A list of product attributes if they are applicable to the product that is returned.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class AttributeSetList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class AttributeSetList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/BuyBoxEligibleOffers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import java.util.ArrayList; 17 | import java.util.Objects; 18 | 19 | /** 20 | * BuyBoxEligibleOffers 21 | */ 22 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 23 | public class BuyBoxEligibleOffers extends ArrayList { 24 | 25 | @Override 26 | public boolean equals(Object o) { 27 | if (this == o) { 28 | return true; 29 | } 30 | if (o == null || getClass() != o.getClass()) { 31 | return false; 32 | } 33 | return super.equals(o); 34 | } 35 | 36 | @Override 37 | public int hashCode() { 38 | return Objects.hash(super.hashCode()); 39 | } 40 | 41 | 42 | @Override 43 | public String toString() { 44 | StringBuilder sb = new StringBuilder(); 45 | sb.append("class BuyBoxEligibleOffers {\n"); 46 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 47 | sb.append("}"); 48 | return sb.toString(); 49 | } 50 | 51 | /** 52 | * Convert the given object to string with each line indented by 4 spaces 53 | * (except the first line). 54 | */ 55 | private String toIndentedString(Object o) { 56 | if (o == null) { 57 | return "null"; 58 | } 59 | return o.toString().replace("\n", "\n "); 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/BuyBoxPrices.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import java.util.ArrayList; 17 | import java.util.Objects; 18 | 19 | /** 20 | * BuyBoxPrices 21 | */ 22 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 23 | public class BuyBoxPrices extends ArrayList { 24 | 25 | @Override 26 | public boolean equals(Object o) { 27 | if (this == o) { 28 | return true; 29 | } 30 | if (o == null || getClass() != o.getClass()) { 31 | return false; 32 | } 33 | return super.equals(o); 34 | } 35 | 36 | @Override 37 | public int hashCode() { 38 | return Objects.hash(super.hashCode()); 39 | } 40 | 41 | 42 | @Override 43 | public String toString() { 44 | StringBuilder sb = new StringBuilder(); 45 | sb.append("class BuyBoxPrices {\n"); 46 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 47 | sb.append("}"); 48 | return sb.toString(); 49 | } 50 | 51 | /** 52 | * Convert the given object to string with each line indented by 4 spaces 53 | * (except the first line). 54 | */ 55 | private String toIndentedString(Object o) { 56 | if (o == null) { 57 | return "null"; 58 | } 59 | return o.toString().replace("\n", "\n "); 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/CompetitivePriceList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of competitive pricing information. 23 | */ 24 | @ApiModel(description = "A list of competitive pricing information.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class CompetitivePriceList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class CompetitivePriceList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/CustomerType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.stream.JsonReader; 19 | import com.google.gson.stream.JsonWriter; 20 | 21 | import java.io.IOException; 22 | 23 | /** 24 | * Indicates whether to request Consumer or Business offers. Default is Consumer. 25 | */ 26 | @JsonAdapter(CustomerType.Adapter.class) 27 | public enum CustomerType { 28 | 29 | CONSUMER("Consumer"), 30 | 31 | BUSINESS("Business"); 32 | 33 | private String value; 34 | 35 | CustomerType(String value) { 36 | this.value = value; 37 | } 38 | 39 | public String getValue() { 40 | return value; 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return String.valueOf(value); 46 | } 47 | 48 | public static CustomerType fromValue(String text) { 49 | for (CustomerType b : CustomerType.values()) { 50 | if (String.valueOf(b.value).equals(text)) { 51 | return b; 52 | } 53 | } 54 | return null; 55 | } 56 | 57 | public static class Adapter extends TypeAdapter { 58 | @Override 59 | public void write(final JsonWriter jsonWriter, final CustomerType enumeration) throws IOException { 60 | jsonWriter.value(enumeration.getValue()); 61 | } 62 | 63 | @Override 64 | public CustomerType read(final JsonReader jsonReader) throws IOException { 65 | String value = jsonReader.nextString(); 66 | return CustomerType.fromValue(String.valueOf(value)); 67 | } 68 | } 69 | } 70 | 71 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/ErrorList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of error responses returned when a request is unsuccessful. 23 | */ 24 | @ApiModel(description = "A list of error responses returned when a request is unsuccessful.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class ErrorList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ErrorList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/HttpMethod.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.stream.JsonReader; 19 | import com.google.gson.stream.JsonWriter; 20 | 21 | import java.io.IOException; 22 | 23 | /** 24 | * The HTTP method associated with the individual APIs being called as part of the batch request. 25 | */ 26 | @JsonAdapter(HttpMethod.Adapter.class) 27 | public enum HttpMethod { 28 | 29 | GET("GET"), 30 | 31 | PUT("PUT"), 32 | 33 | PATCH("PATCH"), 34 | 35 | DELETE("DELETE"), 36 | 37 | POST("POST"); 38 | 39 | private String value; 40 | 41 | HttpMethod(String value) { 42 | this.value = value; 43 | } 44 | 45 | public String getValue() { 46 | return value; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | return String.valueOf(value); 52 | } 53 | 54 | public static HttpMethod fromValue(String text) { 55 | for (HttpMethod b : HttpMethod.values()) { 56 | if (String.valueOf(b.value).equals(text)) { 57 | return b; 58 | } 59 | } 60 | return null; 61 | } 62 | 63 | public static class Adapter extends TypeAdapter { 64 | @Override 65 | public void write(final JsonWriter jsonWriter, final HttpMethod enumeration) throws IOException { 66 | jsonWriter.value(enumeration.getValue()); 67 | } 68 | 69 | @Override 70 | public HttpMethod read(final JsonReader jsonReader) throws IOException { 71 | String value = jsonReader.nextString(); 72 | return HttpMethod.fromValue(String.valueOf(value)); 73 | } 74 | } 75 | } 76 | 77 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/HttpRequestHeaders.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.HashMap; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A mapping of additional HTTP headers to send/receive for the individual batch request. 23 | */ 24 | @ApiModel(description = "A mapping of additional HTTP headers to send/receive for the individual batch request.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class HttpRequestHeaders extends HashMap { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class HttpRequestHeaders {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/ItemOffersRequestList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of `getListingOffers` batched requests to run. 23 | */ 24 | @ApiModel(description = "A list of `getListingOffers` batched requests to run.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class ItemOffersRequestList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ItemOffersRequestList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/ItemOffersResponseList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of `getItemOffers` batched responses. 23 | */ 24 | @ApiModel(description = "A list of `getItemOffers` batched responses.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class ItemOffersResponseList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ItemOffersResponseList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/ListingOffersRequestList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of `getListingOffers` batched requests to run. 23 | */ 24 | @ApiModel(description = "A list of `getListingOffers` batched requests to run.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class ListingOffersRequestList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ListingOffersRequestList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/ListingOffersResponseList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of `getListingOffers` batched responses. 23 | */ 24 | @ApiModel(description = "A list of `getListingOffers` batched responses.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class ListingOffersResponseList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ListingOffersResponseList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/LowestPrices.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import java.util.ArrayList; 17 | import java.util.Objects; 18 | 19 | /** 20 | * LowestPrices 21 | */ 22 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 23 | public class LowestPrices extends ArrayList { 24 | 25 | @Override 26 | public boolean equals(Object o) { 27 | if (this == o) { 28 | return true; 29 | } 30 | if (o == null || getClass() != o.getClass()) { 31 | return false; 32 | } 33 | return super.equals(o); 34 | } 35 | 36 | @Override 37 | public int hashCode() { 38 | return Objects.hash(super.hashCode()); 39 | } 40 | 41 | 42 | @Override 43 | public String toString() { 44 | StringBuilder sb = new StringBuilder(); 45 | sb.append("class LowestPrices {\n"); 46 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 47 | sb.append("}"); 48 | return sb.toString(); 49 | } 50 | 51 | /** 52 | * Convert the given object to string with each line indented by 4 spaces 53 | * (except the first line). 54 | */ 55 | private String toIndentedString(Object o) { 56 | if (o == null) { 57 | return "null"; 58 | } 59 | return o.toString().replace("\n", "\n "); 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/NumberOfOffers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import java.util.ArrayList; 17 | import java.util.Objects; 18 | 19 | /** 20 | * NumberOfOffers 21 | */ 22 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 23 | public class NumberOfOffers extends ArrayList { 24 | 25 | @Override 26 | public boolean equals(Object o) { 27 | if (this == o) { 28 | return true; 29 | } 30 | if (o == null || getClass() != o.getClass()) { 31 | return false; 32 | } 33 | return super.equals(o); 34 | } 35 | 36 | @Override 37 | public int hashCode() { 38 | return Objects.hash(super.hashCode()); 39 | } 40 | 41 | 42 | @Override 43 | public String toString() { 44 | StringBuilder sb = new StringBuilder(); 45 | sb.append("class NumberOfOffers {\n"); 46 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 47 | sb.append("}"); 48 | return sb.toString(); 49 | } 50 | 51 | /** 52 | * Convert the given object to string with each line indented by 4 spaces 53 | * (except the first line). 54 | */ 55 | private String toIndentedString(Object o) { 56 | if (o == null) { 57 | return "null"; 58 | } 59 | return o.toString().replace("\n", "\n "); 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/OfferCustomerType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.stream.JsonReader; 19 | import com.google.gson.stream.JsonWriter; 20 | 21 | import java.io.IOException; 22 | 23 | /** 24 | * Gets or Sets OfferCustomerType 25 | */ 26 | @JsonAdapter(OfferCustomerType.Adapter.class) 27 | public enum OfferCustomerType { 28 | 29 | B2C("B2C"), 30 | 31 | B2B("B2B"); 32 | 33 | private String value; 34 | 35 | OfferCustomerType(String value) { 36 | this.value = value; 37 | } 38 | 39 | public String getValue() { 40 | return value; 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return String.valueOf(value); 46 | } 47 | 48 | public static OfferCustomerType fromValue(String text) { 49 | for (OfferCustomerType b : OfferCustomerType.values()) { 50 | if (String.valueOf(b.value).equals(text)) { 51 | return b; 52 | } 53 | } 54 | return null; 55 | } 56 | 57 | public static class Adapter extends TypeAdapter { 58 | @Override 59 | public void write(final JsonWriter jsonWriter, final OfferCustomerType enumeration) throws IOException { 60 | jsonWriter.value(enumeration.getValue()); 61 | } 62 | 63 | @Override 64 | public OfferCustomerType read(final JsonReader jsonReader) throws IOException { 65 | String value = jsonReader.nextString(); 66 | return OfferCustomerType.fromValue(String.valueOf(value)); 67 | } 68 | } 69 | } 70 | 71 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/OfferDetailList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import java.util.ArrayList; 17 | import java.util.Objects; 18 | 19 | /** 20 | * OfferDetailList 21 | */ 22 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 23 | public class OfferDetailList extends ArrayList { 24 | 25 | @Override 26 | public boolean equals(Object o) { 27 | if (this == o) { 28 | return true; 29 | } 30 | if (o == null || getClass() != o.getClass()) { 31 | return false; 32 | } 33 | return super.equals(o); 34 | } 35 | 36 | @Override 37 | public int hashCode() { 38 | return Objects.hash(super.hashCode()); 39 | } 40 | 41 | 42 | @Override 43 | public String toString() { 44 | StringBuilder sb = new StringBuilder(); 45 | sb.append("class OfferDetailList {\n"); 46 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 47 | sb.append("}"); 48 | return sb.toString(); 49 | } 50 | 51 | /** 52 | * Convert the given object to string with each line indented by 4 spaces 53 | * (except the first line). 54 | */ 55 | private String toIndentedString(Object o) { 56 | if (o == null) { 57 | return "null"; 58 | } 59 | return o.toString().replace("\n", "\n "); 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/OffersList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of offers. 23 | */ 24 | @ApiModel(description = "A list of offers.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class OffersList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class OffersList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/PriceList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import java.util.ArrayList; 17 | import java.util.Objects; 18 | 19 | /** 20 | * PriceList 21 | */ 22 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 23 | public class PriceList extends ArrayList { 24 | 25 | @Override 26 | public boolean equals(Object o) { 27 | if (this == o) { 28 | return true; 29 | } 30 | if (o == null || getClass() != o.getClass()) { 31 | return false; 32 | } 33 | return super.equals(o); 34 | } 35 | 36 | @Override 37 | public int hashCode() { 38 | return Objects.hash(super.hashCode()); 39 | } 40 | 41 | 42 | @Override 43 | public String toString() { 44 | StringBuilder sb = new StringBuilder(); 45 | sb.append("class PriceList {\n"); 46 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 47 | sb.append("}"); 48 | return sb.toString(); 49 | } 50 | 51 | /** 52 | * Convert the given object to string with each line indented by 4 spaces 53 | * (except the first line). 54 | */ 55 | private String toIndentedString(Object o) { 56 | if (o == null) { 57 | return "null"; 58 | } 59 | return o.toString().replace("\n", "\n "); 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/QuantityDiscountType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.stream.JsonReader; 19 | import com.google.gson.stream.JsonWriter; 20 | 21 | import java.io.IOException; 22 | 23 | /** 24 | * Gets or Sets QuantityDiscountType 25 | */ 26 | @JsonAdapter(QuantityDiscountType.Adapter.class) 27 | public enum QuantityDiscountType { 28 | 29 | QUANTITY_DISCOUNT("QUANTITY_DISCOUNT"); 30 | 31 | private String value; 32 | 33 | QuantityDiscountType(String value) { 34 | this.value = value; 35 | } 36 | 37 | public String getValue() { 38 | return value; 39 | } 40 | 41 | @Override 42 | public String toString() { 43 | return String.valueOf(value); 44 | } 45 | 46 | public static QuantityDiscountType fromValue(String text) { 47 | for (QuantityDiscountType b : QuantityDiscountType.values()) { 48 | if (String.valueOf(b.value).equals(text)) { 49 | return b; 50 | } 51 | } 52 | return null; 53 | } 54 | 55 | public static class Adapter extends TypeAdapter { 56 | @Override 57 | public void write(final JsonWriter jsonWriter, final QuantityDiscountType enumeration) throws IOException { 58 | jsonWriter.value(enumeration.getValue()); 59 | } 60 | 61 | @Override 62 | public QuantityDiscountType read(final JsonReader jsonReader) throws IOException { 63 | String value = jsonReader.nextString(); 64 | return QuantityDiscountType.fromValue(String.valueOf(value)); 65 | } 66 | } 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/RelationshipList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list that contains product variation information, if applicable. 23 | */ 24 | @ApiModel(description = "A list that contains product variation information, if applicable.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class RelationshipList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class RelationshipList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/productpricing/SalesRankList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Pricing 3 | * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products. 4 | * 5 | * OpenAPI spec version: v0 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.productpricing; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of sales rank information for the item, by category. 23 | */ 24 | @ApiModel(description = "A list of sales rank information for the item, by category.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-08-30T12:29:48.923+08:00") 26 | public class SalesRankList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class SalesRankList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/reports/ReportList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Reports 3 | * The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses. 4 | * 5 | * OpenAPI spec version: 2020-09-04 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.reports; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.amazon.spapi.model.reports.Report; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * ReportList 24 | */ 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:55:47.344+08:00") 26 | public class ReportList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(java.lang.Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ReportList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(java.lang.Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/reports/ReportOptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Reports 3 | * The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses. 4 | * 5 | * OpenAPI spec version: 2020-09-04 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.reports; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.HashMap; 20 | import java.util.Map; 21 | 22 | /** 23 | * Additional information passed to reports. This varies by report type. 24 | */ 25 | @ApiModel(description = "Additional information passed to reports. This varies by report type.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:55:47.344+08:00") 27 | public class ReportOptions extends HashMap { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class ReportOptions {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/reports/ReportScheduleList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Reports 3 | * The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses. 4 | * 5 | * OpenAPI spec version: 2020-09-04 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.reports; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.amazon.spapi.model.reports.ReportSchedule; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * ReportScheduleList 24 | */ 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:55:47.344+08:00") 26 | public class ReportScheduleList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(java.lang.Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ReportScheduleList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(java.lang.Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/reportsv2/ReportList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Reports 3 | * The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses. 4 | * 5 | * OpenAPI spec version: 2021-06-30 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.reportsv2; 15 | 16 | import java.util.Objects; 17 | 18 | import io.swagger.annotations.ApiModel; 19 | 20 | import java.util.ArrayList; 21 | 22 | /** 23 | * A list of reports. 24 | */ 25 | @ApiModel(description = "A list of reports.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-05-16T15:28:26.586+08:00") 27 | public class ReportList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class ReportList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/reportsv2/ReportOptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Reports 3 | * The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses. 4 | * 5 | * OpenAPI spec version: 2021-06-30 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.reportsv2; 15 | 16 | import java.util.Objects; 17 | 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.HashMap; 20 | 21 | /** 22 | * Additional information passed to reports. This varies by report type. 23 | */ 24 | @ApiModel(description = "Additional information passed to reports. This varies by report type.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-05-16T15:28:26.586+08:00") 26 | public class ReportOptions extends HashMap { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ReportOptions {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/sales/OrderMetricsList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Sales 3 | * The Selling Partner API for Sales provides APIs related to sales performance. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.sales; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.amazon.spapi.model.sales.OrderMetricsInterval; 19 | import io.swagger.annotations.ApiModel; 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | /** 24 | * A set of order metrics, each scoped to a particular time interval. 25 | */ 26 | @ApiModel(description = "A set of order metrics, each scoped to a particular time interval.") 27 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:56:54.413+08:00") 28 | public class OrderMetricsList extends ArrayList { 29 | 30 | @Override 31 | public boolean equals(java.lang.Object o) { 32 | if (this == o) { 33 | return true; 34 | } 35 | if (o == null || getClass() != o.getClass()) { 36 | return false; 37 | } 38 | return super.equals(o); 39 | } 40 | 41 | @Override 42 | public int hashCode() { 43 | return Objects.hash(super.hashCode()); 44 | } 45 | 46 | 47 | @Override 48 | public String toString() { 49 | StringBuilder sb = new StringBuilder(); 50 | sb.append("class OrderMetricsList {\n"); 51 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 52 | sb.append("}"); 53 | return sb.toString(); 54 | } 55 | 56 | /** 57 | * Convert the given object to string with each line indented by 4 spaces 58 | * (except the first line). 59 | */ 60 | private String toIndentedString(java.lang.Object o) { 61 | if (o == null) { 62 | return "null"; 63 | } 64 | return o.toString().replace("\n", "\n "); 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/services/WarningList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Services 3 | * With the Services API, you can build applications that help service providers get and modify their service orders. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.services; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of warnings returned in the sucessful execution response of an API request. 24 | */ 25 | @ApiModel(description = "A list of warnings returned in the sucessful execution response of an API request.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:57:54.327+08:00") 27 | public class WarningList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class WarningList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/shipping/ContainerList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Shipping 3 | * Provides programmatic access to Amazon Shipping APIs. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.shipping; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of container. 24 | */ 25 | @ApiModel(description = "A list of container.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:59:38.614+08:00") 27 | public class ContainerList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class ContainerList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/shipping/ContainerSpecificationList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Shipping 3 | * Provides programmatic access to Amazon Shipping APIs. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.shipping; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of container specifications. 24 | */ 25 | @ApiModel(description = "A list of container specifications.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:59:38.614+08:00") 27 | public class ContainerSpecificationList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class ContainerSpecificationList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/shipping/EventList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Shipping 3 | * Provides programmatic access to Amazon Shipping APIs. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.shipping; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of events of a shipment. 24 | */ 25 | @ApiModel(description = "A list of events of a shipment.") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:59:38.614+08:00") 27 | public class EventList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class EventList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/shipping/LabelResultList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Shipping 3 | * Provides programmatic access to Amazon Shipping APIs. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.shipping; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import io.swagger.annotations.ApiModel; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | 22 | /** 23 | * A list of label results 24 | */ 25 | @ApiModel(description = "A list of label results") 26 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:59:38.614+08:00") 27 | public class LabelResultList extends ArrayList { 28 | 29 | @Override 30 | public boolean equals(java.lang.Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | return super.equals(o); 38 | } 39 | 40 | @Override 41 | public int hashCode() { 42 | return Objects.hash(super.hashCode()); 43 | } 44 | 45 | 46 | @Override 47 | public String toString() { 48 | StringBuilder sb = new StringBuilder(); 49 | sb.append("class LabelResultList {\n"); 50 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 51 | sb.append("}"); 52 | return sb.toString(); 53 | } 54 | 55 | /** 56 | * Convert the given object to string with each line indented by 4 spaces 57 | * (except the first line). 58 | */ 59 | private String toIndentedString(java.lang.Object o) { 60 | if (o == null) { 61 | return "null"; 62 | } 63 | return o.toString().replace("\n", "\n "); 64 | } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/shipping/RateList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Shipping 3 | * Provides programmatic access to Amazon Shipping APIs. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.shipping; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.amazon.spapi.model.shipping.Rate; 19 | import io.swagger.annotations.ApiModel; 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | /** 24 | * A list of all the available rates that can be used to send the shipment. 25 | */ 26 | @ApiModel(description = "A list of all the available rates that can be used to send the shipment.") 27 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:59:38.614+08:00") 28 | public class RateList extends ArrayList { 29 | 30 | @Override 31 | public boolean equals(java.lang.Object o) { 32 | if (this == o) { 33 | return true; 34 | } 35 | if (o == null || getClass() != o.getClass()) { 36 | return false; 37 | } 38 | return super.equals(o); 39 | } 40 | 41 | @Override 42 | public int hashCode() { 43 | return Objects.hash(super.hashCode()); 44 | } 45 | 46 | 47 | @Override 48 | public String toString() { 49 | StringBuilder sb = new StringBuilder(); 50 | sb.append("class RateList {\n"); 51 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 52 | sb.append("}"); 53 | return sb.toString(); 54 | } 55 | 56 | /** 57 | * Convert the given object to string with each line indented by 4 spaces 58 | * (except the first line). 59 | */ 60 | private String toIndentedString(java.lang.Object o) { 61 | if (o == null) { 62 | return "null"; 63 | } 64 | return o.toString().replace("\n", "\n "); 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/shipping/ServiceRateList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Shipping 3 | * Provides programmatic access to Amazon Shipping APIs. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.shipping; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.amazon.spapi.model.shipping.ServiceRate; 19 | import io.swagger.annotations.ApiModel; 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | /** 24 | * A list of service rates. 25 | */ 26 | @ApiModel(description = "A list of service rates.") 27 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:59:38.614+08:00") 28 | public class ServiceRateList extends ArrayList { 29 | 30 | @Override 31 | public boolean equals(java.lang.Object o) { 32 | if (this == o) { 33 | return true; 34 | } 35 | if (o == null || getClass() != o.getClass()) { 36 | return false; 37 | } 38 | return super.equals(o); 39 | } 40 | 41 | @Override 42 | public int hashCode() { 43 | return Objects.hash(super.hashCode()); 44 | } 45 | 46 | 47 | @Override 48 | public String toString() { 49 | StringBuilder sb = new StringBuilder(); 50 | sb.append("class ServiceRateList {\n"); 51 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 52 | sb.append("}"); 53 | return sb.toString(); 54 | } 55 | 56 | /** 57 | * Convert the given object to string with each line indented by 4 spaces 58 | * (except the first line). 59 | */ 60 | private String toIndentedString(java.lang.Object o) { 61 | if (o == null) { 62 | return "null"; 63 | } 64 | return o.toString().replace("\n", "\n "); 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/shipping/ServiceTypeList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Shipping 3 | * Provides programmatic access to Amazon Shipping APIs. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.shipping; 15 | 16 | import java.util.Objects; 17 | import java.util.Arrays; 18 | import com.amazon.spapi.model.shipping.ServiceType; 19 | import io.swagger.annotations.ApiModel; 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | 23 | /** 24 | * A list of service types that can be used to send the shipment. 25 | */ 26 | @ApiModel(description = "A list of service types that can be used to send the shipment.") 27 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-15T20:59:38.614+08:00") 28 | public class ServiceTypeList extends ArrayList { 29 | 30 | @Override 31 | public boolean equals(java.lang.Object o) { 32 | if (this == o) { 33 | return true; 34 | } 35 | if (o == null || getClass() != o.getClass()) { 36 | return false; 37 | } 38 | return super.equals(o); 39 | } 40 | 41 | @Override 42 | public int hashCode() { 43 | return Objects.hash(super.hashCode()); 44 | } 45 | 46 | 47 | @Override 48 | public String toString() { 49 | StringBuilder sb = new StringBuilder(); 50 | sb.append("class ServiceTypeList {\n"); 51 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 52 | sb.append("}"); 53 | return sb.toString(); 54 | } 55 | 56 | /** 57 | * Convert the given object to string with each line indented by 4 spaces 58 | * (except the first line). 59 | */ 60 | private String toIndentedString(java.lang.Object o) { 61 | if (o == null) { 62 | return "null"; 63 | } 64 | return o.toString().replace("\n", "\n "); 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/transaction/Contexts.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The Selling Partner API for Finances 3 | * The Selling Partner API for Finances provides financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes. 4 | * 5 | * OpenAPI spec version: 2024-06-19 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.transaction; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of additional information about the item. 23 | */ 24 | @ApiModel(description = "A list of additional information about the item.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-10-29T14:15:07.629+08:00") 26 | public class Contexts extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class Contexts {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/transaction/ItemRelatedIdentifiers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The Selling Partner API for Finances 3 | * The Selling Partner API for Finances provides financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes. 4 | * 5 | * OpenAPI spec version: 2024-06-19 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.transaction; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * Related business identifiers of the item in the transaction. 23 | */ 24 | @ApiModel(description = "Related business identifiers of the item in the transaction.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-10-29T14:15:07.629+08:00") 26 | public class ItemRelatedIdentifiers extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ItemRelatedIdentifiers {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/transaction/Items.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The Selling Partner API for Finances 3 | * The Selling Partner API for Finances provides financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes. 4 | * 5 | * OpenAPI spec version: 2024-06-19 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.transaction; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of items in the transaction. 23 | */ 24 | @ApiModel(description = "A list of items in the transaction.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-10-29T14:15:07.629+08:00") 26 | public class Items extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class Items {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/transaction/RelatedIdentifiers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The Selling Partner API for Finances 3 | * The Selling Partner API for Finances provides financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes. 4 | * 5 | * OpenAPI spec version: 2024-06-19 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.transaction; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * Related business identifiers of the transaction. 23 | */ 24 | @ApiModel(description = "Related business identifiers of the transaction.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-10-29T14:15:07.629+08:00") 26 | public class RelatedIdentifiers extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class RelatedIdentifiers {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/transaction/Transactions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The Selling Partner API for Finances 3 | * The Selling Partner API for Finances provides financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes. 4 | * 5 | * OpenAPI spec version: 2024-06-19 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.transaction; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of transactions within the specified time period. 23 | */ 24 | @ApiModel(description = "A list of transactions within the specified time period.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-10-29T14:15:07.629+08:00") 26 | public class Transactions extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class Transactions {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/uploads/ErrorList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Uploads 3 | * The Uploads API lets you upload files that you can programmatically access using other Selling Partner APIs, such as the A+ Content API and the Messaging API. 4 | * 5 | * OpenAPI spec version: 2020-11-01 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.uploads; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of error responses returned when a request is unsuccessful. 23 | */ 24 | @ApiModel(description = "A list of error responses returned when a request is unsuccessful.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-04-14T14:24:10.875+08:00") 26 | public class ErrorList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ErrorList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/vendororders/ErrorList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Retail Procurement Orders 3 | * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.vendororders; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * A list of error responses returned when a request is unsuccessful. 23 | */ 24 | @ApiModel(description = "A list of error responses returned when a request is unsuccessful.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-07-02T11:17:12.944+08:00") 26 | public class ErrorList extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ErrorList {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/model/vendororders/ItemStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Selling Partner API for Retail Procurement Orders 3 | * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data. 4 | * 5 | * OpenAPI spec version: v1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package com.amazon.spapi.model.vendororders; 15 | 16 | import io.swagger.annotations.ApiModel; 17 | 18 | import java.util.ArrayList; 19 | import java.util.Objects; 20 | 21 | /** 22 | * Detailed description of items order status. 23 | */ 24 | @ApiModel(description = "Detailed description of items order status.") 25 | @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-07-02T11:17:12.944+08:00") 26 | public class ItemStatus extends ArrayList { 27 | 28 | @Override 29 | public boolean equals(Object o) { 30 | if (this == o) { 31 | return true; 32 | } 33 | if (o == null || getClass() != o.getClass()) { 34 | return false; 35 | } 36 | return super.equals(o); 37 | } 38 | 39 | @Override 40 | public int hashCode() { 41 | return Objects.hash(super.hashCode()); 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | StringBuilder sb = new StringBuilder(); 48 | sb.append("class ItemStatus {\n"); 49 | sb.append(" ").append(toIndentedString(super.toString())).append("\n"); 50 | sb.append("}"); 51 | return sb.toString(); 52 | } 53 | 54 | /** 55 | * Convert the given object to string with each line indented by 4 spaces 56 | * (except the first line). 57 | */ 58 | private String toIndentedString(Object o) { 59 | if (o == null) { 60 | return "null"; 61 | } 62 | return o.toString().replace("\n", "\n "); 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /src/main/java/com/amazon/spapi/utils/StringBuilderPlus.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.utils; 2 | 3 | //参考:https://www.codenong.com/14534767/ 4 | public class StringBuilderPlus { 5 | private StringBuilder sb; 6 | 7 | public StringBuilderPlus(){ 8 | sb = new StringBuilder(); 9 | } 10 | 11 | public void append(String str) 12 | { 13 | sb.append(str != null ? str :""); 14 | } 15 | 16 | public void appendLine(String str) 17 | { 18 | sb.append(str != null ? str :"").append(System.getProperty("line.separator")); 19 | } 20 | 21 | public String toString() 22 | { 23 | return sb.toString(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/test/java/com/amazon/spapi/api/VendorOrdersApiTest.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.api; 2 | 3 | import com.amazon.spapi.client.ApiException; 4 | import com.amazon.spapi.config.AmazonAuthorConfig; 5 | import com.amazon.spapi.enums.EndpointsEnum; 6 | import com.amazon.spapi.model.orders.GetOrdersResponse; 7 | import lombok.var; 8 | import org.junit.Ignore; 9 | import org.junit.Test; 10 | 11 | import java.util.ArrayList; 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | import static org.junit.jupiter.api.Assertions.*; 16 | @Ignore 17 | public class VendorOrdersApiTest { 18 | 19 | 20 | static String refreshtoken="***"; 21 | static EndpointsEnum endpointsEnum = EndpointsEnum.US; 22 | static List marketplaceIds= Arrays.asList(endpointsEnum.getMarketplaceId()); 23 | static AmazonAuthorConfig authorConfig=new AmazonAuthorConfig(refreshtoken, endpointsEnum.getRegion(),endpointsEnum.getEndpoint()); 24 | 25 | private final VendorOrdersApi api = VendorOrdersApi.amazonAuthorizationApi(authorConfig); 26 | /* @Test 27 | void getPurchaseOrder() { 28 | } 29 | 30 | @Test 31 | void getPurchaseOrdersWithHttpInfo() { 32 | }*/ 33 | 34 | @Test 35 | public void getPurchaseOrders() throws ApiException { 36 | 37 | var createdAfter =org.threeten.bp.OffsetDateTime.now().plusDays(-5); 38 | var createdBefore =org.threeten.bp.OffsetDateTime.now(); 39 | 40 | var response = api.getPurchaseOrders(null,createdAfter,createdBefore,null,null,null,null,null,null,null,null,null); 41 | if(null == response) { 42 | throw new RuntimeException(); 43 | } 44 | System.out.println(response.getPayload().getOrders()); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/test/java/com/amazon/spapi/documents/CompressionAlgorithmTest.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents; 2 | 3 | import org.junit.jupiter.api.Assertions; 4 | import org.junit.jupiter.api.Test; 5 | 6 | import static org.junit.jupiter.api.Assertions.assertEquals; 7 | import static org.junit.jupiter.api.Assertions.assertNull; 8 | 9 | class CompressionAlgorithmTest { 10 | public enum MyEnum { 11 | GZIP, NOT_GZIP 12 | } 13 | 14 | @Test 15 | public void testFromEquivalent() { 16 | assertEquals(CompressionAlgorithm.GZIP, CompressionAlgorithm.fromEquivalent(MyEnum.GZIP)); 17 | } 18 | 19 | @Test 20 | public void testFromEquivalentNull() { 21 | MyEnum myEnum = null; 22 | assertNull(CompressionAlgorithm.fromEquivalent(myEnum)); 23 | } 24 | 25 | @Test 26 | public void testNotEquivalent() { 27 | Assertions.assertThrows(IllegalArgumentException.class, 28 | () -> CompressionAlgorithm.fromEquivalent(MyEnum.NOT_GZIP)); 29 | } 30 | 31 | @Test 32 | public void testFromString() { 33 | assertEquals(CompressionAlgorithm.GZIP, CompressionAlgorithm.fromEquivalent("GZIP")); 34 | } 35 | 36 | @Test 37 | public void testFromStringNull() { 38 | String val = null; 39 | assertNull(CompressionAlgorithm.fromEquivalent(val)); 40 | } 41 | 42 | @Test 43 | public void testFromStringUnsupportedValue() { 44 | Assertions.assertThrows(IllegalArgumentException.class, 45 | () -> CompressionAlgorithm.fromEquivalent("NOT_GZIP")); 46 | } 47 | } -------------------------------------------------------------------------------- /src/test/java/com/amazon/spapi/documents/DownloadBundleTest.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents; 2 | 3 | import com.amazon.spapi.documents.impl.AESCryptoStreamFactory; 4 | import org.junit.jupiter.api.Test; 5 | 6 | import java.io.File; 7 | import java.io.FileNotFoundException; 8 | 9 | import static org.junit.jupiter.api.Assertions.assertThrows; 10 | 11 | class DownloadBundleTest { 12 | private static String KEY = "sxx/wImF6BFndqSAz56O6vfiAh8iD9P297DHfFgujec="; 13 | private static String VECTOR = "7S2tn363v0wfCfo1IX2Q1A=="; 14 | 15 | private DownloadBundle createBadFileBundle() throws Exception { 16 | String contentType = "text/xml; charset=UTF-8"; 17 | CryptoStreamFactory cryptoStreamFactory = new AESCryptoStreamFactory.Builder(KEY, VECTOR).build(); 18 | 19 | File file = File.createTempFile("foo", null, null); 20 | file.delete(); 21 | 22 | return new DownloadBundle(null, contentType, cryptoStreamFactory, file); 23 | } 24 | 25 | @Test 26 | public void testNewInputStreamBadFile() throws Exception { 27 | DownloadBundle downloadBundle = createBadFileBundle(); 28 | assertThrows(FileNotFoundException.class, () -> downloadBundle.newInputStream()); 29 | } 30 | 31 | @Test 32 | public void testNewReaderBadFile() throws Exception { 33 | DownloadBundle downloadBundle = createBadFileBundle(); 34 | assertThrows(FileNotFoundException.class, () -> downloadBundle.newBufferedReader()); 35 | } 36 | } -------------------------------------------------------------------------------- /src/test/java/com/amazon/spapi/documents/exception/CryptoExceptionTest.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents.exception; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import static org.junit.jupiter.api.Assertions.assertSame; 6 | 7 | class CryptoExceptionTest { 8 | @Test 9 | public void testConstructor() { 10 | Throwable throwable = new RuntimeException(); 11 | CryptoException exception = new CryptoException(throwable); 12 | 13 | assertSame(throwable, exception.getCause()); 14 | } 15 | } -------------------------------------------------------------------------------- /src/test/java/com/amazon/spapi/documents/exception/MissingCharsetExceptionTest.java: -------------------------------------------------------------------------------- 1 | package com.amazon.spapi.documents.exception; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import static org.junit.jupiter.api.Assertions.assertEquals; 6 | 7 | class MissingCharsetExceptionTest { 8 | @Test 9 | public void testConstructor() { 10 | String message = "This is the message"; 11 | MissingCharsetException exception = new MissingCharsetException(message); 12 | 13 | assertEquals(message, exception.getMessage()); 14 | } 15 | } -------------------------------------------------------------------------------- /src/test/resources/mockito-extensions/org.mockito.plugins.Mockmaker: -------------------------------------------------------------------------------- 1 | mock-maker-inline --------------------------------------------------------------------------------