From 4a884e58987ffcc472bc745dbc358582f90d9b79 Mon Sep 17 00:00:00 2001 From: Norbert Orzechowicz Date: Sun, 7 May 2023 14:41:30 +0200 Subject: [PATCH 1/2] Updated amazon sp api models to the latest version --- .../api.mustache | 14 +- .../Api/AplusContentApi/APlusSDK.php | 150 +-- .../Api/ApprovalsApi/OrdersSDK.php | 460 +++++++++ .../Api/ApprovalsApi/OrdersSDKInterface.php | 56 ++ .../Api/AuthorizationApi/AuthorizationSDK.php | 15 +- .../Api/CatalogApi/CatalogItemSDK.php | 30 +- .../VendorDirectFulfillmentShippingSDK.php | 30 +- .../Api/DefaultApi/FinancesSDK.php | 60 +- .../ProductTypesDefinitionsSDK.php | 30 +- .../Api/FbaInboundApi/FBAInboundSDK.php | 15 +- .../FbaInboundApi/FulfillmentInboundSDK.php | 255 +++-- .../Api/FbaInventoryApi/FBAInventorySDK.php | 35 +- .../FBAInventorySDKInterface.php | 5 +- .../FbaOutboundApi/FulfillmentOutboundSDK.php | 390 ++++++-- .../FulfillmentOutboundSDKInterface.php | 17 + .../SellingPartner/Api/FeedsApi/FeedsSDK.php | 88 +- .../Api/FeesApi/ProductFeesSDK.php | 43 +- .../Api/ListingsApi/ListingsItemsSDK.php | 60 +- .../MerchantFulfillmentSDK.php | 120 ++- .../Api/MessagingApi/MessagingSDK.php | 195 ++-- .../Api/NotificationsApi/NotificationsSDK.php | 120 ++- .../Api/OrdersV0Api/OrdersSDK.php | 350 ++++++- .../Api/OrdersV0Api/OrdersSDKInterface.php | 19 +- .../ProductPricingApi/ProductPricingSDK.php | 90 +- .../Api/ReportsApi/ReportsSDK.php | 139 +-- .../Api/ReportsApi/ReportsSDKInterface.php | 4 +- .../SellingPartner/Api/SalesApi/SalesSDK.php | 15 +- .../Api/SellersApi/SellersSDK.php | 15 +- .../Api/ServiceApi/ServicesSDK.php | 255 +++-- .../Api/ShipmentApi/OrdersSDK.php | 13 +- .../ShipmentInvoicingSDK.php | 45 +- .../Api/ShippingApi/ShippingSDK.php | 135 ++- .../SmallAndLightApi/FBASmallAndLightSDK.php | 73 +- .../Api/SolicitationsApi/SolicitationsSDK.php | 30 +- .../Api/TokensApi/TokensSDK.php | 15 +- .../VendorDirectFulfillmentInventorySDK.php | 15 +- .../Api/UploadsApi/UploadsSDK.php | 15 +- .../VendorDirectFulfillmentPaymentsSDK.php | 15 +- .../VendorDirectFulfillmentOrdersSDK.php | 45 +- .../Api/VendorOrdersApi/VendorOrdersSDK.php | 60 +- .../VendorPaymentsApi/VendorInvoicesSDK.php | 15 +- .../VendorDirectFulfillmentShippingSDK.php | 60 +- .../VendorShippingApi/VendorShipmentsSDK.php | 883 ++++++++++++++++- .../VendorShipmentsSDKInterface.php | 78 ++ .../VendorDirectFulfillmentShippingSDK.php | 60 +- ...VendorDirectFulfillmentTransactionsSDK.php | 15 +- .../VendorTransactionStatusSDK.php | 15 +- .../Model/APlus/AplusPaginatedResponse.php | 14 +- .../APlus/AplusPaginatedResponseAllOf.php | 14 +- .../Model/APlus/AplusResponse.php | 12 +- .../Model/APlus/AsinMetadata.php | 20 +- .../Model/APlus/ContentDocument.php | 20 +- .../Model/APlus/ContentMetadata.php | 20 +- .../Model/APlus/ContentMetadataRecord.php | 16 +- .../Model/APlus/ContentModule.php | 44 +- .../Model/APlus/ContentRecord.php | 18 +- .../SellingPartner/Model/APlus/Decorator.php | 20 +- .../SellingPartner/Model/APlus/Error.php | 18 +- .../SellingPartner/Model/APlus/ErrorList.php | 12 +- .../APlus/GetContentDocumentResponse.php | 14 +- .../APlus/GetContentDocumentResponseAllOf.php | 14 +- .../Model/APlus/ImageComponent.php | 18 +- .../Model/APlus/ImageCropSpecification.php | 16 +- .../Model/APlus/ImageDimensions.php | 16 +- .../Model/APlus/ImageOffsets.php | 16 +- .../Model/APlus/IntegerWithUnits.php | 16 +- ...stContentDocumentAsinRelationsResponse.php | 14 +- ...tentDocumentAsinRelationsResponseAllOf.php | 12 +- .../Model/APlus/ParagraphComponent.php | 12 +- .../Model/APlus/PlainTextItem.php | 16 +- ...tentDocumentApprovalSubmissionResponse.php | 12 +- ...ostContentDocumentAsinRelationsRequest.php | 12 +- ...stContentDocumentAsinRelationsResponse.php | 12 +- .../APlus/PostContentDocumentRequest.php | 14 +- .../APlus/PostContentDocumentResponse.php | 14 +- .../PostContentDocumentResponseAllOf.php | 14 +- ...ntentDocumentSuspendSubmissionResponse.php | 12 +- .../Model/APlus/PublishRecord.php | 24 +- .../APlus/SearchContentDocumentsResponse.php | 14 +- .../SearchContentDocumentsResponseAllOf.php | 12 +- .../SearchContentPublishRecordsResponse.php | 14 +- ...archContentPublishRecordsResponseAllOf.php | 12 +- .../Model/APlus/StandardCompanyLogoModule.php | 14 +- .../APlus/StandardComparisonProductBlock.php | 22 +- .../APlus/StandardComparisonTableModule.php | 12 +- .../APlus/StandardFourImageTextModule.php | 22 +- .../StandardFourImageTextQuadrantModule.php | 20 +- .../APlus/StandardHeaderImageTextModule.php | 16 +- .../APlus/StandardHeaderTextListBlock.php | 16 +- .../Model/APlus/StandardImageCaptionBlock.php | 16 +- .../APlus/StandardImageSidebarModule.php | 24 +- .../Model/APlus/StandardImageTextBlock.php | 18 +- .../APlus/StandardImageTextCaptionBlock.php | 16 +- .../APlus/StandardImageTextOverlayModule.php | 16 +- .../APlus/StandardMultipleImageTextModule.php | 12 +- .../StandardProductDescriptionModule.php | 14 +- .../StandardSingleImageHighlightsModule.php | 24 +- .../StandardSingleImageSpecsDetailModule.php | 28 +- .../APlus/StandardSingleSideImageModule.php | 16 +- .../Model/APlus/StandardTechSpecsModule.php | 16 +- .../Model/APlus/StandardTextBlock.php | 16 +- .../Model/APlus/StandardTextListBlock.php | 12 +- .../Model/APlus/StandardTextModule.php | 16 +- .../Model/APlus/StandardTextPairBlock.php | 16 +- .../APlus/StandardThreeImageTextModule.php | 20 +- .../Model/APlus/TextComponent.php | 14 +- .../SellingPartner/Model/APlus/TextItem.php | 16 +- ...teContentDocumentAsinRelationsResponse.php | 12 +- .../Model/Authorization/AuthorizationCode.php | 14 +- .../Model/Authorization/Error.php | 18 +- .../GetAuthorizationCodeResponse.php | 14 +- .../Model/CatalogItem/BrandRefinement.php | 16 +- .../CatalogItem/ClassificationRefinement.php | 18 +- .../Model/CatalogItem/Dimension.php | 16 +- .../Model/CatalogItem/Dimensions.php | 20 +- .../Model/CatalogItem/Error.php | 18 +- .../Model/CatalogItem/ErrorList.php | 12 +- .../SellingPartner/Model/CatalogItem/Item.php | 14 +- .../CatalogItem/ItemBrowseClassification.php | 16 +- .../ItemClassificationSalesRank.php | 20 +- .../Model/CatalogItem/ItemContributor.php | 16 +- .../Model/CatalogItem/ItemContributorRole.php | 16 +- .../ItemDimensionsByMarketplace.php | 18 +- .../CatalogItem/ItemDisplayGroupSalesRank.php | 20 +- .../Model/CatalogItem/ItemIdentifier.php | 16 +- .../ItemIdentifiersByMarketplace.php | 14 +- .../Model/CatalogItem/ItemImage.php | 20 +- .../CatalogItem/ItemImagesByMarketplace.php | 14 +- .../ItemProductTypeByMarketplace.php | 16 +- .../Model/CatalogItem/ItemRelationship.php | 16 +- .../ItemRelationshipsByMarketplace.php | 14 +- .../ItemSalesRanksByMarketplace.php | 14 +- .../Model/CatalogItem/ItemSearchResults.php | 22 +- .../CatalogItem/ItemSummaryByMarketplace.php | 50 +- .../Model/CatalogItem/ItemVariationTheme.php | 14 +- .../ItemVendorDetailsByMarketplace.php | 28 +- .../CatalogItem/ItemVendorDetailsCategory.php | 16 +- .../Model/CatalogItem/Pagination.php | 16 +- .../Model/CatalogItem/Refinements.php | 12 +- .../SellingPartner/Model/FBAInbound/Error.php | 18 +- .../GetItemEligibilityPreviewResponse.php | 14 +- .../FBAInbound/ItemEligibilityPreview.php | 20 +- .../Model/FBAInventory/Error.php | 18 +- .../GetInventorySummariesResponse.php | 16 +- .../GetInventorySummariesResult.php | 14 +- .../Model/FBAInventory/Granularity.php | 16 +- .../Model/FBAInventory/InventoryDetails.php | 26 +- .../Model/FBAInventory/InventorySummary.php | 28 +- .../Model/FBAInventory/Pagination.php | 14 +- .../FBAInventory/ResearchingQuantity.php | 14 +- .../FBAInventory/ResearchingQuantityEntry.php | 16 +- .../Model/FBAInventory/ReservedQuantity.php | 20 +- .../FBAInventory/UnfulfillableQuantity.php | 26 +- .../Model/FBASmallAndLight/Error.php | 18 +- .../Model/FBASmallAndLight/ErrorList.php | 12 +- .../Model/FBASmallAndLight/FeeLineItem.php | 16 +- .../Model/FBASmallAndLight/FeePreview.php | 18 +- .../Model/FBASmallAndLight/Item.php | 16 +- .../Model/FBASmallAndLight/MoneyType.php | 16 +- .../SmallAndLightEligibility.php | 18 +- .../SmallAndLightEnrollment.php | 18 +- .../SmallAndLightFeePreviewRequest.php | 14 +- .../SmallAndLightFeePreviews.php | 12 +- .../Feeds/CreateFeedDocumentResponse.php | 16 +- .../Feeds/CreateFeedDocumentSpecification.php | 14 +- .../Model/Feeds/CreateFeedResponse.php | 14 +- .../Model/Feeds/CreateFeedSpecification.php | 16 +- .../SellingPartner/Model/Feeds/Error.php | 18 +- .../SellingPartner/Model/Feeds/ErrorList.php | 12 +- .../SellingPartner/Model/Feeds/Feed.php | 26 +- .../Model/Feeds/FeedDocument.php | 18 +- .../Model/Feeds/GetFeedsResponse.php | 14 +- .../Model/Finances/AdhocDisbursementEvent.php | 20 +- .../Model/Finances/AdjustmentEvent.php | 18 +- .../Model/Finances/AdjustmentItem.php | 26 +- .../Finances/AffordabilityExpenseEvent.php | 30 +- .../CapacityReservationBillingEvent.php | 22 +- .../Model/Finances/ChargeComponent.php | 16 +- .../Model/Finances/ChargeInstrument.php | 18 +- .../Model/Finances/ChargeRefundEvent.php | 20 +- .../Finances/ChargeRefundTransaction.php | 16 +- .../Model/Finances/CouponPaymentEvent.php | 28 +- .../Model/Finances/Currency.php | 16 +- .../Model/Finances/DebtRecoveryEvent.php | 18 +- .../Model/Finances/DebtRecoveryItem.php | 20 +- .../Model/Finances/DirectPayment.php | 16 +- .../SellingPartner/Model/Finances/Error.php | 18 +- .../Model/Finances/FBALiquidationEvent.php | 20 +- .../FailedAdhocDisbursementEventList.php | 26 +- .../Model/Finances/FeeComponent.php | 16 +- .../Model/Finances/FinancialEventGroup.php | 34 +- .../Model/Finances/FinancialEvents.php | 16 +- .../Finances/ImagingServicesFeeEvent.php | 18 +- .../ListFinancialEventGroupsPayload.php | 14 +- .../ListFinancialEventGroupsResponse.php | 14 +- .../Finances/ListFinancialEventsPayload.php | 16 +- .../Finances/ListFinancialEventsResponse.php | 14 +- .../Model/Finances/LoanServicingEvent.php | 16 +- .../NetworkComminglingTransactionEvent.php | 28 +- .../Model/Finances/PayWithAmazonEvent.php | 30 +- .../Model/Finances/ProductAdsPaymentEvent.php | 24 +- .../Model/Finances/Promotion.php | 18 +- .../RemovalShipmentAdjustmentEvent.php | 22 +- .../Model/Finances/RemovalShipmentEvent.php | 20 +- .../Model/Finances/RemovalShipmentItem.php | 28 +- .../RemovalShipmentItemAdjustment.php | 26 +- .../Model/Finances/RentalTransactionEvent.php | 26 +- .../Model/Finances/RetrochargeEvent.php | 24 +- .../Finances/SAFETReimbursementEvent.php | 20 +- .../Model/Finances/SAFETReimbursementItem.php | 16 +- .../Model/Finances/SellerDealPaymentEvent.php | 28 +- .../SellerReviewEnrollmentPaymentEvent.php | 24 +- .../Model/Finances/ServiceFeeEvent.php | 24 +- .../Model/Finances/ShipmentEvent.php | 20 +- .../Model/Finances/ShipmentItem.php | 24 +- .../Finances/SolutionProviderCreditEvent.php | 32 +- .../Model/Finances/TDSReimbursementEvent.php | 18 +- .../Model/Finances/TaxWithheldComponent.php | 14 +- .../Model/Finances/TaxWithholdingEvent.php | 20 +- .../Model/Finances/TaxWithholdingPeriod.php | 16 +- .../Model/Finances/TrialShipmentEvent.php | 20 +- .../ValueAddedServiceChargeEventList.php | 20 +- .../ASINInboundGuidance.php | 16 +- .../ASINPrepInstructions.php | 18 +- .../Model/FulfillmentInbound/Address.php | 28 +- .../AmazonPrepFeesDetails.php | 16 +- .../Model/FulfillmentInbound/Amount.php | 18 +- .../BillOfLadingDownloadURL.php | 14 +- .../BoxContentsFeeDetails.php | 18 +- .../CommonTransportResult.php | 14 +- .../ConfirmPreorderResponse.php | 14 +- .../ConfirmPreorderResult.php | 16 +- .../ConfirmTransportResponse.php | 14 +- .../Model/FulfillmentInbound/Contact.php | 20 +- .../CreateInboundShipmentPlanRequest.php | 20 +- .../CreateInboundShipmentPlanResponse.php | 14 +- .../CreateInboundShipmentPlanResult.php | 12 +- .../Model/FulfillmentInbound/Dimensions.php | 26 +- .../Model/FulfillmentInbound/Error.php | 18 +- .../EstimateTransportResponse.php | 14 +- .../GetBillOfLadingResponse.php | 14 +- .../GetInboundGuidanceResponse.php | 14 +- .../GetInboundGuidanceResult.php | 12 +- .../FulfillmentInbound/GetLabelsResponse.php | 14 +- .../GetPreorderInfoResponse.php | 14 +- .../GetPreorderInfoResult.php | 20 +- .../GetPrepInstructionsResponse.php | 14 +- .../GetPrepInstructionsResult.php | 12 +- .../GetShipmentItemsResponse.php | 14 +- .../GetShipmentItemsResult.php | 14 +- .../GetShipmentsResponse.php | 14 +- .../FulfillmentInbound/GetShipmentsResult.php | 14 +- .../GetTransportDetailsResponse.php | 14 +- .../GetTransportDetailsResult.php | 14 +- .../InboundShipmentHeader.php | 26 +- .../InboundShipmentInfo.php | 34 +- .../InboundShipmentItem.php | 26 +- .../InboundShipmentPlan.php | 22 +- .../InboundShipmentPlanItem.php | 18 +- .../InboundShipmentPlanRequestItem.php | 22 +- .../InboundShipmentRequest.php | 16 +- .../InboundShipmentResponse.php | 14 +- .../InboundShipmentResult.php | 14 +- .../Model/FulfillmentInbound/InvalidASIN.php | 16 +- .../Model/FulfillmentInbound/InvalidSKU.php | 16 +- .../FulfillmentInbound/LabelDownloadURL.php | 14 +- .../NonPartneredLtlDataInput.php | 16 +- .../NonPartneredLtlDataOutput.php | 20 +- .../NonPartneredSmallParcelDataInput.php | 14 +- .../NonPartneredSmallParcelDataOutput.php | 12 +- .../NonPartneredSmallParcelPackageInput.php | 14 +- .../NonPartneredSmallParcelPackageOutput.php | 22 +- .../Model/FulfillmentInbound/Pallet.php | 20 +- .../FulfillmentInbound/PartneredEstimate.php | 18 +- .../PartneredLtlDataInput.php | 24 +- .../PartneredLtlDataOutput.php | 54 +- .../PartneredSmallParcelDataInput.php | 14 +- .../PartneredSmallParcelDataOutput.php | 14 +- .../PartneredSmallParcelPackageInput.php | 16 +- .../PartneredSmallParcelPackageOutput.php | 24 +- .../Model/FulfillmentInbound/PrepDetails.php | 16 +- .../PutTransportDetailsRequest.php | 18 +- .../PutTransportDetailsResponse.php | 14 +- .../FulfillmentInbound/SKUInboundGuidance.php | 18 +- .../SKUPrepInstructions.php | 20 +- .../FulfillmentInbound/TransportContent.php | 18 +- .../TransportDetailInput.php | 20 +- .../TransportDetailOutput.php | 20 +- .../FulfillmentInbound/TransportHeader.php | 22 +- .../FulfillmentInbound/TransportResult.php | 18 +- .../VoidTransportResponse.php | 14 +- .../Model/FulfillmentInbound/Weight.php | 18 +- .../Model/FulfillmentOutbound/Address.php | 44 +- .../Model/FulfillmentOutbound/CODSettings.php | 22 +- .../CancelFulfillmentOrderResponse.php | 12 +- .../CreateFulfillmentOrderItem.php | 30 +- .../CreateFulfillmentOrderRequest.php | 36 +- .../CreateFulfillmentOrderResponse.php | 12 +- .../CreateFulfillmentReturnRequest.php | 12 +- .../CreateFulfillmentReturnResponse.php | 14 +- .../CreateFulfillmentReturnResult.php | 12 +- .../FulfillmentOutbound/CreateReturnItem.php | 22 +- .../FulfillmentOutbound/DeliveryWindow.php | 16 +- .../Model/FulfillmentOutbound/Error.php | 18 +- .../Model/FulfillmentOutbound/Feature.php | 18 +- .../FulfillmentOutbound/FeatureSettings.php | 16 +- .../Model/FulfillmentOutbound/FeatureSku.php | 20 +- .../Model/FulfillmentOutbound/Fee.php | 16 +- .../FulfillmentOutbound/FulfillmentOrder.php | 40 +- .../FulfillmentOrderItem.php | 40 +- .../FulfillmentPreview.php | 24 +- .../FulfillmentPreviewItem.php | 22 +- .../FulfillmentPreviewShipment.php | 20 +- .../FulfillmentShipment.php | 22 +- .../FulfillmentShipmentItem.php | 22 +- .../FulfillmentShipmentPackage.php | 20 +- .../GetFeatureInventoryResponse.php | 14 +- .../GetFeatureInventoryResult.php | 18 +- .../GetFeatureSkuResponse.php | 14 +- .../GetFeatureSkuResult.php | 20 +- .../GetFeaturesResponse.php | 14 +- .../FulfillmentOutbound/GetFeaturesResult.php | 12 +- .../GetFulfillmentOrderResponse.php | 14 +- .../GetFulfillmentOrderResult.php | 14 +- .../GetFulfillmentPreviewItem.php | 20 +- .../GetFulfillmentPreviewRequest.php | 24 +- .../GetFulfillmentPreviewResponse.php | 14 +- .../GetFulfillmentPreviewResult.php | 12 +- .../GetPackageTrackingDetailsResponse.php | 14 +- .../FulfillmentOutbound/InvalidItemReason.php | 16 +- .../FulfillmentOutbound/InvalidReturnItem.php | 18 +- .../ListAllFulfillmentOrdersResponse.php | 14 +- .../ListAllFulfillmentOrdersResult.php | 14 +- .../ListReturnReasonCodesResponse.php | 14 +- .../ListReturnReasonCodesResult.php | 12 +- .../Model/FulfillmentOutbound/Money.php | 16 +- .../PackageTrackingDetails.php | 40 +- .../FulfillmentOutbound/ReasonCodeDetails.php | 18 +- .../ReturnAuthorization.php | 22 +- .../Model/FulfillmentOutbound/ReturnItem.php | 34 +- .../ScheduledDeliveryInfo.php | 14 +- ...mitFulfillmentOrderStatusUpdateRequest.php | 256 +++++ ...itFulfillmentOrderStatusUpdateResponse.php | 256 +++++ .../FulfillmentOutbound/TrackingAddress.php | 18 +- .../FulfillmentOutbound/TrackingEvent.php | 20 +- .../UnfulfillablePreviewItem.php | 18 +- .../UpdateFulfillmentOrderItem.php | 32 +- .../UpdateFulfillmentOrderRequest.php | 30 +- .../UpdateFulfillmentOrderResponse.php | 12 +- .../Model/FulfillmentOutbound/Weight.php | 16 +- .../Model/ListingsItems/Error.php | 18 +- .../Model/ListingsItems/ErrorList.php | 12 +- .../ListingsItems/FulfillmentAvailability.php | 16 +- .../Model/ListingsItems/Issue.php | 18 +- .../Model/ListingsItems/Item.php | 16 +- .../Model/ListingsItems/ItemImage.php | 18 +- .../ListingsItems/ItemOfferByMarketplace.php | 20 +- .../Model/ListingsItems/ItemProcurement.php | 16 +- .../ItemSummaryByMarketplace.php | 30 +- .../ListingsItemPatchRequest.php | 14 +- .../ListingsItems/ListingsItemPutRequest.php | 20 +- .../ListingsItemSubmissionResponse.php | 18 +- .../Model/ListingsItems/Money.php | 16 +- .../Model/ListingsItems/PatchOperation.php | 16 +- .../Model/ListingsItems/Points.php | 14 +- .../MerchantFulfillment/AdditionalInputs.php | 16 +- .../AdditionalSellerInput.php | 30 +- .../AdditionalSellerInputs.php | 16 +- .../Model/MerchantFulfillment/Address.php | 34 +- .../AvailableCarrierWillPickUpOption.php | 16 +- .../AvailableDeliveryExperienceOption.php | 16 +- .../AvailableShippingServiceOptions.php | 12 +- .../CancelShipmentResponse.php | 14 +- .../Model/MerchantFulfillment/Constraint.php | 16 +- .../CreateShipmentRequest.php | 22 +- .../CreateShipmentResponse.php | 14 +- .../MerchantFulfillment/CurrencyAmount.php | 18 +- .../Model/MerchantFulfillment/Error.php | 18 +- .../MerchantFulfillment/FileContents.php | 18 +- .../GetAdditionalSellerInputsRequest.php | 18 +- .../GetAdditionalSellerInputsResponse.php | 14 +- .../GetAdditionalSellerInputsResult.php | 12 +- .../GetEligibleShipmentServicesRequest.php | 16 +- .../GetEligibleShipmentServicesResponse.php | 14 +- .../GetEligibleShipmentServicesResult.php | 12 +- .../GetShipmentResponse.php | 14 +- .../Model/MerchantFulfillment/Item.php | 20 +- .../MerchantFulfillment/ItemLevelFields.php | 14 +- .../Model/MerchantFulfillment/Label.php | 22 +- .../LabelCustomization.php | 16 +- .../MerchantFulfillment/LabelDimensions.php | 18 +- .../MerchantFulfillment/LabelFormatOption.php | 16 +- .../LabelFormatOptionRequest.php | 14 +- .../Model/MerchantFulfillment/Length.php | 16 +- .../MerchantFulfillment/PackageDimensions.php | 28 +- .../RejectedShippingService.php | 22 +- .../SellerInputDefinition.php | 22 +- .../Model/MerchantFulfillment/Shipment.php | 40 +- .../ShipmentRequestDetails.php | 30 +- .../ShippingOfferingFilter.php | 20 +- .../MerchantFulfillment/ShippingService.php | 34 +- .../ShippingServiceOptions.php | 22 +- .../TemporarilyUnavailableCarrier.php | 14 +- .../TermsAndConditionsNotAcceptedCarrier.php | 14 +- .../Model/MerchantFulfillment/Weight.php | 18 +- .../Model/Messaging/Attachment.php | 16 +- .../Messaging/CreateAmazonMotorsRequest.php | 12 +- .../Messaging/CreateAmazonMotorsResponse.php | 12 +- ...eateConfirmCustomizationDetailsRequest.php | 14 +- ...ateConfirmCustomizationDetailsResponse.php | 12 +- .../CreateConfirmDeliveryDetailsRequest.php | 14 +- .../CreateConfirmDeliveryDetailsResponse.php | 12 +- .../CreateConfirmOrderDetailsRequest.php | 14 +- .../CreateConfirmOrderDetailsResponse.php | 12 +- .../CreateConfirmServiceDetailsRequest.php | 14 +- .../CreateConfirmServiceDetailsResponse.php | 12 +- .../CreateDigitalAccessKeyRequest.php | 14 +- .../CreateDigitalAccessKeyResponse.php | 12 +- .../CreateLegalDisclosureRequest.php | 12 +- .../CreateLegalDisclosureResponse.php | 12 +- .../CreateNegativeFeedbackRemovalResponse.php | 12 +- .../CreateUnexpectedProblemRequest.php | 14 +- .../CreateUnexpectedProblemResponse.php | 12 +- .../Model/Messaging/CreateWarrantyRequest.php | 16 +- .../Messaging/CreateWarrantyResponse.php | 12 +- .../SellingPartner/Model/Messaging/Error.php | 18 +- .../Model/Messaging/GetAttributesResponse.php | 14 +- .../Messaging/GetAttributesResponseBuyer.php | 14 +- .../Messaging/GetMessagingActionResponse.php | 18 +- .../GetMessagingActionResponseEmbedded.php | 14 +- .../GetMessagingActionResponseLinks.php | 16 +- .../GetMessagingActionsForOrderResponse.php | 16 +- ...ssagingActionsForOrderResponseEmbedded.php | 12 +- ...tMessagingActionsForOrderResponseLinks.php | 14 +- .../Model/Messaging/GetSchemaResponse.php | 14 +- .../Messaging/GetSchemaResponseLinks.php | 14 +- .../Model/Messaging/InvoiceRequest.php | 12 +- .../Model/Messaging/InvoiceResponse.php | 12 +- .../Model/Messaging/LinkObject.php | 16 +- .../Model/Messaging/MessagingAction.php | 14 +- .../Model/Notifications/AggregationFilter.php | 14 +- .../Notifications/AggregationSettings.php | 14 +- .../CreateDestinationRequest.php | 16 +- .../CreateDestinationResponse.php | 14 +- .../CreateSubscriptionRequest.php | 18 +- .../CreateSubscriptionResponse.php | 14 +- .../DeleteDestinationResponse.php | 12 +- .../DeleteSubscriptionByIdResponse.php | 12 +- .../Model/Notifications/Destination.php | 18 +- .../Notifications/DestinationResource.php | 16 +- .../DestinationResourceSpecification.php | 16 +- .../Model/Notifications/Error.php | 18 +- .../Notifications/EventBridgeResource.php | 18 +- .../EventBridgeResourceSpecification.php | 16 +- .../Model/Notifications/EventFilter.php | 16 +- .../Model/Notifications/EventFilterAllOf.php | 14 +- .../Notifications/GetDestinationResponse.php | 14 +- .../Notifications/GetDestinationsResponse.php | 12 +- .../GetSubscriptionByIdResponse.php | 14 +- .../Notifications/GetSubscriptionResponse.php | 14 +- .../Model/Notifications/MarketplaceFilter.php | 12 +- .../Notifications/ProcessingDirective.php | 14 +- .../Model/Notifications/SqsResource.php | 14 +- .../Model/Notifications/Subscription.php | 20 +- .../SellingPartner/Model/Orders/Address.php | 38 +- .../Orders/ApprovalSupportDataElement.php | 291 ++++++ .../Orders/AutomatedShippingSettings.php | 18 +- .../Model/Orders/BusinessHours.php | 327 +++++++ .../Orders/BuyerCustomizedInfoDetail.php | 14 +- .../SellingPartner/Model/Orders/BuyerInfo.php | 22 +- .../Model/Orders/BuyerRequestedCancel.php | 16 +- .../Model/Orders/BuyerTaxInfo.php | 16 +- .../Model/Orders/BuyerTaxInformation.php | 20 +- .../Orders/ConfirmShipmentErrorResponse.php | 256 +++++ .../Model/Orders/ConfirmShipmentOrderItem.php | 319 ++++++ .../Model/Orders/ConfirmShipmentRequest.php | 347 +++++++ .../Model/Orders/DeliveryPreferences.php | 343 +++++++ .../SellingPartner/Model/Orders/Error.php | 18 +- .../Model/Orders/ExceptionDates.php | 312 ++++++ .../Model/Orders/FulfillmentInstruction.php | 14 +- .../Model/Orders/GetOrderAddressResponse.php | 14 +- .../Orders/GetOrderApprovalsResponse.php | 287 ++++++ .../Orders/GetOrderBuyerInfoResponse.php | 14 +- .../Orders/GetOrderItemsBuyerInfoResponse.php | 14 +- .../Model/Orders/GetOrderItemsResponse.php | 14 +- .../Orders/GetOrderRegulatedInfoResponse.php | 14 +- .../Model/Orders/GetOrderResponse.php | 14 +- .../Model/Orders/GetOrdersResponse.php | 14 +- .../Model/Orders/ItemApproval.php | 506 ++++++++++ .../Model/Orders/ItemApprovalAction.php | 351 +++++++ .../Orders/ItemApprovalActionChanges.php | 319 ++++++ .../Model/Orders/ItemApprovalContext.php | 319 ++++++ .../Model/Orders/ItemApprovalStatus.php | 59 ++ .../Model/Orders/ItemApprovalType.php | 44 + .../Model/Orders/ItemBuyerInfo.php | 22 +- .../Model/Orders/ItemIdentifier.php | 323 ++++++ .../Model/Orders/MarketplaceTaxInfo.php | 12 +- .../SellingPartner/Model/Orders/Money.php | 16 +- .../Model/Orders/OpenInterval.php | 291 ++++++ .../Model/Orders/OpenTimeInterval.php | 284 ++++++ .../SellingPartner/Model/Orders/Order.php | 158 ++- .../Model/Orders/OrderAddress.php | 76 +- .../Model/Orders/OrderApprovalsResponse.php | 287 ++++++ .../Model/Orders/OrderBuyerInfo.php | 24 +- .../SellingPartner/Model/Orders/OrderItem.php | 138 ++- .../Model/Orders/OrderItemApprovalRequest.php | 293 ++++++ .../Model/Orders/OrderItemApprovals.php | 355 +++++++ .../Model/Orders/OrderItemBuyerInfo.php | 24 +- .../Model/Orders/OrderItemsBuyerInfoList.php | 16 +- .../Model/Orders/OrderItemsInner.php | 16 +- .../Model/Orders/OrderItemsList.php | 16 +- .../Model/Orders/OrderRegulatedInfo.php | 20 +- .../Model/Orders/OrdersList.php | 18 +- .../Model/Orders/OtherDeliveryAttributes.php | 50 + .../Model/Orders/PackageDetail.php | 471 +++++++++ .../Orders/PaymentExecutionDetailItem.php | 16 +- .../Model/Orders/PointsGrantedDetail.php | 16 +- .../Model/Orders/PreferredDeliveryTime.php | 284 ++++++ .../Model/Orders/ProductInfoDetail.php | 14 +- .../Model/Orders/RegulatedInformation.php | 12 +- .../Orders/RegulatedInformationField.php | 20 +- .../RegulatedOrderVerificationStatus.php | 22 +- .../Model/Orders/RejectionReason.php | 16 +- .../Model/Orders/TaxClassification.php | 16 +- .../Model/Orders/TaxCollection.php | 16 +- .../UpdateItemsApprovalsErrorResponse.php | 256 +++++ .../Orders/UpdateOrderApprovalsRequest.php | 287 ++++++ .../UpdateShipmentStatusErrorResponse.php | 12 +- .../Orders/UpdateShipmentStatusRequest.php | 16 +- .../UpdateVerificationStatusErrorResponse.php | 12 +- .../UpdateVerificationStatusRequest.php | 14 +- .../UpdateVerificationStatusRequestBody.php | 18 +- .../Model/ProductFees/Error.php | 18 +- .../Model/ProductFees/FeeDetail.php | 22 +- .../Model/ProductFees/FeesEstimate.php | 16 +- .../ProductFees/FeesEstimateByIdRequest.php | 18 +- .../Model/ProductFees/FeesEstimateError.php | 18 +- .../ProductFees/FeesEstimateIdentifier.php | 28 +- .../Model/ProductFees/FeesEstimateRequest.php | 22 +- .../Model/ProductFees/FeesEstimateResult.php | 20 +- .../ProductFees/GetMyFeesEstimateRequest.php | 14 +- .../ProductFees/GetMyFeesEstimateResponse.php | 14 +- .../ProductFees/GetMyFeesEstimateResult.php | 14 +- .../GetMyFeesEstimatesErrorList.php | 12 +- .../Model/ProductFees/IncludedFeeDetail.php | 22 +- .../Model/ProductFees/MoneyType.php | 16 +- .../Model/ProductFees/Points.php | 16 +- .../Model/ProductFees/PriceToEstimateFees.php | 18 +- .../Model/ProductPricing/ASINIdentifier.php | 16 +- .../BatchOffersRequestParams.php | 18 +- .../ProductPricing/BatchOffersResponse.php | 18 +- .../Model/ProductPricing/BatchRequest.php | 16 +- .../Model/ProductPricing/BuyBoxPriceType.php | 30 +- .../ProductPricing/CompetitivePriceType.php | 30 +- .../ProductPricing/CompetitivePricingType.php | 14 +- .../DetailedShippingTimeType.php | 20 +- .../Model/ProductPricing/Error.php | 18 +- .../Model/ProductPricing/Errors.php | 12 +- .../GetItemOffersBatchRequest.php | 12 +- .../GetItemOffersBatchResponse.php | 12 +- .../GetListingOffersBatchRequest.php | 12 +- .../GetListingOffersBatchResponse.php | 12 +- .../GetOffersHttpStatusLine.php | 16 +- .../ProductPricing/GetOffersResponse.php | 14 +- .../Model/ProductPricing/GetOffersResult.php | 24 +- .../ProductPricing/GetPricingResponse.php | 12 +- .../ProductPricing/HttpResponseHeaders.php | 16 +- .../Model/ProductPricing/IdentifierType.php | 16 +- .../Model/ProductPricing/ItemIdentifier.php | 20 +- .../ProductPricing/ItemOffersRequest.php | 22 +- .../ItemOffersRequestParams.php | 20 +- .../ItemOffersRequestParamsAllOf.php | 14 +- .../ProductPricing/ItemOffersResponse.php | 20 +- .../ItemOffersResponseAllOf.php | 14 +- .../ProductPricing/ListingOffersRequest.php | 22 +- .../ListingOffersRequestParams.php | 20 +- .../ListingOffersRequestParamsAllOf.php | 14 +- .../ProductPricing/ListingOffersResponse.php | 20 +- .../ListingOffersResponseAllOf.php | 14 +- .../Model/ProductPricing/LowestPriceType.php | 30 +- .../Model/ProductPricing/MoneyType.php | 16 +- .../Model/ProductPricing/OfferCountType.php | 18 +- .../Model/ProductPricing/OfferDetail.php | 42 +- .../ProductPricing/OfferListingCountType.php | 16 +- .../Model/ProductPricing/OfferType.php | 28 +- .../Model/ProductPricing/Points.php | 16 +- .../Model/ProductPricing/Price.php | 20 +- .../Model/ProductPricing/PriceType.php | 20 +- .../ProductPricing/PrimeInformationType.php | 16 +- .../Model/ProductPricing/Product.php | 16 +- .../QuantityDiscountPriceType.php | 18 +- .../Model/ProductPricing/SalesRankType.php | 16 +- .../ProductPricing/SellerFeedbackType.php | 18 +- .../ProductPricing/SellerSKUIdentifier.php | 18 +- .../Model/ProductPricing/ShipsFromType.php | 16 +- .../Model/ProductPricing/Summary.php | 22 +- .../Model/ProductTypesDefinitions/Error.php | 18 +- .../ProductTypesDefinitions/ErrorList.php | 12 +- .../ProductTypesDefinitions/ProductType.php | 14 +- .../ProductTypeDefinition.php | 26 +- .../ProductTypeList.php | 12 +- .../ProductTypeVersion.php | 18 +- .../ProductTypesDefinitions/PropertyGroup.php | 16 +- .../ProductTypesDefinitions/SchemaLink.php | 16 +- .../SchemaLinkLink.php | 16 +- .../Model/Reports/CreateReportResponse.php | 14 +- .../Reports/CreateReportScheduleResponse.php | 14 +- .../CreateReportScheduleSpecification.php | 20 +- .../Reports/CreateReportSpecification.php | 20 +- .../SellingPartner/Model/Reports/Error.php | 18 +- .../Model/Reports/ErrorList.php | 12 +- .../Model/Reports/GetReportsResponse.php | 14 +- .../SellingPartner/Model/Reports/Report.php | 34 +- .../Model/Reports/ReportDocument.php | 18 +- .../Model/Reports/ReportSchedule.php | 22 +- .../Model/Reports/ReportScheduleList.php | 12 +- .../SellingPartner/Model/Sales/Error.php | 18 +- .../Model/Sales/GetOrderMetricsResponse.php | 12 +- .../SellingPartner/Model/Sales/Money.php | 16 +- .../Model/Sales/OrderMetricsInterval.php | 24 +- .../SellingPartner/Model/Sellers/Error.php | 18 +- .../GetMarketplaceParticipationsResponse.php | 12 +- .../Model/Sellers/Marketplace.php | 24 +- .../Sellers/MarketplaceParticipation.php | 16 +- .../Model/Sellers/Participation.php | 16 +- .../Model/Services/AddAppointmentRequest.php | 14 +- .../SellingPartner/Model/Services/Address.php | 34 +- .../Model/Services/Appointment.php | 22 +- .../Model/Services/AppointmentResource.php | 14 +- .../Model/Services/AppointmentSlot.php | 18 +- .../Model/Services/AppointmentSlotReport.php | 18 +- .../Model/Services/AppointmentTime.php | 16 +- .../Model/Services/AppointmentTimeInput.php | 16 +- .../AssignAppointmentResourcesRequest.php | 12 +- .../AssignAppointmentResourcesResponse.php | 14 +- ...ignAppointmentResourcesResponsePayload.php | 12 +- .../Model/Services/AssociatedItem.php | 26 +- .../Model/Services/AvailabilityRecord.php | 20 +- .../SellingPartner/Model/Services/Buyer.php | 20 +- .../Services/CancelReservationResponse.php | 12 +- ...CancelServiceJobByServiceJobIdResponse.php | 12 +- ...mpleteServiceJobByServiceJobIdResponse.php | 12 +- .../Services/CreateReservationRecord.php | 14 +- .../Services/CreateReservationRequest.php | 16 +- .../Services/CreateReservationResponse.php | 14 +- ...CreateServiceDocumentUploadDestination.php | 14 +- .../Model/Services/EncryptionDetails.php | 18 +- .../SellingPartner/Model/Services/Error.php | 20 +- .../Model/Services/FixedSlot.php | 22 +- .../Model/Services/FixedSlotCapacity.php | 18 +- .../Services/FixedSlotCapacityErrors.php | 12 +- .../Model/Services/FixedSlotCapacityQuery.php | 18 +- .../Model/Services/FulfillmentDocument.php | 16 +- .../Model/Services/FulfillmentTime.php | 16 +- .../Services/GetAppointmentSlotsResponse.php | 14 +- .../GetServiceJobByServiceJobIdResponse.php | 14 +- .../Model/Services/GetServiceJobsResponse.php | 14 +- .../Model/Services/ItemDelivery.php | 16 +- .../Model/Services/ItemDeliveryPromise.php | 16 +- .../Model/Services/JobListing.php | 18 +- .../SellingPartner/Model/Services/Poa.php | 20 +- .../Model/Services/RangeCapacity.php | 14 +- .../Model/Services/RangeSlot.php | 18 +- .../Model/Services/RangeSlotCapacity.php | 16 +- .../Services/RangeSlotCapacityErrors.php | 12 +- .../Model/Services/RangeSlotCapacityQuery.php | 16 +- .../Model/Services/Recurrence.php | 14 +- .../Services/RescheduleAppointmentRequest.php | 16 +- .../Model/Services/Reservation.php | 18 +- .../Model/Services/ScopeOfWork.php | 18 +- .../SellingPartner/Model/Services/Seller.php | 14 +- .../ServiceDocumentUploadDestination.php | 18 +- .../Model/Services/ServiceJob.php | 34 +- .../Model/Services/ServiceJobProvider.php | 14 +- .../Model/Services/ServiceLocation.php | 16 +- .../Model/Services/ServiceUploadDocument.php | 18 +- .../SetAppointmentFulfillmentDataRequest.php | 14 +- .../Model/Services/SetAppointmentResponse.php | 14 +- .../Model/Services/Technician.php | 16 +- .../Services/UpdateReservationRecord.php | 14 +- .../Services/UpdateReservationRequest.php | 16 +- .../Services/UpdateReservationResponse.php | 14 +- .../Model/Services/UpdateScheduleRecord.php | 14 +- .../Model/Services/UpdateScheduleRequest.php | 12 +- .../Model/Services/UpdateScheduleResponse.php | 12 +- .../SellingPartner/Model/Services/Warning.php | 18 +- .../Model/ShipmentInvoicing/Address.php | 36 +- .../Model/ShipmentInvoicing/BuyerTaxInfo.php | 16 +- .../Model/ShipmentInvoicing/Error.php | 18 +- .../GetInvoiceStatusResponse.php | 14 +- .../GetShipmentDetailsResponse.php | 14 +- .../ShipmentInvoicing/MarketplaceTaxInfo.php | 16 +- .../Model/ShipmentInvoicing/Money.php | 16 +- .../ShipmentInvoicing/ShipmentDetail.php | 36 +- .../ShipmentInvoiceStatusInfo.php | 16 +- .../ShipmentInvoiceStatusResponse.php | 14 +- .../Model/ShipmentInvoicing/ShipmentItem.php | 32 +- .../SubmitInvoiceRequest.php | 18 +- .../SubmitInvoiceResponse.php | 12 +- .../ShipmentInvoicing/TaxClassification.php | 16 +- .../Model/Shipping/AcceptedRate.php | 20 +- .../SellingPartner/Model/Shipping/Account.php | 14 +- .../SellingPartner/Model/Shipping/Address.php | 32 +- .../Model/Shipping/CancelShipmentResponse.php | 12 +- .../Model/Shipping/Container.php | 22 +- .../Model/Shipping/ContainerItem.php | 20 +- .../Model/Shipping/ContainerSpecification.php | 16 +- .../Model/Shipping/CreateShipmentRequest.php | 18 +- .../Model/Shipping/CreateShipmentResponse.php | 14 +- .../Model/Shipping/CreateShipmentResult.php | 14 +- .../Model/Shipping/Currency.php | 16 +- .../Model/Shipping/Dimensions.php | 20 +- .../SellingPartner/Model/Shipping/Error.php | 18 +- .../SellingPartner/Model/Shipping/Event.php | 18 +- .../Model/Shipping/GetAccountResponse.php | 14 +- .../Model/Shipping/GetRatesRequest.php | 18 +- .../Model/Shipping/GetRatesResponse.php | 14 +- .../Model/Shipping/GetRatesResult.php | 12 +- .../Model/Shipping/GetShipmentResponse.php | 14 +- .../GetTrackingInformationResponse.php | 14 +- .../SellingPartner/Model/Shipping/Label.php | 16 +- .../Model/Shipping/LabelResult.php | 18 +- .../Model/Shipping/LabelSpecification.php | 16 +- .../Model/Shipping/Location.php | 20 +- .../SellingPartner/Model/Shipping/Party.php | 14 +- .../Model/Shipping/PurchaseLabelsRequest.php | 16 +- .../Model/Shipping/PurchaseLabelsResponse.php | 14 +- .../Model/Shipping/PurchaseLabelsResult.php | 18 +- .../Shipping/PurchaseShipmentRequest.php | 24 +- .../Shipping/PurchaseShipmentResponse.php | 14 +- .../Model/Shipping/PurchaseShipmentResult.php | 16 +- .../SellingPartner/Model/Shipping/Rate.php | 24 +- .../Shipping/RetrieveShippingLabelRequest.php | 14 +- .../RetrieveShippingLabelResponse.php | 14 +- .../Shipping/RetrieveShippingLabelResult.php | 16 +- .../Model/Shipping/ServiceRate.php | 20 +- .../Model/Shipping/Shipment.php | 24 +- .../Model/Shipping/ShippingPromiseSet.php | 16 +- .../Model/Shipping/TimeRange.php | 16 +- .../Model/Shipping/TrackingInformation.php | 18 +- .../Model/Shipping/TrackingSummary.php | 14 +- .../SellingPartner/Model/Shipping/Weight.php | 16 +- ...wAndSellerFeedbackSolicitationResponse.php | 12 +- .../Model/Solicitations/Error.php | 18 +- .../Model/Solicitations/GetSchemaResponse.php | 14 +- .../Solicitations/GetSchemaResponseLinks.php | 14 +- .../GetSolicitationActionResponse.php | 18 +- .../GetSolicitationActionResponseEmbedded.php | 14 +- .../GetSolicitationActionResponseLinks.php | 16 +- ...GetSolicitationActionsForOrderResponse.php | 16 +- ...itationActionsForOrderResponseEmbedded.php | 12 +- ...licitationActionsForOrderResponseLinks.php | 14 +- .../Model/Solicitations/LinkObject.php | 16 +- .../Solicitations/SolicitationsAction.php | 14 +- .../CreateRestrictedDataTokenRequest.php | 14 +- .../CreateRestrictedDataTokenResponse.php | 16 +- .../SellingPartner/Model/Tokens/Error.php | 18 +- .../SellingPartner/Model/Tokens/ErrorList.php | 12 +- .../Model/Tokens/RestrictedResource.php | 16 +- .../CreateUploadDestinationResponse.php | 14 +- .../SellingPartner/Model/Uploads/Error.php | 18 +- .../Model/Uploads/UploadDestination.php | 16 +- .../Error.php | 18 +- .../InventoryUpdate.php | 16 +- .../ItemDetails.php | 20 +- .../ItemQuantity.php | 16 +- .../PartyIdentification.php | 14 +- .../SubmitInventoryUpdateRequest.php | 14 +- .../SubmitInventoryUpdateResponse.php | 14 +- .../TransactionReference.php | 14 +- .../AcknowledgementStatus.php | 16 +- .../VendorDirectFulfillmentOrders/Address.php | 36 +- .../BuyerCustomizedInfoDetail.php | 256 +++++ .../VendorDirectFulfillmentOrders/Error.php | 18 +- .../ErrorList.php | 12 +- .../GiftDetails.php | 16 +- .../ItemQuantity.php | 16 +- .../VendorDirectFulfillmentOrders/Money.php | 16 +- .../VendorDirectFulfillmentOrders/Order.php | 16 +- .../OrderAcknowledgementItem.php | 24 +- .../OrderDetails.php | 30 +- .../OrderItem.php | 64 +- .../OrderItemAcknowledgement.php | 20 +- .../OrderList.php | 14 +- .../Pagination.php | 14 +- .../PartyIdentification.php | 18 +- .../ScheduledDeliveryShipment.php | 18 +- .../ShipmentDates.php | 16 +- .../ShipmentDetails.php | 26 +- .../SubmitAcknowledgementRequest.php | 12 +- .../SubmitAcknowledgementResponse.php | 16 +- .../TaxDetails.php | 20 +- .../TaxItemDetails.php | 12 +- .../TaxRegistrationDetails.php | 20 +- .../TransactionId.php | 14 +- .../AdditionalDetails.php | 18 +- .../Address.php | 34 +- .../ChargeDetails.php | 16 +- .../VendorDirectFulfillmentPayments/Error.php | 18 +- .../InvoiceDetail.php | 32 +- .../InvoiceItem.php | 30 +- .../ItemQuantity.php | 16 +- .../VendorDirectFulfillmentPayments/Money.php | 16 +- .../PartyIdentification.php | 16 +- .../SubmitInvoiceRequest.php | 12 +- .../SubmitInvoiceResponse.php | 14 +- .../TaxDetail.php | 20 +- .../TaxRegistrationDetail.php | 20 +- .../TransactionReference.php | 14 +- .../Address.php | 34 +- .../Container.php | 34 +- .../CreateShippingLabelsRequest.php | 16 +- .../CustomerInvoice.php | 16 +- .../CustomerInvoiceList.php | 14 +- .../Dimensions.php | 20 +- .../VendorDirectFulfillmentShipping/Error.php | 18 +- .../ErrorList.php | 12 +- .../VendorDirectFulfillmentShipping/Item.php | 20 +- .../ItemQuantity.php | 16 +- .../LabelData.php | 22 +- .../PackedItem.php | 22 +- .../PackingSlip.php | 18 +- .../PackingSlipList.php | 14 +- .../Pagination.php | 14 +- .../PartyIdentification.php | 16 +- .../ShipmentConfirmation.php | 20 +- .../ShipmentDetails.php | 22 +- .../ShipmentSchedule.php | 18 +- .../ShipmentStatusUpdate.php | 20 +- .../ShippingLabel.php | 20 +- .../ShippingLabelList.php | 14 +- .../ShippingLabelRequest.php | 18 +- .../StatusUpdateDetails.php | 24 +- .../SubmitShipmentConfirmationsRequest.php | 12 +- .../SubmitShipmentStatusUpdatesRequest.php | 12 +- .../SubmitShippingLabelsRequest.php | 12 +- .../TaxRegistrationDetails.php | 20 +- .../TransactionReference.php | 14 +- .../Weight.php | 16 +- .../Error.php | 18 +- .../ErrorList.php | 12 +- .../Transaction.php | 18 +- .../TransactionStatus.php | 14 +- .../VendorInvoices/AdditionalDetails.php | 18 +- .../Model/VendorInvoices/Address.php | 34 +- .../Model/VendorInvoices/AllowanceDetails.php | 18 +- .../Model/VendorInvoices/ChargeDetails.php | 18 +- .../VendorInvoices/CreditNoteDetails.php | 26 +- .../Model/VendorInvoices/Error.php | 18 +- .../Model/VendorInvoices/Invoice.php | 32 +- .../Model/VendorInvoices/InvoiceItem.php | 28 +- .../Model/VendorInvoices/ItemQuantity.php | 18 +- .../Model/VendorInvoices/Money.php | 16 +- .../VendorInvoices/PartyIdentification.php | 16 +- .../Model/VendorInvoices/PaymentTerms.php | 20 +- .../VendorInvoices/SubmitInvoicesRequest.php | 12 +- .../VendorInvoices/SubmitInvoicesResponse.php | 14 +- .../Model/VendorInvoices/TaxDetails.php | 20 +- .../VendorInvoices/TaxRegistrationDetails.php | 16 +- .../Model/VendorInvoices/TransactionId.php | 14 +- .../AcknowledgementStatusDetails.php | 18 +- .../Model/VendorOrders/Address.php | 34 +- .../Model/VendorOrders/Error.php | 18 +- .../VendorOrders/GetPurchaseOrderResponse.php | 14 +- .../GetPurchaseOrdersResponse.php | 14 +- .../GetPurchaseOrdersStatusResponse.php | 14 +- .../Model/VendorOrders/ImportDetails.php | 22 +- .../Model/VendorOrders/ItemQuantity.php | 18 +- .../Model/VendorOrders/Money.php | 16 +- .../Model/VendorOrders/Order.php | 18 +- .../VendorOrders/OrderAcknowledgement.php | 18 +- .../VendorOrders/OrderAcknowledgementItem.php | 26 +- .../Model/VendorOrders/OrderDetails.php | 38 +- .../Model/VendorOrders/OrderItem.php | 26 +- .../VendorOrders/OrderItemAcknowledgement.php | 22 +- .../Model/VendorOrders/OrderItemStatus.php | 28 +- .../OrderItemStatusAcknowledgementStatus.php | 18 +- .../OrderItemStatusOrderedQuantity.php | 14 +- .../OrderItemStatusReceivingStatus.php | 18 +- .../Model/VendorOrders/OrderList.php | 14 +- .../Model/VendorOrders/OrderListStatus.php | 14 +- .../Model/VendorOrders/OrderStatus.php | 24 +- .../VendorOrders/OrderedQuantityDetails.php | 18 +- .../Model/VendorOrders/Pagination.php | 14 +- .../VendorOrders/PartyIdentification.php | 18 +- .../SubmitAcknowledgementRequest.php | 12 +- .../SubmitAcknowledgementResponse.php | 14 +- .../VendorOrders/TaxRegistrationDetails.php | 16 +- .../Model/VendorOrders/TransactionId.php | 14 +- .../Model/VendorShipments/Address.php | 34 +- .../Model/VendorShipments/CarrierDetails.php | 368 +++++++ .../Model/VendorShipments/Carton.php | 20 +- .../CartonReferenceDetails.php | 14 +- .../CollectFreightPickupDetails.php | 312 ++++++ .../ContainerIdentification.php | 16 +- .../Model/VendorShipments/ContainerItem.php | 18 +- .../ContainerSequenceNumbers.php | 256 +++++ .../Model/VendorShipments/Containers.php | 556 +++++++++++ .../Model/VendorShipments/Dimensions.php | 20 +- .../Model/VendorShipments/Duration.php | 16 +- .../Model/VendorShipments/Error.php | 18 +- .../Model/VendorShipments/Expiry.php | 18 +- .../GetShipmentDetailsResponse.php | 287 ++++++ .../VendorShipments/GetShipmentLabels.php | 287 ++++++ .../Model/VendorShipments/ImportDetails.php | 87 +- .../InnerContainersDetails.php | 284 ++++++ .../Model/VendorShipments/Item.php | 24 +- .../Model/VendorShipments/ItemDetails.php | 24 +- .../Model/VendorShipments/ItemQuantity.php | 18 +- .../Model/VendorShipments/LabelData.php | 393 ++++++++ .../Model/VendorShipments/Location.php | 18 +- .../Model/VendorShipments/Money.php | 16 +- .../VendorShipments/PackageItemDetails.php | 315 ++++++ .../Model/VendorShipments/PackedItems.php | 375 +++++++ .../Model/VendorShipments/PackedQuantity.php | 348 +++++++ .../Model/VendorShipments/Pagination.php | 256 +++++ .../Model/VendorShipments/Pallet.php | 26 +- .../VendorShipments/PartyIdentification.php | 16 +- .../PurchaseOrderItemDetails.php | 259 +++++ .../VendorShipments/PurchaseOrderItems.php | 381 +++++++ .../Model/VendorShipments/PurchaseOrders.php | 340 +++++++ .../Model/VendorShipments/Route.php | 12 +- .../Model/VendorShipments/Shipment.php | 926 ++++++++++++++++++ .../VendorShipments/ShipmentConfirmation.php | 44 +- .../Model/VendorShipments/ShipmentDetails.php | 287 ++++++ .../VendorShipments/ShipmentInformation.php | 492 ++++++++++ .../VendorShipments/ShipmentMeasurements.php | 22 +- .../VendorShipments/ShipmentStatusDetails.php | 318 ++++++ .../Model/VendorShipments/Stop.php | 20 +- .../SubmitShipmentConfirmationsRequest.php | 12 +- .../SubmitShipmentConfirmationsResponse.php | 14 +- .../Model/VendorShipments/SubmitShipments.php | 256 +++++ .../TaxRegistrationDetails.php | 16 +- .../VendorShipments/TransactionReference.php | 16 +- .../Model/VendorShipments/TransportLabel.php | 315 ++++++ .../TransportShipmentMeasurements.php | 375 +++++++ .../VendorShipments/TransportationDetails.php | 206 +++- .../VendorShipments/TransportationLabels.php | 287 ++++++ .../Model/VendorShipments/VendorDetails.php | 287 ++++++ .../Model/VendorShipments/Volume.php | 16 +- .../Model/VendorShipments/Weight.php | 16 +- .../Model/VendorTransactionStatus/Error.php | 18 +- .../GetTransactionResponse.php | 14 +- .../VendorTransactionStatus/Transaction.php | 16 +- .../TransactionStatus.php | 14 +- 945 files changed, 26406 insertions(+), 10490 deletions(-) create mode 100644 src/AmazonPHP/SellingPartner/Api/ApprovalsApi/OrdersSDK.php create mode 100644 src/AmazonPHP/SellingPartner/Api/ApprovalsApi/OrdersSDKInterface.php create mode 100644 src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/SubmitFulfillmentOrderStatusUpdateRequest.php create mode 100644 src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/SubmitFulfillmentOrderStatusUpdateResponse.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ApprovalSupportDataElement.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/BusinessHours.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentErrorResponse.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentOrderItem.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentRequest.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/DeliveryPreferences.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ExceptionDates.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/GetOrderApprovalsResponse.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ItemApproval.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalAction.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalActionChanges.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalContext.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalStatus.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalType.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/ItemIdentifier.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/OpenInterval.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/OpenTimeInterval.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/OrderApprovalsResponse.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/OrderItemApprovalRequest.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/OrderItemApprovals.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/OtherDeliveryAttributes.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/PackageDetail.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/PreferredDeliveryTime.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/UpdateItemsApprovalsErrorResponse.php create mode 100644 src/AmazonPHP/SellingPartner/Model/Orders/UpdateOrderApprovalsRequest.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/BuyerCustomizedInfoDetail.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/CarrierDetails.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/CollectFreightPickupDetails.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerSequenceNumbers.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/Containers.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/GetShipmentDetailsResponse.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/GetShipmentLabels.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/InnerContainersDetails.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/LabelData.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/PackageItemDetails.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/PackedItems.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/PackedQuantity.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/Pagination.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrderItemDetails.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrderItems.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrders.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/Shipment.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentDetails.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentInformation.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentStatusDetails.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipments.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportLabel.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportShipmentMeasurements.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportationLabels.php create mode 100644 src/AmazonPHP/SellingPartner/Model/VendorShipments/VendorDetails.php diff --git a/resources/php-amazon-selling-partner-api/api.mustache b/resources/php-amazon-selling-partner-api/api.mustache index b33bb179a..888633258 100644 --- a/resources/php-amazon-selling-partner-api/api.mustache +++ b/resources/php-amazon-selling-partner-api/api.mustache @@ -79,15 +79,13 @@ final {{#operations}}class {{packageName}}SDK implements {{packageName}}SDKInter try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('{{packageName}}', '{{operationId}}')) { - - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('{{packageName}}', '{{operationId}}')) { $this->logger->log( $this->configuration->logLevel('{{packageName}}', '{{operationId}}'), 'Amazon Selling Partner API pre request', @@ -124,6 +122,8 @@ final {{#operations}}class {{packageName}}SDK implements {{packageName}}SDKInter 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody() ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDK.php b/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDK.php index 964ef55e5..9c42b0708 100644 --- a/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDK.php @@ -40,6 +40,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentResponse */ public function createContentDocument(AccessToken $accessToken, string $region, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentResponse { @@ -49,14 +51,13 @@ public function createContentDocument(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('APlus', 'createContentDocument')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('APlus', 'createContentDocument')) { $this->logger->log( $this->configuration->logLevel('APlus', 'createContentDocument'), 'Amazon Selling Partner API pre request', @@ -92,6 +93,8 @@ public function createContentDocument(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -248,6 +251,8 @@ public function createContentDocumentRequest(AccessToken $accessToken, string $r * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\APlus\GetContentDocumentResponse */ public function getContentDocument(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, array $included_data_set) : \AmazonPHP\SellingPartner\Model\APlus\GetContentDocumentResponse { @@ -257,14 +262,13 @@ public function getContentDocument(AccessToken $accessToken, string $region, str try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('APlus', 'getContentDocument')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('APlus', 'getContentDocument')) { $this->logger->log( $this->configuration->logLevel('APlus', 'getContentDocument'), 'Amazon Selling Partner API pre request', @@ -300,6 +304,8 @@ public function getContentDocument(AccessToken $accessToken, string $region, str 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -483,6 +489,8 @@ public function getContentDocumentRequest(AccessToken $accessToken, string $regi * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ListContentDocumentAsinRelationsResponse */ public function listContentDocumentAsinRelations(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, ?array $included_data_set = null, ?array $asin_set = null, ?string $page_token = null) : \AmazonPHP\SellingPartner\Model\APlus\ListContentDocumentAsinRelationsResponse { @@ -492,14 +500,13 @@ public function listContentDocumentAsinRelations(AccessToken $accessToken, strin try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('APlus', 'listContentDocumentAsinRelations')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('APlus', 'listContentDocumentAsinRelations')) { $this->logger->log( $this->configuration->logLevel('APlus', 'listContentDocumentAsinRelations'), 'Amazon Selling Partner API pre request', @@ -535,6 +542,8 @@ public function listContentDocumentAsinRelations(AccessToken $accessToken, strin 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -730,6 +739,8 @@ public function listContentDocumentAsinRelationsRequest(AccessToken $accessToken * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentApprovalSubmissionResponse */ public function postContentDocumentApprovalSubmission(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentApprovalSubmissionResponse { @@ -739,14 +750,13 @@ public function postContentDocumentApprovalSubmission(AccessToken $accessToken, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('APlus', 'postContentDocumentApprovalSubmission')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('APlus', 'postContentDocumentApprovalSubmission')) { $this->logger->log( $this->configuration->logLevel('APlus', 'postContentDocumentApprovalSubmission'), 'Amazon Selling Partner API pre request', @@ -782,6 +792,8 @@ public function postContentDocumentApprovalSubmission(AccessToken $accessToken, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -943,6 +955,8 @@ public function postContentDocumentApprovalSubmissionRequest(AccessToken $access * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsResponse */ public function postContentDocumentAsinRelations(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsRequest $post_content_document_asin_relations_request) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentAsinRelationsResponse { @@ -952,14 +966,13 @@ public function postContentDocumentAsinRelations(AccessToken $accessToken, strin try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('APlus', 'postContentDocumentAsinRelations')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('APlus', 'postContentDocumentAsinRelations')) { $this->logger->log( $this->configuration->logLevel('APlus', 'postContentDocumentAsinRelations'), 'Amazon Selling Partner API pre request', @@ -995,6 +1008,8 @@ public function postContentDocumentAsinRelations(AccessToken $accessToken, strin 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1171,6 +1186,8 @@ public function postContentDocumentAsinRelationsRequest(AccessToken $accessToken * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentSuspendSubmissionResponse */ public function postContentDocumentSuspendSubmission(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentSuspendSubmissionResponse { @@ -1180,14 +1197,13 @@ public function postContentDocumentSuspendSubmission(AccessToken $accessToken, s try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('APlus', 'postContentDocumentSuspendSubmission')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('APlus', 'postContentDocumentSuspendSubmission')) { $this->logger->log( $this->configuration->logLevel('APlus', 'postContentDocumentSuspendSubmission'), 'Amazon Selling Partner API pre request', @@ -1223,6 +1239,8 @@ public function postContentDocumentSuspendSubmission(AccessToken $accessToken, s 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1383,6 +1401,8 @@ public function postContentDocumentSuspendSubmissionRequest(AccessToken $accessT * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\APlus\SearchContentDocumentsResponse */ public function searchContentDocuments(AccessToken $accessToken, string $region, string $marketplace_id, ?string $page_token = null) : \AmazonPHP\SellingPartner\Model\APlus\SearchContentDocumentsResponse { @@ -1392,14 +1412,13 @@ public function searchContentDocuments(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('APlus', 'searchContentDocuments')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('APlus', 'searchContentDocuments')) { $this->logger->log( $this->configuration->logLevel('APlus', 'searchContentDocuments'), 'Amazon Selling Partner API pre request', @@ -1435,6 +1454,8 @@ public function searchContentDocuments(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1588,6 +1609,8 @@ public function searchContentDocumentsRequest(AccessToken $accessToken, string $ * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\APlus\SearchContentPublishRecordsResponse */ public function searchContentPublishRecords(AccessToken $accessToken, string $region, string $marketplace_id, string $asin, ?string $page_token = null) : \AmazonPHP\SellingPartner\Model\APlus\SearchContentPublishRecordsResponse { @@ -1597,14 +1620,13 @@ public function searchContentPublishRecords(AccessToken $accessToken, string $re try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('APlus', 'searchContentPublishRecords')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('APlus', 'searchContentPublishRecords')) { $this->logger->log( $this->configuration->logLevel('APlus', 'searchContentPublishRecords'), 'Amazon Selling Partner API pre request', @@ -1640,6 +1662,8 @@ public function searchContentPublishRecords(AccessToken $accessToken, string $re 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1813,6 +1837,8 @@ public function searchContentPublishRecordsRequest(AccessToken $accessToken, str * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentResponse */ public function updateContentDocument(AccessToken $accessToken, string $region, string $content_reference_key, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request) : \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentResponse { @@ -1822,14 +1848,13 @@ public function updateContentDocument(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('APlus', 'updateContentDocument')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('APlus', 'updateContentDocument')) { $this->logger->log( $this->configuration->logLevel('APlus', 'updateContentDocument'), 'Amazon Selling Partner API pre request', @@ -1865,6 +1890,8 @@ public function updateContentDocument(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2042,6 +2069,8 @@ public function updateContentDocumentRequest(AccessToken $accessToken, string $r * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ValidateContentDocumentAsinRelationsResponse */ public function validateContentDocumentAsinRelations(AccessToken $accessToken, string $region, string $marketplace_id, \AmazonPHP\SellingPartner\Model\APlus\PostContentDocumentRequest $post_content_document_request, ?array $asin_set = null) : \AmazonPHP\SellingPartner\Model\APlus\ValidateContentDocumentAsinRelationsResponse { @@ -2051,14 +2080,13 @@ public function validateContentDocumentAsinRelations(AccessToken $accessToken, s try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('APlus', 'validateContentDocumentAsinRelations')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('APlus', 'validateContentDocumentAsinRelations')) { $this->logger->log( $this->configuration->logLevel('APlus', 'validateContentDocumentAsinRelations'), 'Amazon Selling Partner API pre request', @@ -2094,6 +2122,8 @@ public function validateContentDocumentAsinRelations(AccessToken $accessToken, s 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/ApprovalsApi/OrdersSDK.php b/src/AmazonPHP/SellingPartner/Api/ApprovalsApi/OrdersSDK.php new file mode 100644 index 000000000..6392f408b --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Api/ApprovalsApi/OrdersSDK.php @@ -0,0 +1,460 @@ +getOrderItemsApprovalsRequest($accessToken, $region, $order_id, $next_token, $item_approval_types, $item_approval_status); + + $this->configuration->extensions()->preRequest('Orders', 'getOrderItemsApprovals', $request); + + try { + $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + + if ($this->configuration->loggingEnabled('Orders', 'getOrderItemsApprovals')) { + $this->logger->log( + $this->configuration->logLevel('Orders', 'getOrderItemsApprovals'), + 'Amazon Selling Partner API pre request', + [ + 'api' => 'Orders', + 'operation' => 'getOrderItemsApprovals', + 'request_correlation_id' => $correlationId, + 'request_body' => (string) $sanitizedRequest->getBody(), + 'request_headers' => $sanitizedRequest->getHeaders(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + ] + ); + } + + $response = $this->client->sendRequest($request); + + $this->configuration->extensions()->postRequest('Orders', 'getOrderItemsApprovals', $request, $response); + + if ($this->configuration->loggingEnabled('Orders', 'getOrderItemsApprovals')) { + $sanitizedResponse = $response; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedResponse = $sanitizedResponse->withoutHeader($sensitiveHeader); + } + + $this->logger->log( + $this->configuration->logLevel('Orders', 'getOrderItemsApprovals'), + 'Amazon Selling Partner API post request', + [ + 'api' => 'Orders', + 'operation' => 'getOrderItemsApprovals', + 'response_correlation_id' => $correlationId, + 'response_body' => (string) $sanitizedResponse->getBody(), + 'response_headers' => $sanitizedResponse->getHeaders(), + 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), + ] + ); + } + } catch (ClientExceptionInterface $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null, + $e + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + \sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return ObjectSerializer::deserialize( + $this->configuration, + (string) $response->getBody(), + '\AmazonPHP\SellingPartner\Model\Orders\GetOrderApprovalsResponse', + [] + ); + } + + /** + * Create request for operation 'getOrderItemsApprovals'. + * + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628. (required) + * @param null|string $next_token A string token returned in the response of your previous request. (optional) + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType[] $item_approval_types When set, only return approvals for items which approval type is contained in the specified approval types. (optional) + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus[] $item_approval_status When set, only return approvals that contain items which approval status is contained in the specified approval status. (optional) + * + * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException + */ + public function getOrderItemsApprovalsRequest(AccessToken $accessToken, string $region, string $order_id, ?string $next_token = null, ?array $item_approval_types = null, ?array $item_approval_status = null) : RequestInterface + { + // verify the required parameter 'order_id' is set + if ($order_id === null || (\is_array($order_id) && \count($order_id) === 0)) { + throw new InvalidArgumentException( + 'Missing the required parameter $order_id when calling getOrderItemsApprovals' + ); + } + + if ($item_approval_types !== null && \count($item_approval_types) > 1) { + throw new InvalidArgumentException('invalid value for "$item_approval_types" when calling ApprovalsApi.getOrderItemsApprovals, number of items must be less than or equal to 1.'); + } + + if ($item_approval_status !== null && \count($item_approval_status) > 6) { + throw new InvalidArgumentException('invalid value for "$item_approval_status" when calling ApprovalsApi.getOrderItemsApprovals, number of items must be less than or equal to 6.'); + } + + $resourcePath = '/orders/v0/orders/{orderId}/approvals'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $multipart = false; + $query = ''; + + // query params + if (\is_array($next_token)) { + $next_token = ObjectSerializer::serializeCollection($next_token, '', true); + } + + if ($next_token !== null) { + $queryParams['NextToken'] = ObjectSerializer::toString($next_token); + } + // query params + if (\is_array($item_approval_types)) { + $item_approval_types = ObjectSerializer::serializeCollection($item_approval_types, 'form', true); + } + + if ($item_approval_types !== null) { + $queryParams['ItemApprovalTypes'] = ObjectSerializer::toString($item_approval_types); + } + // query params + if (\is_array($item_approval_status)) { + $item_approval_status = ObjectSerializer::serializeCollection($item_approval_status, 'form', true); + } + + if ($item_approval_status !== null) { + $queryParams['ItemApprovalStatus'] = ObjectSerializer::toString($item_approval_status); + } + + if (\count($queryParams)) { + $query = \http_build_query($queryParams); + } + + // path params + if ($order_id !== null) { + $resourcePath = \str_replace( + '{' . 'orderId' . '}', + ObjectSerializer::toPathValue($order_id), + $resourcePath + ); + } + + if ($multipart) { + $headers = [ + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } else { + $headers = [ + 'content-type' => ['application/json'], + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } + + $request = $this->httpFactory->createRequest( + 'GET', + $this->configuration->apiURL($region) . $resourcePath . '?' . $query + ); + + // for model (json/xml) + if (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = \is_array($formParamValue) ? $formParamValue : [$formParamValue]; + + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem, + ]; + } + } + $request = $request->withParsedBody($multipartContents); + } elseif ($headers['content-type'] === ['application/json']) { + $request = $request->withBody($this->httpFactory->createStreamFromString(\json_encode($formParams, JSON_THROW_ON_ERROR))); + } else { + $request = $request->withParsedBody($formParams); + } + } + + foreach (\array_merge($headerParams, $headers) as $name => $header) { + $request = $request->withHeader($name, $header); + } + + return HttpSignatureHeaders::forConfig( + $this->configuration, + $accessToken, + $region, + $request + ); + } + + /** + * Operation updateOrderItemsApprovals. + * + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \AmazonPHP\SellingPartner\Model\Orders\UpdateOrderApprovalsRequest $payload The request body for the updateOrderItemsApprovals operation. (required) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + */ + public function updateOrderItemsApprovals(AccessToken $accessToken, string $region, string $order_id, \AmazonPHP\SellingPartner\Model\Orders\UpdateOrderApprovalsRequest $payload) + { + $request = $this->updateOrderItemsApprovalsRequest($accessToken, $region, $order_id, $payload); + + $this->configuration->extensions()->preRequest('Orders', 'updateOrderItemsApprovals', $request); + + try { + $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + + if ($this->configuration->loggingEnabled('Orders', 'updateOrderItemsApprovals')) { + $this->logger->log( + $this->configuration->logLevel('Orders', 'updateOrderItemsApprovals'), + 'Amazon Selling Partner API pre request', + [ + 'api' => 'Orders', + 'operation' => 'updateOrderItemsApprovals', + 'request_correlation_id' => $correlationId, + 'request_body' => (string) $sanitizedRequest->getBody(), + 'request_headers' => $sanitizedRequest->getHeaders(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + ] + ); + } + + $response = $this->client->sendRequest($request); + + $this->configuration->extensions()->postRequest('Orders', 'updateOrderItemsApprovals', $request, $response); + + if ($this->configuration->loggingEnabled('Orders', 'updateOrderItemsApprovals')) { + $sanitizedResponse = $response; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedResponse = $sanitizedResponse->withoutHeader($sensitiveHeader); + } + + $this->logger->log( + $this->configuration->logLevel('Orders', 'updateOrderItemsApprovals'), + 'Amazon Selling Partner API post request', + [ + 'api' => 'Orders', + 'operation' => 'updateOrderItemsApprovals', + 'response_correlation_id' => $correlationId, + 'response_body' => (string) $sanitizedResponse->getBody(), + 'response_headers' => $sanitizedResponse->getHeaders(), + 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), + ] + ); + } + } catch (ClientExceptionInterface $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null, + $e + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + \sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return null; + } + + /** + * Create request for operation 'updateOrderItemsApprovals'. + * + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \AmazonPHP\SellingPartner\Model\Orders\UpdateOrderApprovalsRequest $payload The request body for the updateOrderItemsApprovals operation. (required) + * + * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException + */ + public function updateOrderItemsApprovalsRequest(AccessToken $accessToken, string $region, string $order_id, \AmazonPHP\SellingPartner\Model\Orders\UpdateOrderApprovalsRequest $payload) : RequestInterface + { + // verify the required parameter 'order_id' is set + if ($order_id === null || (\is_array($order_id) && \count($order_id) === 0)) { + throw new InvalidArgumentException( + 'Missing the required parameter $order_id when calling updateOrderItemsApprovals' + ); + } + // verify the required parameter 'payload' is set + if ($payload === null || (\is_array($payload) && \count($payload) === 0)) { + throw new InvalidArgumentException( + 'Missing the required parameter $payload when calling updateOrderItemsApprovals' + ); + } + + $resourcePath = '/orders/v0/orders/{orderId}/approvals'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $multipart = false; + $query = ''; + + if (\count($queryParams)) { + $query = \http_build_query($queryParams); + } + + // path params + if ($order_id !== null) { + $resourcePath = \str_replace( + '{' . 'orderId' . '}', + ObjectSerializer::toPathValue($order_id), + $resourcePath + ); + } + + if ($multipart) { + $headers = [ + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } else { + $headers = [ + 'content-type' => ['application/json'], + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } + + $request = $this->httpFactory->createRequest( + 'POST', + $this->configuration->apiURL($region) . $resourcePath . '?' . $query + ); + + // for model (json/xml) + if (isset($payload)) { + if ($headers['content-type'] === ['application/json']) { + $httpBody = \json_encode(ObjectSerializer::sanitizeForSerialization($payload), JSON_THROW_ON_ERROR); + } else { + $httpBody = $payload; + } + + $request = $request->withBody($this->httpFactory->createStreamFromString($httpBody)); + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = \is_array($formParamValue) ? $formParamValue : [$formParamValue]; + + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem, + ]; + } + } + $request = $request->withParsedBody($multipartContents); + } elseif ($headers['content-type'] === ['application/json']) { + $request = $request->withBody($this->httpFactory->createStreamFromString(\json_encode($formParams, JSON_THROW_ON_ERROR))); + } else { + $request = $request->withParsedBody($formParams); + } + } + + foreach (\array_merge($headerParams, $headers) as $name => $header) { + $request = $request->withHeader($name, $header); + } + + return HttpSignatureHeaders::forConfig( + $this->configuration, + $accessToken, + $region, + $request + ); + } +} diff --git a/src/AmazonPHP/SellingPartner/Api/ApprovalsApi/OrdersSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/ApprovalsApi/OrdersSDKInterface.php new file mode 100644 index 000000000..c42e87ee7 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Api/ApprovalsApi/OrdersSDKInterface.php @@ -0,0 +1,56 @@ +configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Authorization', 'getAuthorizationCode')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Authorization', 'getAuthorizationCode')) { $this->logger->log( $this->configuration->logLevel('Authorization', 'getAuthorizationCode'), 'Amazon Selling Partner API pre request', @@ -97,6 +98,8 @@ public function getAuthorizationCode(AccessToken $accessToken, string $region, s 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDK.php b/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDK.php index 9b8939f98..f7752e46b 100644 --- a/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDK.php @@ -42,6 +42,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\CatalogItem\Item */ public function getCatalogItem(AccessToken $accessToken, string $region, string $asin, array $marketplace_ids, ?array $included_data = null, ?string $locale = null) : \AmazonPHP\SellingPartner\Model\CatalogItem\Item { @@ -51,14 +53,13 @@ public function getCatalogItem(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('CatalogItem', 'getCatalogItem')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('CatalogItem', 'getCatalogItem')) { $this->logger->log( $this->configuration->logLevel('CatalogItem', 'getCatalogItem'), 'Amazon Selling Partner API pre request', @@ -94,6 +95,8 @@ public function getCatalogItem(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -273,6 +276,8 @@ public function getCatalogItemRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\CatalogItem\ItemSearchResults */ public function searchCatalogItems(AccessToken $accessToken, string $region, array $marketplace_ids, ?array $identifiers = null, ?string $identifiers_type = null, ?array $included_data = null, ?string $locale = null, ?string $seller_id = null, ?array $keywords = null, ?array $brand_names = null, ?array $classification_ids = null, int $page_size = 10, ?string $page_token = null, ?string $keywords_locale = null) : \AmazonPHP\SellingPartner\Model\CatalogItem\ItemSearchResults { @@ -282,14 +287,13 @@ public function searchCatalogItems(AccessToken $accessToken, string $region, arr try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('CatalogItem', 'searchCatalogItems')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('CatalogItem', 'searchCatalogItems')) { $this->logger->log( $this->configuration->logLevel('CatalogItem', 'searchCatalogItems'), 'Amazon Selling Partner API pre request', @@ -325,6 +329,8 @@ public function searchCatalogItems(AccessToken $accessToken, string $region, arr 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/CustomerInvoicesApi/VendorDirectFulfillmentShippingSDK.php b/src/AmazonPHP/SellingPartner/Api/CustomerInvoicesApi/VendorDirectFulfillmentShippingSDK.php index 9f2fb798a..462891113 100644 --- a/src/AmazonPHP/SellingPartner/Api/CustomerInvoicesApi/VendorDirectFulfillmentShippingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/CustomerInvoicesApi/VendorDirectFulfillmentShippingSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\CustomerInvoice */ public function getCustomerInvoice(AccessToken $accessToken, string $region, string $purchase_order_number) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\CustomerInvoice { @@ -48,14 +50,13 @@ public function getCustomerInvoice(AccessToken $accessToken, string $region, str try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getCustomerInvoice')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getCustomerInvoice')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentShipping', 'getCustomerInvoice'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function getCustomerInvoice(AccessToken $accessToken, string $region, str 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -234,6 +237,8 @@ public function getCustomerInvoiceRequest(AccessToken $accessToken, string $regi * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\CustomerInvoiceList */ public function getCustomerInvoices(AccessToken $accessToken, string $region, \DateTimeInterface $created_after, \DateTimeInterface $created_before, ?string $ship_from_party_id = null, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\CustomerInvoiceList { @@ -243,14 +248,13 @@ public function getCustomerInvoices(AccessToken $accessToken, string $region, \D try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getCustomerInvoices')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getCustomerInvoices')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentShipping', 'getCustomerInvoices'), 'Amazon Selling Partner API pre request', @@ -286,6 +290,8 @@ public function getCustomerInvoices(AccessToken $accessToken, string $region, \D 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDK.php b/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDK.php index 762b039c5..949aa48b4 100644 --- a/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDK.php @@ -42,6 +42,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventGroupsResponse */ public function listFinancialEventGroups(AccessToken $accessToken, string $region, int $max_results_per_page = 100, ?\DateTimeInterface $financial_event_group_started_before = null, ?\DateTimeInterface $financial_event_group_started_after = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventGroupsResponse { @@ -51,14 +53,13 @@ public function listFinancialEventGroups(AccessToken $accessToken, string $regio try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Finances', 'listFinancialEventGroups')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Finances', 'listFinancialEventGroups')) { $this->logger->log( $this->configuration->logLevel('Finances', 'listFinancialEventGroups'), 'Amazon Selling Partner API pre request', @@ -94,6 +95,8 @@ public function listFinancialEventGroups(AccessToken $accessToken, string $regio 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -259,6 +262,8 @@ public function listFinancialEventGroupsRequest(AccessToken $accessToken, string * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse */ public function listFinancialEvents(AccessToken $accessToken, string $region, int $max_results_per_page = 100, ?\DateTimeInterface $posted_after = null, ?\DateTimeInterface $posted_before = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse { @@ -268,14 +273,13 @@ public function listFinancialEvents(AccessToken $accessToken, string $region, in try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Finances', 'listFinancialEvents')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Finances', 'listFinancialEvents')) { $this->logger->log( $this->configuration->logLevel('Finances', 'listFinancialEvents'), 'Amazon Selling Partner API pre request', @@ -311,6 +315,8 @@ public function listFinancialEvents(AccessToken $accessToken, string $region, in 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -477,6 +483,8 @@ public function listFinancialEventsRequest(AccessToken $accessToken, string $reg * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse */ public function listFinancialEventsByGroupId(AccessToken $accessToken, string $region, string $event_group_id, int $max_results_per_page = 100, ?\DateTimeInterface $posted_after = null, ?\DateTimeInterface $posted_before = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse { @@ -486,14 +494,13 @@ public function listFinancialEventsByGroupId(AccessToken $accessToken, string $r try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Finances', 'listFinancialEventsByGroupId')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Finances', 'listFinancialEventsByGroupId')) { $this->logger->log( $this->configuration->logLevel('Finances', 'listFinancialEventsByGroupId'), 'Amazon Selling Partner API pre request', @@ -529,6 +536,8 @@ public function listFinancialEventsByGroupId(AccessToken $accessToken, string $r 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -710,6 +719,8 @@ public function listFinancialEventsByGroupIdRequest(AccessToken $accessToken, st * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse */ public function listFinancialEventsByOrderId(AccessToken $accessToken, string $region, string $order_id, int $max_results_per_page = 100, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsResponse { @@ -719,14 +730,13 @@ public function listFinancialEventsByOrderId(AccessToken $accessToken, string $r try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Finances', 'listFinancialEventsByOrderId')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Finances', 'listFinancialEventsByOrderId')) { $this->logger->log( $this->configuration->logLevel('Finances', 'listFinancialEventsByOrderId'), 'Amazon Selling Partner API pre request', @@ -762,6 +772,8 @@ public function listFinancialEventsByOrderId(AccessToken $accessToken, string $r 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDK.php b/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDK.php index 58b7cdd4a..85e77101f 100644 --- a/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/DefinitionsApi/ProductTypesDefinitionsSDK.php @@ -45,6 +45,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\ProductTypeDefinition */ public function getDefinitionsProductType(AccessToken $accessToken, string $region, string $product_type, array $marketplace_ids, ?string $seller_id = null, string $product_type_version = 'LATEST', string $requirements = 'LISTING', string $requirements_enforced = 'ENFORCED', string $locale = 'DEFAULT') : \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\ProductTypeDefinition { @@ -54,14 +56,13 @@ public function getDefinitionsProductType(AccessToken $accessToken, string $regi try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductTypesDefinitions', 'getDefinitionsProductType')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductTypesDefinitions', 'getDefinitionsProductType')) { $this->logger->log( $this->configuration->logLevel('ProductTypesDefinitions', 'getDefinitionsProductType'), 'Amazon Selling Partner API pre request', @@ -97,6 +98,8 @@ public function getDefinitionsProductType(AccessToken $accessToken, string $regi 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -293,6 +296,8 @@ public function getDefinitionsProductTypeRequest(AccessToken $accessToken, strin * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\ProductTypeList */ public function searchDefinitionsProductTypes(AccessToken $accessToken, string $region, array $marketplace_ids, ?array $keywords = null) : \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\ProductTypeList { @@ -302,14 +307,13 @@ public function searchDefinitionsProductTypes(AccessToken $accessToken, string $ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductTypesDefinitions', 'searchDefinitionsProductTypes')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductTypesDefinitions', 'searchDefinitionsProductTypes')) { $this->logger->log( $this->configuration->logLevel('ProductTypesDefinitions', 'searchDefinitionsProductTypes'), 'Amazon Selling Partner API pre request', @@ -345,6 +349,8 @@ public function searchDefinitionsProductTypes(AccessToken $accessToken, string $ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDK.php b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDK.php index 13e3e7cde..8e70f5b0f 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDK.php @@ -41,6 +41,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FBAInbound\GetItemEligibilityPreviewResponse */ public function getItemEligibilityPreview(AccessToken $accessToken, string $region, string $asin, string $program, ?array $marketplace_ids = null) : \AmazonPHP\SellingPartner\Model\FBAInbound\GetItemEligibilityPreviewResponse { @@ -50,14 +52,13 @@ public function getItemEligibilityPreview(AccessToken $accessToken, string $regi try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FBAInbound', 'getItemEligibilityPreview')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FBAInbound', 'getItemEligibilityPreview')) { $this->logger->log( $this->configuration->logLevel('FBAInbound', 'getItemEligibilityPreview'), 'Amazon Selling Partner API pre request', @@ -93,6 +94,8 @@ public function getItemEligibilityPreview(AccessToken $accessToken, string $regi 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDK.php b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDK.php index 13819b718..e0228a10a 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDK.php @@ -41,6 +41,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ConfirmPreorderResponse */ public function confirmPreorder(AccessToken $accessToken, string $region, string $shipment_id, \DateTimeInterface $need_by_date, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ConfirmPreorderResponse { @@ -50,14 +52,13 @@ public function confirmPreorder(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'confirmPreorder')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'confirmPreorder')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'confirmPreorder'), 'Amazon Selling Partner API pre request', @@ -93,6 +94,8 @@ public function confirmPreorder(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -258,6 +261,8 @@ public function confirmPreorderRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ConfirmTransportResponse */ public function confirmTransport(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ConfirmTransportResponse { @@ -267,14 +272,13 @@ public function confirmTransport(AccessToken $accessToken, string $region, strin try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'confirmTransport')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'confirmTransport')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'confirmTransport'), 'Amazon Selling Partner API pre request', @@ -310,6 +314,8 @@ public function confirmTransport(AccessToken $accessToken, string $region, strin 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -445,6 +451,8 @@ public function confirmTransportRequest(AccessToken $accessToken, string $region * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentResponse */ public function createInboundShipment(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentResponse { @@ -454,14 +462,13 @@ public function createInboundShipment(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'createInboundShipment')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'createInboundShipment')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'createInboundShipment'), 'Amazon Selling Partner API pre request', @@ -497,6 +504,8 @@ public function createInboundShipment(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -646,6 +655,8 @@ public function createInboundShipmentRequest(AccessToken $accessToken, string $r * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanResponse */ public function createInboundShipmentPlan(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanResponse { @@ -655,14 +666,13 @@ public function createInboundShipmentPlan(AccessToken $accessToken, string $regi try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'createInboundShipmentPlan')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'createInboundShipmentPlan')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'createInboundShipmentPlan'), 'Amazon Selling Partner API pre request', @@ -698,6 +708,8 @@ public function createInboundShipmentPlan(AccessToken $accessToken, string $regi 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -831,6 +843,8 @@ public function createInboundShipmentPlanRequest(AccessToken $accessToken, strin * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\EstimateTransportResponse */ public function estimateTransport(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\EstimateTransportResponse { @@ -840,14 +854,13 @@ public function estimateTransport(AccessToken $accessToken, string $region, stri try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'estimateTransport')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'estimateTransport')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'estimateTransport'), 'Amazon Selling Partner API pre request', @@ -883,6 +896,8 @@ public function estimateTransport(AccessToken $accessToken, string $region, stri 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1017,6 +1032,8 @@ public function estimateTransportRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetBillOfLadingResponse */ public function getBillOfLading(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetBillOfLadingResponse { @@ -1026,14 +1043,13 @@ public function getBillOfLading(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getBillOfLading')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getBillOfLading')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'getBillOfLading'), 'Amazon Selling Partner API pre request', @@ -1069,6 +1085,8 @@ public function getBillOfLading(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1205,6 +1223,8 @@ public function getBillOfLadingRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetInboundGuidanceResponse */ public function getInboundGuidance(AccessToken $accessToken, string $region, string $marketplace_id, ?array $seller_sku_list = null, ?array $asin_list = null) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetInboundGuidanceResponse { @@ -1214,14 +1234,13 @@ public function getInboundGuidance(AccessToken $accessToken, string $region, str try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getInboundGuidance')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getInboundGuidance')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'getInboundGuidance'), 'Amazon Selling Partner API pre request', @@ -1257,6 +1276,8 @@ public function getInboundGuidance(AccessToken $accessToken, string $region, str 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1424,6 +1445,8 @@ public function getInboundGuidanceRequest(AccessToken $accessToken, string $regi * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetLabelsResponse */ public function getLabels(AccessToken $accessToken, string $region, string $shipment_id, string $page_type, string $label_type, ?int $number_of_packages = null, ?array $package_labels_to_print = null, ?int $number_of_pallets = null, ?int $page_size = null, ?int $page_start_index = null) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetLabelsResponse { @@ -1433,14 +1456,13 @@ public function getLabels(AccessToken $accessToken, string $region, string $ship try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getLabels')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getLabels')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'getLabels'), 'Amazon Selling Partner API pre request', @@ -1476,6 +1498,8 @@ public function getLabels(AccessToken $accessToken, string $region, string $ship 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1691,6 +1715,8 @@ public function getLabelsRequest(AccessToken $accessToken, string $region, strin * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetPreorderInfoResponse */ public function getPreorderInfo(AccessToken $accessToken, string $region, string $shipment_id, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetPreorderInfoResponse { @@ -1700,14 +1726,13 @@ public function getPreorderInfo(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getPreorderInfo')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getPreorderInfo')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'getPreorderInfo'), 'Amazon Selling Partner API pre request', @@ -1743,6 +1768,8 @@ public function getPreorderInfo(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1895,6 +1922,8 @@ public function getPreorderInfoRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetPrepInstructionsResponse */ public function getPrepInstructions(AccessToken $accessToken, string $region, string $ship_to_country_code, ?array $seller_sku_list = null, ?array $asin_list = null) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetPrepInstructionsResponse { @@ -1904,14 +1933,13 @@ public function getPrepInstructions(AccessToken $accessToken, string $region, st try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getPrepInstructions')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getPrepInstructions')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'getPrepInstructions'), 'Amazon Selling Partner API pre request', @@ -1947,6 +1975,8 @@ public function getPrepInstructions(AccessToken $accessToken, string $region, st 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2111,6 +2141,8 @@ public function getPrepInstructionsRequest(AccessToken $accessToken, string $reg * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentItemsResponse */ public function getShipmentItems(AccessToken $accessToken, string $region, string $query_type, string $marketplace_id, ?\DateTimeInterface $last_updated_after = null, ?\DateTimeInterface $last_updated_before = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentItemsResponse { @@ -2120,14 +2152,13 @@ public function getShipmentItems(AccessToken $accessToken, string $region, strin try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getShipmentItems')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getShipmentItems')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'getShipmentItems'), 'Amazon Selling Partner API pre request', @@ -2163,6 +2194,8 @@ public function getShipmentItems(AccessToken $accessToken, string $region, strin 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2340,6 +2373,8 @@ public function getShipmentItemsRequest(AccessToken $accessToken, string $region * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentItemsResponse */ public function getShipmentItemsByShipmentId(AccessToken $accessToken, string $region, string $shipment_id, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentItemsResponse { @@ -2349,14 +2384,13 @@ public function getShipmentItemsByShipmentId(AccessToken $accessToken, string $r try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getShipmentItemsByShipmentId')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getShipmentItemsByShipmentId')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'getShipmentItemsByShipmentId'), 'Amazon Selling Partner API pre request', @@ -2392,6 +2426,8 @@ public function getShipmentItemsByShipmentId(AccessToken $accessToken, string $r 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2548,6 +2584,8 @@ public function getShipmentItemsByShipmentIdRequest(AccessToken $accessToken, st * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentsResponse */ public function getShipments(AccessToken $accessToken, string $region, string $query_type, string $marketplace_id, ?array $shipment_status_list = null, ?array $shipment_id_list = null, ?\DateTimeInterface $last_updated_after = null, ?\DateTimeInterface $last_updated_before = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentsResponse { @@ -2557,14 +2595,13 @@ public function getShipments(AccessToken $accessToken, string $region, string $q try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getShipments')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getShipments')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'getShipments'), 'Amazon Selling Partner API pre request', @@ -2600,6 +2637,8 @@ public function getShipments(AccessToken $accessToken, string $region, string $q 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2794,6 +2833,8 @@ public function getShipmentsRequest(AccessToken $accessToken, string $region, st * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetTransportDetailsResponse */ public function getTransportDetails(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetTransportDetailsResponse { @@ -2803,14 +2844,13 @@ public function getTransportDetails(AccessToken $accessToken, string $region, st try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getTransportDetails')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'getTransportDetails')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'getTransportDetails'), 'Amazon Selling Partner API pre request', @@ -2846,6 +2886,8 @@ public function getTransportDetails(AccessToken $accessToken, string $region, st 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2981,6 +3023,8 @@ public function getTransportDetailsRequest(AccessToken $accessToken, string $reg * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsResponse */ public function putTransportDetails(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PutTransportDetailsResponse { @@ -2990,14 +3034,13 @@ public function putTransportDetails(AccessToken $accessToken, string $region, st try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'putTransportDetails')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'putTransportDetails')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'putTransportDetails'), 'Amazon Selling Partner API pre request', @@ -3033,6 +3076,8 @@ public function putTransportDetails(AccessToken $accessToken, string $region, st 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -3183,6 +3228,8 @@ public function putTransportDetailsRequest(AccessToken $accessToken, string $reg * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentResponse */ public function updateInboundShipment(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentResponse { @@ -3192,14 +3239,13 @@ public function updateInboundShipment(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'updateInboundShipment')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'updateInboundShipment')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'updateInboundShipment'), 'Amazon Selling Partner API pre request', @@ -3235,6 +3281,8 @@ public function updateInboundShipment(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -3384,6 +3432,8 @@ public function updateInboundShipmentRequest(AccessToken $accessToken, string $r * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\VoidTransportResponse */ public function voidTransport(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\FulfillmentInbound\VoidTransportResponse { @@ -3393,14 +3443,13 @@ public function voidTransport(AccessToken $accessToken, string $region, string $ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentInbound', 'voidTransport')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentInbound', 'voidTransport')) { $this->logger->log( $this->configuration->logLevel('FulfillmentInbound', 'voidTransport'), 'Amazon Selling Partner API pre request', @@ -3436,6 +3485,8 @@ public function voidTransport(AccessToken $accessToken, string $region, string $ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDK.php b/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDK.php index 2c78068d0..696b83df8 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDK.php @@ -41,27 +41,29 @@ public function __construct(private readonly ClientInterface $client, private re * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) * @param null|\DateTimeInterface $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) * @param null|string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) - * @param null|string $next_token String token returned in the response of your previous request. (optional) + * @param null|string $seller_sku A single seller SKU used for querying the specified seller SKU inventory summaries. (optional) + * @param null|string $next_token String token returned in the response of your previous request. The string token will expire 30 seconds after being created. (optional) * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FBAInventory\GetInventorySummariesResponse */ - public function getInventorySummaries(AccessToken $accessToken, string $region, string $granularity_type, string $granularity_id, array $marketplace_ids, bool $details = false, ?\DateTimeInterface $start_date_time = null, ?array $seller_skus = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FBAInventory\GetInventorySummariesResponse + public function getInventorySummaries(AccessToken $accessToken, string $region, string $granularity_type, string $granularity_id, array $marketplace_ids, bool $details = false, ?\DateTimeInterface $start_date_time = null, ?array $seller_skus = null, ?string $seller_sku = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FBAInventory\GetInventorySummariesResponse { - $request = $this->getInventorySummariesRequest($accessToken, $region, $granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $next_token); + $request = $this->getInventorySummariesRequest($accessToken, $region, $granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $seller_sku, $next_token); $this->configuration->extensions()->preRequest('FBAInventory', 'getInventorySummaries', $request); try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FBAInventory', 'getInventorySummaries')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FBAInventory', 'getInventorySummaries')) { $this->logger->log( $this->configuration->logLevel('FBAInventory', 'getInventorySummaries'), 'Amazon Selling Partner API pre request', @@ -97,6 +99,8 @@ public function getInventorySummaries(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -142,11 +146,12 @@ public function getInventorySummaries(AccessToken $accessToken, string $region, * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) * @param null|\DateTimeInterface $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) * @param null|string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) - * @param null|string $next_token String token returned in the response of your previous request. (optional) + * @param null|string $seller_sku A single seller SKU used for querying the specified seller SKU inventory summaries. (optional) + * @param null|string $next_token String token returned in the response of your previous request. The string token will expire 30 seconds after being created. (optional) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException */ - public function getInventorySummariesRequest(AccessToken $accessToken, string $region, string $granularity_type, string $granularity_id, array $marketplace_ids, bool $details = false, ?\DateTimeInterface $start_date_time = null, ?array $seller_skus = null, ?string $next_token = null) : RequestInterface + public function getInventorySummariesRequest(AccessToken $accessToken, string $region, string $granularity_type, string $granularity_id, array $marketplace_ids, bool $details = false, ?\DateTimeInterface $start_date_time = null, ?array $seller_skus = null, ?string $seller_sku = null, ?string $next_token = null) : RequestInterface { // verify the required parameter 'granularity_type' is set if ($granularity_type === null || (\is_array($granularity_type) && \count($granularity_type) === 0)) { @@ -223,6 +228,14 @@ public function getInventorySummariesRequest(AccessToken $accessToken, string $r $queryParams['sellerSkus'] = ObjectSerializer::toString($seller_skus); } // query params + if (\is_array($seller_sku)) { + $seller_sku = ObjectSerializer::serializeCollection($seller_sku, '', true); + } + + if ($seller_sku !== null) { + $queryParams['sellerSku'] = ObjectSerializer::toString($seller_sku); + } + // query params if (\is_array($next_token)) { $next_token = ObjectSerializer::serializeCollection($next_token, '', true); } diff --git a/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDKInterface.php b/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDKInterface.php index bc7077958..8175e94a4 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDKInterface.php @@ -33,12 +33,13 @@ interface FBAInventorySDKInterface * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) * @param null|\DateTimeInterface $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) * @param null|string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) - * @param null|string $next_token String token returned in the response of your previous request. (optional) + * @param null|string $seller_sku A single seller SKU used for querying the specified seller SKU inventory summaries. (optional) + * @param null|string $next_token String token returned in the response of your previous request. The string token will expire 30 seconds after being created. (optional) * * @throws ApiException on non-2xx response * @throws InvalidArgumentException * * @return \AmazonPHP\SellingPartner\Model\FBAInventory\GetInventorySummariesResponse */ - public function getInventorySummaries(AccessToken $accessToken, string $region, string $granularity_type, string $granularity_id, array $marketplace_ids, bool $details = false, ?\DateTimeInterface $start_date_time = null, ?array $seller_skus = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FBAInventory\GetInventorySummariesResponse; + public function getInventorySummaries(AccessToken $accessToken, string $region, string $granularity_type, string $granularity_id, array $marketplace_ids, bool $details = false, ?\DateTimeInterface $start_date_time = null, ?array $seller_skus = null, ?string $seller_sku = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FBAInventory\GetInventorySummariesResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDK.php b/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDK.php index 698a54f6a..15912a636 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CancelFulfillmentOrderResponse */ public function cancelFulfillmentOrder(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CancelFulfillmentOrderResponse { @@ -48,14 +50,13 @@ public function cancelFulfillmentOrder(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'cancelFulfillmentOrder')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'cancelFulfillmentOrder')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'cancelFulfillmentOrder'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function cancelFulfillmentOrder(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -229,6 +232,8 @@ public function cancelFulfillmentOrderRequest(AccessToken $accessToken, string $ * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderResponse */ public function createFulfillmentOrder(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentOrderResponse { @@ -238,14 +243,13 @@ public function createFulfillmentOrder(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'createFulfillmentOrder')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'createFulfillmentOrder')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'createFulfillmentOrder'), 'Amazon Selling Partner API pre request', @@ -281,6 +285,8 @@ public function createFulfillmentOrder(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -415,6 +421,8 @@ public function createFulfillmentOrderRequest(AccessToken $accessToken, string $ * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnResponse */ public function createFulfillmentReturn(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnResponse { @@ -424,14 +432,13 @@ public function createFulfillmentReturn(AccessToken $accessToken, string $region try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'createFulfillmentReturn')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'createFulfillmentReturn')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'createFulfillmentReturn'), 'Amazon Selling Partner API pre request', @@ -467,6 +474,8 @@ public function createFulfillmentReturn(AccessToken $accessToken, string $region 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -618,6 +627,8 @@ public function createFulfillmentReturnRequest(AccessToken $accessToken, string * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeatureInventoryResponse */ public function getFeatureInventory(AccessToken $accessToken, string $region, string $marketplace_id, string $feature_name, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeatureInventoryResponse { @@ -627,14 +638,13 @@ public function getFeatureInventory(AccessToken $accessToken, string $region, st try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getFeatureInventory')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getFeatureInventory')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'getFeatureInventory'), 'Amazon Selling Partner API pre request', @@ -670,6 +680,8 @@ public function getFeatureInventory(AccessToken $accessToken, string $region, st 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -831,6 +843,8 @@ public function getFeatureInventoryRequest(AccessToken $accessToken, string $reg * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeatureSkuResponse */ public function getFeatureSKU(AccessToken $accessToken, string $region, string $marketplace_id, string $feature_name, string $seller_sku) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeatureSkuResponse { @@ -840,14 +854,13 @@ public function getFeatureSKU(AccessToken $accessToken, string $region, string $ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getFeatureSKU')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getFeatureSKU')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'getFeatureSKU'), 'Amazon Selling Partner API pre request', @@ -883,6 +896,8 @@ public function getFeatureSKU(AccessToken $accessToken, string $region, string $ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1048,6 +1063,8 @@ public function getFeatureSKURequest(AccessToken $accessToken, string $region, s * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeaturesResponse */ public function getFeatures(AccessToken $accessToken, string $region, string $marketplace_id) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeaturesResponse { @@ -1057,14 +1074,13 @@ public function getFeatures(AccessToken $accessToken, string $region, string $ma try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getFeatures')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getFeatures')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'getFeatures'), 'Amazon Selling Partner API pre request', @@ -1100,6 +1116,8 @@ public function getFeatures(AccessToken $accessToken, string $region, string $ma 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1234,6 +1252,8 @@ public function getFeaturesRequest(AccessToken $accessToken, string $region, str * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentOrderResponse */ public function getFulfillmentOrder(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentOrderResponse { @@ -1243,14 +1263,13 @@ public function getFulfillmentOrder(AccessToken $accessToken, string $region, st try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getFulfillmentOrder')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getFulfillmentOrder')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'getFulfillmentOrder'), 'Amazon Selling Partner API pre request', @@ -1286,6 +1305,8 @@ public function getFulfillmentOrder(AccessToken $accessToken, string $region, st 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1424,6 +1445,8 @@ public function getFulfillmentOrderRequest(AccessToken $accessToken, string $reg * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewResponse */ public function getFulfillmentPreview(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewResponse { @@ -1433,14 +1456,13 @@ public function getFulfillmentPreview(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getFulfillmentPreview')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getFulfillmentPreview')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'getFulfillmentPreview'), 'Amazon Selling Partner API pre request', @@ -1476,6 +1498,8 @@ public function getFulfillmentPreview(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1609,6 +1633,8 @@ public function getFulfillmentPreviewRequest(AccessToken $accessToken, string $r * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetPackageTrackingDetailsResponse */ public function getPackageTrackingDetails(AccessToken $accessToken, string $region, int $package_number) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetPackageTrackingDetailsResponse { @@ -1618,14 +1644,13 @@ public function getPackageTrackingDetails(AccessToken $accessToken, string $regi try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getPackageTrackingDetails')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'getPackageTrackingDetails')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'getPackageTrackingDetails'), 'Amazon Selling Partner API pre request', @@ -1661,6 +1686,8 @@ public function getPackageTrackingDetails(AccessToken $accessToken, string $regi 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1796,6 +1823,8 @@ public function getPackageTrackingDetailsRequest(AccessToken $accessToken, strin * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListAllFulfillmentOrdersResponse */ public function listAllFulfillmentOrders(AccessToken $accessToken, string $region, ?\DateTimeInterface $query_start_date = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListAllFulfillmentOrdersResponse { @@ -1805,14 +1834,13 @@ public function listAllFulfillmentOrders(AccessToken $accessToken, string $regio try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'listAllFulfillmentOrders')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'listAllFulfillmentOrders')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'listAllFulfillmentOrders'), 'Amazon Selling Partner API pre request', @@ -1848,6 +1876,8 @@ public function listAllFulfillmentOrders(AccessToken $accessToken, string $regio 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1987,6 +2017,8 @@ public function listAllFulfillmentOrdersRequest(AccessToken $accessToken, string * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListReturnReasonCodesResponse */ public function listReturnReasonCodes(AccessToken $accessToken, string $region, string $seller_sku, string $language, ?string $marketplace_id = null, ?string $seller_fulfillment_order_id = null) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListReturnReasonCodesResponse { @@ -1996,14 +2028,13 @@ public function listReturnReasonCodes(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'listReturnReasonCodes')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'listReturnReasonCodes')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'listReturnReasonCodes'), 'Amazon Selling Partner API pre request', @@ -2039,6 +2070,8 @@ public function listReturnReasonCodes(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2199,6 +2232,216 @@ public function listReturnReasonCodesRequest(AccessToken $accessToken, string $r ); } + /** + * Operation submitFulfillmentOrderStatusUpdate. + * + * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) + * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateRequest $body body (required) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateResponse + */ + public function submitFulfillmentOrderStatusUpdate(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateResponse + { + $request = $this->submitFulfillmentOrderStatusUpdateRequest($accessToken, $region, $seller_fulfillment_order_id, $body); + + $this->configuration->extensions()->preRequest('FulfillmentOutbound', 'submitFulfillmentOrderStatusUpdate', $request); + + try { + $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'submitFulfillmentOrderStatusUpdate')) { + $this->logger->log( + $this->configuration->logLevel('FulfillmentOutbound', 'submitFulfillmentOrderStatusUpdate'), + 'Amazon Selling Partner API pre request', + [ + 'api' => 'FulfillmentOutbound', + 'operation' => 'submitFulfillmentOrderStatusUpdate', + 'request_correlation_id' => $correlationId, + 'request_body' => (string) $sanitizedRequest->getBody(), + 'request_headers' => $sanitizedRequest->getHeaders(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + ] + ); + } + + $response = $this->client->sendRequest($request); + + $this->configuration->extensions()->postRequest('FulfillmentOutbound', 'submitFulfillmentOrderStatusUpdate', $request, $response); + + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'submitFulfillmentOrderStatusUpdate')) { + $sanitizedResponse = $response; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedResponse = $sanitizedResponse->withoutHeader($sensitiveHeader); + } + + $this->logger->log( + $this->configuration->logLevel('FulfillmentOutbound', 'submitFulfillmentOrderStatusUpdate'), + 'Amazon Selling Partner API post request', + [ + 'api' => 'FulfillmentOutbound', + 'operation' => 'submitFulfillmentOrderStatusUpdate', + 'response_correlation_id' => $correlationId, + 'response_body' => (string) $sanitizedResponse->getBody(), + 'response_headers' => $sanitizedResponse->getHeaders(), + 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), + ] + ); + } + } catch (ClientExceptionInterface $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null, + $e + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + \sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return ObjectSerializer::deserialize( + $this->configuration, + (string) $response->getBody(), + '\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateResponse', + [] + ); + } + + /** + * Create request for operation 'submitFulfillmentOrderStatusUpdate'. + * + * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) + * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateRequest $body (required) + * + * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException + */ + public function submitFulfillmentOrderStatusUpdateRequest(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateRequest $body) : RequestInterface + { + // verify the required parameter 'seller_fulfillment_order_id' is set + if ($seller_fulfillment_order_id === null || (\is_array($seller_fulfillment_order_id) && \count($seller_fulfillment_order_id) === 0)) { + throw new InvalidArgumentException( + 'Missing the required parameter $seller_fulfillment_order_id when calling submitFulfillmentOrderStatusUpdate' + ); + } + + if (\strlen($seller_fulfillment_order_id) > 40) { + throw new InvalidArgumentException('invalid length for "$seller_fulfillment_order_id" when calling FbaOutboundApi.submitFulfillmentOrderStatusUpdate, must be smaller than or equal to 40.'); + } + + // verify the required parameter 'body' is set + if ($body === null || (\is_array($body) && \count($body) === 0)) { + throw new InvalidArgumentException( + 'Missing the required parameter $body when calling submitFulfillmentOrderStatusUpdate' + ); + } + + $resourcePath = '/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $multipart = false; + $query = ''; + + if (\count($queryParams)) { + $query = \http_build_query($queryParams); + } + + // path params + if ($seller_fulfillment_order_id !== null) { + $resourcePath = \str_replace( + '{' . 'sellerFulfillmentOrderId' . '}', + ObjectSerializer::toPathValue($seller_fulfillment_order_id), + $resourcePath + ); + } + + if ($multipart) { + $headers = [ + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } else { + $headers = [ + 'content-type' => ['application/json'], + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } + + $request = $this->httpFactory->createRequest( + 'PUT', + $this->configuration->apiURL($region) . $resourcePath . '?' . $query + ); + + // for model (json/xml) + if (isset($body)) { + if ($headers['content-type'] === ['application/json']) { + $httpBody = \json_encode(ObjectSerializer::sanitizeForSerialization($body), JSON_THROW_ON_ERROR); + } else { + $httpBody = $body; + } + + $request = $request->withBody($this->httpFactory->createStreamFromString($httpBody)); + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = \is_array($formParamValue) ? $formParamValue : [$formParamValue]; + + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem, + ]; + } + } + $request = $request->withParsedBody($multipartContents); + } elseif ($headers['content-type'] === ['application/json']) { + $request = $request->withBody($this->httpFactory->createStreamFromString(\json_encode($formParams, JSON_THROW_ON_ERROR))); + } else { + $request = $request->withParsedBody($formParams); + } + } + + foreach (\array_merge($headerParams, $headers) as $name => $header) { + $request = $request->withHeader($name, $header); + } + + return HttpSignatureHeaders::forConfig( + $this->configuration, + $accessToken, + $region, + $request + ); + } + /** * Operation updateFulfillmentOrder. * @@ -2207,6 +2450,8 @@ public function listReturnReasonCodesRequest(AccessToken $accessToken, string $r * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderResponse */ public function updateFulfillmentOrder(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\UpdateFulfillmentOrderResponse { @@ -2216,14 +2461,13 @@ public function updateFulfillmentOrder(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'updateFulfillmentOrder')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FulfillmentOutbound', 'updateFulfillmentOrder')) { $this->logger->log( $this->configuration->logLevel('FulfillmentOutbound', 'updateFulfillmentOrder'), 'Amazon Selling Partner API pre request', @@ -2259,6 +2503,8 @@ public function updateFulfillmentOrder(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDKInterface.php index 8e77c4211..4076fab13 100644 --- a/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDKInterface.php @@ -64,6 +64,10 @@ interface FulfillmentOutboundSDKInterface public const OPERATION_LISTRETURNREASONCODES_PATH = '/fba/outbound/2020-07-01/returnReasonCodes'; + public const OPERATION_SUBMITFULFILLMENTORDERSTATUSUPDATE = 'submitFulfillmentOrderStatusUpdate'; + + public const OPERATION_SUBMITFULFILLMENTORDERSTATUSUPDATE_PATH = '/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status'; + public const OPERATION_UPDATEFULFILLMENTORDER = 'updateFulfillmentOrder'; public const OPERATION_UPDATEFULFILLMENTORDER_PATH = '/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}'; @@ -209,6 +213,19 @@ public function listAllFulfillmentOrders(AccessToken $accessToken, string $regio */ public function listReturnReasonCodes(AccessToken $accessToken, string $region, string $seller_sku, string $language, ?string $marketplace_id = null, ?string $seller_fulfillment_order_id = null) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListReturnReasonCodesResponse; + /** + * Operation submitFulfillmentOrderStatusUpdate. + * + * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) + * @param \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateRequest $body body (required) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateResponse + */ + public function submitFulfillmentOrderStatusUpdate(AccessToken $accessToken, string $region, string $seller_fulfillment_order_id, \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateRequest $body) : \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\SubmitFulfillmentOrderStatusUpdateResponse; + /** * Operation updateFulfillmentOrder. * diff --git a/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDK.php b/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDK.php index 06cac3742..a0ae0e39a 100644 --- a/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDK.php @@ -48,14 +48,13 @@ public function cancelFeed(AccessToken $accessToken, string $region, string $fee try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Feeds', 'cancelFeed')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Feeds', 'cancelFeed')) { $this->logger->log( $this->configuration->logLevel('Feeds', 'cancelFeed'), 'Amazon Selling Partner API pre request', @@ -91,6 +90,8 @@ public function cancelFeed(AccessToken $accessToken, string $region, string $fee 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -220,6 +221,8 @@ public function cancelFeedRequest(AccessToken $accessToken, string $region, stri * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedResponse */ public function createFeed(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedSpecification $body) : \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedResponse { @@ -229,14 +232,13 @@ public function createFeed(AccessToken $accessToken, string $region, \AmazonPHP\ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Feeds', 'createFeed')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Feeds', 'createFeed')) { $this->logger->log( $this->configuration->logLevel('Feeds', 'createFeed'), 'Amazon Selling Partner API pre request', @@ -272,6 +274,8 @@ public function createFeed(AccessToken $accessToken, string $region, \AmazonPHP\ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -405,6 +409,8 @@ public function createFeedRequest(AccessToken $accessToken, string $region, \Ama * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentResponse */ public function createFeedDocument(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentSpecification $body) : \AmazonPHP\SellingPartner\Model\Feeds\CreateFeedDocumentResponse { @@ -414,14 +420,13 @@ public function createFeedDocument(AccessToken $accessToken, string $region, \Am try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Feeds', 'createFeedDocument')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Feeds', 'createFeedDocument')) { $this->logger->log( $this->configuration->logLevel('Feeds', 'createFeedDocument'), 'Amazon Selling Partner API pre request', @@ -457,6 +462,8 @@ public function createFeedDocument(AccessToken $accessToken, string $region, \Am 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -590,6 +597,8 @@ public function createFeedDocumentRequest(AccessToken $accessToken, string $regi * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Feeds\Feed */ public function getFeed(AccessToken $accessToken, string $region, string $feed_id) : \AmazonPHP\SellingPartner\Model\Feeds\Feed { @@ -599,14 +608,13 @@ public function getFeed(AccessToken $accessToken, string $region, string $feed_i try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Feeds', 'getFeed')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Feeds', 'getFeed')) { $this->logger->log( $this->configuration->logLevel('Feeds', 'getFeed'), 'Amazon Selling Partner API pre request', @@ -642,6 +650,8 @@ public function getFeed(AccessToken $accessToken, string $region, string $feed_i 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -776,6 +786,8 @@ public function getFeedRequest(AccessToken $accessToken, string $region, string * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Feeds\FeedDocument */ public function getFeedDocument(AccessToken $accessToken, string $region, string $feed_document_id) : \AmazonPHP\SellingPartner\Model\Feeds\FeedDocument { @@ -785,14 +797,13 @@ public function getFeedDocument(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Feeds', 'getFeedDocument')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Feeds', 'getFeedDocument')) { $this->logger->log( $this->configuration->logLevel('Feeds', 'getFeedDocument'), 'Amazon Selling Partner API pre request', @@ -828,6 +839,8 @@ public function getFeedDocument(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -968,6 +981,8 @@ public function getFeedDocumentRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Feeds\GetFeedsResponse */ public function getFeeds(AccessToken $accessToken, string $region, ?array $feed_types = null, ?array $marketplace_ids = null, int $page_size = 10, ?array $processing_statuses = null, ?\DateTimeInterface $created_since = null, ?\DateTimeInterface $created_until = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Feeds\GetFeedsResponse { @@ -977,14 +992,13 @@ public function getFeeds(AccessToken $accessToken, string $region, ?array $feed_ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Feeds', 'getFeeds')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Feeds', 'getFeeds')) { $this->logger->log( $this->configuration->logLevel('Feeds', 'getFeeds'), 'Amazon Selling Partner API pre request', @@ -1020,6 +1034,8 @@ public function getFeeds(AccessToken $accessToken, string $region, ?array $feed_ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDK.php b/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDK.php index 92a826892..363993626 100644 --- a/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/FeesApi/ProductFeesSDK.php @@ -40,6 +40,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateResponse */ public function getMyFeesEstimateForASIN(AccessToken $accessToken, string $region, string $asin, \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body) : \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateResponse { @@ -49,14 +51,13 @@ public function getMyFeesEstimateForASIN(AccessToken $accessToken, string $regio try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductFees', 'getMyFeesEstimateForASIN')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductFees', 'getMyFeesEstimateForASIN')) { $this->logger->log( $this->configuration->logLevel('ProductFees', 'getMyFeesEstimateForASIN'), 'Amazon Selling Partner API pre request', @@ -92,6 +93,8 @@ public function getMyFeesEstimateForASIN(AccessToken $accessToken, string $regio 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -242,6 +245,8 @@ public function getMyFeesEstimateForASINRequest(AccessToken $accessToken, string * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateResponse */ public function getMyFeesEstimateForSKU(AccessToken $accessToken, string $region, string $seller_sku, \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateRequest $body) : \AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateResponse { @@ -251,14 +256,13 @@ public function getMyFeesEstimateForSKU(AccessToken $accessToken, string $region try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductFees', 'getMyFeesEstimateForSKU')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductFees', 'getMyFeesEstimateForSKU')) { $this->logger->log( $this->configuration->logLevel('ProductFees', 'getMyFeesEstimateForSKU'), 'Amazon Selling Partner API pre request', @@ -294,6 +298,8 @@ public function getMyFeesEstimateForSKU(AccessToken $accessToken, string $region 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -454,14 +460,13 @@ public function getMyFeesEstimates(AccessToken $accessToken, string $region, arr try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductFees', 'getMyFeesEstimates')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductFees', 'getMyFeesEstimates')) { $this->logger->log( $this->configuration->logLevel('ProductFees', 'getMyFeesEstimates'), 'Amazon Selling Partner API pre request', @@ -497,6 +502,8 @@ public function getMyFeesEstimates(AccessToken $accessToken, string $region, arr 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDK.php b/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDK.php index c2122a120..4c95f48da 100644 --- a/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ListingsApi/ListingsItemsSDK.php @@ -42,6 +42,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse */ public function deleteListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, ?string $issue_locale = null) : \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse { @@ -51,14 +53,13 @@ public function deleteListingsItem(AccessToken $accessToken, string $region, str try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ListingsItems', 'deleteListingsItem')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ListingsItems', 'deleteListingsItem')) { $this->logger->log( $this->configuration->logLevel('ListingsItems', 'deleteListingsItem'), 'Amazon Selling Partner API pre request', @@ -94,6 +95,8 @@ public function deleteListingsItem(AccessToken $accessToken, string $region, str 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -272,6 +275,8 @@ public function deleteListingsItemRequest(AccessToken $accessToken, string $regi * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ListingsItems\Item */ public function getListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, ?string $issue_locale = null, ?array $included_data = null) : \AmazonPHP\SellingPartner\Model\ListingsItems\Item { @@ -281,14 +286,13 @@ public function getListingsItem(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ListingsItems', 'getListingsItem')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ListingsItems', 'getListingsItem')) { $this->logger->log( $this->configuration->logLevel('ListingsItems', 'getListingsItem'), 'Amazon Selling Partner API pre request', @@ -324,6 +328,8 @@ public function getListingsItem(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -511,6 +517,8 @@ public function getListingsItemRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse */ public function patchListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemPatchRequest $body, ?string $issue_locale = null) : \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse { @@ -520,14 +528,13 @@ public function patchListingsItem(AccessToken $accessToken, string $region, stri try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ListingsItems', 'patchListingsItem')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ListingsItems', 'patchListingsItem')) { $this->logger->log( $this->configuration->logLevel('ListingsItems', 'patchListingsItem'), 'Amazon Selling Partner API pre request', @@ -563,6 +570,8 @@ public function patchListingsItem(AccessToken $accessToken, string $region, stri 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -756,6 +765,8 @@ public function patchListingsItemRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse */ public function putListingsItem(AccessToken $accessToken, string $region, string $seller_id, string $sku, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemPutRequest $body, ?string $issue_locale = null) : \AmazonPHP\SellingPartner\Model\ListingsItems\ListingsItemSubmissionResponse { @@ -765,14 +776,13 @@ public function putListingsItem(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ListingsItems', 'putListingsItem')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ListingsItems', 'putListingsItem')) { $this->logger->log( $this->configuration->logLevel('ListingsItems', 'putListingsItem'), 'Amazon Selling Partner API pre request', @@ -808,6 +818,8 @@ public function putListingsItem(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDK.php b/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDK.php index 57259df4d..693e2e458 100644 --- a/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/MerchantFulfillmentApi/MerchantFulfillmentSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CancelShipmentResponse */ public function cancelShipment(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CancelShipmentResponse { @@ -48,14 +50,13 @@ public function cancelShipment(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('MerchantFulfillment', 'cancelShipment')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('MerchantFulfillment', 'cancelShipment')) { $this->logger->log( $this->configuration->logLevel('MerchantFulfillment', 'cancelShipment'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function cancelShipment(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -229,6 +232,8 @@ public function cancelShipmentRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CancelShipmentResponse */ public function cancelShipmentOld(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CancelShipmentResponse { @@ -238,14 +243,13 @@ public function cancelShipmentOld(AccessToken $accessToken, string $region, stri try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('MerchantFulfillment', 'cancelShipmentOld')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('MerchantFulfillment', 'cancelShipmentOld')) { $this->logger->log( $this->configuration->logLevel('MerchantFulfillment', 'cancelShipmentOld'), 'Amazon Selling Partner API pre request', @@ -281,6 +285,8 @@ public function cancelShipmentOld(AccessToken $accessToken, string $region, stri 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -419,6 +425,8 @@ public function cancelShipmentOldRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentResponse */ public function createShipment(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentRequest $body) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CreateShipmentResponse { @@ -428,14 +436,13 @@ public function createShipment(AccessToken $accessToken, string $region, \Amazon try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('MerchantFulfillment', 'createShipment')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('MerchantFulfillment', 'createShipment')) { $this->logger->log( $this->configuration->logLevel('MerchantFulfillment', 'createShipment'), 'Amazon Selling Partner API pre request', @@ -471,6 +478,8 @@ public function createShipment(AccessToken $accessToken, string $region, \Amazon 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -604,6 +613,8 @@ public function createShipmentRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsResponse */ public function getAdditionalSellerInputs(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsResponse { @@ -613,14 +624,13 @@ public function getAdditionalSellerInputs(AccessToken $accessToken, string $regi try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('MerchantFulfillment', 'getAdditionalSellerInputs')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('MerchantFulfillment', 'getAdditionalSellerInputs')) { $this->logger->log( $this->configuration->logLevel('MerchantFulfillment', 'getAdditionalSellerInputs'), 'Amazon Selling Partner API pre request', @@ -656,6 +666,8 @@ public function getAdditionalSellerInputs(AccessToken $accessToken, string $regi 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -789,6 +801,8 @@ public function getAdditionalSellerInputsRequest(AccessToken $accessToken, strin * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsResponse */ public function getAdditionalSellerInputsOld(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsRequest $body) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsResponse { @@ -798,14 +812,13 @@ public function getAdditionalSellerInputsOld(AccessToken $accessToken, string $r try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('MerchantFulfillment', 'getAdditionalSellerInputsOld')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('MerchantFulfillment', 'getAdditionalSellerInputsOld')) { $this->logger->log( $this->configuration->logLevel('MerchantFulfillment', 'getAdditionalSellerInputsOld'), 'Amazon Selling Partner API pre request', @@ -841,6 +854,8 @@ public function getAdditionalSellerInputsOld(AccessToken $accessToken, string $r 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -974,6 +989,8 @@ public function getAdditionalSellerInputsOldRequest(AccessToken $accessToken, st * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesResponse */ public function getEligibleShipmentServices(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesResponse { @@ -983,14 +1000,13 @@ public function getEligibleShipmentServices(AccessToken $accessToken, string $re try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('MerchantFulfillment', 'getEligibleShipmentServices')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('MerchantFulfillment', 'getEligibleShipmentServices')) { $this->logger->log( $this->configuration->logLevel('MerchantFulfillment', 'getEligibleShipmentServices'), 'Amazon Selling Partner API pre request', @@ -1026,6 +1042,8 @@ public function getEligibleShipmentServices(AccessToken $accessToken, string $re 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1159,6 +1177,8 @@ public function getEligibleShipmentServicesRequest(AccessToken $accessToken, str * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesResponse */ public function getEligibleShipmentServicesOld(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesRequest $body) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesResponse { @@ -1168,14 +1188,13 @@ public function getEligibleShipmentServicesOld(AccessToken $accessToken, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('MerchantFulfillment', 'getEligibleShipmentServicesOld')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('MerchantFulfillment', 'getEligibleShipmentServicesOld')) { $this->logger->log( $this->configuration->logLevel('MerchantFulfillment', 'getEligibleShipmentServicesOld'), 'Amazon Selling Partner API pre request', @@ -1211,6 +1230,8 @@ public function getEligibleShipmentServicesOld(AccessToken $accessToken, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1344,6 +1365,8 @@ public function getEligibleShipmentServicesOldRequest(AccessToken $accessToken, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetShipmentResponse */ public function getShipment(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetShipmentResponse { @@ -1353,14 +1376,13 @@ public function getShipment(AccessToken $accessToken, string $region, string $sh try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('MerchantFulfillment', 'getShipment')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('MerchantFulfillment', 'getShipment')) { $this->logger->log( $this->configuration->logLevel('MerchantFulfillment', 'getShipment'), 'Amazon Selling Partner API pre request', @@ -1396,6 +1418,8 @@ public function getShipment(AccessToken $accessToken, string $region, string $sh 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDK.php b/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDK.php index ff498fee8..8aa5d6008 100644 --- a/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/MessagingApi/MessagingSDK.php @@ -41,6 +41,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsResponse */ public function confirmCustomizationDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmCustomizationDetailsResponse { @@ -50,14 +52,13 @@ public function confirmCustomizationDetails(AccessToken $accessToken, string $re try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'confirmCustomizationDetails')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'confirmCustomizationDetails')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'confirmCustomizationDetails'), 'Amazon Selling Partner API pre request', @@ -93,6 +94,8 @@ public function confirmCustomizationDetails(AccessToken $accessToken, string $re 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -265,6 +268,8 @@ public function confirmCustomizationDetailsRequest(AccessToken $accessToken, str * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsResponse */ public function createAmazonMotors(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateAmazonMotorsResponse { @@ -274,14 +279,13 @@ public function createAmazonMotors(AccessToken $accessToken, string $region, str try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'createAmazonMotors')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'createAmazonMotors')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'createAmazonMotors'), 'Amazon Selling Partner API pre request', @@ -317,6 +321,8 @@ public function createAmazonMotors(AccessToken $accessToken, string $region, str 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -489,6 +495,8 @@ public function createAmazonMotorsRequest(AccessToken $accessToken, string $regi * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsResponse */ public function createConfirmDeliveryDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmDeliveryDetailsResponse { @@ -498,14 +506,13 @@ public function createConfirmDeliveryDetails(AccessToken $accessToken, string $r try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'createConfirmDeliveryDetails')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'createConfirmDeliveryDetails')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'createConfirmDeliveryDetails'), 'Amazon Selling Partner API pre request', @@ -541,6 +548,8 @@ public function createConfirmDeliveryDetails(AccessToken $accessToken, string $r 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -713,6 +722,8 @@ public function createConfirmDeliveryDetailsRequest(AccessToken $accessToken, st * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsResponse */ public function createConfirmOrderDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmOrderDetailsResponse { @@ -722,14 +733,13 @@ public function createConfirmOrderDetails(AccessToken $accessToken, string $regi try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'createConfirmOrderDetails')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'createConfirmOrderDetails')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'createConfirmOrderDetails'), 'Amazon Selling Partner API pre request', @@ -765,6 +775,8 @@ public function createConfirmOrderDetails(AccessToken $accessToken, string $regi 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -937,6 +949,8 @@ public function createConfirmOrderDetailsRequest(AccessToken $accessToken, strin * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsResponse */ public function createConfirmServiceDetails(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateConfirmServiceDetailsResponse { @@ -946,14 +960,13 @@ public function createConfirmServiceDetails(AccessToken $accessToken, string $re try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'createConfirmServiceDetails')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'createConfirmServiceDetails')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'createConfirmServiceDetails'), 'Amazon Selling Partner API pre request', @@ -989,6 +1002,8 @@ public function createConfirmServiceDetails(AccessToken $accessToken, string $re 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1161,6 +1176,8 @@ public function createConfirmServiceDetailsRequest(AccessToken $accessToken, str * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyResponse */ public function createDigitalAccessKey(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateDigitalAccessKeyResponse { @@ -1170,14 +1187,13 @@ public function createDigitalAccessKey(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'createDigitalAccessKey')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'createDigitalAccessKey')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'createDigitalAccessKey'), 'Amazon Selling Partner API pre request', @@ -1213,6 +1229,8 @@ public function createDigitalAccessKey(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1385,6 +1403,8 @@ public function createDigitalAccessKeyRequest(AccessToken $accessToken, string $ * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureResponse */ public function createLegalDisclosure(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateLegalDisclosureResponse { @@ -1394,14 +1414,13 @@ public function createLegalDisclosure(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'createLegalDisclosure')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'createLegalDisclosure')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'createLegalDisclosure'), 'Amazon Selling Partner API pre request', @@ -1437,6 +1456,8 @@ public function createLegalDisclosure(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1608,6 +1629,8 @@ public function createLegalDisclosureRequest(AccessToken $accessToken, string $r * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateNegativeFeedbackRemovalResponse */ public function createNegativeFeedbackRemoval(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Messaging\CreateNegativeFeedbackRemovalResponse { @@ -1617,14 +1640,13 @@ public function createNegativeFeedbackRemoval(AccessToken $accessToken, string $ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'createNegativeFeedbackRemoval')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'createNegativeFeedbackRemoval')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'createNegativeFeedbackRemoval'), 'Amazon Selling Partner API pre request', @@ -1660,6 +1682,8 @@ public function createNegativeFeedbackRemoval(AccessToken $accessToken, string $ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1816,6 +1840,8 @@ public function createNegativeFeedbackRemovalRequest(AccessToken $accessToken, s * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemResponse */ public function createUnexpectedProblem(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateUnexpectedProblemResponse { @@ -1825,14 +1851,13 @@ public function createUnexpectedProblem(AccessToken $accessToken, string $region try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'createUnexpectedProblem')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'createUnexpectedProblem')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'createUnexpectedProblem'), 'Amazon Selling Partner API pre request', @@ -1868,6 +1893,8 @@ public function createUnexpectedProblem(AccessToken $accessToken, string $region 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2040,6 +2067,8 @@ public function createUnexpectedProblemRequest(AccessToken $accessToken, string * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyResponse */ public function createWarranty(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\CreateWarrantyResponse { @@ -2049,14 +2078,13 @@ public function createWarranty(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'createWarranty')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'createWarranty')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'createWarranty'), 'Amazon Selling Partner API pre request', @@ -2092,6 +2120,8 @@ public function createWarranty(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2263,6 +2293,8 @@ public function createWarrantyRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\GetAttributesResponse */ public function getAttributes(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Messaging\GetAttributesResponse { @@ -2272,14 +2304,13 @@ public function getAttributes(AccessToken $accessToken, string $region, string $ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'getAttributes')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'getAttributes')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'getAttributes'), 'Amazon Selling Partner API pre request', @@ -2315,6 +2346,8 @@ public function getAttributes(AccessToken $accessToken, string $region, string $ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2470,6 +2503,8 @@ public function getAttributesRequest(AccessToken $accessToken, string $region, s * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\GetMessagingActionsForOrderResponse */ public function getMessagingActionsForOrder(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Messaging\GetMessagingActionsForOrderResponse { @@ -2479,14 +2514,13 @@ public function getMessagingActionsForOrder(AccessToken $accessToken, string $re try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'getMessagingActionsForOrder')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'getMessagingActionsForOrder')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'getMessagingActionsForOrder'), 'Amazon Selling Partner API pre request', @@ -2522,6 +2556,8 @@ public function getMessagingActionsForOrder(AccessToken $accessToken, string $re 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2678,6 +2714,8 @@ public function getMessagingActionsForOrderRequest(AccessToken $accessToken, str * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\InvoiceResponse */ public function sendInvoice(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Messaging\InvoiceRequest $body) : \AmazonPHP\SellingPartner\Model\Messaging\InvoiceResponse { @@ -2687,14 +2725,13 @@ public function sendInvoice(AccessToken $accessToken, string $region, string $am try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Messaging', 'sendInvoice')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Messaging', 'sendInvoice')) { $this->logger->log( $this->configuration->logLevel('Messaging', 'sendInvoice'), 'Amazon Selling Partner API pre request', @@ -2730,6 +2767,8 @@ public function sendInvoice(AccessToken $accessToken, string $region, string $am 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDK.php b/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDK.php index ec666c6a4..35e58e1d8 100644 --- a/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/NotificationsApi/NotificationsSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationResponse */ public function createDestination(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationRequest $body) : \AmazonPHP\SellingPartner\Model\Notifications\CreateDestinationResponse { @@ -48,14 +50,13 @@ public function createDestination(AccessToken $accessToken, string $region, \Ama try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Notifications', 'createDestination')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Notifications', 'createDestination')) { $this->logger->log( $this->configuration->logLevel('Notifications', 'createDestination'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function createDestination(AccessToken $accessToken, string $region, \Ama 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -225,6 +228,8 @@ public function createDestinationRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionResponse */ public function createSubscription(AccessToken $accessToken, string $region, string $notification_type, \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionRequest $body) : \AmazonPHP\SellingPartner\Model\Notifications\CreateSubscriptionResponse { @@ -234,14 +239,13 @@ public function createSubscription(AccessToken $accessToken, string $region, str try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Notifications', 'createSubscription')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Notifications', 'createSubscription')) { $this->logger->log( $this->configuration->logLevel('Notifications', 'createSubscription'), 'Amazon Selling Partner API pre request', @@ -277,6 +281,8 @@ public function createSubscription(AccessToken $accessToken, string $region, str 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -426,6 +432,8 @@ public function createSubscriptionRequest(AccessToken $accessToken, string $regi * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\DeleteDestinationResponse */ public function deleteDestination(AccessToken $accessToken, string $region, string $destination_id) : \AmazonPHP\SellingPartner\Model\Notifications\DeleteDestinationResponse { @@ -435,14 +443,13 @@ public function deleteDestination(AccessToken $accessToken, string $region, stri try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Notifications', 'deleteDestination')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Notifications', 'deleteDestination')) { $this->logger->log( $this->configuration->logLevel('Notifications', 'deleteDestination'), 'Amazon Selling Partner API pre request', @@ -478,6 +485,8 @@ public function deleteDestination(AccessToken $accessToken, string $region, stri 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -613,6 +622,8 @@ public function deleteDestinationRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\DeleteSubscriptionByIdResponse */ public function deleteSubscriptionById(AccessToken $accessToken, string $region, string $subscription_id, string $notification_type) : \AmazonPHP\SellingPartner\Model\Notifications\DeleteSubscriptionByIdResponse { @@ -622,14 +633,13 @@ public function deleteSubscriptionById(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Notifications', 'deleteSubscriptionById')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Notifications', 'deleteSubscriptionById')) { $this->logger->log( $this->configuration->logLevel('Notifications', 'deleteSubscriptionById'), 'Amazon Selling Partner API pre request', @@ -665,6 +675,8 @@ public function deleteSubscriptionById(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -814,6 +826,8 @@ public function deleteSubscriptionByIdRequest(AccessToken $accessToken, string $ * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\GetDestinationResponse */ public function getDestination(AccessToken $accessToken, string $region, string $destination_id) : \AmazonPHP\SellingPartner\Model\Notifications\GetDestinationResponse { @@ -823,14 +837,13 @@ public function getDestination(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Notifications', 'getDestination')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Notifications', 'getDestination')) { $this->logger->log( $this->configuration->logLevel('Notifications', 'getDestination'), 'Amazon Selling Partner API pre request', @@ -866,6 +879,8 @@ public function getDestination(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -998,6 +1013,8 @@ public function getDestinationRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\GetDestinationsResponse */ public function getDestinations(AccessToken $accessToken, string $region) : \AmazonPHP\SellingPartner\Model\Notifications\GetDestinationsResponse { @@ -1007,14 +1024,13 @@ public function getDestinations(AccessToken $accessToken, string $region) : \Ama try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Notifications', 'getDestinations')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Notifications', 'getDestinations')) { $this->logger->log( $this->configuration->logLevel('Notifications', 'getDestinations'), 'Amazon Selling Partner API pre request', @@ -1050,6 +1066,8 @@ public function getDestinations(AccessToken $accessToken, string $region) : \Ama 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1166,6 +1184,8 @@ public function getDestinationsRequest(AccessToken $accessToken, string $region) * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\GetSubscriptionResponse */ public function getSubscription(AccessToken $accessToken, string $region, string $notification_type) : \AmazonPHP\SellingPartner\Model\Notifications\GetSubscriptionResponse { @@ -1175,14 +1195,13 @@ public function getSubscription(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Notifications', 'getSubscription')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Notifications', 'getSubscription')) { $this->logger->log( $this->configuration->logLevel('Notifications', 'getSubscription'), 'Amazon Selling Partner API pre request', @@ -1218,6 +1237,8 @@ public function getSubscription(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1353,6 +1374,8 @@ public function getSubscriptionRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\GetSubscriptionByIdResponse */ public function getSubscriptionById(AccessToken $accessToken, string $region, string $subscription_id, string $notification_type) : \AmazonPHP\SellingPartner\Model\Notifications\GetSubscriptionByIdResponse { @@ -1362,14 +1385,13 @@ public function getSubscriptionById(AccessToken $accessToken, string $region, st try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Notifications', 'getSubscriptionById')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Notifications', 'getSubscriptionById')) { $this->logger->log( $this->configuration->logLevel('Notifications', 'getSubscriptionById'), 'Amazon Selling Partner API pre request', @@ -1405,6 +1427,8 @@ public function getSubscriptionById(AccessToken $accessToken, string $region, st 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDK.php b/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDK.php index e08b1d8fa..86a73da16 100644 --- a/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDK.php @@ -32,6 +32,204 @@ public function __construct(private readonly ClientInterface $client, private re { } + /** + * Operation confirmShipment. + * + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \AmazonPHP\SellingPartner\Model\Orders\ConfirmShipmentRequest $payload Request body of confirmShipment. (required) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + */ + public function confirmShipment(AccessToken $accessToken, string $region, string $order_id, \AmazonPHP\SellingPartner\Model\Orders\ConfirmShipmentRequest $payload) + { + $request = $this->confirmShipmentRequest($accessToken, $region, $order_id, $payload); + + $this->configuration->extensions()->preRequest('Orders', 'confirmShipment', $request); + + try { + $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + + if ($this->configuration->loggingEnabled('Orders', 'confirmShipment')) { + $this->logger->log( + $this->configuration->logLevel('Orders', 'confirmShipment'), + 'Amazon Selling Partner API pre request', + [ + 'api' => 'Orders', + 'operation' => 'confirmShipment', + 'request_correlation_id' => $correlationId, + 'request_body' => (string) $sanitizedRequest->getBody(), + 'request_headers' => $sanitizedRequest->getHeaders(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + ] + ); + } + + $response = $this->client->sendRequest($request); + + $this->configuration->extensions()->postRequest('Orders', 'confirmShipment', $request, $response); + + if ($this->configuration->loggingEnabled('Orders', 'confirmShipment')) { + $sanitizedResponse = $response; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedResponse = $sanitizedResponse->withoutHeader($sensitiveHeader); + } + + $this->logger->log( + $this->configuration->logLevel('Orders', 'confirmShipment'), + 'Amazon Selling Partner API post request', + [ + 'api' => 'Orders', + 'operation' => 'confirmShipment', + 'response_correlation_id' => $correlationId, + 'response_body' => (string) $sanitizedResponse->getBody(), + 'response_headers' => $sanitizedResponse->getHeaders(), + 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), + ] + ); + } + } catch (ClientExceptionInterface $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null, + $e + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + \sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return null; + } + + /** + * Create request for operation 'confirmShipment'. + * + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \AmazonPHP\SellingPartner\Model\Orders\ConfirmShipmentRequest $payload Request body of confirmShipment. (required) + * + * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException + */ + public function confirmShipmentRequest(AccessToken $accessToken, string $region, string $order_id, \AmazonPHP\SellingPartner\Model\Orders\ConfirmShipmentRequest $payload) : RequestInterface + { + // verify the required parameter 'order_id' is set + if ($order_id === null || (\is_array($order_id) && \count($order_id) === 0)) { + throw new InvalidArgumentException( + 'Missing the required parameter $order_id when calling confirmShipment' + ); + } + // verify the required parameter 'payload' is set + if ($payload === null || (\is_array($payload) && \count($payload) === 0)) { + throw new InvalidArgumentException( + 'Missing the required parameter $payload when calling confirmShipment' + ); + } + + $resourcePath = '/orders/v0/orders/{orderId}/shipmentConfirmation'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $multipart = false; + $query = ''; + + if (\count($queryParams)) { + $query = \http_build_query($queryParams); + } + + // path params + if ($order_id !== null) { + $resourcePath = \str_replace( + '{' . 'orderId' . '}', + ObjectSerializer::toPathValue($order_id), + $resourcePath + ); + } + + if ($multipart) { + $headers = [ + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } else { + $headers = [ + 'content-type' => ['application/json'], + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } + + $request = $this->httpFactory->createRequest( + 'POST', + $this->configuration->apiURL($region) . $resourcePath . '?' . $query + ); + + // for model (json/xml) + if (isset($payload)) { + if ($headers['content-type'] === ['application/json']) { + $httpBody = \json_encode(ObjectSerializer::sanitizeForSerialization($payload), JSON_THROW_ON_ERROR); + } else { + $httpBody = $payload; + } + + $request = $request->withBody($this->httpFactory->createStreamFromString($httpBody)); + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = \is_array($formParamValue) ? $formParamValue : [$formParamValue]; + + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem, + ]; + } + } + $request = $request->withParsedBody($multipartContents); + } elseif ($headers['content-type'] === ['application/json']) { + $request = $request->withBody($this->httpFactory->createStreamFromString(\json_encode($formParams, JSON_THROW_ON_ERROR))); + } else { + $request = $request->withParsedBody($formParams); + } + } + + foreach (\array_merge($headerParams, $headers) as $name => $header) { + $request = $request->withHeader($name, $header); + } + + return HttpSignatureHeaders::forConfig( + $this->configuration, + $accessToken, + $region, + $request + ); + } + /** * Operation getOrder. * @@ -39,6 +237,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderResponse */ public function getOrder(AccessToken $accessToken, string $region, string $order_id) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderResponse { @@ -48,14 +248,13 @@ public function getOrder(AccessToken $accessToken, string $region, string $order try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Orders', 'getOrder')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Orders', 'getOrder')) { $this->logger->log( $this->configuration->logLevel('Orders', 'getOrder'), 'Amazon Selling Partner API pre request', @@ -91,6 +290,8 @@ public function getOrder(AccessToken $accessToken, string $region, string $order 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -225,6 +426,8 @@ public function getOrderRequest(AccessToken $accessToken, string $region, string * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderAddressResponse */ public function getOrderAddress(AccessToken $accessToken, string $region, string $order_id) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderAddressResponse { @@ -234,14 +437,13 @@ public function getOrderAddress(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Orders', 'getOrderAddress')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Orders', 'getOrderAddress')) { $this->logger->log( $this->configuration->logLevel('Orders', 'getOrderAddress'), 'Amazon Selling Partner API pre request', @@ -277,6 +479,8 @@ public function getOrderAddress(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -411,6 +615,8 @@ public function getOrderAddressRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderBuyerInfoResponse */ public function getOrderBuyerInfo(AccessToken $accessToken, string $region, string $order_id) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderBuyerInfoResponse { @@ -420,14 +626,13 @@ public function getOrderBuyerInfo(AccessToken $accessToken, string $region, stri try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Orders', 'getOrderBuyerInfo')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Orders', 'getOrderBuyerInfo')) { $this->logger->log( $this->configuration->logLevel('Orders', 'getOrderBuyerInfo'), 'Amazon Selling Partner API pre request', @@ -463,6 +668,8 @@ public function getOrderBuyerInfo(AccessToken $accessToken, string $region, stri 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -598,6 +805,8 @@ public function getOrderBuyerInfoRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderItemsResponse */ public function getOrderItems(AccessToken $accessToken, string $region, string $order_id, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderItemsResponse { @@ -607,14 +816,13 @@ public function getOrderItems(AccessToken $accessToken, string $region, string $ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Orders', 'getOrderItems')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Orders', 'getOrderItems')) { $this->logger->log( $this->configuration->logLevel('Orders', 'getOrderItems'), 'Amazon Selling Partner API pre request', @@ -650,6 +858,8 @@ public function getOrderItems(AccessToken $accessToken, string $region, string $ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -795,6 +1005,8 @@ public function getOrderItemsRequest(AccessToken $accessToken, string $region, s * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderItemsBuyerInfoResponse */ public function getOrderItemsBuyerInfo(AccessToken $accessToken, string $region, string $order_id, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderItemsBuyerInfoResponse { @@ -804,14 +1016,13 @@ public function getOrderItemsBuyerInfo(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Orders', 'getOrderItemsBuyerInfo')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Orders', 'getOrderItemsBuyerInfo')) { $this->logger->log( $this->configuration->logLevel('Orders', 'getOrderItemsBuyerInfo'), 'Amazon Selling Partner API pre request', @@ -847,6 +1058,8 @@ public function getOrderItemsBuyerInfo(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -991,6 +1204,8 @@ public function getOrderItemsBuyerInfoRequest(AccessToken $accessToken, string $ * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrderRegulatedInfoResponse */ public function getOrderRegulatedInfo(AccessToken $accessToken, string $region, string $order_id) : \AmazonPHP\SellingPartner\Model\Orders\GetOrderRegulatedInfoResponse { @@ -1000,14 +1215,13 @@ public function getOrderRegulatedInfo(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Orders', 'getOrderRegulatedInfo')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Orders', 'getOrderRegulatedInfo')) { $this->logger->log( $this->configuration->logLevel('Orders', 'getOrderRegulatedInfo'), 'Amazon Selling Partner API pre request', @@ -1043,6 +1257,8 @@ public function getOrderRegulatedInfo(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1191,26 +1407,29 @@ public function getOrderRegulatedInfoRequest(AccessToken $accessToken, string $r * @param null|string $actual_fulfillment_supply_source_id Denotes the recommended sourceId where the order should be fulfilled from. (optional) * @param null|bool $is_ispu When true, this order is marked to be picked up from a store rather than delivered. (optional) * @param null|string $store_chain_store_id The store chain store identifier. Linked to a specific store in a store chain. (optional) + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType[] $item_approval_types When set, only return orders that contain items which approval type is contained in the specified approval types. (optional) + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus[] $item_approval_status When set, only return orders that contain items which approval status is contained in the specified approval status. (optional) * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrdersResponse */ - public function getOrders(AccessToken $accessToken, string $region, array $marketplace_ids, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?array $order_statuses = null, ?array $fulfillment_channels = null, ?array $payment_methods = null, ?string $buyer_email = null, ?string $seller_order_id = null, ?int $max_results_per_page = null, ?array $easy_ship_shipment_statuses = null, ?array $electronic_invoice_statuses = null, ?string $next_token = null, ?array $amazon_order_ids = null, ?string $actual_fulfillment_supply_source_id = null, ?bool $is_ispu = null, ?string $store_chain_store_id = null) : \AmazonPHP\SellingPartner\Model\Orders\GetOrdersResponse + public function getOrders(AccessToken $accessToken, string $region, array $marketplace_ids, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?array $order_statuses = null, ?array $fulfillment_channels = null, ?array $payment_methods = null, ?string $buyer_email = null, ?string $seller_order_id = null, ?int $max_results_per_page = null, ?array $easy_ship_shipment_statuses = null, ?array $electronic_invoice_statuses = null, ?string $next_token = null, ?array $amazon_order_ids = null, ?string $actual_fulfillment_supply_source_id = null, ?bool $is_ispu = null, ?string $store_chain_store_id = null, ?array $item_approval_types = null, ?array $item_approval_status = null) : \AmazonPHP\SellingPartner\Model\Orders\GetOrdersResponse { - $request = $this->getOrdersRequest($accessToken, $region, $marketplace_ids, $created_after, $created_before, $last_updated_after, $last_updated_before, $order_statuses, $fulfillment_channels, $payment_methods, $buyer_email, $seller_order_id, $max_results_per_page, $easy_ship_shipment_statuses, $electronic_invoice_statuses, $next_token, $amazon_order_ids, $actual_fulfillment_supply_source_id, $is_ispu, $store_chain_store_id); + $request = $this->getOrdersRequest($accessToken, $region, $marketplace_ids, $created_after, $created_before, $last_updated_after, $last_updated_before, $order_statuses, $fulfillment_channels, $payment_methods, $buyer_email, $seller_order_id, $max_results_per_page, $easy_ship_shipment_statuses, $electronic_invoice_statuses, $next_token, $amazon_order_ids, $actual_fulfillment_supply_source_id, $is_ispu, $store_chain_store_id, $item_approval_types, $item_approval_status); $this->configuration->extensions()->preRequest('Orders', 'getOrders', $request); try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Orders', 'getOrders')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Orders', 'getOrders')) { $this->logger->log( $this->configuration->logLevel('Orders', 'getOrders'), 'Amazon Selling Partner API pre request', @@ -1246,6 +1465,8 @@ public function getOrders(AccessToken $accessToken, string $region, array $marke 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1303,10 +1524,12 @@ public function getOrders(AccessToken $accessToken, string $region, array $marke * @param null|string $actual_fulfillment_supply_source_id Denotes the recommended sourceId where the order should be fulfilled from. (optional) * @param null|bool $is_ispu When true, this order is marked to be picked up from a store rather than delivered. (optional) * @param null|string $store_chain_store_id The store chain store identifier. Linked to a specific store in a store chain. (optional) + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType[] $item_approval_types When set, only return orders that contain items which approval type is contained in the specified approval types. (optional) + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus[] $item_approval_status When set, only return orders that contain items which approval status is contained in the specified approval status. (optional) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException */ - public function getOrdersRequest(AccessToken $accessToken, string $region, array $marketplace_ids, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?array $order_statuses = null, ?array $fulfillment_channels = null, ?array $payment_methods = null, ?string $buyer_email = null, ?string $seller_order_id = null, ?int $max_results_per_page = null, ?array $easy_ship_shipment_statuses = null, ?array $electronic_invoice_statuses = null, ?string $next_token = null, ?array $amazon_order_ids = null, ?string $actual_fulfillment_supply_source_id = null, ?bool $is_ispu = null, ?string $store_chain_store_id = null) : RequestInterface + public function getOrdersRequest(AccessToken $accessToken, string $region, array $marketplace_ids, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?array $order_statuses = null, ?array $fulfillment_channels = null, ?array $payment_methods = null, ?string $buyer_email = null, ?string $seller_order_id = null, ?int $max_results_per_page = null, ?array $easy_ship_shipment_statuses = null, ?array $electronic_invoice_statuses = null, ?string $next_token = null, ?array $amazon_order_ids = null, ?string $actual_fulfillment_supply_source_id = null, ?bool $is_ispu = null, ?string $store_chain_store_id = null, ?array $item_approval_types = null, ?array $item_approval_status = null) : RequestInterface { // verify the required parameter 'marketplace_ids' is set if ($marketplace_ids === null || (\is_array($marketplace_ids) && \count($marketplace_ids) === 0)) { @@ -1323,6 +1546,14 @@ public function getOrdersRequest(AccessToken $accessToken, string $region, array throw new InvalidArgumentException('invalid value for "$amazon_order_ids" when calling OrdersV0Api.getOrders, number of items must be less than or equal to 50.'); } + if ($item_approval_types !== null && \count($item_approval_types) > 1) { + throw new InvalidArgumentException('invalid value for "$item_approval_types" when calling OrdersV0Api.getOrders, number of items must be less than or equal to 1.'); + } + + if ($item_approval_status !== null && \count($item_approval_status) > 6) { + throw new InvalidArgumentException('invalid value for "$item_approval_status" when calling OrdersV0Api.getOrders, number of items must be less than or equal to 6.'); + } + $resourcePath = '/orders/v0/orders'; $formParams = []; $queryParams = []; @@ -1474,6 +1705,22 @@ public function getOrdersRequest(AccessToken $accessToken, string $region, array if ($store_chain_store_id !== null) { $queryParams['StoreChainStoreId'] = ObjectSerializer::toString($store_chain_store_id); } + // query params + if (\is_array($item_approval_types)) { + $item_approval_types = ObjectSerializer::serializeCollection($item_approval_types, 'form', true); + } + + if ($item_approval_types !== null) { + $queryParams['ItemApprovalTypes'] = ObjectSerializer::toString($item_approval_types); + } + // query params + if (\is_array($item_approval_status)) { + $item_approval_status = ObjectSerializer::serializeCollection($item_approval_status, 'form', true); + } + + if ($item_approval_status !== null) { + $queryParams['ItemApprovalStatus'] = ObjectSerializer::toString($item_approval_status); + } if (\count($queryParams)) { $query = \http_build_query($queryParams); @@ -1551,14 +1798,13 @@ public function updateVerificationStatus(AccessToken $accessToken, string $regio try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Orders', 'updateVerificationStatus')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Orders', 'updateVerificationStatus')) { $this->logger->log( $this->configuration->logLevel('Orders', 'updateVerificationStatus'), 'Amazon Selling Partner API pre request', @@ -1594,6 +1840,8 @@ public function updateVerificationStatus(AccessToken $accessToken, string $regio 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDKInterface.php index ce2c851df..5f098fb61 100644 --- a/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/OrdersV0Api/OrdersSDKInterface.php @@ -20,6 +20,10 @@ interface OrdersSDKInterface { public const API_NAME = 'Orders'; + public const OPERATION_CONFIRMSHIPMENT = 'confirmShipment'; + + public const OPERATION_CONFIRMSHIPMENT_PATH = '/orders/v0/orders/{orderId}/shipmentConfirmation'; + public const OPERATION_GETORDER = 'getOrder'; public const OPERATION_GETORDER_PATH = '/orders/v0/orders/{orderId}'; @@ -52,6 +56,17 @@ interface OrdersSDKInterface public const OPERATION_UPDATEVERIFICATIONSTATUS_PATH = '/orders/v0/orders/{orderId}/regulatedInfo'; + /** + * Operation confirmShipment. + * + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \AmazonPHP\SellingPartner\Model\Orders\ConfirmShipmentRequest $payload Request body of confirmShipment. (required) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + */ + public function confirmShipment(AccessToken $accessToken, string $region, string $order_id, \AmazonPHP\SellingPartner\Model\Orders\ConfirmShipmentRequest $payload); + /** * Operation getOrder. * @@ -147,13 +162,15 @@ public function getOrderRegulatedInfo(AccessToken $accessToken, string $region, * @param null|string $actual_fulfillment_supply_source_id Denotes the recommended sourceId where the order should be fulfilled from. (optional) * @param null|bool $is_ispu When true, this order is marked to be picked up from a store rather than delivered. (optional) * @param null|string $store_chain_store_id The store chain store identifier. Linked to a specific store in a store chain. (optional) + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType[] $item_approval_types When set, only return orders that contain items which approval type is contained in the specified approval types. (optional) + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus[] $item_approval_status When set, only return orders that contain items which approval status is contained in the specified approval status. (optional) * * @throws ApiException on non-2xx response * @throws InvalidArgumentException * * @return \AmazonPHP\SellingPartner\Model\Orders\GetOrdersResponse */ - public function getOrders(AccessToken $accessToken, string $region, array $marketplace_ids, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?array $order_statuses = null, ?array $fulfillment_channels = null, ?array $payment_methods = null, ?string $buyer_email = null, ?string $seller_order_id = null, ?int $max_results_per_page = null, ?array $easy_ship_shipment_statuses = null, ?array $electronic_invoice_statuses = null, ?string $next_token = null, ?array $amazon_order_ids = null, ?string $actual_fulfillment_supply_source_id = null, ?bool $is_ispu = null, ?string $store_chain_store_id = null) : \AmazonPHP\SellingPartner\Model\Orders\GetOrdersResponse; + public function getOrders(AccessToken $accessToken, string $region, array $marketplace_ids, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?array $order_statuses = null, ?array $fulfillment_channels = null, ?array $payment_methods = null, ?string $buyer_email = null, ?string $seller_order_id = null, ?int $max_results_per_page = null, ?array $easy_ship_shipment_statuses = null, ?array $electronic_invoice_statuses = null, ?string $next_token = null, ?array $amazon_order_ids = null, ?string $actual_fulfillment_supply_source_id = null, ?bool $is_ispu = null, ?string $store_chain_store_id = null, ?array $item_approval_types = null, ?array $item_approval_status = null) : \AmazonPHP\SellingPartner\Model\Orders\GetOrdersResponse; /** * Operation updateVerificationStatus. diff --git a/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDK.php b/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDK.php index c2aad658d..1f97acbb0 100644 --- a/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ProductPricingApi/ProductPricingSDK.php @@ -43,6 +43,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetPricingResponse */ public function getCompetitivePricing(AccessToken $accessToken, string $region, string $marketplace_id, string $item_type, ?array $asins = null, ?array $skus = null, ?string $customer_type = null) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetPricingResponse { @@ -52,14 +54,13 @@ public function getCompetitivePricing(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductPricing', 'getCompetitivePricing')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductPricing', 'getCompetitivePricing')) { $this->logger->log( $this->configuration->logLevel('ProductPricing', 'getCompetitivePricing'), 'Amazon Selling Partner API pre request', @@ -95,6 +96,8 @@ public function getCompetitivePricing(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -282,6 +285,8 @@ public function getCompetitivePricingRequest(AccessToken $accessToken, string $r * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse */ public function getItemOffers(AccessToken $accessToken, string $region, string $marketplace_id, string $item_condition, string $asin, ?string $customer_type = null) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse { @@ -291,14 +296,13 @@ public function getItemOffers(AccessToken $accessToken, string $region, string $ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductPricing', 'getItemOffers')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductPricing', 'getItemOffers')) { $this->logger->log( $this->configuration->logLevel('ProductPricing', 'getItemOffers'), 'Amazon Selling Partner API pre request', @@ -334,6 +338,8 @@ public function getItemOffers(AccessToken $accessToken, string $region, string $ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -508,6 +514,8 @@ public function getItemOffersRequest(AccessToken $accessToken, string $region, s * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchResponse */ public function getItemOffersBatch(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchRequest $get_item_offers_batch_request_body) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetItemOffersBatchResponse { @@ -517,14 +525,13 @@ public function getItemOffersBatch(AccessToken $accessToken, string $region, \Am try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductPricing', 'getItemOffersBatch')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductPricing', 'getItemOffersBatch')) { $this->logger->log( $this->configuration->logLevel('ProductPricing', 'getItemOffersBatch'), 'Amazon Selling Partner API pre request', @@ -560,6 +567,8 @@ public function getItemOffersBatch(AccessToken $accessToken, string $region, \Am 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -696,6 +705,8 @@ public function getItemOffersBatchRequest(AccessToken $accessToken, string $regi * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse */ public function getListingOffers(AccessToken $accessToken, string $region, string $marketplace_id, string $item_condition, string $seller_sku, ?string $customer_type = null) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse { @@ -705,14 +716,13 @@ public function getListingOffers(AccessToken $accessToken, string $region, strin try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductPricing', 'getListingOffers')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductPricing', 'getListingOffers')) { $this->logger->log( $this->configuration->logLevel('ProductPricing', 'getListingOffers'), 'Amazon Selling Partner API pre request', @@ -748,6 +758,8 @@ public function getListingOffers(AccessToken $accessToken, string $region, strin 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -922,6 +934,8 @@ public function getListingOffersRequest(AccessToken $accessToken, string $region * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchResponse */ public function getListingOffersBatch(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchRequest $get_listing_offers_batch_request_body) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetListingOffersBatchResponse { @@ -931,14 +945,13 @@ public function getListingOffersBatch(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductPricing', 'getListingOffersBatch')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductPricing', 'getListingOffersBatch')) { $this->logger->log( $this->configuration->logLevel('ProductPricing', 'getListingOffersBatch'), 'Amazon Selling Partner API pre request', @@ -974,6 +987,8 @@ public function getListingOffersBatch(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1112,6 +1127,8 @@ public function getListingOffersBatchRequest(AccessToken $accessToken, string $r * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetPricingResponse */ public function getPricing(AccessToken $accessToken, string $region, string $marketplace_id, string $item_type, ?array $asins = null, ?array $skus = null, ?string $item_condition = null, ?string $offer_type = null) : \AmazonPHP\SellingPartner\Model\ProductPricing\GetPricingResponse { @@ -1121,14 +1138,13 @@ public function getPricing(AccessToken $accessToken, string $region, string $mar try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ProductPricing', 'getPricing')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ProductPricing', 'getPricing')) { $this->logger->log( $this->configuration->logLevel('ProductPricing', 'getPricing'), 'Amazon Selling Partner API pre request', @@ -1164,6 +1180,8 @@ public function getPricing(AccessToken $accessToken, string $region, string $mar 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDK.php b/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDK.php index 85293dd80..056956542 100644 --- a/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDK.php @@ -48,14 +48,13 @@ public function cancelReport(AccessToken $accessToken, string $region, string $r try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Reports', 'cancelReport')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Reports', 'cancelReport')) { $this->logger->log( $this->configuration->logLevel('Reports', 'cancelReport'), 'Amazon Selling Partner API pre request', @@ -91,6 +90,8 @@ public function cancelReport(AccessToken $accessToken, string $region, string $r 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -229,14 +230,13 @@ public function cancelReportSchedule(AccessToken $accessToken, string $region, s try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Reports', 'cancelReportSchedule')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Reports', 'cancelReportSchedule')) { $this->logger->log( $this->configuration->logLevel('Reports', 'cancelReportSchedule'), 'Amazon Selling Partner API pre request', @@ -272,6 +272,8 @@ public function cancelReportSchedule(AccessToken $accessToken, string $region, s 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -401,6 +403,8 @@ public function cancelReportScheduleRequest(AccessToken $accessToken, string $re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Reports\CreateReportResponse */ public function createReport(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Reports\CreateReportSpecification $body) : \AmazonPHP\SellingPartner\Model\Reports\CreateReportResponse { @@ -410,14 +414,13 @@ public function createReport(AccessToken $accessToken, string $region, \AmazonPH try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Reports', 'createReport')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Reports', 'createReport')) { $this->logger->log( $this->configuration->logLevel('Reports', 'createReport'), 'Amazon Selling Partner API pre request', @@ -453,6 +456,8 @@ public function createReport(AccessToken $accessToken, string $region, \AmazonPH 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -586,6 +591,8 @@ public function createReportRequest(AccessToken $accessToken, string $region, \A * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleResponse */ public function createReportSchedule(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleSpecification $body) : \AmazonPHP\SellingPartner\Model\Reports\CreateReportScheduleResponse { @@ -595,14 +602,13 @@ public function createReportSchedule(AccessToken $accessToken, string $region, \ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Reports', 'createReportSchedule')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Reports', 'createReportSchedule')) { $this->logger->log( $this->configuration->logLevel('Reports', 'createReportSchedule'), 'Amazon Selling Partner API pre request', @@ -638,6 +644,8 @@ public function createReportSchedule(AccessToken $accessToken, string $region, \ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -771,6 +779,8 @@ public function createReportScheduleRequest(AccessToken $accessToken, string $re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Reports\Report */ public function getReport(AccessToken $accessToken, string $region, string $report_id) : \AmazonPHP\SellingPartner\Model\Reports\Report { @@ -780,14 +790,13 @@ public function getReport(AccessToken $accessToken, string $region, string $repo try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Reports', 'getReport')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Reports', 'getReport')) { $this->logger->log( $this->configuration->logLevel('Reports', 'getReport'), 'Amazon Selling Partner API pre request', @@ -823,6 +832,8 @@ public function getReport(AccessToken $accessToken, string $region, string $repo 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -957,6 +968,8 @@ public function getReportRequest(AccessToken $accessToken, string $region, strin * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Reports\ReportDocument */ public function getReportDocument(AccessToken $accessToken, string $region, string $report_document_id) : \AmazonPHP\SellingPartner\Model\Reports\ReportDocument { @@ -966,14 +979,13 @@ public function getReportDocument(AccessToken $accessToken, string $region, stri try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Reports', 'getReportDocument')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Reports', 'getReportDocument')) { $this->logger->log( $this->configuration->logLevel('Reports', 'getReportDocument'), 'Amazon Selling Partner API pre request', @@ -1009,6 +1021,8 @@ public function getReportDocument(AccessToken $accessToken, string $region, stri 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1143,6 +1157,8 @@ public function getReportDocumentRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Reports\ReportSchedule */ public function getReportSchedule(AccessToken $accessToken, string $region, string $report_schedule_id) : \AmazonPHP\SellingPartner\Model\Reports\ReportSchedule { @@ -1152,14 +1168,13 @@ public function getReportSchedule(AccessToken $accessToken, string $region, stri try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Reports', 'getReportSchedule')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Reports', 'getReportSchedule')) { $this->logger->log( $this->configuration->logLevel('Reports', 'getReportSchedule'), 'Amazon Selling Partner API pre request', @@ -1195,6 +1210,8 @@ public function getReportSchedule(AccessToken $accessToken, string $region, stri 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1325,10 +1342,12 @@ public function getReportScheduleRequest(AccessToken $accessToken, string $regio /** * Operation getReportSchedules. * - * @param string[] $report_types A list of report types used to filter report schedules. (required) + * @param string[] $report_types A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. (required) * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Reports\ReportScheduleList */ public function getReportSchedules(AccessToken $accessToken, string $region, array $report_types) : \AmazonPHP\SellingPartner\Model\Reports\ReportScheduleList { @@ -1338,14 +1357,13 @@ public function getReportSchedules(AccessToken $accessToken, string $region, arr try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Reports', 'getReportSchedules')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Reports', 'getReportSchedules')) { $this->logger->log( $this->configuration->logLevel('Reports', 'getReportSchedules'), 'Amazon Selling Partner API pre request', @@ -1381,6 +1399,8 @@ public function getReportSchedules(AccessToken $accessToken, string $region, arr 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1420,7 +1440,7 @@ public function getReportSchedules(AccessToken $accessToken, string $region, arr /** * Create request for operation 'getReportSchedules'. * - * @param string[] $report_types A list of report types used to filter report schedules. (required) + * @param string[] $report_types A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. (required) * * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException */ @@ -1519,7 +1539,7 @@ public function getReportSchedulesRequest(AccessToken $accessToken, string $regi /** * Operation getReports. * - * @param null|string[] $report_types A list of report types used to filter reports. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) + * @param null|string[] $report_types A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) * @param null|string[] $processing_statuses A list of processing statuses used to filter reports. (optional) * @param null|string[] $marketplace_ids A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. (optional) * @param int $page_size The maximum number of reports to return in a single call. (optional, default to 10) @@ -1529,6 +1549,8 @@ public function getReportSchedulesRequest(AccessToken $accessToken, string $regi * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Reports\GetReportsResponse */ public function getReports(AccessToken $accessToken, string $region, ?array $report_types = null, ?array $processing_statuses = null, ?array $marketplace_ids = null, int $page_size = 10, ?\DateTimeInterface $created_since = null, ?\DateTimeInterface $created_until = null, ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\Reports\GetReportsResponse { @@ -1538,14 +1560,13 @@ public function getReports(AccessToken $accessToken, string $region, ?array $rep try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Reports', 'getReports')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Reports', 'getReports')) { $this->logger->log( $this->configuration->logLevel('Reports', 'getReports'), 'Amazon Selling Partner API pre request', @@ -1581,6 +1602,8 @@ public function getReports(AccessToken $accessToken, string $region, ?array $rep 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1620,7 +1643,7 @@ public function getReports(AccessToken $accessToken, string $region, ?array $rep /** * Create request for operation 'getReports'. * - * @param null|string[] $report_types A list of report types used to filter reports. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) + * @param null|string[] $report_types A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) * @param null|string[] $processing_statuses A list of processing statuses used to filter reports. (optional) * @param null|string[] $marketplace_ids A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. (optional) * @param int $page_size The maximum number of reports to return in a single call. (optional, default to 10) diff --git a/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDKInterface.php index 690091211..cba1a10d8 100644 --- a/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/ReportsApi/ReportsSDKInterface.php @@ -139,7 +139,7 @@ public function getReportSchedule(AccessToken $accessToken, string $region, stri /** * Operation getReportSchedules. * - * @param string[] $report_types A list of report types used to filter report schedules. (required) + * @param string[] $report_types A list of report types used to filter report schedules. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. (required) * * @throws ApiException on non-2xx response * @throws InvalidArgumentException @@ -151,7 +151,7 @@ public function getReportSchedules(AccessToken $accessToken, string $region, arr /** * Operation getReports. * - * @param null|string[] $report_types A list of report types used to filter reports. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) + * @param null|string[] $report_types A list of report types used to filter reports. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. When reportTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either reportTypes or nextToken is required. (optional) * @param null|string[] $processing_statuses A list of processing statuses used to filter reports. (optional) * @param null|string[] $marketplace_ids A list of marketplace identifiers used to filter reports. The reports returned will match at least one of the marketplaces that you specify. (optional) * @param int $page_size The maximum number of reports to return in a single call. (optional, default to 10) diff --git a/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDK.php b/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDK.php index 8d588056c..3403ab3bb 100644 --- a/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/SalesApi/SalesSDK.php @@ -47,6 +47,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Sales\GetOrderMetricsResponse */ public function getOrderMetrics(AccessToken $accessToken, string $region, array $marketplace_ids, string $interval, string $granularity, ?string $granularity_time_zone = null, string $buyer_type = 'All', ?string $fulfillment_network = null, string $first_day_of_week = 'Monday', ?string $asin = null, ?string $sku = null) : \AmazonPHP\SellingPartner\Model\Sales\GetOrderMetricsResponse { @@ -56,14 +58,13 @@ public function getOrderMetrics(AccessToken $accessToken, string $region, array try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Sales', 'getOrderMetrics')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Sales', 'getOrderMetrics')) { $this->logger->log( $this->configuration->logLevel('Sales', 'getOrderMetrics'), 'Amazon Selling Partner API pre request', @@ -99,6 +100,8 @@ public function getOrderMetrics(AccessToken $accessToken, string $region, array 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/SellersApi/SellersSDK.php b/src/AmazonPHP/SellingPartner/Api/SellersApi/SellersSDK.php index c9184a625..0973e1c7b 100644 --- a/src/AmazonPHP/SellingPartner/Api/SellersApi/SellersSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/SellersApi/SellersSDK.php @@ -37,6 +37,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Sellers\GetMarketplaceParticipationsResponse */ public function getMarketplaceParticipations(AccessToken $accessToken, string $region) : \AmazonPHP\SellingPartner\Model\Sellers\GetMarketplaceParticipationsResponse { @@ -46,14 +48,13 @@ public function getMarketplaceParticipations(AccessToken $accessToken, string $r try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Sellers', 'getMarketplaceParticipations')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Sellers', 'getMarketplaceParticipations')) { $this->logger->log( $this->configuration->logLevel('Sellers', 'getMarketplaceParticipations'), 'Amazon Selling Partner API pre request', @@ -89,6 +90,8 @@ public function getMarketplaceParticipations(AccessToken $accessToken, string $r 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDK.php b/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDK.php index 828586702..b21b8120b 100644 --- a/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ServiceApi/ServicesSDK.php @@ -40,6 +40,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\SetAppointmentResponse */ public function addAppointmentForServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id, \AmazonPHP\SellingPartner\Model\Services\AddAppointmentRequest $body) : \AmazonPHP\SellingPartner\Model\Services\SetAppointmentResponse { @@ -49,14 +51,13 @@ public function addAppointmentForServiceJobByServiceJobId(AccessToken $accessTok try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'addAppointmentForServiceJobByServiceJobId')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'addAppointmentForServiceJobByServiceJobId')) { $this->logger->log( $this->configuration->logLevel('Services', 'addAppointmentForServiceJobByServiceJobId'), 'Amazon Selling Partner API pre request', @@ -92,6 +93,8 @@ public function addAppointmentForServiceJobByServiceJobId(AccessToken $accessTok 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -252,6 +255,8 @@ public function addAppointmentForServiceJobByServiceJobIdRequest(AccessToken $ac * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesResponse */ public function assignAppointmentResources(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesRequest $body) : \AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesResponse { @@ -261,14 +266,13 @@ public function assignAppointmentResources(AccessToken $accessToken, string $reg try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'assignAppointmentResources')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'assignAppointmentResources')) { $this->logger->log( $this->configuration->logLevel('Services', 'assignAppointmentResources'), 'Amazon Selling Partner API pre request', @@ -304,6 +308,8 @@ public function assignAppointmentResources(AccessToken $accessToken, string $reg 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -487,6 +493,8 @@ public function assignAppointmentResourcesRequest(AccessToken $accessToken, stri * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\CancelReservationResponse */ public function cancelReservation(AccessToken $accessToken, string $region, string $reservation_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Services\CancelReservationResponse { @@ -496,14 +504,13 @@ public function cancelReservation(AccessToken $accessToken, string $region, stri try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'cancelReservation')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'cancelReservation')) { $this->logger->log( $this->configuration->logLevel('Services', 'cancelReservation'), 'Amazon Selling Partner API pre request', @@ -539,6 +546,8 @@ public function cancelReservation(AccessToken $accessToken, string $region, stri 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -703,6 +712,8 @@ public function cancelReservationRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\CancelServiceJobByServiceJobIdResponse */ public function cancelServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id, string $cancellation_reason_code) : \AmazonPHP\SellingPartner\Model\Services\CancelServiceJobByServiceJobIdResponse { @@ -712,14 +723,13 @@ public function cancelServiceJobByServiceJobId(AccessToken $accessToken, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'cancelServiceJobByServiceJobId')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'cancelServiceJobByServiceJobId')) { $this->logger->log( $this->configuration->logLevel('Services', 'cancelServiceJobByServiceJobId'), 'Amazon Selling Partner API pre request', @@ -755,6 +765,8 @@ public function cancelServiceJobByServiceJobId(AccessToken $accessToken, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -926,6 +938,8 @@ public function cancelServiceJobByServiceJobIdRequest(AccessToken $accessToken, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\CompleteServiceJobByServiceJobIdResponse */ public function completeServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id) : \AmazonPHP\SellingPartner\Model\Services\CompleteServiceJobByServiceJobIdResponse { @@ -935,14 +949,13 @@ public function completeServiceJobByServiceJobId(AccessToken $accessToken, strin try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'completeServiceJobByServiceJobId')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'completeServiceJobByServiceJobId')) { $this->logger->log( $this->configuration->logLevel('Services', 'completeServiceJobByServiceJobId'), 'Amazon Selling Partner API pre request', @@ -978,6 +991,8 @@ public function completeServiceJobByServiceJobId(AccessToken $accessToken, strin 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1121,6 +1136,8 @@ public function completeServiceJobByServiceJobIdRequest(AccessToken $accessToken * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\CreateReservationResponse */ public function createReservation(AccessToken $accessToken, string $region, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\CreateReservationRequest $body) : \AmazonPHP\SellingPartner\Model\Services\CreateReservationResponse { @@ -1130,14 +1147,13 @@ public function createReservation(AccessToken $accessToken, string $region, arra try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'createReservation')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'createReservation')) { $this->logger->log( $this->configuration->logLevel('Services', 'createReservation'), 'Amazon Selling Partner API pre request', @@ -1173,6 +1189,8 @@ public function createReservation(AccessToken $accessToken, string $region, arra 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1327,6 +1345,8 @@ public function createReservationRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\CreateServiceDocumentUploadDestination */ public function createServiceDocumentUploadDestination(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Services\ServiceUploadDocument $body) : \AmazonPHP\SellingPartner\Model\Services\CreateServiceDocumentUploadDestination { @@ -1336,14 +1356,13 @@ public function createServiceDocumentUploadDestination(AccessToken $accessToken, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'createServiceDocumentUploadDestination')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'createServiceDocumentUploadDestination')) { $this->logger->log( $this->configuration->logLevel('Services', 'createServiceDocumentUploadDestination'), 'Amazon Selling Partner API pre request', @@ -1379,6 +1398,8 @@ public function createServiceDocumentUploadDestination(AccessToken $accessToken, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1516,6 +1537,8 @@ public function createServiceDocumentUploadDestinationRequest(AccessToken $acces * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\GetAppointmentSlotsResponse */ public function getAppointmentSlots(AccessToken $accessToken, string $region, string $asin, string $store_id, array $marketplace_ids, ?string $start_time = null, ?string $end_time = null) : \AmazonPHP\SellingPartner\Model\Services\GetAppointmentSlotsResponse { @@ -1525,14 +1548,13 @@ public function getAppointmentSlots(AccessToken $accessToken, string $region, st try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'getAppointmentSlots')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'getAppointmentSlots')) { $this->logger->log( $this->configuration->logLevel('Services', 'getAppointmentSlots'), 'Amazon Selling Partner API pre request', @@ -1568,6 +1590,8 @@ public function getAppointmentSlots(AccessToken $accessToken, string $region, st 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1766,6 +1790,8 @@ public function getAppointmentSlotsRequest(AccessToken $accessToken, string $reg * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\GetAppointmentSlotsResponse */ public function getAppointmmentSlotsByJobId(AccessToken $accessToken, string $region, string $service_job_id, array $marketplace_ids, ?string $start_time = null, ?string $end_time = null) : \AmazonPHP\SellingPartner\Model\Services\GetAppointmentSlotsResponse { @@ -1775,14 +1801,13 @@ public function getAppointmmentSlotsByJobId(AccessToken $accessToken, string $re try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'getAppointmmentSlotsByJobId')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'getAppointmmentSlotsByJobId')) { $this->logger->log( $this->configuration->logLevel('Services', 'getAppointmmentSlotsByJobId'), 'Amazon Selling Partner API pre request', @@ -1818,6 +1843,8 @@ public function getAppointmmentSlotsByJobId(AccessToken $accessToken, string $re 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2002,6 +2029,8 @@ public function getAppointmmentSlotsByJobIdRequest(AccessToken $accessToken, str * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacity */ public function getFixedSlotCapacity(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacityQuery $body, ?string $next_page_token = null) : \AmazonPHP\SellingPartner\Model\Services\FixedSlotCapacity { @@ -2011,14 +2040,13 @@ public function getFixedSlotCapacity(AccessToken $accessToken, string $region, s try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'getFixedSlotCapacity')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'getFixedSlotCapacity')) { $this->logger->log( $this->configuration->logLevel('Services', 'getFixedSlotCapacity'), 'Amazon Selling Partner API pre request', @@ -2054,6 +2082,8 @@ public function getFixedSlotCapacity(AccessToken $accessToken, string $region, s 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2245,6 +2275,8 @@ public function getFixedSlotCapacityRequest(AccessToken $accessToken, string $re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacity */ public function getRangeSlotCapacity(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacityQuery $body, ?string $next_page_token = null) : \AmazonPHP\SellingPartner\Model\Services\RangeSlotCapacity { @@ -2254,14 +2286,13 @@ public function getRangeSlotCapacity(AccessToken $accessToken, string $region, s try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'getRangeSlotCapacity')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'getRangeSlotCapacity')) { $this->logger->log( $this->configuration->logLevel('Services', 'getRangeSlotCapacity'), 'Amazon Selling Partner API pre request', @@ -2297,6 +2328,8 @@ public function getRangeSlotCapacity(AccessToken $accessToken, string $region, s 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2485,6 +2518,8 @@ public function getRangeSlotCapacityRequest(AccessToken $accessToken, string $re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\GetServiceJobByServiceJobIdResponse */ public function getServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id) : \AmazonPHP\SellingPartner\Model\Services\GetServiceJobByServiceJobIdResponse { @@ -2494,14 +2529,13 @@ public function getServiceJobByServiceJobId(AccessToken $accessToken, string $re try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'getServiceJobByServiceJobId')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'getServiceJobByServiceJobId')) { $this->logger->log( $this->configuration->logLevel('Services', 'getServiceJobByServiceJobId'), 'Amazon Selling Partner API pre request', @@ -2537,6 +2571,8 @@ public function getServiceJobByServiceJobId(AccessToken $accessToken, string $re 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -2694,6 +2730,8 @@ public function getServiceJobByServiceJobIdRequest(AccessToken $accessToken, str * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\GetServiceJobsResponse */ public function getServiceJobs(AccessToken $accessToken, string $region, array $marketplace_ids, ?array $service_order_ids = null, ?array $service_job_status = null, ?string $page_token = null, int $page_size = 20, ?string $sort_field = null, ?string $sort_order = null, ?string $created_after = null, ?string $created_before = null, ?string $last_updated_after = null, ?string $last_updated_before = null, ?string $schedule_start_date = null, ?string $schedule_end_date = null, ?array $asins = null, ?array $required_skills = null, ?array $store_ids = null) : \AmazonPHP\SellingPartner\Model\Services\GetServiceJobsResponse { @@ -2703,14 +2741,13 @@ public function getServiceJobs(AccessToken $accessToken, string $region, array $ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'getServiceJobs')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'getServiceJobs')) { $this->logger->log( $this->configuration->logLevel('Services', 'getServiceJobs'), 'Amazon Selling Partner API pre request', @@ -2746,6 +2783,8 @@ public function getServiceJobs(AccessToken $accessToken, string $region, array $ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -3061,6 +3100,8 @@ public function getServiceJobsRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\SetAppointmentResponse */ public function rescheduleAppointmentForServiceJobByServiceJobId(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\RescheduleAppointmentRequest $body) : \AmazonPHP\SellingPartner\Model\Services\SetAppointmentResponse { @@ -3070,14 +3111,13 @@ public function rescheduleAppointmentForServiceJobByServiceJobId(AccessToken $ac try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'rescheduleAppointmentForServiceJobByServiceJobId')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'rescheduleAppointmentForServiceJobByServiceJobId')) { $this->logger->log( $this->configuration->logLevel('Services', 'rescheduleAppointmentForServiceJobByServiceJobId'), 'Amazon Selling Partner API pre request', @@ -3113,6 +3153,8 @@ public function rescheduleAppointmentForServiceJobByServiceJobId(AccessToken $ac 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -3297,6 +3339,8 @@ public function rescheduleAppointmentForServiceJobByServiceJobIdRequest(AccessTo * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return string */ public function setAppointmentFulfillmentData(AccessToken $accessToken, string $region, string $service_job_id, string $appointment_id, \AmazonPHP\SellingPartner\Model\Services\SetAppointmentFulfillmentDataRequest $body) : string { @@ -3306,14 +3350,13 @@ public function setAppointmentFulfillmentData(AccessToken $accessToken, string $ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'setAppointmentFulfillmentData')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'setAppointmentFulfillmentData')) { $this->logger->log( $this->configuration->logLevel('Services', 'setAppointmentFulfillmentData'), 'Amazon Selling Partner API pre request', @@ -3349,6 +3392,8 @@ public function setAppointmentFulfillmentData(AccessToken $accessToken, string $ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -3533,6 +3578,8 @@ public function setAppointmentFulfillmentDataRequest(AccessToken $accessToken, s * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\UpdateReservationResponse */ public function updateReservation(AccessToken $accessToken, string $region, string $reservation_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\UpdateReservationRequest $body) : \AmazonPHP\SellingPartner\Model\Services\UpdateReservationResponse { @@ -3542,14 +3589,13 @@ public function updateReservation(AccessToken $accessToken, string $region, stri try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'updateReservation')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'updateReservation')) { $this->logger->log( $this->configuration->logLevel('Services', 'updateReservation'), 'Amazon Selling Partner API pre request', @@ -3585,6 +3631,8 @@ public function updateReservation(AccessToken $accessToken, string $region, stri 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -3766,6 +3814,8 @@ public function updateReservationRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleResponse */ public function updateSchedule(AccessToken $accessToken, string $region, string $resource_id, array $marketplace_ids, \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleRequest $body) : \AmazonPHP\SellingPartner\Model\Services\UpdateScheduleResponse { @@ -3775,14 +3825,13 @@ public function updateSchedule(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Services', 'updateSchedule')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Services', 'updateSchedule')) { $this->logger->log( $this->configuration->logLevel('Services', 'updateSchedule'), 'Amazon Selling Partner API pre request', @@ -3818,6 +3867,8 @@ public function updateSchedule(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDK.php b/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDK.php index 4ac044889..978558d71 100644 --- a/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ShipmentApi/OrdersSDK.php @@ -49,14 +49,13 @@ public function updateShipmentStatus(AccessToken $accessToken, string $region, s try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Orders', 'updateShipmentStatus')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Orders', 'updateShipmentStatus')) { $this->logger->log( $this->configuration->logLevel('Orders', 'updateShipmentStatus'), 'Amazon Selling Partner API pre request', @@ -92,6 +91,8 @@ public function updateShipmentStatus(AccessToken $accessToken, string $region, s 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDK.php b/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDK.php index 3cc8b99c7..d5fa62cb7 100644 --- a/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ShipmentInvoiceApi/ShipmentInvoicingSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\GetInvoiceStatusResponse */ public function getInvoiceStatus(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\GetInvoiceStatusResponse { @@ -48,14 +50,13 @@ public function getInvoiceStatus(AccessToken $accessToken, string $region, strin try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ShipmentInvoicing', 'getInvoiceStatus')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ShipmentInvoicing', 'getInvoiceStatus')) { $this->logger->log( $this->configuration->logLevel('ShipmentInvoicing', 'getInvoiceStatus'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function getInvoiceStatus(AccessToken $accessToken, string $region, strin 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -225,6 +228,8 @@ public function getInvoiceStatusRequest(AccessToken $accessToken, string $region * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\GetShipmentDetailsResponse */ public function getShipmentDetails(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\GetShipmentDetailsResponse { @@ -234,14 +239,13 @@ public function getShipmentDetails(AccessToken $accessToken, string $region, str try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ShipmentInvoicing', 'getShipmentDetails')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ShipmentInvoicing', 'getShipmentDetails')) { $this->logger->log( $this->configuration->logLevel('ShipmentInvoicing', 'getShipmentDetails'), 'Amazon Selling Partner API pre request', @@ -277,6 +281,8 @@ public function getShipmentDetails(AccessToken $accessToken, string $region, str 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -412,6 +418,8 @@ public function getShipmentDetailsRequest(AccessToken $accessToken, string $regi * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceResponse */ public function submitInvoice(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceRequest $body) : \AmazonPHP\SellingPartner\Model\ShipmentInvoicing\SubmitInvoiceResponse { @@ -421,14 +429,13 @@ public function submitInvoice(AccessToken $accessToken, string $region, string $ try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('ShipmentInvoicing', 'submitInvoice')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('ShipmentInvoicing', 'submitInvoice')) { $this->logger->log( $this->configuration->logLevel('ShipmentInvoicing', 'submitInvoice'), 'Amazon Selling Partner API pre request', @@ -464,6 +471,8 @@ public function submitInvoice(AccessToken $accessToken, string $region, string $ 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDK.php b/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDK.php index de76db064..374f33f8d 100644 --- a/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/ShippingApi/ShippingSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\CancelShipmentResponse */ public function cancelShipment(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\Shipping\CancelShipmentResponse { @@ -48,14 +50,13 @@ public function cancelShipment(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Shipping', 'cancelShipment')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Shipping', 'cancelShipment')) { $this->logger->log( $this->configuration->logLevel('Shipping', 'cancelShipment'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function cancelShipment(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -225,6 +228,8 @@ public function cancelShipmentRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentResponse */ public function createShipment(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentRequest $body) : \AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentResponse { @@ -234,14 +239,13 @@ public function createShipment(AccessToken $accessToken, string $region, \Amazon try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Shipping', 'createShipment')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Shipping', 'createShipment')) { $this->logger->log( $this->configuration->logLevel('Shipping', 'createShipment'), 'Amazon Selling Partner API pre request', @@ -277,6 +281,8 @@ public function createShipment(AccessToken $accessToken, string $region, \Amazon 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -408,6 +414,8 @@ public function createShipmentRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\GetAccountResponse */ public function getAccount(AccessToken $accessToken, string $region) : \AmazonPHP\SellingPartner\Model\Shipping\GetAccountResponse { @@ -417,14 +425,13 @@ public function getAccount(AccessToken $accessToken, string $region) : \AmazonPH try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Shipping', 'getAccount')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Shipping', 'getAccount')) { $this->logger->log( $this->configuration->logLevel('Shipping', 'getAccount'), 'Amazon Selling Partner API pre request', @@ -460,6 +467,8 @@ public function getAccount(AccessToken $accessToken, string $region) : \AmazonPH 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -576,6 +585,8 @@ public function getAccountRequest(AccessToken $accessToken, string $region) : Re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\GetRatesResponse */ public function getRates(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\GetRatesRequest $body) : \AmazonPHP\SellingPartner\Model\Shipping\GetRatesResponse { @@ -585,14 +596,13 @@ public function getRates(AccessToken $accessToken, string $region, \AmazonPHP\Se try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Shipping', 'getRates')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Shipping', 'getRates')) { $this->logger->log( $this->configuration->logLevel('Shipping', 'getRates'), 'Amazon Selling Partner API pre request', @@ -628,6 +638,8 @@ public function getRates(AccessToken $accessToken, string $region, \AmazonPHP\Se 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -761,6 +773,8 @@ public function getRatesRequest(AccessToken $accessToken, string $region, \Amazo * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\GetShipmentResponse */ public function getShipment(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\Shipping\GetShipmentResponse { @@ -770,14 +784,13 @@ public function getShipment(AccessToken $accessToken, string $region, string $sh try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Shipping', 'getShipment')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Shipping', 'getShipment')) { $this->logger->log( $this->configuration->logLevel('Shipping', 'getShipment'), 'Amazon Selling Partner API pre request', @@ -813,6 +826,8 @@ public function getShipment(AccessToken $accessToken, string $region, string $sh 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -947,6 +962,8 @@ public function getShipmentRequest(AccessToken $accessToken, string $region, str * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\GetTrackingInformationResponse */ public function getTrackingInformation(AccessToken $accessToken, string $region, string $tracking_id) : \AmazonPHP\SellingPartner\Model\Shipping\GetTrackingInformationResponse { @@ -956,14 +973,13 @@ public function getTrackingInformation(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Shipping', 'getTrackingInformation')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Shipping', 'getTrackingInformation')) { $this->logger->log( $this->configuration->logLevel('Shipping', 'getTrackingInformation'), 'Amazon Selling Partner API pre request', @@ -999,6 +1015,8 @@ public function getTrackingInformation(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1134,6 +1152,8 @@ public function getTrackingInformationRequest(AccessToken $accessToken, string $ * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsResponse */ public function purchaseLabels(AccessToken $accessToken, string $region, string $shipment_id, \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsRequest $body) : \AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsResponse { @@ -1143,14 +1163,13 @@ public function purchaseLabels(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Shipping', 'purchaseLabels')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Shipping', 'purchaseLabels')) { $this->logger->log( $this->configuration->logLevel('Shipping', 'purchaseLabels'), 'Amazon Selling Partner API pre request', @@ -1186,6 +1205,8 @@ public function purchaseLabels(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1335,6 +1356,8 @@ public function purchaseLabelsRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentResponse */ public function purchaseShipment(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentRequest $body) : \AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentResponse { @@ -1344,14 +1367,13 @@ public function purchaseShipment(AccessToken $accessToken, string $region, \Amaz try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Shipping', 'purchaseShipment')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Shipping', 'purchaseShipment')) { $this->logger->log( $this->configuration->logLevel('Shipping', 'purchaseShipment'), 'Amazon Selling Partner API pre request', @@ -1387,6 +1409,8 @@ public function purchaseShipment(AccessToken $accessToken, string $region, \Amaz 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -1522,6 +1546,8 @@ public function purchaseShipmentRequest(AccessToken $accessToken, string $region * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelResponse */ public function retrieveShippingLabel(AccessToken $accessToken, string $region, string $shipment_id, string $tracking_id, \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelRequest $body) : \AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelResponse { @@ -1531,14 +1557,13 @@ public function retrieveShippingLabel(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Shipping', 'retrieveShippingLabel')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Shipping', 'retrieveShippingLabel')) { $this->logger->log( $this->configuration->logLevel('Shipping', 'retrieveShippingLabel'), 'Amazon Selling Partner API pre request', @@ -1574,6 +1599,8 @@ public function retrieveShippingLabel(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDK.php b/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDK.php index 65dbd48ba..b146b22c8 100644 --- a/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDK.php @@ -49,14 +49,13 @@ public function deleteSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToke try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FBASmallAndLight', 'deleteSmallAndLightEnrollmentBySellerSKU')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FBASmallAndLight', 'deleteSmallAndLightEnrollmentBySellerSKU')) { $this->logger->log( $this->configuration->logLevel('FBASmallAndLight', 'deleteSmallAndLightEnrollmentBySellerSKU'), 'Amazon Selling Partner API pre request', @@ -92,6 +91,8 @@ public function deleteSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToke 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -242,6 +243,8 @@ public function deleteSmallAndLightEnrollmentBySellerSKURequest(AccessToken $acc * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEligibility */ public function getSmallAndLightEligibilityBySellerSKU(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEligibility { @@ -251,14 +254,13 @@ public function getSmallAndLightEligibilityBySellerSKU(AccessToken $accessToken, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FBASmallAndLight', 'getSmallAndLightEligibilityBySellerSKU')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FBASmallAndLight', 'getSmallAndLightEligibilityBySellerSKU')) { $this->logger->log( $this->configuration->logLevel('FBASmallAndLight', 'getSmallAndLightEligibilityBySellerSKU'), 'Amazon Selling Partner API pre request', @@ -294,6 +296,8 @@ public function getSmallAndLightEligibilityBySellerSKU(AccessToken $accessToken, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -449,6 +453,8 @@ public function getSmallAndLightEligibilityBySellerSKURequest(AccessToken $acces * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEnrollment */ public function getSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEnrollment { @@ -458,14 +464,13 @@ public function getSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FBASmallAndLight', 'getSmallAndLightEnrollmentBySellerSKU')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FBASmallAndLight', 'getSmallAndLightEnrollmentBySellerSKU')) { $this->logger->log( $this->configuration->logLevel('FBASmallAndLight', 'getSmallAndLightEnrollmentBySellerSKU'), 'Amazon Selling Partner API pre request', @@ -501,6 +506,8 @@ public function getSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -655,6 +662,8 @@ public function getSmallAndLightEnrollmentBySellerSKURequest(AccessToken $access * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviews */ public function getSmallAndLightFeePreview(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviewRequest $body) : \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightFeePreviews { @@ -664,14 +673,13 @@ public function getSmallAndLightFeePreview(AccessToken $accessToken, string $reg try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FBASmallAndLight', 'getSmallAndLightFeePreview')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FBASmallAndLight', 'getSmallAndLightFeePreview')) { $this->logger->log( $this->configuration->logLevel('FBASmallAndLight', 'getSmallAndLightFeePreview'), 'Amazon Selling Partner API pre request', @@ -707,6 +715,8 @@ public function getSmallAndLightFeePreview(AccessToken $accessToken, string $reg 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -841,6 +851,8 @@ public function getSmallAndLightFeePreviewRequest(AccessToken $accessToken, stri * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEnrollment */ public function putSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, string $region, string $seller_sku, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEnrollment { @@ -850,14 +862,13 @@ public function putSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('FBASmallAndLight', 'putSmallAndLightEnrollmentBySellerSKU')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('FBASmallAndLight', 'putSmallAndLightEnrollmentBySellerSKU')) { $this->logger->log( $this->configuration->logLevel('FBASmallAndLight', 'putSmallAndLightEnrollmentBySellerSKU'), 'Amazon Selling Partner API pre request', @@ -893,6 +904,8 @@ public function putSmallAndLightEnrollmentBySellerSKU(AccessToken $accessToken, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDK.php b/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDK.php index 50a4cdcbc..18a1942cb 100644 --- a/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDK.php @@ -40,6 +40,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Solicitations\CreateProductReviewAndSellerFeedbackSolicitationResponse */ public function createProductReviewAndSellerFeedbackSolicitation(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Solicitations\CreateProductReviewAndSellerFeedbackSolicitationResponse { @@ -49,14 +51,13 @@ public function createProductReviewAndSellerFeedbackSolicitation(AccessToken $ac try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Solicitations', 'createProductReviewAndSellerFeedbackSolicitation')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Solicitations', 'createProductReviewAndSellerFeedbackSolicitation')) { $this->logger->log( $this->configuration->logLevel('Solicitations', 'createProductReviewAndSellerFeedbackSolicitation'), 'Amazon Selling Partner API pre request', @@ -92,6 +93,8 @@ public function createProductReviewAndSellerFeedbackSolicitation(AccessToken $ac 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -247,6 +250,8 @@ public function createProductReviewAndSellerFeedbackSolicitationRequest(AccessTo * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Solicitations\GetSolicitationActionsForOrderResponse */ public function getSolicitationActionsForOrder(AccessToken $accessToken, string $region, string $amazon_order_id, array $marketplace_ids) : \AmazonPHP\SellingPartner\Model\Solicitations\GetSolicitationActionsForOrderResponse { @@ -256,14 +261,13 @@ public function getSolicitationActionsForOrder(AccessToken $accessToken, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Solicitations', 'getSolicitationActionsForOrder')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Solicitations', 'getSolicitationActionsForOrder')) { $this->logger->log( $this->configuration->logLevel('Solicitations', 'getSolicitationActionsForOrder'), 'Amazon Selling Partner API pre request', @@ -299,6 +303,8 @@ public function getSolicitationActionsForOrder(AccessToken $accessToken, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDK.php b/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDK.php index cb8702918..c81424621 100644 --- a/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenResponse */ public function createRestrictedDataToken(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenRequest $body) : \AmazonPHP\SellingPartner\Model\Tokens\CreateRestrictedDataTokenResponse { @@ -48,14 +50,13 @@ public function createRestrictedDataToken(AccessToken $accessToken, string $regi try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Tokens', 'createRestrictedDataToken')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Tokens', 'createRestrictedDataToken')) { $this->logger->log( $this->configuration->logLevel('Tokens', 'createRestrictedDataToken'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function createRestrictedDataToken(AccessToken $accessToken, string $regi 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDK.php b/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDK.php index aad24bba9..4506555a7 100644 --- a/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDK.php +++ b/src/AmazonPHP/SellingPartner/Api/UpdateInventoryApi/VendorDirectFulfillmentInventorySDK.php @@ -40,6 +40,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateResponse */ public function submitInventoryUpdate(AccessToken $accessToken, string $region, string $warehouse_id, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\SubmitInventoryUpdateResponse { @@ -49,14 +51,13 @@ public function submitInventoryUpdate(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentInventory', 'submitInventoryUpdate')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentInventory', 'submitInventoryUpdate')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentInventory', 'submitInventoryUpdate'), 'Amazon Selling Partner API pre request', @@ -92,6 +93,8 @@ public function submitInventoryUpdate(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDK.php b/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDK.php index 86b24cde3..28103f312 100644 --- a/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDK.php @@ -42,6 +42,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\Uploads\CreateUploadDestinationResponse */ public function createUploadDestinationForResource(AccessToken $accessToken, string $region, array $marketplace_ids, string $content_md5, string $resource, ?string $content_type = null) : \AmazonPHP\SellingPartner\Model\Uploads\CreateUploadDestinationResponse { @@ -51,14 +53,13 @@ public function createUploadDestinationForResource(AccessToken $accessToken, str try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('Uploads', 'createUploadDestinationForResource')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('Uploads', 'createUploadDestinationForResource')) { $this->logger->log( $this->configuration->logLevel('Uploads', 'createUploadDestinationForResource'), 'Amazon Selling Partner API pre request', @@ -94,6 +95,8 @@ public function createUploadDestinationForResource(AccessToken $accessToken, str 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDK.php index e97a3fafe..61aaed683 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorInvoiceApi/VendorDirectFulfillmentPaymentsSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceResponse */ public function submitInvoice(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\SubmitInvoiceResponse { @@ -48,14 +50,13 @@ public function submitInvoice(AccessToken $accessToken, string $region, \AmazonP try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentPayments', 'submitInvoice')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentPayments', 'submitInvoice')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentPayments', 'submitInvoice'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function submitInvoice(AccessToken $accessToken, string $region, \AmazonP 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDK.php index 26b5ca606..27e8d65c8 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorDirectFulfillmentOrdersSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Order */ public function getOrder(AccessToken $accessToken, string $region, string $purchase_order_number) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Order { @@ -48,14 +50,13 @@ public function getOrder(AccessToken $accessToken, string $region, string $purch try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentOrders', 'getOrder')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentOrders', 'getOrder')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentOrders', 'getOrder'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function getOrder(AccessToken $accessToken, string $region, string $purch 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -232,6 +235,8 @@ public function getOrderRequest(AccessToken $accessToken, string $region, string * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\OrderList */ public function getOrders(AccessToken $accessToken, string $region, \DateTimeInterface $created_after, \DateTimeInterface $created_before, ?string $ship_from_party_id = null, ?string $status = null, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, bool $include_details = true) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\OrderList { @@ -241,14 +246,13 @@ public function getOrders(AccessToken $accessToken, string $region, \DateTimeInt try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentOrders', 'getOrders')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentOrders', 'getOrders')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentOrders', 'getOrders'), 'Amazon Selling Partner API pre request', @@ -284,6 +288,8 @@ public function getOrders(AccessToken $accessToken, string $region, \DateTimeInt 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -495,6 +501,8 @@ public function getOrdersRequest(AccessToken $accessToken, string $region, \Date * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\TransactionId */ public function submitAcknowledgement(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\SubmitAcknowledgementRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\TransactionId { @@ -504,14 +512,13 @@ public function submitAcknowledgement(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentOrders', 'submitAcknowledgement')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentOrders', 'submitAcknowledgement')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentOrders', 'submitAcknowledgement'), 'Amazon Selling Partner API pre request', @@ -547,6 +554,8 @@ public function submitAcknowledgement(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDK.php index eab5b3787..0618d2042 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrderResponse */ public function getPurchaseOrder(AccessToken $accessToken, string $region, string $purchase_order_number) : \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrderResponse { @@ -48,14 +50,13 @@ public function getPurchaseOrder(AccessToken $accessToken, string $region, strin try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorOrders', 'getPurchaseOrder')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorOrders', 'getPurchaseOrder')) { $this->logger->log( $this->configuration->logLevel('VendorOrders', 'getPurchaseOrder'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function getPurchaseOrder(AccessToken $accessToken, string $region, strin 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -236,6 +239,8 @@ public function getPurchaseOrderRequest(AccessToken $accessToken, string $region * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrdersResponse */ public function getPurchaseOrders(AccessToken $accessToken, string $region, ?int $limit = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?string $sort_order = null, ?string $next_token = null, ?bool $include_details = null, ?\DateTimeInterface $changed_after = null, ?\DateTimeInterface $changed_before = null, ?string $po_item_state = null, ?bool $is_po_changed = null, ?string $purchase_order_state = null, ?string $ordering_vendor_code = null) : \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrdersResponse { @@ -245,14 +250,13 @@ public function getPurchaseOrders(AccessToken $accessToken, string $region, ?int try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorOrders', 'getPurchaseOrders')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorOrders', 'getPurchaseOrders')) { $this->logger->log( $this->configuration->logLevel('VendorOrders', 'getPurchaseOrders'), 'Amazon Selling Partner API pre request', @@ -288,6 +292,8 @@ public function getPurchaseOrders(AccessToken $accessToken, string $region, ?int 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -534,6 +540,8 @@ public function getPurchaseOrdersRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrdersStatusResponse */ public function getPurchaseOrdersStatus(AccessToken $accessToken, string $region, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?\DateTimeInterface $updated_after = null, ?\DateTimeInterface $updated_before = null, ?string $purchase_order_number = null, ?string $purchase_order_status = null, ?string $item_confirmation_status = null, ?string $item_receive_status = null, ?string $ordering_vendor_code = null, ?string $ship_to_party_id = null) : \AmazonPHP\SellingPartner\Model\VendorOrders\GetPurchaseOrdersStatusResponse { @@ -543,14 +551,13 @@ public function getPurchaseOrdersStatus(AccessToken $accessToken, string $region try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorOrders', 'getPurchaseOrdersStatus')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorOrders', 'getPurchaseOrdersStatus')) { $this->logger->log( $this->configuration->logLevel('VendorOrders', 'getPurchaseOrdersStatus'), 'Amazon Selling Partner API pre request', @@ -586,6 +593,8 @@ public function getPurchaseOrdersStatus(AccessToken $accessToken, string $region 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -829,6 +838,8 @@ public function getPurchaseOrdersStatusRequest(AccessToken $accessToken, string * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementResponse */ public function submitAcknowledgement(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementRequest $body) : \AmazonPHP\SellingPartner\Model\VendorOrders\SubmitAcknowledgementResponse { @@ -838,14 +849,13 @@ public function submitAcknowledgement(AccessToken $accessToken, string $region, try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorOrders', 'submitAcknowledgement')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorOrders', 'submitAcknowledgement')) { $this->logger->log( $this->configuration->logLevel('VendorOrders', 'submitAcknowledgement'), 'Amazon Selling Partner API pre request', @@ -881,6 +891,8 @@ public function submitAcknowledgement(AccessToken $accessToken, string $region, 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDK.php index 4530e647b..a3b3e7f9f 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesResponse */ public function submitInvoices(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesRequest $body) : \AmazonPHP\SellingPartner\Model\VendorInvoices\SubmitInvoicesResponse { @@ -48,14 +50,13 @@ public function submitInvoices(AccessToken $accessToken, string $region, \Amazon try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorInvoices', 'submitInvoices')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorInvoices', 'submitInvoices')) { $this->logger->log( $this->configuration->logLevel('VendorInvoices', 'submitInvoices'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function submitInvoices(AccessToken $accessToken, string $region, \Amazon 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorDirectFulfillmentShippingSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorDirectFulfillmentShippingSDK.php index 81b9ad10a..8e8b2e79f 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorDirectFulfillmentShippingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorDirectFulfillmentShippingSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PackingSlip */ public function getPackingSlip(AccessToken $accessToken, string $region, string $purchase_order_number) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PackingSlip { @@ -48,14 +50,13 @@ public function getPackingSlip(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getPackingSlip')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getPackingSlip')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentShipping', 'getPackingSlip'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function getPackingSlip(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -234,6 +237,8 @@ public function getPackingSlipRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PackingSlipList */ public function getPackingSlips(AccessToken $accessToken, string $region, \DateTimeInterface $created_after, \DateTimeInterface $created_before, ?string $ship_from_party_id = null, ?int $limit = null, string $sort_order = 'ASC', ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PackingSlipList { @@ -243,14 +248,13 @@ public function getPackingSlips(AccessToken $accessToken, string $region, \DateT try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getPackingSlips')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getPackingSlips')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentShipping', 'getPackingSlips'), 'Amazon Selling Partner API pre request', @@ -286,6 +290,8 @@ public function getPackingSlips(AccessToken $accessToken, string $region, \DateT 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -479,6 +485,8 @@ public function getPackingSlipsRequest(AccessToken $accessToken, string $region, * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\TransactionReference */ public function submitShipmentConfirmations(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\SubmitShipmentConfirmationsRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\TransactionReference { @@ -488,14 +496,13 @@ public function submitShipmentConfirmations(AccessToken $accessToken, string $re try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'submitShipmentConfirmations')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'submitShipmentConfirmations')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentShipping', 'submitShipmentConfirmations'), 'Amazon Selling Partner API pre request', @@ -531,6 +538,8 @@ public function submitShipmentConfirmations(AccessToken $accessToken, string $re 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -664,6 +673,8 @@ public function submitShipmentConfirmationsRequest(AccessToken $accessToken, str * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\TransactionReference */ public function submitShipmentStatusUpdates(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\SubmitShipmentStatusUpdatesRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\TransactionReference { @@ -673,14 +684,13 @@ public function submitShipmentStatusUpdates(AccessToken $accessToken, string $re try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'submitShipmentStatusUpdates')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'submitShipmentStatusUpdates')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentShipping', 'submitShipmentStatusUpdates'), 'Amazon Selling Partner API pre request', @@ -716,6 +726,8 @@ public function submitShipmentStatusUpdates(AccessToken $accessToken, string $re 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDK.php index 5ebaba0b4..6106a0f95 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDK.php @@ -32,6 +32,686 @@ public function __construct(private readonly ClientInterface $client, private re { } + /** + * Operation getShipmentDetails. + * + * @param null|int $limit The limit to the number of records returned. Default value is 50 records. (optional) + * @param null|string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) + * @param null|string $next_token Used for pagination when there are more shipments than the specified result size limit. (optional) + * @param null|\DateTimeInterface $created_after Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $created_before Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_confirmed_before Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_confirmed_after Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $package_label_created_before Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $package_label_created_after Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipped_before Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipped_after Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $estimated_delivery_before Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $estimated_delivery_after Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_delivery_before Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_delivery_after Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $requested_pick_up_before Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $requested_pick_up_after Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $scheduled_pick_up_before Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $scheduled_pick_up_after Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|string $current_shipment_status Get Shipment Details by passing Current shipment status. (optional) + * @param null|string $vendor_shipment_identifier Get Shipment Details by passing Vendor Shipment ID (optional) + * @param null|string $buyer_reference_number Get Shipment Details by passing buyer Reference ID (optional) + * @param null|string $buyer_warehouse_code Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. (optional) + * @param null|string $seller_warehouse_code Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. (optional) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\GetShipmentDetailsResponse + */ + public function getShipmentDetails(AccessToken $accessToken, string $region, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?\DateTimeInterface $shipment_confirmed_before = null, ?\DateTimeInterface $shipment_confirmed_after = null, ?\DateTimeInterface $package_label_created_before = null, ?\DateTimeInterface $package_label_created_after = null, ?\DateTimeInterface $shipped_before = null, ?\DateTimeInterface $shipped_after = null, ?\DateTimeInterface $estimated_delivery_before = null, ?\DateTimeInterface $estimated_delivery_after = null, ?\DateTimeInterface $shipment_delivery_before = null, ?\DateTimeInterface $shipment_delivery_after = null, ?\DateTimeInterface $requested_pick_up_before = null, ?\DateTimeInterface $requested_pick_up_after = null, ?\DateTimeInterface $scheduled_pick_up_before = null, ?\DateTimeInterface $scheduled_pick_up_after = null, ?string $current_shipment_status = null, ?string $vendor_shipment_identifier = null, ?string $buyer_reference_number = null, ?string $buyer_warehouse_code = null, ?string $seller_warehouse_code = null) : \AmazonPHP\SellingPartner\Model\VendorShipments\GetShipmentDetailsResponse + { + $request = $this->getShipmentDetailsRequest($accessToken, $region, $limit, $sort_order, $next_token, $created_after, $created_before, $shipment_confirmed_before, $shipment_confirmed_after, $package_label_created_before, $package_label_created_after, $shipped_before, $shipped_after, $estimated_delivery_before, $estimated_delivery_after, $shipment_delivery_before, $shipment_delivery_after, $requested_pick_up_before, $requested_pick_up_after, $scheduled_pick_up_before, $scheduled_pick_up_after, $current_shipment_status, $vendor_shipment_identifier, $buyer_reference_number, $buyer_warehouse_code, $seller_warehouse_code); + + $this->configuration->extensions()->preRequest('VendorShipments', 'getShipmentDetails', $request); + + try { + $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + + if ($this->configuration->loggingEnabled('VendorShipments', 'getShipmentDetails')) { + $this->logger->log( + $this->configuration->logLevel('VendorShipments', 'getShipmentDetails'), + 'Amazon Selling Partner API pre request', + [ + 'api' => 'VendorShipments', + 'operation' => 'getShipmentDetails', + 'request_correlation_id' => $correlationId, + 'request_body' => (string) $sanitizedRequest->getBody(), + 'request_headers' => $sanitizedRequest->getHeaders(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + ] + ); + } + + $response = $this->client->sendRequest($request); + + $this->configuration->extensions()->postRequest('VendorShipments', 'getShipmentDetails', $request, $response); + + if ($this->configuration->loggingEnabled('VendorShipments', 'getShipmentDetails')) { + $sanitizedResponse = $response; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedResponse = $sanitizedResponse->withoutHeader($sensitiveHeader); + } + + $this->logger->log( + $this->configuration->logLevel('VendorShipments', 'getShipmentDetails'), + 'Amazon Selling Partner API post request', + [ + 'api' => 'VendorShipments', + 'operation' => 'getShipmentDetails', + 'response_correlation_id' => $correlationId, + 'response_body' => (string) $sanitizedResponse->getBody(), + 'response_headers' => $sanitizedResponse->getHeaders(), + 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), + ] + ); + } + } catch (ClientExceptionInterface $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null, + $e + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + \sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return ObjectSerializer::deserialize( + $this->configuration, + (string) $response->getBody(), + '\AmazonPHP\SellingPartner\Model\VendorShipments\GetShipmentDetailsResponse', + [] + ); + } + + /** + * Create request for operation 'getShipmentDetails'. + * + * @param null|int $limit The limit to the number of records returned. Default value is 50 records. (optional) + * @param null|string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) + * @param null|string $next_token Used for pagination when there are more shipments than the specified result size limit. (optional) + * @param null|\DateTimeInterface $created_after Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $created_before Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_confirmed_before Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_confirmed_after Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $package_label_created_before Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $package_label_created_after Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipped_before Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipped_after Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $estimated_delivery_before Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $estimated_delivery_after Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_delivery_before Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_delivery_after Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $requested_pick_up_before Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $requested_pick_up_after Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $scheduled_pick_up_before Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $scheduled_pick_up_after Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|string $current_shipment_status Get Shipment Details by passing Current shipment status. (optional) + * @param null|string $vendor_shipment_identifier Get Shipment Details by passing Vendor Shipment ID (optional) + * @param null|string $buyer_reference_number Get Shipment Details by passing buyer Reference ID (optional) + * @param null|string $buyer_warehouse_code Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. (optional) + * @param null|string $seller_warehouse_code Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. (optional) + * + * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException + */ + public function getShipmentDetailsRequest(AccessToken $accessToken, string $region, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?\DateTimeInterface $shipment_confirmed_before = null, ?\DateTimeInterface $shipment_confirmed_after = null, ?\DateTimeInterface $package_label_created_before = null, ?\DateTimeInterface $package_label_created_after = null, ?\DateTimeInterface $shipped_before = null, ?\DateTimeInterface $shipped_after = null, ?\DateTimeInterface $estimated_delivery_before = null, ?\DateTimeInterface $estimated_delivery_after = null, ?\DateTimeInterface $shipment_delivery_before = null, ?\DateTimeInterface $shipment_delivery_after = null, ?\DateTimeInterface $requested_pick_up_before = null, ?\DateTimeInterface $requested_pick_up_after = null, ?\DateTimeInterface $scheduled_pick_up_before = null, ?\DateTimeInterface $scheduled_pick_up_after = null, ?string $current_shipment_status = null, ?string $vendor_shipment_identifier = null, ?string $buyer_reference_number = null, ?string $buyer_warehouse_code = null, ?string $seller_warehouse_code = null) : RequestInterface + { + if ($limit !== null && $limit > 50) { + throw new InvalidArgumentException('invalid value for "$limit" when calling VendorShippingApi.getShipmentDetails, must be smaller than or equal to 50.'); + } + + if ($limit !== null && $limit < 1) { + throw new InvalidArgumentException('invalid value for "$limit" when calling VendorShippingApi.getShipmentDetails, must be bigger than or equal to 1.'); + } + + $resourcePath = '/vendor/shipping/v1/shipments'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $multipart = false; + $query = ''; + + // query params + if (\is_array($limit)) { + $limit = ObjectSerializer::serializeCollection($limit, '', true); + } + + if ($limit !== null) { + $queryParams['limit'] = ObjectSerializer::toString($limit); + } + // query params + if (\is_array($sort_order)) { + $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); + } + + if ($sort_order !== null) { + $queryParams['sortOrder'] = ObjectSerializer::toString($sort_order); + } + // query params + if (\is_array($next_token)) { + $next_token = ObjectSerializer::serializeCollection($next_token, '', true); + } + + if ($next_token !== null) { + $queryParams['nextToken'] = ObjectSerializer::toString($next_token); + } + // query params + if (\is_array($created_after)) { + $created_after = ObjectSerializer::serializeCollection($created_after, '', true); + } + + if ($created_after !== null) { + $queryParams['createdAfter'] = ObjectSerializer::toString($created_after); + } + // query params + if (\is_array($created_before)) { + $created_before = ObjectSerializer::serializeCollection($created_before, '', true); + } + + if ($created_before !== null) { + $queryParams['createdBefore'] = ObjectSerializer::toString($created_before); + } + // query params + if (\is_array($shipment_confirmed_before)) { + $shipment_confirmed_before = ObjectSerializer::serializeCollection($shipment_confirmed_before, '', true); + } + + if ($shipment_confirmed_before !== null) { + $queryParams['shipmentConfirmedBefore'] = ObjectSerializer::toString($shipment_confirmed_before); + } + // query params + if (\is_array($shipment_confirmed_after)) { + $shipment_confirmed_after = ObjectSerializer::serializeCollection($shipment_confirmed_after, '', true); + } + + if ($shipment_confirmed_after !== null) { + $queryParams['shipmentConfirmedAfter'] = ObjectSerializer::toString($shipment_confirmed_after); + } + // query params + if (\is_array($package_label_created_before)) { + $package_label_created_before = ObjectSerializer::serializeCollection($package_label_created_before, '', true); + } + + if ($package_label_created_before !== null) { + $queryParams['packageLabelCreatedBefore'] = ObjectSerializer::toString($package_label_created_before); + } + // query params + if (\is_array($package_label_created_after)) { + $package_label_created_after = ObjectSerializer::serializeCollection($package_label_created_after, '', true); + } + + if ($package_label_created_after !== null) { + $queryParams['packageLabelCreatedAfter'] = ObjectSerializer::toString($package_label_created_after); + } + // query params + if (\is_array($shipped_before)) { + $shipped_before = ObjectSerializer::serializeCollection($shipped_before, '', true); + } + + if ($shipped_before !== null) { + $queryParams['shippedBefore'] = ObjectSerializer::toString($shipped_before); + } + // query params + if (\is_array($shipped_after)) { + $shipped_after = ObjectSerializer::serializeCollection($shipped_after, '', true); + } + + if ($shipped_after !== null) { + $queryParams['shippedAfter'] = ObjectSerializer::toString($shipped_after); + } + // query params + if (\is_array($estimated_delivery_before)) { + $estimated_delivery_before = ObjectSerializer::serializeCollection($estimated_delivery_before, '', true); + } + + if ($estimated_delivery_before !== null) { + $queryParams['estimatedDeliveryBefore'] = ObjectSerializer::toString($estimated_delivery_before); + } + // query params + if (\is_array($estimated_delivery_after)) { + $estimated_delivery_after = ObjectSerializer::serializeCollection($estimated_delivery_after, '', true); + } + + if ($estimated_delivery_after !== null) { + $queryParams['estimatedDeliveryAfter'] = ObjectSerializer::toString($estimated_delivery_after); + } + // query params + if (\is_array($shipment_delivery_before)) { + $shipment_delivery_before = ObjectSerializer::serializeCollection($shipment_delivery_before, '', true); + } + + if ($shipment_delivery_before !== null) { + $queryParams['shipmentDeliveryBefore'] = ObjectSerializer::toString($shipment_delivery_before); + } + // query params + if (\is_array($shipment_delivery_after)) { + $shipment_delivery_after = ObjectSerializer::serializeCollection($shipment_delivery_after, '', true); + } + + if ($shipment_delivery_after !== null) { + $queryParams['shipmentDeliveryAfter'] = ObjectSerializer::toString($shipment_delivery_after); + } + // query params + if (\is_array($requested_pick_up_before)) { + $requested_pick_up_before = ObjectSerializer::serializeCollection($requested_pick_up_before, '', true); + } + + if ($requested_pick_up_before !== null) { + $queryParams['requestedPickUpBefore'] = ObjectSerializer::toString($requested_pick_up_before); + } + // query params + if (\is_array($requested_pick_up_after)) { + $requested_pick_up_after = ObjectSerializer::serializeCollection($requested_pick_up_after, '', true); + } + + if ($requested_pick_up_after !== null) { + $queryParams['requestedPickUpAfter'] = ObjectSerializer::toString($requested_pick_up_after); + } + // query params + if (\is_array($scheduled_pick_up_before)) { + $scheduled_pick_up_before = ObjectSerializer::serializeCollection($scheduled_pick_up_before, '', true); + } + + if ($scheduled_pick_up_before !== null) { + $queryParams['scheduledPickUpBefore'] = ObjectSerializer::toString($scheduled_pick_up_before); + } + // query params + if (\is_array($scheduled_pick_up_after)) { + $scheduled_pick_up_after = ObjectSerializer::serializeCollection($scheduled_pick_up_after, '', true); + } + + if ($scheduled_pick_up_after !== null) { + $queryParams['scheduledPickUpAfter'] = ObjectSerializer::toString($scheduled_pick_up_after); + } + // query params + if (\is_array($current_shipment_status)) { + $current_shipment_status = ObjectSerializer::serializeCollection($current_shipment_status, '', true); + } + + if ($current_shipment_status !== null) { + $queryParams['currentShipmentStatus'] = ObjectSerializer::toString($current_shipment_status); + } + // query params + if (\is_array($vendor_shipment_identifier)) { + $vendor_shipment_identifier = ObjectSerializer::serializeCollection($vendor_shipment_identifier, '', true); + } + + if ($vendor_shipment_identifier !== null) { + $queryParams['vendorShipmentIdentifier'] = ObjectSerializer::toString($vendor_shipment_identifier); + } + // query params + if (\is_array($buyer_reference_number)) { + $buyer_reference_number = ObjectSerializer::serializeCollection($buyer_reference_number, '', true); + } + + if ($buyer_reference_number !== null) { + $queryParams['buyerReferenceNumber'] = ObjectSerializer::toString($buyer_reference_number); + } + // query params + if (\is_array($buyer_warehouse_code)) { + $buyer_warehouse_code = ObjectSerializer::serializeCollection($buyer_warehouse_code, '', true); + } + + if ($buyer_warehouse_code !== null) { + $queryParams['buyerWarehouseCode'] = ObjectSerializer::toString($buyer_warehouse_code); + } + // query params + if (\is_array($seller_warehouse_code)) { + $seller_warehouse_code = ObjectSerializer::serializeCollection($seller_warehouse_code, '', true); + } + + if ($seller_warehouse_code !== null) { + $queryParams['sellerWarehouseCode'] = ObjectSerializer::toString($seller_warehouse_code); + } + + if (\count($queryParams)) { + $query = \http_build_query($queryParams); + } + + if ($multipart) { + $headers = [ + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } else { + $headers = [ + 'content-type' => ['application/json'], + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } + + $request = $this->httpFactory->createRequest( + 'GET', + $this->configuration->apiURL($region) . $resourcePath . '?' . $query + ); + + // for model (json/xml) + if (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = \is_array($formParamValue) ? $formParamValue : [$formParamValue]; + + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem, + ]; + } + } + $request = $request->withParsedBody($multipartContents); + } elseif ($headers['content-type'] === ['application/json']) { + $request = $request->withBody($this->httpFactory->createStreamFromString(\json_encode($formParams, JSON_THROW_ON_ERROR))); + } else { + $request = $request->withParsedBody($formParams); + } + } + + foreach (\array_merge($headerParams, $headers) as $name => $header) { + $request = $request->withHeader($name, $header); + } + + return HttpSignatureHeaders::forConfig( + $this->configuration, + $accessToken, + $region, + $request + ); + } + + /** + * Operation getShipmentLabels. + * + * @param null|int $limit The limit to the number of records returned. Default value is 50 records. (optional) + * @param null|string $sort_order Sort in ascending or descending order by transport label creation date. (optional) + * @param null|string $next_token Used for pagination when there are more transport label than the specified result size limit. (optional) + * @param null|\DateTimeInterface $label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|string $buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. (optional) + * @param null|string $vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. (optional) + * @param null|string $seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. (optional) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\GetShipmentLabels + */ + public function getShipmentLabels(AccessToken $accessToken, string $region, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, ?\DateTimeInterface $label_created_after = null, ?\DateTimeInterface $labelcreated_before = null, ?string $buyer_reference_number = null, ?string $vendor_shipment_identifier = null, ?string $seller_warehouse_code = null) : \AmazonPHP\SellingPartner\Model\VendorShipments\GetShipmentLabels + { + $request = $this->getShipmentLabelsRequest($accessToken, $region, $limit, $sort_order, $next_token, $label_created_after, $labelcreated_before, $buyer_reference_number, $vendor_shipment_identifier, $seller_warehouse_code); + + $this->configuration->extensions()->preRequest('VendorShipments', 'getShipmentLabels', $request); + + try { + $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + + if ($this->configuration->loggingEnabled('VendorShipments', 'getShipmentLabels')) { + $this->logger->log( + $this->configuration->logLevel('VendorShipments', 'getShipmentLabels'), + 'Amazon Selling Partner API pre request', + [ + 'api' => 'VendorShipments', + 'operation' => 'getShipmentLabels', + 'request_correlation_id' => $correlationId, + 'request_body' => (string) $sanitizedRequest->getBody(), + 'request_headers' => $sanitizedRequest->getHeaders(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + ] + ); + } + + $response = $this->client->sendRequest($request); + + $this->configuration->extensions()->postRequest('VendorShipments', 'getShipmentLabels', $request, $response); + + if ($this->configuration->loggingEnabled('VendorShipments', 'getShipmentLabels')) { + $sanitizedResponse = $response; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedResponse = $sanitizedResponse->withoutHeader($sensitiveHeader); + } + + $this->logger->log( + $this->configuration->logLevel('VendorShipments', 'getShipmentLabels'), + 'Amazon Selling Partner API post request', + [ + 'api' => 'VendorShipments', + 'operation' => 'getShipmentLabels', + 'response_correlation_id' => $correlationId, + 'response_body' => (string) $sanitizedResponse->getBody(), + 'response_headers' => $sanitizedResponse->getHeaders(), + 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), + ] + ); + } + } catch (ClientExceptionInterface $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null, + $e + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + \sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return ObjectSerializer::deserialize( + $this->configuration, + (string) $response->getBody(), + '\AmazonPHP\SellingPartner\Model\VendorShipments\GetShipmentLabels', + [] + ); + } + + /** + * Create request for operation 'getShipmentLabels'. + * + * @param null|int $limit The limit to the number of records returned. Default value is 50 records. (optional) + * @param null|string $sort_order Sort in ascending or descending order by transport label creation date. (optional) + * @param null|string $next_token Used for pagination when there are more transport label than the specified result size limit. (optional) + * @param null|\DateTimeInterface $label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|string $buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. (optional) + * @param null|string $vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. (optional) + * @param null|string $seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. (optional) + * + * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException + */ + public function getShipmentLabelsRequest(AccessToken $accessToken, string $region, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, ?\DateTimeInterface $label_created_after = null, ?\DateTimeInterface $labelcreated_before = null, ?string $buyer_reference_number = null, ?string $vendor_shipment_identifier = null, ?string $seller_warehouse_code = null) : RequestInterface + { + if ($limit !== null && $limit > 50) { + throw new InvalidArgumentException('invalid value for "$limit" when calling VendorShippingApi.getShipmentLabels, must be smaller than or equal to 50.'); + } + + if ($limit !== null && $limit < 1) { + throw new InvalidArgumentException('invalid value for "$limit" when calling VendorShippingApi.getShipmentLabels, must be bigger than or equal to 1.'); + } + + $resourcePath = '/vendor/shipping/v1/transportLabels'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $multipart = false; + $query = ''; + + // query params + if (\is_array($limit)) { + $limit = ObjectSerializer::serializeCollection($limit, '', true); + } + + if ($limit !== null) { + $queryParams['limit'] = ObjectSerializer::toString($limit); + } + // query params + if (\is_array($sort_order)) { + $sort_order = ObjectSerializer::serializeCollection($sort_order, '', true); + } + + if ($sort_order !== null) { + $queryParams['sortOrder'] = ObjectSerializer::toString($sort_order); + } + // query params + if (\is_array($next_token)) { + $next_token = ObjectSerializer::serializeCollection($next_token, '', true); + } + + if ($next_token !== null) { + $queryParams['nextToken'] = ObjectSerializer::toString($next_token); + } + // query params + if (\is_array($label_created_after)) { + $label_created_after = ObjectSerializer::serializeCollection($label_created_after, '', true); + } + + if ($label_created_after !== null) { + $queryParams['labelCreatedAfter'] = ObjectSerializer::toString($label_created_after); + } + // query params + if (\is_array($labelcreated_before)) { + $labelcreated_before = ObjectSerializer::serializeCollection($labelcreated_before, '', true); + } + + if ($labelcreated_before !== null) { + $queryParams['labelcreatedBefore'] = ObjectSerializer::toString($labelcreated_before); + } + // query params + if (\is_array($buyer_reference_number)) { + $buyer_reference_number = ObjectSerializer::serializeCollection($buyer_reference_number, '', true); + } + + if ($buyer_reference_number !== null) { + $queryParams['buyerReferenceNumber'] = ObjectSerializer::toString($buyer_reference_number); + } + // query params + if (\is_array($vendor_shipment_identifier)) { + $vendor_shipment_identifier = ObjectSerializer::serializeCollection($vendor_shipment_identifier, '', true); + } + + if ($vendor_shipment_identifier !== null) { + $queryParams['vendorShipmentIdentifier'] = ObjectSerializer::toString($vendor_shipment_identifier); + } + // query params + if (\is_array($seller_warehouse_code)) { + $seller_warehouse_code = ObjectSerializer::serializeCollection($seller_warehouse_code, '', true); + } + + if ($seller_warehouse_code !== null) { + $queryParams['sellerWarehouseCode'] = ObjectSerializer::toString($seller_warehouse_code); + } + + if (\count($queryParams)) { + $query = \http_build_query($queryParams); + } + + if ($multipart) { + $headers = [ + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } else { + $headers = [ + 'content-type' => ['application/json'], + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } + + $request = $this->httpFactory->createRequest( + 'GET', + $this->configuration->apiURL($region) . $resourcePath . '?' . $query + ); + + // for model (json/xml) + if (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = \is_array($formParamValue) ? $formParamValue : [$formParamValue]; + + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem, + ]; + } + } + $request = $request->withParsedBody($multipartContents); + } elseif ($headers['content-type'] === ['application/json']) { + $request = $request->withBody($this->httpFactory->createStreamFromString(\json_encode($formParams, JSON_THROW_ON_ERROR))); + } else { + $request = $request->withParsedBody($formParams); + } + } + + foreach (\array_merge($headerParams, $headers) as $name => $header) { + $request = $request->withHeader($name, $header); + } + + return HttpSignatureHeaders::forConfig( + $this->configuration, + $accessToken, + $region, + $request + ); + } + /** * Operation submitShipmentConfirmations. * @@ -39,6 +719,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse */ public function submitShipmentConfirmations(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsRequest $body) : \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse { @@ -48,14 +730,13 @@ public function submitShipmentConfirmations(AccessToken $accessToken, string $re try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorShipments', 'submitShipmentConfirmations')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorShipments', 'submitShipmentConfirmations')) { $this->logger->log( $this->configuration->logLevel('VendorShipments', 'submitShipmentConfirmations'), 'Amazon Selling Partner API pre request', @@ -91,6 +772,8 @@ public function submitShipmentConfirmations(AccessToken $accessToken, string $re 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -216,4 +899,192 @@ public function submitShipmentConfirmationsRequest(AccessToken $accessToken, str $request ); } + + /** + * Operation submitShipments. + * + * @param \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipments $body body (required) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse + */ + public function submitShipments(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipments $body) : \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse + { + $request = $this->submitShipmentsRequest($accessToken, $region, $body); + + $this->configuration->extensions()->preRequest('VendorShipments', 'submitShipments', $request); + + try { + $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + + if ($this->configuration->loggingEnabled('VendorShipments', 'submitShipments')) { + $this->logger->log( + $this->configuration->logLevel('VendorShipments', 'submitShipments'), + 'Amazon Selling Partner API pre request', + [ + 'api' => 'VendorShipments', + 'operation' => 'submitShipments', + 'request_correlation_id' => $correlationId, + 'request_body' => (string) $sanitizedRequest->getBody(), + 'request_headers' => $sanitizedRequest->getHeaders(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + ] + ); + } + + $response = $this->client->sendRequest($request); + + $this->configuration->extensions()->postRequest('VendorShipments', 'submitShipments', $request, $response); + + if ($this->configuration->loggingEnabled('VendorShipments', 'submitShipments')) { + $sanitizedResponse = $response; + + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedResponse = $sanitizedResponse->withoutHeader($sensitiveHeader); + } + + $this->logger->log( + $this->configuration->logLevel('VendorShipments', 'submitShipments'), + 'Amazon Selling Partner API post request', + [ + 'api' => 'VendorShipments', + 'operation' => 'submitShipments', + 'response_correlation_id' => $correlationId, + 'response_body' => (string) $sanitizedResponse->getBody(), + 'response_headers' => $sanitizedResponse->getHeaders(), + 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), + ] + ); + } + } catch (ClientExceptionInterface $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null, + $e + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + \sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return ObjectSerializer::deserialize( + $this->configuration, + (string) $response->getBody(), + '\AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse', + [] + ); + } + + /** + * Create request for operation 'submitShipments'. + * + * @param \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipments $body (required) + * + * @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException + */ + public function submitShipmentsRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipments $body) : RequestInterface + { + // verify the required parameter 'body' is set + if ($body === null || (\is_array($body) && \count($body) === 0)) { + throw new InvalidArgumentException( + 'Missing the required parameter $body when calling submitShipments' + ); + } + + $resourcePath = '/vendor/shipping/v1/shipments'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $multipart = false; + $query = ''; + + if (\count($queryParams)) { + $query = \http_build_query($queryParams); + } + + if ($multipart) { + $headers = [ + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } else { + $headers = [ + 'content-type' => ['application/json'], + 'accept' => ['application/json'], + 'host' => [$this->configuration->apiHost($region)], + 'user-agent' => [$this->configuration->userAgent()], + ]; + } + + $request = $this->httpFactory->createRequest( + 'POST', + $this->configuration->apiURL($region) . $resourcePath . '?' . $query + ); + + // for model (json/xml) + if (isset($body)) { + if ($headers['content-type'] === ['application/json']) { + $httpBody = \json_encode(ObjectSerializer::sanitizeForSerialization($body), JSON_THROW_ON_ERROR); + } else { + $httpBody = $body; + } + + $request = $request->withBody($this->httpFactory->createStreamFromString($httpBody)); + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = \is_array($formParamValue) ? $formParamValue : [$formParamValue]; + + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem, + ]; + } + } + $request = $request->withParsedBody($multipartContents); + } elseif ($headers['content-type'] === ['application/json']) { + $request = $request->withBody($this->httpFactory->createStreamFromString(\json_encode($formParams, JSON_THROW_ON_ERROR))); + } else { + $request = $request->withParsedBody($formParams); + } + } + + foreach (\array_merge($headerParams, $headers) as $name => $header) { + $request = $request->withHeader($name, $header); + } + + return HttpSignatureHeaders::forConfig( + $this->configuration, + $accessToken, + $region, + $request + ); + } } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDKInterface.php b/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDKInterface.php index 958a960fb..dec1a93fb 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDKInterface.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorShippingApi/VendorShipmentsSDKInterface.php @@ -20,10 +20,76 @@ interface VendorShipmentsSDKInterface { public const API_NAME = 'VendorShipments'; + public const OPERATION_GETSHIPMENTDETAILS = 'getShipmentDetails'; + + public const OPERATION_GETSHIPMENTDETAILS_PATH = '/vendor/shipping/v1/shipments'; + + public const OPERATION_GETSHIPMENTLABELS = 'getShipmentLabels'; + + public const OPERATION_GETSHIPMENTLABELS_PATH = '/vendor/shipping/v1/transportLabels'; + public const OPERATION_SUBMITSHIPMENTCONFIRMATIONS = 'submitShipmentConfirmations'; public const OPERATION_SUBMITSHIPMENTCONFIRMATIONS_PATH = '/vendor/shipping/v1/shipmentConfirmations'; + public const OPERATION_SUBMITSHIPMENTS = 'submitShipments'; + + public const OPERATION_SUBMITSHIPMENTS_PATH = '/vendor/shipping/v1/shipments'; + + /** + * Operation getShipmentDetails. + * + * @param null|int $limit The limit to the number of records returned. Default value is 50 records. (optional) + * @param null|string $sort_order Sort in ascending or descending order by purchase order creation date. (optional) + * @param null|string $next_token Used for pagination when there are more shipments than the specified result size limit. (optional) + * @param null|\DateTimeInterface $created_after Get Shipment Details that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $created_before Get Shipment Details that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_confirmed_before Get Shipment Details by passing Shipment confirmed create Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_confirmed_after Get Shipment Details by passing Shipment confirmed create Date After. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $package_label_created_before Get Shipment Details by passing Package label create Date by buyer. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $package_label_created_after Get Shipment Details by passing Package label create Date After by buyer. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipped_before Get Shipment Details by passing Shipped Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipped_after Get Shipment Details by passing Shipped Date After. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $estimated_delivery_before Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $estimated_delivery_after Get Shipment Details by passing Estimated Delivery Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_delivery_before Get Shipment Details by passing Shipment Delivery Date Before. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $shipment_delivery_after Get Shipment Details by passing Shipment Delivery Date After. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $requested_pick_up_before Get Shipment Details by passing Before Requested pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $requested_pick_up_after Get Shipment Details by passing After Requested pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $scheduled_pick_up_before Get Shipment Details by passing Before scheduled pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $scheduled_pick_up_after Get Shipment Details by passing After Scheduled pickup date. Must be in ISO-8601 date/time format. (optional) + * @param null|string $current_shipment_status Get Shipment Details by passing Current shipment status. (optional) + * @param null|string $vendor_shipment_identifier Get Shipment Details by passing Vendor Shipment ID (optional) + * @param null|string $buyer_reference_number Get Shipment Details by passing buyer Reference ID (optional) + * @param null|string $buyer_warehouse_code Get Shipping Details based on buyer warehouse code. This value should be same as 'shipToParty.partyId' in the Shipment. (optional) + * @param null|string $seller_warehouse_code Get Shipping Details based on vendor warehouse code. This value should be same as 'sellingParty.partyId' in the Shipment. (optional) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\GetShipmentDetailsResponse + */ + public function getShipmentDetails(AccessToken $accessToken, string $region, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, ?\DateTimeInterface $created_after = null, ?\DateTimeInterface $created_before = null, ?\DateTimeInterface $shipment_confirmed_before = null, ?\DateTimeInterface $shipment_confirmed_after = null, ?\DateTimeInterface $package_label_created_before = null, ?\DateTimeInterface $package_label_created_after = null, ?\DateTimeInterface $shipped_before = null, ?\DateTimeInterface $shipped_after = null, ?\DateTimeInterface $estimated_delivery_before = null, ?\DateTimeInterface $estimated_delivery_after = null, ?\DateTimeInterface $shipment_delivery_before = null, ?\DateTimeInterface $shipment_delivery_after = null, ?\DateTimeInterface $requested_pick_up_before = null, ?\DateTimeInterface $requested_pick_up_after = null, ?\DateTimeInterface $scheduled_pick_up_before = null, ?\DateTimeInterface $scheduled_pick_up_after = null, ?string $current_shipment_status = null, ?string $vendor_shipment_identifier = null, ?string $buyer_reference_number = null, ?string $buyer_warehouse_code = null, ?string $seller_warehouse_code = null) : \AmazonPHP\SellingPartner\Model\VendorShipments\GetShipmentDetailsResponse; + + /** + * Operation getShipmentLabels. + * + * @param null|int $limit The limit to the number of records returned. Default value is 50 records. (optional) + * @param null|string $sort_order Sort in ascending or descending order by transport label creation date. (optional) + * @param null|string $next_token Used for pagination when there are more transport label than the specified result size limit. (optional) + * @param null|\DateTimeInterface $label_created_after transport Labels that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|\DateTimeInterface $labelcreated_before transport Labels that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. (optional) + * @param null|string $buyer_reference_number Get transport labels by passing Buyer Reference Number to retreive the corresponding transport label. (optional) + * @param null|string $vendor_shipment_identifier Get transport labels by passing Vendor Shipment ID to retreive the corresponding transport label. (optional) + * @param null|string $seller_warehouse_code Get Shipping labels based Vendor Warehouse code. This value should be same as 'shipFromParty.partyId' in the Shipment. (optional) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\GetShipmentLabels + */ + public function getShipmentLabels(AccessToken $accessToken, string $region, ?int $limit = null, ?string $sort_order = null, ?string $next_token = null, ?\DateTimeInterface $label_created_after = null, ?\DateTimeInterface $labelcreated_before = null, ?string $buyer_reference_number = null, ?string $vendor_shipment_identifier = null, ?string $seller_warehouse_code = null) : \AmazonPHP\SellingPartner\Model\VendorShipments\GetShipmentLabels; + /** * Operation submitShipmentConfirmations. * @@ -35,4 +101,16 @@ interface VendorShipmentsSDKInterface * @return \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse */ public function submitShipmentConfirmations(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsRequest $body) : \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse; + + /** + * Operation submitShipments. + * + * @param \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipments $body body (required) + * + * @throws ApiException on non-2xx response + * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse + */ + public function submitShipments(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipments $body) : \AmazonPHP\SellingPartner\Model\VendorShipments\SubmitShipmentConfirmationsResponse; } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDK.php index 20c6ecaa0..ec2c7bcc6 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorShippingLabelsApi/VendorDirectFulfillmentShippingSDK.php @@ -40,6 +40,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShippingLabel */ public function createShippingLabels(AccessToken $accessToken, string $region, string $purchase_order_number, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\CreateShippingLabelsRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShippingLabel { @@ -49,14 +51,13 @@ public function createShippingLabels(AccessToken $accessToken, string $region, s try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'createShippingLabels')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'createShippingLabels')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentShipping', 'createShippingLabels'), 'Amazon Selling Partner API pre request', @@ -92,6 +93,8 @@ public function createShippingLabels(AccessToken $accessToken, string $region, s 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -246,6 +249,8 @@ public function createShippingLabelsRequest(AccessToken $accessToken, string $re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShippingLabel */ public function getShippingLabel(AccessToken $accessToken, string $region, string $purchase_order_number) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShippingLabel { @@ -255,14 +260,13 @@ public function getShippingLabel(AccessToken $accessToken, string $region, strin try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getShippingLabel')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getShippingLabel')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentShipping', 'getShippingLabel'), 'Amazon Selling Partner API pre request', @@ -298,6 +302,8 @@ public function getShippingLabel(AccessToken $accessToken, string $region, strin 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -441,6 +447,8 @@ public function getShippingLabelRequest(AccessToken $accessToken, string $region * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShippingLabelList */ public function getShippingLabels(AccessToken $accessToken, string $region, \DateTimeInterface $created_after, \DateTimeInterface $created_before, ?string $ship_from_party_id = null, ?int $limit = null, string $sort_order = 'ASC', ?string $next_token = null) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShippingLabelList { @@ -450,14 +458,13 @@ public function getShippingLabels(AccessToken $accessToken, string $region, \Dat try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getShippingLabels')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'getShippingLabels')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentShipping', 'getShippingLabels'), 'Amazon Selling Partner API pre request', @@ -493,6 +500,8 @@ public function getShippingLabels(AccessToken $accessToken, string $region, \Dat 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } @@ -686,6 +695,8 @@ public function getShippingLabelsRequest(AccessToken $accessToken, string $regio * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\TransactionReference */ public function submitShippingLabelRequest(AccessToken $accessToken, string $region, \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\SubmitShippingLabelsRequest $body) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\TransactionReference { @@ -695,14 +706,13 @@ public function submitShippingLabelRequest(AccessToken $accessToken, string $reg try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'submitShippingLabelRequest')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentShipping', 'submitShippingLabelRequest')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentShipping', 'submitShippingLabelRequest'), 'Amazon Selling Partner API pre request', @@ -738,6 +748,8 @@ public function submitShippingLabelRequest(AccessToken $accessToken, string $reg 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDK.php index 277378861..caee03027 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorDirectFulfillmentTransactionsSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentTransactions\TransactionStatus */ public function getTransactionStatus(AccessToken $accessToken, string $region, string $transaction_id) : \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentTransactions\TransactionStatus { @@ -48,14 +50,13 @@ public function getTransactionStatus(AccessToken $accessToken, string $region, s try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorDirectFulfillmentTransactions', 'getTransactionStatus')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorDirectFulfillmentTransactions', 'getTransactionStatus')) { $this->logger->log( $this->configuration->logLevel('VendorDirectFulfillmentTransactions', 'getTransactionStatus'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function getTransactionStatus(AccessToken $accessToken, string $region, s 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDK.php b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDK.php index 4b55869db..ae339d08a 100644 --- a/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDK.php +++ b/src/AmazonPHP/SellingPartner/Api/VendorTransactionApi/VendorTransactionStatusSDK.php @@ -39,6 +39,8 @@ public function __construct(private readonly ClientInterface $client, private re * * @throws ApiException on non-2xx response * @throws InvalidArgumentException + * + * @return \AmazonPHP\SellingPartner\Model\VendorTransactionStatus\GetTransactionResponse */ public function getTransaction(AccessToken $accessToken, string $region, string $transaction_id) : \AmazonPHP\SellingPartner\Model\VendorTransactionStatus\GetTransactionResponse { @@ -48,14 +50,13 @@ public function getTransaction(AccessToken $accessToken, string $region, string try { $correlationId = $this->configuration->idGenerator()->generate(); + $sanitizedRequest = $request; - if ($this->configuration->loggingEnabled('VendorTransactionStatus', 'getTransaction')) { - $sanitizedRequest = $request; - - foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { - $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); - } + foreach ($this->configuration->loggingSkipHeaders() as $sensitiveHeader) { + $sanitizedRequest = $sanitizedRequest->withoutHeader($sensitiveHeader); + } + if ($this->configuration->loggingEnabled('VendorTransactionStatus', 'getTransaction')) { $this->logger->log( $this->configuration->logLevel('VendorTransactionStatus', 'getTransaction'), 'Amazon Selling Partner API pre request', @@ -91,6 +92,8 @@ public function getTransaction(AccessToken $accessToken, string $region, string 'response_body' => (string) $sanitizedResponse->getBody(), 'response_headers' => $sanitizedResponse->getHeaders(), 'response_status_code' => $sanitizedResponse->getStatusCode(), + 'request_uri' => (string) $sanitizedRequest->getUri(), + 'request_body' => (string) $sanitizedRequest->getBody(), ] ); } diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/AplusPaginatedResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/AplusPaginatedResponse.php index 9302491bd..e81740af0 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/AplusPaginatedResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/AplusPaginatedResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -214,6 +204,8 @@ public function setWarnings(?array $warnings) : self /** * Gets next_page_token. + * + * @return null|string */ public function getNextPageToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/AplusPaginatedResponseAllOf.php b/src/AmazonPHP/SellingPartner/Model/APlus/AplusPaginatedResponseAllOf.php index a95047b42..96b43fcc0 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/AplusPaginatedResponseAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/AplusPaginatedResponseAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets next_page_token. + * + * @return null|string */ public function getNextPageToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/AplusResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/AplusResponse.php index ae2d16c62..476ea53f0 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/AplusResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/AplusResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/AsinMetadata.php b/src/AmazonPHP/SellingPartner/Model/APlus/AsinMetadata.php index 4a87134a1..e4cdf1c47 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/AsinMetadata.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/AsinMetadata.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -232,6 +222,8 @@ public function validate() : void /** * Gets asin. + * + * @return string */ public function getAsin() : string { @@ -274,6 +266,8 @@ public function setBadgeSet(?array $badge_set) : self /** * Gets parent. + * + * @return null|string */ public function getParent() : ?string { @@ -294,6 +288,8 @@ public function setParent(?string $parent) : self /** * Gets title. + * + * @return null|string */ public function getTitle() : ?string { @@ -314,6 +310,8 @@ public function setTitle(?string $title) : self /** * Gets image_url. + * + * @return null|string */ public function getImageUrl() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ContentDocument.php b/src/AmazonPHP/SellingPartner/Model/APlus/ContentDocument.php index f81ce9cea..91d2c3599 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ContentDocument.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ContentDocument.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -246,6 +236,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -266,6 +258,8 @@ public function setName(string $name) : self /** * Gets content_type. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ContentType */ public function getContentType() : ContentType { @@ -286,6 +280,8 @@ public function setContentType(ContentType $content_type) : self /** * Gets content_sub_type. + * + * @return null|string */ public function getContentSubType() : ?string { @@ -306,6 +302,8 @@ public function setContentSubType(?string $content_sub_type) : self /** * Gets locale. + * + * @return string */ public function getLocale() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ContentMetadata.php b/src/AmazonPHP/SellingPartner/Model/APlus/ContentMetadata.php index 75d42d8e0..84235a83c 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ContentMetadata.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ContentMetadata.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -238,6 +228,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -258,6 +250,8 @@ public function setName(string $name) : self /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -278,6 +272,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets status. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ContentStatus */ public function getStatus() : ContentStatus { @@ -320,6 +316,8 @@ public function setBadgeSet(array $badge_set) : self /** * Gets update_time. + * + * @return \DateTimeInterface */ public function getUpdateTime() : \DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ContentMetadataRecord.php b/src/AmazonPHP/SellingPartner/Model/APlus/ContentMetadataRecord.php index 8c0048de0..00a236f08 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ContentMetadataRecord.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ContentMetadataRecord.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets content_reference_key. + * + * @return string */ public function getContentReferenceKey() : string { @@ -222,6 +214,8 @@ public function setContentReferenceKey(string $content_reference_key) : self /** * Gets content_metadata. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ContentMetadata */ public function getContentMetadata() : ContentMetadata { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ContentModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/ContentModule.php index c6c49767b..8d6268092 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ContentModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ContentModule.php @@ -194,8 +194,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -204,8 +202,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -215,8 +211,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -225,8 +219,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -235,8 +227,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -248,7 +238,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -336,6 +326,8 @@ public function validate() : void /** * Gets content_module_type. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ContentModuleType */ public function getContentModuleType() : ContentModuleType { @@ -356,6 +348,8 @@ public function setContentModuleType(ContentModuleType $content_module_type) : s /** * Gets standard_company_logo. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardCompanyLogoModule */ public function getStandardCompanyLogo() : ?StandardCompanyLogoModule { @@ -376,6 +370,8 @@ public function setStandardCompanyLogo(?StandardCompanyLogoModule $standard_comp /** * Gets standard_comparison_table. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardComparisonTableModule */ public function getStandardComparisonTable() : ?StandardComparisonTableModule { @@ -396,6 +392,8 @@ public function setStandardComparisonTable(?StandardComparisonTableModule $stand /** * Gets standard_four_image_text. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardFourImageTextModule */ public function getStandardFourImageText() : ?StandardFourImageTextModule { @@ -416,6 +414,8 @@ public function setStandardFourImageText(?StandardFourImageTextModule $standard_ /** * Gets standard_four_image_text_quadrant. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardFourImageTextQuadrantModule */ public function getStandardFourImageTextQuadrant() : ?StandardFourImageTextQuadrantModule { @@ -436,6 +436,8 @@ public function setStandardFourImageTextQuadrant(?StandardFourImageTextQuadrantM /** * Gets standard_header_image_text. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardHeaderImageTextModule */ public function getStandardHeaderImageText() : ?StandardHeaderImageTextModule { @@ -456,6 +458,8 @@ public function setStandardHeaderImageText(?StandardHeaderImageTextModule $stand /** * Gets standard_image_sidebar. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageSidebarModule */ public function getStandardImageSidebar() : ?StandardImageSidebarModule { @@ -476,6 +480,8 @@ public function setStandardImageSidebar(?StandardImageSidebarModule $standard_im /** * Gets standard_image_text_overlay. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextOverlayModule */ public function getStandardImageTextOverlay() : ?StandardImageTextOverlayModule { @@ -496,6 +502,8 @@ public function setStandardImageTextOverlay(?StandardImageTextOverlayModule $sta /** * Gets standard_multiple_image_text. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardMultipleImageTextModule */ public function getStandardMultipleImageText() : ?StandardMultipleImageTextModule { @@ -516,6 +524,8 @@ public function setStandardMultipleImageText(?StandardMultipleImageTextModule $s /** * Gets standard_product_description. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardProductDescriptionModule */ public function getStandardProductDescription() : ?StandardProductDescriptionModule { @@ -536,6 +546,8 @@ public function setStandardProductDescription(?StandardProductDescriptionModule /** * Gets standard_single_image_highlights. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardSingleImageHighlightsModule */ public function getStandardSingleImageHighlights() : ?StandardSingleImageHighlightsModule { @@ -556,6 +568,8 @@ public function setStandardSingleImageHighlights(?StandardSingleImageHighlightsM /** * Gets standard_single_image_specs_detail. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardSingleImageSpecsDetailModule */ public function getStandardSingleImageSpecsDetail() : ?StandardSingleImageSpecsDetailModule { @@ -576,6 +590,8 @@ public function setStandardSingleImageSpecsDetail(?StandardSingleImageSpecsDetai /** * Gets standard_single_side_image. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardSingleSideImageModule */ public function getStandardSingleSideImage() : ?StandardSingleSideImageModule { @@ -596,6 +612,8 @@ public function setStandardSingleSideImage(?StandardSingleSideImageModule $stand /** * Gets standard_tech_specs. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTechSpecsModule */ public function getStandardTechSpecs() : ?StandardTechSpecsModule { @@ -616,6 +634,8 @@ public function setStandardTechSpecs(?StandardTechSpecsModule $standard_tech_spe /** * Gets standard_text. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextModule */ public function getStandardText() : ?StandardTextModule { @@ -636,6 +656,8 @@ public function setStandardText(?StandardTextModule $standard_text) : self /** * Gets standard_three_image_text. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardThreeImageTextModule */ public function getStandardThreeImageText() : ?StandardThreeImageTextModule { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ContentRecord.php b/src/AmazonPHP/SellingPartner/Model/APlus/ContentRecord.php index 15677ce48..c36f0c834 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ContentRecord.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ContentRecord.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -210,6 +200,8 @@ public function validate() : void /** * Gets content_reference_key. + * + * @return string */ public function getContentReferenceKey() : string { @@ -230,6 +222,8 @@ public function setContentReferenceKey(string $content_reference_key) : self /** * Gets content_metadata. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\ContentMetadata */ public function getContentMetadata() : ?ContentMetadata { @@ -250,6 +244,8 @@ public function setContentMetadata(?ContentMetadata $content_metadata) : self /** * Gets content_document. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\ContentDocument */ public function getContentDocument() : ?ContentDocument { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/Decorator.php b/src/AmazonPHP/SellingPartner/Model/APlus/Decorator.php index 110cbbd77..e5bb2d84d 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/Decorator.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/Decorator.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets type. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\DecoratorType */ public function getType() : ?DecoratorType { @@ -244,6 +236,8 @@ public function setType(?DecoratorType $type) : self /** * Gets offset. + * + * @return null|int */ public function getOffset() : ?int { @@ -264,6 +258,8 @@ public function setOffset(?int $offset) : self /** * Gets length. + * + * @return null|int */ public function getLength() : ?int { @@ -284,6 +280,8 @@ public function setLength(?int $length) : self /** * Gets depth. + * + * @return null|int */ public function getDepth() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/Error.php b/src/AmazonPHP/SellingPartner/Model/APlus/Error.php index 3ce36a925..dc54a323d 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -214,6 +204,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -234,6 +226,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -254,6 +248,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/APlus/ErrorList.php index ff8c161e1..7f952c968 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/GetContentDocumentResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/GetContentDocumentResponse.php index 387c09631..48c656728 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/GetContentDocumentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/GetContentDocumentResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function setWarnings(?array $warnings) : self /** * Gets content_record. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ContentRecord */ public function getContentRecord() : ContentRecord { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/GetContentDocumentResponseAllOf.php b/src/AmazonPHP/SellingPartner/Model/APlus/GetContentDocumentResponseAllOf.php index 5dc869a8f..48a9a88b1 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/GetContentDocumentResponseAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/GetContentDocumentResponseAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,6 +178,8 @@ public function validate() : void /** * Gets content_record. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ContentRecord */ public function getContentRecord() : ContentRecord { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ImageComponent.php b/src/AmazonPHP/SellingPartner/Model/APlus/ImageComponent.php index 1ae7d93c6..37f988e4a 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ImageComponent.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ImageComponent.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -220,6 +210,8 @@ public function validate() : void /** * Gets upload_destination_id. + * + * @return string */ public function getUploadDestinationId() : string { @@ -240,6 +232,8 @@ public function setUploadDestinationId(string $upload_destination_id) : self /** * Gets image_crop_specification. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ImageCropSpecification */ public function getImageCropSpecification() : ImageCropSpecification { @@ -260,6 +254,8 @@ public function setImageCropSpecification(ImageCropSpecification $image_crop_spe /** * Gets alt_text. + * + * @return string */ public function getAltText() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ImageCropSpecification.php b/src/AmazonPHP/SellingPartner/Model/APlus/ImageCropSpecification.php index 1a412008f..85d215e00 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ImageCropSpecification.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ImageCropSpecification.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets size. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ImageDimensions */ public function getSize() : ImageDimensions { @@ -218,6 +210,8 @@ public function setSize(ImageDimensions $size) : self /** * Gets offset. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\ImageOffsets */ public function getOffset() : ?ImageOffsets { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ImageDimensions.php b/src/AmazonPHP/SellingPartner/Model/APlus/ImageDimensions.php index d61a304d7..109aa4252 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ImageDimensions.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ImageDimensions.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets width. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\IntegerWithUnits */ public function getWidth() : IntegerWithUnits { @@ -220,6 +212,8 @@ public function setWidth(IntegerWithUnits $width) : self /** * Gets height. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\IntegerWithUnits */ public function getHeight() : IntegerWithUnits { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ImageOffsets.php b/src/AmazonPHP/SellingPartner/Model/APlus/ImageOffsets.php index 11ef694b5..bf50c8bef 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ImageOffsets.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ImageOffsets.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets x. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\IntegerWithUnits */ public function getX() : IntegerWithUnits { @@ -220,6 +212,8 @@ public function setX(IntegerWithUnits $x) : self /** * Gets y. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\IntegerWithUnits */ public function getY() : IntegerWithUnits { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/IntegerWithUnits.php b/src/AmazonPHP/SellingPartner/Model/APlus/IntegerWithUnits.php index 694730883..5465f0b3f 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/IntegerWithUnits.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/IntegerWithUnits.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets value. + * + * @return int */ public function getValue() : int { @@ -216,6 +208,8 @@ public function setValue(int $value) : self /** * Gets units. + * + * @return string */ public function getUnits() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ListContentDocumentAsinRelationsResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/ListContentDocumentAsinRelationsResponse.php index 3173742f8..d0842ff84 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ListContentDocumentAsinRelationsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ListContentDocumentAsinRelationsResponse.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function setWarnings(?array $warnings) : self /** * Gets next_page_token. + * + * @return null|string */ public function getNextPageToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ListContentDocumentAsinRelationsResponseAllOf.php b/src/AmazonPHP/SellingPartner/Model/APlus/ListContentDocumentAsinRelationsResponseAllOf.php index fcc5cfc24..c6e141d16 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ListContentDocumentAsinRelationsResponseAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ListContentDocumentAsinRelationsResponseAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ParagraphComponent.php b/src/AmazonPHP/SellingPartner/Model/APlus/ParagraphComponent.php index 236887cba..4f8445cc4 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ParagraphComponent.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ParagraphComponent.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/PlainTextItem.php b/src/AmazonPHP/SellingPartner/Model/APlus/PlainTextItem.php index 87c04271b..66950eeae 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/PlainTextItem.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/PlainTextItem.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets position. + * + * @return int */ public function getPosition() : int { @@ -232,6 +224,8 @@ public function setPosition(int $position) : self /** * Gets value. + * + * @return string */ public function getValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentApprovalSubmissionResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentApprovalSubmissionResponse.php index 43d5e3e8c..e0c805bfc 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentApprovalSubmissionResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentApprovalSubmissionResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentAsinRelationsRequest.php b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentAsinRelationsRequest.php index 1e4fde44d..24fb1b650 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentAsinRelationsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentAsinRelationsRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentAsinRelationsResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentAsinRelationsResponse.php index 7331840f3..39ce7b4d3 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentAsinRelationsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentAsinRelationsResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentRequest.php b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentRequest.php index 7b1689d85..a8f3d7b08 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,6 +178,8 @@ public function validate() : void /** * Gets content_document. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ContentDocument */ public function getContentDocument() : ContentDocument { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentResponse.php index 385957b79..3d5c20557 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function setWarnings(?array $warnings) : self /** * Gets content_reference_key. + * + * @return string */ public function getContentReferenceKey() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentResponseAllOf.php b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentResponseAllOf.php index b5bbd20f4..fdbf71cc5 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentResponseAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentResponseAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -190,6 +180,8 @@ public function validate() : void /** * Gets content_reference_key. + * + * @return string */ public function getContentReferenceKey() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentSuspendSubmissionResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentSuspendSubmissionResponse.php index 3e76c7f9f..00294bc37 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentSuspendSubmissionResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/PostContentDocumentSuspendSubmissionResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/PublishRecord.php b/src/AmazonPHP/SellingPartner/Model/APlus/PublishRecord.php index 1038fee3c..e29523a71 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/PublishRecord.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/PublishRecord.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -252,6 +242,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -272,6 +264,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets locale. + * + * @return string */ public function getLocale() : string { @@ -292,6 +286,8 @@ public function setLocale(string $locale) : self /** * Gets asin. + * + * @return string */ public function getAsin() : string { @@ -312,6 +308,8 @@ public function setAsin(string $asin) : self /** * Gets content_type. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ContentType */ public function getContentType() : ContentType { @@ -332,6 +330,8 @@ public function setContentType(ContentType $content_type) : self /** * Gets content_sub_type. + * + * @return null|string */ public function getContentSubType() : ?string { @@ -352,6 +352,8 @@ public function setContentSubType(?string $content_sub_type) : self /** * Gets content_reference_key. + * + * @return string */ public function getContentReferenceKey() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentDocumentsResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentDocumentsResponse.php index d65ccba88..3662508f1 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentDocumentsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentDocumentsResponse.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function setWarnings(?array $warnings) : self /** * Gets next_page_token. + * + * @return null|string */ public function getNextPageToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentDocumentsResponseAllOf.php b/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentDocumentsResponseAllOf.php index 0bc6fca59..8d20dd967 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentDocumentsResponseAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentDocumentsResponseAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentPublishRecordsResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentPublishRecordsResponse.php index 203867c63..705345cbe 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentPublishRecordsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentPublishRecordsResponse.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function setWarnings(?array $warnings) : self /** * Gets next_page_token. + * + * @return null|string */ public function getNextPageToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentPublishRecordsResponseAllOf.php b/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentPublishRecordsResponseAllOf.php index 627966742..ad60b8a69 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentPublishRecordsResponseAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/SearchContentPublishRecordsResponseAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardCompanyLogoModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardCompanyLogoModule.php index 9e96d41e2..062d5cb34 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardCompanyLogoModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardCompanyLogoModule.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,6 +178,8 @@ public function validate() : void /** * Gets company_logo. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ImageComponent */ public function getCompanyLogo() : ImageComponent { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardComparisonProductBlock.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardComparisonProductBlock.php index 69878d2d7..26222a231 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardComparisonProductBlock.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardComparisonProductBlock.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -248,6 +238,8 @@ public function validate() : void /** * Gets position. + * + * @return int */ public function getPosition() : int { @@ -268,6 +260,8 @@ public function setPosition(int $position) : self /** * Gets image. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\ImageComponent */ public function getImage() : ?ImageComponent { @@ -288,6 +282,8 @@ public function setImage(?ImageComponent $image) : self /** * Gets title. + * + * @return null|string */ public function getTitle() : ?string { @@ -308,6 +304,8 @@ public function setTitle(?string $title) : self /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -328,6 +326,8 @@ public function setAsin(?string $asin) : self /** * Gets highlight. + * + * @return null|bool */ public function getHighlight() : ?bool { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardComparisonTableModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardComparisonTableModule.php index 79bd83a48..9dcd578e1 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardComparisonTableModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardComparisonTableModule.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardFourImageTextModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardFourImageTextModule.php index f7a784f32..f956699ef 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardFourImageTextModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardFourImageTextModule.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -226,6 +216,8 @@ public function validate() : void /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -246,6 +238,8 @@ public function setHeadline(?TextComponent $headline) : self /** * Gets block1. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock1() : ?StandardImageTextBlock { @@ -266,6 +260,8 @@ public function setBlock1(?StandardImageTextBlock $block1) : self /** * Gets block2. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock2() : ?StandardImageTextBlock { @@ -286,6 +282,8 @@ public function setBlock2(?StandardImageTextBlock $block2) : self /** * Gets block3. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock3() : ?StandardImageTextBlock { @@ -306,6 +304,8 @@ public function setBlock3(?StandardImageTextBlock $block3) : self /** * Gets block4. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock4() : ?StandardImageTextBlock { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardFourImageTextQuadrantModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardFourImageTextQuadrantModule.php index f15270cdc..a7f75e2f6 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardFourImageTextQuadrantModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardFourImageTextQuadrantModule.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets block1. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock1() : StandardImageTextBlock { @@ -244,6 +236,8 @@ public function setBlock1(StandardImageTextBlock $block1) : self /** * Gets block2. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock2() : StandardImageTextBlock { @@ -264,6 +258,8 @@ public function setBlock2(StandardImageTextBlock $block2) : self /** * Gets block3. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock3() : StandardImageTextBlock { @@ -284,6 +280,8 @@ public function setBlock3(StandardImageTextBlock $block3) : self /** * Gets block4. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock4() : StandardImageTextBlock { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardHeaderImageTextModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardHeaderImageTextModule.php index 25a063450..7ecc50e0b 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardHeaderImageTextModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardHeaderImageTextModule.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -216,6 +208,8 @@ public function setHeadline(?TextComponent $headline) : self /** * Gets block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock() : ?StandardImageTextBlock { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardHeaderTextListBlock.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardHeaderTextListBlock.php index aa5c4533a..fe6dc7991 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardHeaderTextListBlock.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardHeaderTextListBlock.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -216,6 +208,8 @@ public function setHeadline(?TextComponent $headline) : self /** * Gets block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextListBlock */ public function getBlock() : ?StandardTextListBlock { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageCaptionBlock.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageCaptionBlock.php index 84c987766..db7d5949a 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageCaptionBlock.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageCaptionBlock.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets image. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\ImageComponent */ public function getImage() : ?ImageComponent { @@ -216,6 +208,8 @@ public function setImage(?ImageComponent $image) : self /** * Gets caption. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getCaption() : ?TextComponent { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageSidebarModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageSidebarModule.php index 36e027fd2..d79bc7bae 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageSidebarModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageSidebarModule.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -236,6 +226,8 @@ public function validate() : void /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -256,6 +248,8 @@ public function setHeadline(?TextComponent $headline) : self /** * Gets image_caption_block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageCaptionBlock */ public function getImageCaptionBlock() : ?StandardImageCaptionBlock { @@ -276,6 +270,8 @@ public function setImageCaptionBlock(?StandardImageCaptionBlock $image_caption_b /** * Gets description_text_block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextBlock */ public function getDescriptionTextBlock() : ?StandardTextBlock { @@ -296,6 +292,8 @@ public function setDescriptionTextBlock(?StandardTextBlock $description_text_blo /** * Gets description_list_block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextListBlock */ public function getDescriptionListBlock() : ?StandardTextListBlock { @@ -316,6 +314,8 @@ public function setDescriptionListBlock(?StandardTextListBlock $description_list /** * Gets sidebar_image_text_block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getSidebarImageTextBlock() : ?StandardImageTextBlock { @@ -336,6 +336,8 @@ public function setSidebarImageTextBlock(?StandardImageTextBlock $sidebar_image_ /** * Gets sidebar_list_block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextListBlock */ public function getSidebarListBlock() : ?StandardTextListBlock { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextBlock.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextBlock.php index f274de429..0c77fa046 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextBlock.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextBlock.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets image. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\ImageComponent */ public function getImage() : ?ImageComponent { @@ -226,6 +218,8 @@ public function setImage(?ImageComponent $image) : self /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -246,6 +240,8 @@ public function setHeadline(?TextComponent $headline) : self /** * Gets body. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\ParagraphComponent */ public function getBody() : ?ParagraphComponent { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextCaptionBlock.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextCaptionBlock.php index 92ce73cbf..17e50f11f 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextCaptionBlock.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextCaptionBlock.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock() : ?StandardImageTextBlock { @@ -216,6 +208,8 @@ public function setBlock(?StandardImageTextBlock $block) : self /** * Gets caption. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getCaption() : ?TextComponent { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextOverlayModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextOverlayModule.php index beb55b71b..075225d24 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextOverlayModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardImageTextOverlayModule.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets overlay_color_type. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ColorType */ public function getOverlayColorType() : ColorType { @@ -216,6 +208,8 @@ public function setOverlayColorType(ColorType $overlay_color_type) : self /** * Gets block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock() : ?StandardImageTextBlock { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardMultipleImageTextModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardMultipleImageTextModule.php index 6a5dc9a8d..9ed48751c 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardMultipleImageTextModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardMultipleImageTextModule.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardProductDescriptionModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardProductDescriptionModule.php index e3d3b4d28..194ab4eb7 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardProductDescriptionModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardProductDescriptionModule.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,6 +178,8 @@ public function validate() : void /** * Gets body. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ParagraphComponent */ public function getBody() : ParagraphComponent { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleImageHighlightsModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleImageHighlightsModule.php index 27a04fe28..a475b33f7 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleImageHighlightsModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleImageHighlightsModule.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -236,6 +226,8 @@ public function validate() : void /** * Gets image. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\ImageComponent */ public function getImage() : ?ImageComponent { @@ -256,6 +248,8 @@ public function setImage(?ImageComponent $image) : self /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -276,6 +270,8 @@ public function setHeadline(?TextComponent $headline) : self /** * Gets text_block1. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextBlock */ public function getTextBlock1() : ?StandardTextBlock { @@ -296,6 +292,8 @@ public function setTextBlock1(?StandardTextBlock $text_block1) : self /** * Gets text_block2. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextBlock */ public function getTextBlock2() : ?StandardTextBlock { @@ -316,6 +314,8 @@ public function setTextBlock2(?StandardTextBlock $text_block2) : self /** * Gets text_block3. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextBlock */ public function getTextBlock3() : ?StandardTextBlock { @@ -336,6 +336,8 @@ public function setTextBlock3(?StandardTextBlock $text_block3) : self /** * Gets bulleted_list_block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardHeaderTextListBlock */ public function getBulletedListBlock() : ?StandardHeaderTextListBlock { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleImageSpecsDetailModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleImageSpecsDetailModule.php index 29962c255..23ca8bff7 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleImageSpecsDetailModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleImageSpecsDetailModule.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -256,6 +246,8 @@ public function validate() : void /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -276,6 +268,8 @@ public function setHeadline(?TextComponent $headline) : self /** * Gets image. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\ImageComponent */ public function getImage() : ?ImageComponent { @@ -296,6 +290,8 @@ public function setImage(?ImageComponent $image) : self /** * Gets description_headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getDescriptionHeadline() : ?TextComponent { @@ -316,6 +312,8 @@ public function setDescriptionHeadline(?TextComponent $description_headline) : s /** * Gets description_block1. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextBlock */ public function getDescriptionBlock1() : ?StandardTextBlock { @@ -336,6 +334,8 @@ public function setDescriptionBlock1(?StandardTextBlock $description_block1) : s /** * Gets description_block2. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextBlock */ public function getDescriptionBlock2() : ?StandardTextBlock { @@ -356,6 +356,8 @@ public function setDescriptionBlock2(?StandardTextBlock $description_block2) : s /** * Gets specification_headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getSpecificationHeadline() : ?TextComponent { @@ -376,6 +378,8 @@ public function setSpecificationHeadline(?TextComponent $specification_headline) /** * Gets specification_list_block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardHeaderTextListBlock */ public function getSpecificationListBlock() : ?StandardHeaderTextListBlock { @@ -396,6 +400,8 @@ public function setSpecificationListBlock(?StandardHeaderTextListBlock $specific /** * Gets specification_text_block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardTextBlock */ public function getSpecificationTextBlock() : ?StandardTextBlock { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleSideImageModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleSideImageModule.php index f3d99e389..91db6076d 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleSideImageModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardSingleSideImageModule.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets image_position_type. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\PositionType */ public function getImagePositionType() : PositionType { @@ -216,6 +208,8 @@ public function setImagePositionType(PositionType $image_position_type) : self /** * Gets block. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock() : ?StandardImageTextBlock { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardTechSpecsModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardTechSpecsModule.php index 4e3a77817..4f8dd2384 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardTechSpecsModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardTechSpecsModule.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function validate() : void /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -260,6 +252,8 @@ public function setSpecificationList(array $specification_list) : self /** * Gets table_count. + * + * @return null|int */ public function getTableCount() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextBlock.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextBlock.php index 52c2bb11e..a1a1e77f0 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextBlock.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextBlock.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -216,6 +208,8 @@ public function setHeadline(?TextComponent $headline) : self /** * Gets body. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\ParagraphComponent */ public function getBody() : ?ParagraphComponent { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextListBlock.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextListBlock.php index fffa0c927..cd7789e1d 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextListBlock.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextListBlock.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextModule.php index b8166c7fb..817b9b869 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextModule.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -218,6 +210,8 @@ public function setHeadline(?TextComponent $headline) : self /** * Gets body. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\ParagraphComponent */ public function getBody() : ParagraphComponent { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextPairBlock.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextPairBlock.php index 4e6f7a7c6..bcfada0e0 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextPairBlock.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardTextPairBlock.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets label. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getLabel() : ?TextComponent { @@ -216,6 +208,8 @@ public function setLabel(?TextComponent $label) : self /** * Gets description. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getDescription() : ?TextComponent { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/StandardThreeImageTextModule.php b/src/AmazonPHP/SellingPartner/Model/APlus/StandardThreeImageTextModule.php index 968ff405e..fa445b9c9 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/StandardThreeImageTextModule.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/StandardThreeImageTextModule.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets headline. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getHeadline() : ?TextComponent { @@ -236,6 +228,8 @@ public function setHeadline(?TextComponent $headline) : self /** * Gets block1. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock1() : ?StandardImageTextBlock { @@ -256,6 +250,8 @@ public function setBlock1(?StandardImageTextBlock $block1) : self /** * Gets block2. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock2() : ?StandardImageTextBlock { @@ -276,6 +272,8 @@ public function setBlock2(?StandardImageTextBlock $block2) : self /** * Gets block3. + * + * @return null|\AmazonPHP\SellingPartner\Model\APlus\StandardImageTextBlock */ public function getBlock3() : ?StandardImageTextBlock { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/TextComponent.php b/src/AmazonPHP/SellingPartner/Model/APlus/TextComponent.php index b792d2675..321788990 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/TextComponent.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/TextComponent.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets value. + * + * @return string */ public function getValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/TextItem.php b/src/AmazonPHP/SellingPartner/Model/APlus/TextItem.php index 17be52053..c065d5c12 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/TextItem.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/TextItem.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets position. + * + * @return int */ public function getPosition() : int { @@ -226,6 +218,8 @@ public function setPosition(int $position) : self /** * Gets text. + * + * @return \AmazonPHP\SellingPartner\Model\APlus\TextComponent */ public function getText() : TextComponent { diff --git a/src/AmazonPHP/SellingPartner/Model/APlus/ValidateContentDocumentAsinRelationsResponse.php b/src/AmazonPHP/SellingPartner/Model/APlus/ValidateContentDocumentAsinRelationsResponse.php index 55fd78ea6..053ecac91 100644 --- a/src/AmazonPHP/SellingPartner/Model/APlus/ValidateContentDocumentAsinRelationsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/APlus/ValidateContentDocumentAsinRelationsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Authorization/AuthorizationCode.php b/src/AmazonPHP/SellingPartner/Model/Authorization/AuthorizationCode.php index 67f09392f..71fa64c4a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Authorization/AuthorizationCode.php +++ b/src/AmazonPHP/SellingPartner/Model/Authorization/AuthorizationCode.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets authorization_code. + * + * @return null|string */ public function getAuthorizationCode() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Authorization/Error.php b/src/AmazonPHP/SellingPartner/Model/Authorization/Error.php index d78992268..b54d2cc9d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Authorization/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Authorization/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Authorization/GetAuthorizationCodeResponse.php b/src/AmazonPHP/SellingPartner/Model/Authorization/GetAuthorizationCodeResponse.php index 9808b69bc..2397754de 100644 --- a/src/AmazonPHP/SellingPartner/Model/Authorization/GetAuthorizationCodeResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Authorization/GetAuthorizationCodeResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Authorization\AuthorizationCode */ public function getPayload() : ?AuthorizationCode { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/BrandRefinement.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/BrandRefinement.php index 6986298c9..d837636a8 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/BrandRefinement.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/BrandRefinement.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets number_of_results. + * + * @return int */ public function getNumberOfResults() : int { @@ -216,6 +208,8 @@ public function setNumberOfResults(int $number_of_results) : self /** * Gets brand_name. + * + * @return string */ public function getBrandName() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ClassificationRefinement.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ClassificationRefinement.php index d67fea72d..55f7ed251 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ClassificationRefinement.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ClassificationRefinement.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets number_of_results. + * + * @return int */ public function getNumberOfResults() : int { @@ -226,6 +218,8 @@ public function setNumberOfResults(int $number_of_results) : self /** * Gets display_name. + * + * @return string */ public function getDisplayName() : string { @@ -246,6 +240,8 @@ public function setDisplayName(string $display_name) : self /** * Gets classification_id. + * + * @return string */ public function getClassificationId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Dimension.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Dimension.php index cc6a2076a..17b59b322 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Dimension.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Dimension.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets unit. + * + * @return null|string */ public function getUnit() : ?string { @@ -209,6 +201,8 @@ public function setUnit(?string $unit) : self /** * Gets value. + * + * @return null|float */ public function getValue() : ?float { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Dimensions.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Dimensions.php index adafc89bf..bf0f8cd4f 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Dimensions.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Dimensions.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets height. + * + * @return null|\AmazonPHP\SellingPartner\Model\CatalogItem\Dimension */ public function getHeight() : ?Dimension { @@ -236,6 +228,8 @@ public function setHeight(?Dimension $height) : self /** * Gets length. + * + * @return null|\AmazonPHP\SellingPartner\Model\CatalogItem\Dimension */ public function getLength() : ?Dimension { @@ -256,6 +250,8 @@ public function setLength(?Dimension $length) : self /** * Gets weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\CatalogItem\Dimension */ public function getWeight() : ?Dimension { @@ -276,6 +272,8 @@ public function setWeight(?Dimension $weight) : self /** * Gets width. + * + * @return null|\AmazonPHP\SellingPartner\Model\CatalogItem\Dimension */ public function getWidth() : ?Dimension { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Error.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Error.php index f9c5e72eb..45d0ebffe 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ErrorList.php index 69d0b2eb5..106115b36 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Item.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Item.php index e879df116..5edd55d6d 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Item.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Item.php @@ -158,8 +158,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +166,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +175,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +183,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +191,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +202,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets asin. + * + * @return string */ public function getAsin() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemBrowseClassification.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemBrowseClassification.php index acd46e91f..2d1240f7f 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemBrowseClassification.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemBrowseClassification.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets display_name. + * + * @return string */ public function getDisplayName() : string { @@ -216,6 +208,8 @@ public function setDisplayName(string $display_name) : self /** * Gets classification_id. + * + * @return string */ public function getClassificationId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemClassificationSalesRank.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemClassificationSalesRank.php index 5dca14713..f51bc0e59 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemClassificationSalesRank.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemClassificationSalesRank.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets classification_id. + * + * @return string */ public function getClassificationId() : string { @@ -232,6 +224,8 @@ public function setClassificationId(string $classification_id) : self /** * Gets title. + * + * @return string */ public function getTitle() : string { @@ -252,6 +246,8 @@ public function setTitle(string $title) : self /** * Gets link. + * + * @return null|string */ public function getLink() : ?string { @@ -272,6 +268,8 @@ public function setLink(?string $link) : self /** * Gets rank. + * + * @return int */ public function getRank() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemContributor.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemContributor.php index 7a89da7ad..28a6c791a 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemContributor.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemContributor.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets role. + * + * @return \AmazonPHP\SellingPartner\Model\CatalogItem\ItemContributorRole */ public function getRole() : ItemContributorRole { @@ -218,6 +210,8 @@ public function setRole(ItemContributorRole $role) : self /** * Gets value. + * + * @return string */ public function getValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemContributorRole.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemContributorRole.php index fa4b678e7..0f5328354 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemContributorRole.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemContributorRole.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets display_name. + * + * @return null|string */ public function getDisplayName() : ?string { @@ -212,6 +204,8 @@ public function setDisplayName(?string $display_name) : self /** * Gets value. + * + * @return string */ public function getValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemDimensionsByMarketplace.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemDimensionsByMarketplace.php index 89a7d5042..3d1af00c4 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemDimensionsByMarketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemDimensionsByMarketplace.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -226,6 +218,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets item. + * + * @return null|\AmazonPHP\SellingPartner\Model\CatalogItem\Dimensions */ public function getItem() : ?Dimensions { @@ -246,6 +240,8 @@ public function setItem(?Dimensions $item) : self /** * Gets package. + * + * @return null|\AmazonPHP\SellingPartner\Model\CatalogItem\Dimensions */ public function getPackage() : ?Dimensions { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemDisplayGroupSalesRank.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemDisplayGroupSalesRank.php index a0e14ec87..fa6b8ec9c 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemDisplayGroupSalesRank.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemDisplayGroupSalesRank.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets website_display_group. + * + * @return string */ public function getWebsiteDisplayGroup() : string { @@ -232,6 +224,8 @@ public function setWebsiteDisplayGroup(string $website_display_group) : self /** * Gets title. + * + * @return string */ public function getTitle() : string { @@ -252,6 +246,8 @@ public function setTitle(string $title) : self /** * Gets link. + * + * @return null|string */ public function getLink() : ?string { @@ -272,6 +268,8 @@ public function setLink(?string $link) : self /** * Gets rank. + * + * @return int */ public function getRank() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemIdentifier.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemIdentifier.php index 321cc9f27..397128fe3 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemIdentifier.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemIdentifier.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets identifier_type. + * + * @return string */ public function getIdentifierType() : string { @@ -216,6 +208,8 @@ public function setIdentifierType(string $identifier_type) : self /** * Gets identifier. + * + * @return string */ public function getIdentifier() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemIdentifiersByMarketplace.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemIdentifiersByMarketplace.php index 767290862..f5b2773bc 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemIdentifiersByMarketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemIdentifiersByMarketplace.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemImage.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemImage.php index 4e88e32d7..2925166d5 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemImage.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemImage.php @@ -142,8 +142,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -152,8 +150,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -163,8 +159,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -173,8 +167,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -183,8 +175,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -196,7 +186,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -269,6 +259,8 @@ public function validate() : void /** * Gets variant. + * + * @return string */ public function getVariant() : string { @@ -289,6 +281,8 @@ public function setVariant(string $variant) : self /** * Gets link. + * + * @return string */ public function getLink() : string { @@ -309,6 +303,8 @@ public function setLink(string $link) : self /** * Gets height. + * + * @return int */ public function getHeight() : int { @@ -329,6 +325,8 @@ public function setHeight(int $height) : self /** * Gets width. + * + * @return int */ public function getWidth() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemImagesByMarketplace.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemImagesByMarketplace.php index a57a0ee6a..695035260 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemImagesByMarketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemImagesByMarketplace.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemProductTypeByMarketplace.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemProductTypeByMarketplace.php index 6340c9f1d..0518696b8 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemProductTypeByMarketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemProductTypeByMarketplace.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -209,6 +201,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets product_type. + * + * @return null|string */ public function getProductType() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemRelationship.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemRelationship.php index 897698c9e..cc3677618 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemRelationship.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemRelationship.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -281,6 +271,8 @@ public function setParentAsins(?array $parent_asins) : self /** * Gets variation_theme. + * + * @return null|\AmazonPHP\SellingPartner\Model\CatalogItem\ItemVariationTheme */ public function getVariationTheme() : ?ItemVariationTheme { @@ -301,6 +293,8 @@ public function setVariationTheme(?ItemVariationTheme $variation_theme) : self /** * Gets type. + * + * @return string */ public function getType() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemRelationshipsByMarketplace.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemRelationshipsByMarketplace.php index 172d2da5e..0618c1a03 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemRelationshipsByMarketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemRelationshipsByMarketplace.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSalesRanksByMarketplace.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSalesRanksByMarketplace.php index 6f58ea4d1..6f12c6609 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSalesRanksByMarketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSalesRanksByMarketplace.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSearchResults.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSearchResults.php index 4f16f7521..b92d4dacb 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSearchResults.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSearchResults.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -220,6 +210,8 @@ public function validate() : void /** * Gets number_of_results. + * + * @return int */ public function getNumberOfResults() : int { @@ -240,8 +232,10 @@ public function setNumberOfResults(int $number_of_results) : self /** * Gets pagination. + * + * @return \AmazonPHP\SellingPartner\Model\CatalogItem\Pagination */ - public function getPagination() : ?Pagination + public function getPagination() : Pagination { return $this->container['pagination']; } @@ -260,8 +254,10 @@ public function setPagination(Pagination $pagination) : self /** * Gets refinements. + * + * @return \AmazonPHP\SellingPartner\Model\CatalogItem\Refinements */ - public function getRefinements() : ?Refinements + public function getRefinements() : Refinements { return $this->container['refinements']; } diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSummaryByMarketplace.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSummaryByMarketplace.php index bff65a59e..9796ee426 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSummaryByMarketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemSummaryByMarketplace.php @@ -226,8 +226,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -236,8 +234,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -247,8 +243,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -257,8 +251,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -267,8 +259,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -280,7 +270,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -339,6 +329,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -359,6 +351,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets adult_product. + * + * @return null|bool */ public function getAdultProduct() : ?bool { @@ -379,6 +373,8 @@ public function setAdultProduct(?bool $adult_product) : self /** * Gets autographed. + * + * @return null|bool */ public function getAutographed() : ?bool { @@ -399,6 +395,8 @@ public function setAutographed(?bool $autographed) : self /** * Gets brand. + * + * @return null|string */ public function getBrand() : ?string { @@ -419,6 +417,8 @@ public function setBrand(?string $brand) : self /** * Gets browse_classification. + * + * @return null|\AmazonPHP\SellingPartner\Model\CatalogItem\ItemBrowseClassification */ public function getBrowseClassification() : ?ItemBrowseClassification { @@ -439,6 +439,8 @@ public function setBrowseClassification(?ItemBrowseClassification $browse_classi /** * Gets color. + * + * @return null|string */ public function getColor() : ?string { @@ -481,6 +483,8 @@ public function setContributors(?array $contributors) : self /** * Gets item_classification. + * + * @return null|string */ public function getItemClassification() : ?string { @@ -501,6 +505,8 @@ public function setItemClassification(?string $item_classification) : self /** * Gets item_name. + * + * @return null|string */ public function getItemName() : ?string { @@ -521,6 +527,8 @@ public function setItemName(?string $item_name) : self /** * Gets manufacturer. + * + * @return null|string */ public function getManufacturer() : ?string { @@ -541,6 +549,8 @@ public function setManufacturer(?string $manufacturer) : self /** * Gets memorabilia. + * + * @return null|bool */ public function getMemorabilia() : ?bool { @@ -561,6 +571,8 @@ public function setMemorabilia(?bool $memorabilia) : self /** * Gets model_number. + * + * @return null|string */ public function getModelNumber() : ?string { @@ -581,6 +593,8 @@ public function setModelNumber(?string $model_number) : self /** * Gets package_quantity. + * + * @return null|int */ public function getPackageQuantity() : ?int { @@ -601,6 +615,8 @@ public function setPackageQuantity(?int $package_quantity) : self /** * Gets part_number. + * + * @return null|string */ public function getPartNumber() : ?string { @@ -621,6 +637,8 @@ public function setPartNumber(?string $part_number) : self /** * Gets release_date. + * + * @return null|\DateTimeInterface */ public function getReleaseDate() : ?\DateTimeInterface { @@ -641,6 +659,8 @@ public function setReleaseDate(?\DateTimeInterface $release_date) : self /** * Gets size. + * + * @return null|string */ public function getSize() : ?string { @@ -661,6 +681,8 @@ public function setSize(?string $size) : self /** * Gets style. + * + * @return null|string */ public function getStyle() : ?string { @@ -681,6 +703,8 @@ public function setStyle(?string $style) : self /** * Gets trade_in_eligible. + * + * @return null|bool */ public function getTradeInEligible() : ?bool { @@ -701,6 +725,8 @@ public function setTradeInEligible(?bool $trade_in_eligible) : self /** * Gets website_display_group. + * + * @return null|string */ public function getWebsiteDisplayGroup() : ?string { @@ -721,6 +747,8 @@ public function setWebsiteDisplayGroup(?string $website_display_group) : self /** * Gets website_display_group_name. + * + * @return null|string */ public function getWebsiteDisplayGroupName() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVariationTheme.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVariationTheme.php index be65fb247..dc1085acb 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVariationTheme.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVariationTheme.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -211,6 +201,8 @@ public function setAttributes(?array $attributes) : self /** * Gets theme. + * + * @return null|string */ public function getTheme() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVendorDetailsByMarketplace.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVendorDetailsByMarketplace.php index 4b767b90b..121065f2c 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVendorDetailsByMarketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVendorDetailsByMarketplace.php @@ -166,8 +166,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -176,8 +174,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -187,8 +183,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -197,8 +191,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -207,8 +199,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -220,7 +210,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -289,6 +279,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -309,6 +301,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets brand_code. + * + * @return null|string */ public function getBrandCode() : ?string { @@ -329,6 +323,8 @@ public function setBrandCode(?string $brand_code) : self /** * Gets manufacturer_code. + * + * @return null|string */ public function getManufacturerCode() : ?string { @@ -349,6 +345,8 @@ public function setManufacturerCode(?string $manufacturer_code) : self /** * Gets manufacturer_code_parent. + * + * @return null|string */ public function getManufacturerCodeParent() : ?string { @@ -369,6 +367,8 @@ public function setManufacturerCodeParent(?string $manufacturer_code_parent) : s /** * Gets product_category. + * + * @return null|\AmazonPHP\SellingPartner\Model\CatalogItem\ItemVendorDetailsCategory */ public function getProductCategory() : ?ItemVendorDetailsCategory { @@ -389,6 +389,8 @@ public function setProductCategory(?ItemVendorDetailsCategory $product_category) /** * Gets product_group. + * + * @return null|string */ public function getProductGroup() : ?string { @@ -409,6 +411,8 @@ public function setProductGroup(?string $product_group) : self /** * Gets product_subcategory. + * + * @return null|\AmazonPHP\SellingPartner\Model\CatalogItem\ItemVendorDetailsCategory */ public function getProductSubcategory() : ?ItemVendorDetailsCategory { @@ -429,6 +433,8 @@ public function setProductSubcategory(?ItemVendorDetailsCategory $product_subcat /** * Gets replenishment_category. + * + * @return null|string */ public function getReplenishmentCategory() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVendorDetailsCategory.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVendorDetailsCategory.php index 457fbd9ad..0f27d3aed 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVendorDetailsCategory.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/ItemVendorDetailsCategory.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets display_name. + * + * @return null|string */ public function getDisplayName() : ?string { @@ -209,6 +201,8 @@ public function setDisplayName(?string $display_name) : self /** * Gets value. + * + * @return null|string */ public function getValue() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Pagination.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Pagination.php index 8c1af5079..b6ba14ac4 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Pagination.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Pagination.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { @@ -209,6 +201,8 @@ public function setNextToken(?string $next_token) : self /** * Gets previous_token. + * + * @return null|string */ public function getPreviousToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Refinements.php b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Refinements.php index eafa5353b..db6075e13 100644 --- a/src/AmazonPHP/SellingPartner/Model/CatalogItem/Refinements.php +++ b/src/AmazonPHP/SellingPartner/Model/CatalogItem/Refinements.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInbound/Error.php b/src/AmazonPHP/SellingPartner/Model/FBAInbound/Error.php index 76ee7081c..f6029a8ea 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInbound/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInbound/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -218,6 +210,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return null|string */ public function getMessage() : ?string { @@ -238,6 +232,8 @@ public function setMessage(?string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInbound/GetItemEligibilityPreviewResponse.php b/src/AmazonPHP/SellingPartner/Model/FBAInbound/GetItemEligibilityPreviewResponse.php index 0b1f6e009..ef2a61eb8 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInbound/GetItemEligibilityPreviewResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInbound/GetItemEligibilityPreviewResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FBAInbound\ItemEligibilityPreview */ public function getPayload() : ?ItemEligibilityPreview { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInbound/ItemEligibilityPreview.php b/src/AmazonPHP/SellingPartner/Model/FBAInbound/ItemEligibilityPreview.php index c5a0ae70a..f8cb7cf57 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInbound/ItemEligibilityPreview.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInbound/ItemEligibilityPreview.php @@ -210,8 +210,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -220,8 +218,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -231,8 +227,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -241,8 +235,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -251,8 +243,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -264,7 +254,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -375,6 +365,8 @@ public function validate() : void /** * Gets asin. + * + * @return string */ public function getAsin() : string { @@ -395,6 +387,8 @@ public function setAsin(string $asin) : self /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -415,6 +409,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets program. + * + * @return string */ public function getProgram() : string { @@ -435,6 +431,8 @@ public function setProgram(string $program) : self /** * Gets is_eligible_for_program. + * + * @return bool */ public function getIsEligibleForProgram() : bool { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/Error.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/Error.php index 8ebd10a3e..71c536f74 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -218,6 +210,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return null|string */ public function getMessage() : ?string { @@ -238,6 +232,8 @@ public function setMessage(?string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/GetInventorySummariesResponse.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/GetInventorySummariesResponse.php index 1090e8506..546c9a06a 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/GetInventorySummariesResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/GetInventorySummariesResponse.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FBAInventory\GetInventorySummariesResult */ public function getPayload() : ?GetInventorySummariesResult { @@ -222,6 +214,8 @@ public function setPayload(?GetInventorySummariesResult $payload) : self /** * Gets pagination. + * + * @return null|\AmazonPHP\SellingPartner\Model\FBAInventory\Pagination */ public function getPagination() : ?Pagination { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/GetInventorySummariesResult.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/GetInventorySummariesResult.php index d4d36b048..fabd2d827 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/GetInventorySummariesResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/GetInventorySummariesResult.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets granularity. + * + * @return \AmazonPHP\SellingPartner\Model\FBAInventory\Granularity */ public function getGranularity() : Granularity { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/Granularity.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/Granularity.php index 21846630d..164590cfb 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/Granularity.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/Granularity.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets granularity_type. + * + * @return null|string */ public function getGranularityType() : ?string { @@ -209,6 +201,8 @@ public function setGranularityType(?string $granularity_type) : self /** * Gets granularity_id. + * + * @return null|string */ public function getGranularityId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/InventoryDetails.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/InventoryDetails.php index 507a6b3da..38f0d7496 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/InventoryDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/InventoryDetails.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -230,6 +220,8 @@ public function validate() : void /** * Gets fulfillable_quantity. + * + * @return null|int */ public function getFulfillableQuantity() : ?int { @@ -250,6 +242,8 @@ public function setFulfillableQuantity(?int $fulfillable_quantity) : self /** * Gets inbound_working_quantity. + * + * @return null|int */ public function getInboundWorkingQuantity() : ?int { @@ -270,6 +264,8 @@ public function setInboundWorkingQuantity(?int $inbound_working_quantity) : self /** * Gets inbound_shipped_quantity. + * + * @return null|int */ public function getInboundShippedQuantity() : ?int { @@ -290,6 +286,8 @@ public function setInboundShippedQuantity(?int $inbound_shipped_quantity) : self /** * Gets inbound_receiving_quantity. + * + * @return null|int */ public function getInboundReceivingQuantity() : ?int { @@ -310,6 +308,8 @@ public function setInboundReceivingQuantity(?int $inbound_receiving_quantity) : /** * Gets reserved_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\FBAInventory\ReservedQuantity */ public function getReservedQuantity() : ?ReservedQuantity { @@ -330,6 +330,8 @@ public function setReservedQuantity(?ReservedQuantity $reserved_quantity) : self /** * Gets researching_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\FBAInventory\ResearchingQuantity */ public function getResearchingQuantity() : ?ResearchingQuantity { @@ -350,6 +352,8 @@ public function setResearchingQuantity(?ResearchingQuantity $researching_quantit /** * Gets unfulfillable_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\FBAInventory\UnfulfillableQuantity */ public function getUnfulfillableQuantity() : ?UnfulfillableQuantity { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/InventorySummary.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/InventorySummary.php index cc0e81425..c70d0c3ea 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/InventorySummary.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/InventorySummary.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -248,6 +240,8 @@ public function setAsin(?string $asin) : self /** * Gets fn_sku. + * + * @return null|string */ public function getFnSku() : ?string { @@ -268,6 +262,8 @@ public function setFnSku(?string $fn_sku) : self /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -288,6 +284,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets condition. + * + * @return null|string */ public function getCondition() : ?string { @@ -308,6 +306,8 @@ public function setCondition(?string $condition) : self /** * Gets inventory_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\FBAInventory\InventoryDetails */ public function getInventoryDetails() : ?InventoryDetails { @@ -328,6 +328,8 @@ public function setInventoryDetails(?InventoryDetails $inventory_details) : self /** * Gets last_updated_time. + * + * @return null|\DateTimeInterface */ public function getLastUpdatedTime() : ?\DateTimeInterface { @@ -348,6 +350,8 @@ public function setLastUpdatedTime(?\DateTimeInterface $last_updated_time) : sel /** * Gets product_name. + * + * @return null|string */ public function getProductName() : ?string { @@ -368,6 +372,8 @@ public function setProductName(?string $product_name) : self /** * Gets total_quantity. + * + * @return null|int */ public function getTotalQuantity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/Pagination.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/Pagination.php index 98ba79f1f..4589db65b 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/Pagination.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/Pagination.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/ResearchingQuantity.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/ResearchingQuantity.php index 6d7e20352..54b93417f 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/ResearchingQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/ResearchingQuantity.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets total_researching_quantity. + * + * @return null|int */ public function getTotalResearchingQuantity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/ResearchingQuantityEntry.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/ResearchingQuantityEntry.php index ea67fa284..e98033970 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/ResearchingQuantityEntry.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/ResearchingQuantityEntry.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -248,6 +240,8 @@ public function setName(string $name) : self /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/ReservedQuantity.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/ReservedQuantity.php index 180006e0a..c41a5109f 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/ReservedQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/ReservedQuantity.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -201,6 +191,8 @@ public function validate() : void /** * Gets total_reserved_quantity. + * + * @return null|int */ public function getTotalReservedQuantity() : ?int { @@ -221,6 +213,8 @@ public function setTotalReservedQuantity(?int $total_reserved_quantity) : self /** * Gets pending_customer_order_quantity. + * + * @return null|int */ public function getPendingCustomerOrderQuantity() : ?int { @@ -241,6 +235,8 @@ public function setPendingCustomerOrderQuantity(?int $pending_customer_order_qua /** * Gets pending_transshipment_quantity. + * + * @return null|int */ public function getPendingTransshipmentQuantity() : ?int { @@ -261,6 +257,8 @@ public function setPendingTransshipmentQuantity(?int $pending_transshipment_quan /** * Gets fc_processing_quantity. + * + * @return null|int */ public function getFcProcessingQuantity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/FBAInventory/UnfulfillableQuantity.php b/src/AmazonPHP/SellingPartner/Model/FBAInventory/UnfulfillableQuantity.php index 285937e54..3c00a1cbc 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBAInventory/UnfulfillableQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/FBAInventory/UnfulfillableQuantity.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -219,6 +209,8 @@ public function validate() : void /** * Gets total_unfulfillable_quantity. + * + * @return null|int */ public function getTotalUnfulfillableQuantity() : ?int { @@ -239,6 +231,8 @@ public function setTotalUnfulfillableQuantity(?int $total_unfulfillable_quantity /** * Gets customer_damaged_quantity. + * + * @return null|int */ public function getCustomerDamagedQuantity() : ?int { @@ -259,6 +253,8 @@ public function setCustomerDamagedQuantity(?int $customer_damaged_quantity) : se /** * Gets warehouse_damaged_quantity. + * + * @return null|int */ public function getWarehouseDamagedQuantity() : ?int { @@ -279,6 +275,8 @@ public function setWarehouseDamagedQuantity(?int $warehouse_damaged_quantity) : /** * Gets distributor_damaged_quantity. + * + * @return null|int */ public function getDistributorDamagedQuantity() : ?int { @@ -299,6 +297,8 @@ public function setDistributorDamagedQuantity(?int $distributor_damaged_quantity /** * Gets carrier_damaged_quantity. + * + * @return null|int */ public function getCarrierDamagedQuantity() : ?int { @@ -319,6 +319,8 @@ public function setCarrierDamagedQuantity(?int $carrier_damaged_quantity) : self /** * Gets defective_quantity. + * + * @return null|int */ public function getDefectiveQuantity() : ?int { @@ -339,6 +341,8 @@ public function setDefectiveQuantity(?int $defective_quantity) : self /** * Gets expired_quantity. + * + * @return null|int */ public function getExpiredQuantity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/Error.php b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/Error.php index cad66b2f5..aa5f0b335 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/ErrorList.php index 2a419c44e..802750807 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/FeeLineItem.php b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/FeeLineItem.php index 0b9e5f7e6..c24e9b15a 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/FeeLineItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/FeeLineItem.php @@ -118,8 +118,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -128,8 +126,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -139,8 +135,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -149,8 +143,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -159,8 +151,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -172,7 +162,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -233,6 +223,8 @@ public function validate() : void /** * Gets fee_type. + * + * @return string */ public function getFeeType() : string { @@ -253,6 +245,8 @@ public function setFeeType(string $fee_type) : self /** * Gets fee_charge. + * + * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\MoneyType */ public function getFeeCharge() : MoneyType { diff --git a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/FeePreview.php b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/FeePreview.php index 4060bcb99..d2176380f 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/FeePreview.php +++ b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/FeePreview.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -214,6 +204,8 @@ public function validate() : void /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -234,6 +226,8 @@ public function setAsin(?string $asin) : self /** * Gets price. + * + * @return null|\AmazonPHP\SellingPartner\Model\FBASmallAndLight\MoneyType */ public function getPrice() : ?MoneyType { @@ -276,6 +270,8 @@ public function setFeeBreakdown(?array $fee_breakdown) : self /** * Gets total_fees. + * + * @return null|\AmazonPHP\SellingPartner\Model\FBASmallAndLight\MoneyType */ public function getTotalFees() : ?MoneyType { diff --git a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/Item.php b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/Item.php index 936515a93..b1a56c354 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/Item.php +++ b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/Item.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets asin. + * + * @return string */ public function getAsin() : string { @@ -218,6 +210,8 @@ public function setAsin(string $asin) : self /** * Gets price. + * + * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\MoneyType */ public function getPrice() : MoneyType { diff --git a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/MoneyType.php b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/MoneyType.php index d892170b1..09f588253 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/MoneyType.php +++ b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/MoneyType.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return null|string */ public function getCurrencyCode() : ?string { @@ -209,6 +201,8 @@ public function setCurrencyCode(?string $currency_code) : self /** * Gets amount. + * + * @return null|float */ public function getAmount() : ?float { diff --git a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightEligibility.php b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightEligibility.php index 3686adf16..cbc7898d1 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightEligibility.php +++ b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightEligibility.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -226,6 +218,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -246,6 +240,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets status. + * + * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEligibilityStatus */ public function getStatus() : SmallAndLightEligibilityStatus { diff --git a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightEnrollment.php b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightEnrollment.php index ee413ef31..4d7077c97 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightEnrollment.php +++ b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightEnrollment.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -226,6 +218,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -246,6 +240,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets status. + * + * @return \AmazonPHP\SellingPartner\Model\FBASmallAndLight\SmallAndLightEnrollmentStatus */ public function getStatus() : SmallAndLightEnrollmentStatus { diff --git a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightFeePreviewRequest.php b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightFeePreviewRequest.php index a9d19689d..8b3f63c51 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightFeePreviewRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightFeePreviewRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightFeePreviews.php b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightFeePreviews.php index b6a7db55c..8b5fcad1f 100644 --- a/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightFeePreviews.php +++ b/src/AmazonPHP/SellingPartner/Model/FBASmallAndLight/SmallAndLightFeePreviews.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedDocumentResponse.php b/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedDocumentResponse.php index f4495b3dc..4e14bba2a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedDocumentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedDocumentResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets feed_document_id. + * + * @return string */ public function getFeedDocumentId() : string { @@ -216,6 +208,8 @@ public function setFeedDocumentId(string $feed_document_id) : self /** * Gets url. + * + * @return string */ public function getUrl() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedDocumentSpecification.php b/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedDocumentSpecification.php index e43bc09aa..56fd6bd88 100644 --- a/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedDocumentSpecification.php +++ b/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedDocumentSpecification.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets content_type. + * + * @return string */ public function getContentType() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedResponse.php b/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedResponse.php index 089166428..978c8ae5a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets feed_id. + * + * @return string */ public function getFeedId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedSpecification.php b/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedSpecification.php index 9855eaccb..8aac6147a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedSpecification.php +++ b/src/AmazonPHP/SellingPartner/Model/Feeds/CreateFeedSpecification.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -220,6 +210,8 @@ public function validate() : void /** * Gets feed_type. + * + * @return string */ public function getFeedType() : string { @@ -262,6 +254,8 @@ public function setMarketplaceIds(array $marketplace_ids) : self /** * Gets input_feed_document_id. + * + * @return string */ public function getInputFeedDocumentId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Feeds/Error.php b/src/AmazonPHP/SellingPartner/Model/Feeds/Error.php index b14ece118..ba44e0934 100644 --- a/src/AmazonPHP/SellingPartner/Model/Feeds/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Feeds/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Feeds/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/Feeds/ErrorList.php index dbb8db217..acb0f736e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Feeds/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/Feeds/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Feeds/Feed.php b/src/AmazonPHP/SellingPartner/Model/Feeds/Feed.php index 5167f959c..0c8095c5b 100644 --- a/src/AmazonPHP/SellingPartner/Model/Feeds/Feed.php +++ b/src/AmazonPHP/SellingPartner/Model/Feeds/Feed.php @@ -156,8 +156,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -166,8 +164,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -177,8 +173,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -187,8 +181,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -197,8 +189,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -210,7 +200,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -278,6 +268,8 @@ public function validate() : void /** * Gets feed_id. + * + * @return string */ public function getFeedId() : string { @@ -298,6 +290,8 @@ public function setFeedId(string $feed_id) : self /** * Gets feed_type. + * + * @return string */ public function getFeedType() : string { @@ -340,6 +334,8 @@ public function setMarketplaceIds(?array $marketplace_ids) : self /** * Gets created_time. + * + * @return \DateTimeInterface */ public function getCreatedTime() : \DateTimeInterface { @@ -360,6 +356,8 @@ public function setCreatedTime(\DateTimeInterface $created_time) : self /** * Gets processing_status. + * + * @return string */ public function getProcessingStatus() : string { @@ -380,6 +378,8 @@ public function setProcessingStatus(string $processing_status) : self /** * Gets processing_start_time. + * + * @return null|\DateTimeInterface */ public function getProcessingStartTime() : ?\DateTimeInterface { @@ -400,6 +400,8 @@ public function setProcessingStartTime(?\DateTimeInterface $processing_start_tim /** * Gets processing_end_time. + * + * @return null|\DateTimeInterface */ public function getProcessingEndTime() : ?\DateTimeInterface { @@ -420,6 +422,8 @@ public function setProcessingEndTime(?\DateTimeInterface $processing_end_time) : /** * Gets result_feed_document_id. + * + * @return null|string */ public function getResultFeedDocumentId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Feeds/FeedDocument.php b/src/AmazonPHP/SellingPartner/Model/Feeds/FeedDocument.php index 6b05ee5b1..fa400ba45 100644 --- a/src/AmazonPHP/SellingPartner/Model/Feeds/FeedDocument.php +++ b/src/AmazonPHP/SellingPartner/Model/Feeds/FeedDocument.php @@ -118,8 +118,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -128,8 +126,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -139,8 +135,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -149,8 +143,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -159,8 +151,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -172,7 +162,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets feed_document_id. + * + * @return string */ public function getFeedDocumentId() : string { @@ -248,6 +240,8 @@ public function setFeedDocumentId(string $feed_document_id) : self /** * Gets url. + * + * @return string */ public function getUrl() : string { @@ -268,6 +262,8 @@ public function setUrl(string $url) : self /** * Gets compression_algorithm. + * + * @return null|string */ public function getCompressionAlgorithm() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Feeds/GetFeedsResponse.php b/src/AmazonPHP/SellingPartner/Model/Feeds/GetFeedsResponse.php index d191cb2c6..52e71d9ac 100644 --- a/src/AmazonPHP/SellingPartner/Model/Feeds/GetFeedsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Feeds/GetFeedsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -214,6 +204,8 @@ public function setFeeds(array $feeds) : self /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/AdhocDisbursementEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/AdhocDisbursementEvent.php index f5c2a8fe0..db697bce4 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/AdhocDisbursementEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/AdhocDisbursementEvent.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -204,6 +194,8 @@ public function validate() : void /** * Gets transaction_type. + * + * @return null|string */ public function getTransactionType() : ?string { @@ -224,6 +216,8 @@ public function setTransactionType(?string $transaction_type) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -244,6 +238,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets transaction_id. + * + * @return null|string */ public function getTransactionId() : ?string { @@ -264,6 +260,8 @@ public function setTransactionId(?string $transaction_id) : self /** * Gets transaction_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTransactionAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/AdjustmentEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/AdjustmentEvent.php index 1d5130b76..6d91a6a3f 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/AdjustmentEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/AdjustmentEvent.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -204,6 +194,8 @@ public function validate() : void /** * Gets adjustment_type. + * + * @return null|string */ public function getAdjustmentType() : ?string { @@ -224,6 +216,8 @@ public function setAdjustmentType(?string $adjustment_type) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -244,6 +238,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets adjustment_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getAdjustmentAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/AdjustmentItem.php b/src/AmazonPHP/SellingPartner/Model/Finances/AdjustmentItem.php index f81d5d65a..26d03666d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/AdjustmentItem.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/AdjustmentItem.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -226,6 +216,8 @@ public function validate() : void /** * Gets quantity. + * + * @return null|string */ public function getQuantity() : ?string { @@ -246,6 +238,8 @@ public function setQuantity(?string $quantity) : self /** * Gets per_unit_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getPerUnitAmount() : ?Currency { @@ -266,6 +260,8 @@ public function setPerUnitAmount(?Currency $per_unit_amount) : self /** * Gets total_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTotalAmount() : ?Currency { @@ -286,6 +282,8 @@ public function setTotalAmount(?Currency $total_amount) : self /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -306,6 +304,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets fn_sku. + * + * @return null|string */ public function getFnSku() : ?string { @@ -326,6 +326,8 @@ public function setFnSku(?string $fn_sku) : self /** * Gets product_description. + * + * @return null|string */ public function getProductDescription() : ?string { @@ -346,6 +348,8 @@ public function setProductDescription(?string $product_description) : self /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/AffordabilityExpenseEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/AffordabilityExpenseEvent.php index ea3c4ed3e..2a3da86f5 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/AffordabilityExpenseEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/AffordabilityExpenseEvent.php @@ -152,8 +152,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -162,8 +160,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -173,8 +169,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -183,8 +177,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -193,8 +185,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -206,7 +196,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -256,6 +246,8 @@ public function validate() : void /** * Gets amazon_order_id. + * + * @return null|string */ public function getAmazonOrderId() : ?string { @@ -276,6 +268,8 @@ public function setAmazonOrderId(?string $amazon_order_id) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -296,6 +290,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -316,6 +312,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets transaction_type. + * + * @return null|string */ public function getTransactionType() : ?string { @@ -336,6 +334,8 @@ public function setTransactionType(?string $transaction_type) : self /** * Gets base_expense. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getBaseExpense() : ?Currency { @@ -356,6 +356,8 @@ public function setBaseExpense(?Currency $base_expense) : self /** * Gets tax_type_cgst. + * + * @return \AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxTypeCgst() : Currency { @@ -376,6 +378,8 @@ public function setTaxTypeCgst(Currency $tax_type_cgst) : self /** * Gets tax_type_sgst. + * + * @return \AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxTypeSgst() : Currency { @@ -396,6 +400,8 @@ public function setTaxTypeSgst(Currency $tax_type_sgst) : self /** * Gets tax_type_igst. + * + * @return \AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxTypeIgst() : Currency { @@ -416,6 +422,8 @@ public function setTaxTypeIgst(Currency $tax_type_igst) : self /** * Gets total_expense. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTotalExpense() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/CapacityReservationBillingEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/CapacityReservationBillingEvent.php index ea987a5c7..cfe938fa6 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/CapacityReservationBillingEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/CapacityReservationBillingEvent.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -204,6 +194,8 @@ public function validate() : void /** * Gets transaction_type. + * + * @return null|string */ public function getTransactionType() : ?string { @@ -213,7 +205,7 @@ public function getTransactionType() : ?string /** * Sets transaction_type. * - * @param null|string $transaction_type Indicates the type of transaction. Example: \"FBA Inventory Fee\" + * @param null|string $transaction_type Indicates the type of transaction. For example, FBA Inventory Fee */ public function setTransactionType(?string $transaction_type) : self { @@ -224,6 +216,8 @@ public function setTransactionType(?string $transaction_type) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -244,6 +238,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets description. + * + * @return null|string */ public function getDescription() : ?string { @@ -264,6 +260,8 @@ public function setDescription(?string $description) : self /** * Gets transaction_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTransactionAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ChargeComponent.php b/src/AmazonPHP/SellingPartner/Model/Finances/ChargeComponent.php index 52c0f0099..c64cc87b0 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ChargeComponent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ChargeComponent.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets charge_type. + * + * @return null|string */ public function getChargeType() : ?string { @@ -212,6 +204,8 @@ public function setChargeType(?string $charge_type) : self /** * Gets charge_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getChargeAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ChargeInstrument.php b/src/AmazonPHP/SellingPartner/Model/Finances/ChargeInstrument.php index 3c9bd8d92..05dac573d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ChargeInstrument.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ChargeInstrument.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets description. + * + * @return null|string */ public function getDescription() : ?string { @@ -218,6 +210,8 @@ public function setDescription(?string $description) : self /** * Gets tail. + * + * @return null|string */ public function getTail() : ?string { @@ -238,6 +232,8 @@ public function setTail(?string $tail) : self /** * Gets amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ChargeRefundEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/ChargeRefundEvent.php index 364b58a00..35cd014f7 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ChargeRefundEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ChargeRefundEvent.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -204,6 +194,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -224,6 +216,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets reason_code. + * + * @return null|string */ public function getReasonCode() : ?string { @@ -244,6 +238,8 @@ public function setReasonCode(?string $reason_code) : self /** * Gets reason_code_description. + * + * @return null|string */ public function getReasonCodeDescription() : ?string { @@ -264,6 +260,8 @@ public function setReasonCodeDescription(?string $reason_code_description) : sel /** * Gets charge_refund_transactions. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\ChargeRefundTransaction */ public function getChargeRefundTransactions() : ?ChargeRefundTransaction { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ChargeRefundTransaction.php b/src/AmazonPHP/SellingPartner/Model/Finances/ChargeRefundTransaction.php index 24417ba5c..b2349b78c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ChargeRefundTransaction.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ChargeRefundTransaction.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets charge_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getChargeAmount() : ?Currency { @@ -212,6 +204,8 @@ public function setChargeAmount(?Currency $charge_amount) : self /** * Gets charge_type. + * + * @return null|string */ public function getChargeType() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/CouponPaymentEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/CouponPaymentEvent.php index 4a24cfac5..d854e14c1 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/CouponPaymentEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/CouponPaymentEvent.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -236,6 +226,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -256,6 +248,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets coupon_id. + * + * @return null|string */ public function getCouponId() : ?string { @@ -276,6 +270,8 @@ public function setCouponId(?string $coupon_id) : self /** * Gets seller_coupon_description. + * + * @return null|string */ public function getSellerCouponDescription() : ?string { @@ -296,6 +292,8 @@ public function setSellerCouponDescription(?string $seller_coupon_description) : /** * Gets clip_or_redemption_count. + * + * @return null|int */ public function getClipOrRedemptionCount() : ?int { @@ -316,6 +314,8 @@ public function setClipOrRedemptionCount(?int $clip_or_redemption_count) : self /** * Gets payment_event_id. + * + * @return null|string */ public function getPaymentEventId() : ?string { @@ -336,6 +336,8 @@ public function setPaymentEventId(?string $payment_event_id) : self /** * Gets fee_component. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\FeeComponent */ public function getFeeComponent() : ?FeeComponent { @@ -356,6 +358,8 @@ public function setFeeComponent(?FeeComponent $fee_component) : self /** * Gets charge_component. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\ChargeComponent */ public function getChargeComponent() : ?ChargeComponent { @@ -376,6 +380,8 @@ public function setChargeComponent(?ChargeComponent $charge_component) : self /** * Gets total_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTotalAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/Currency.php b/src/AmazonPHP/SellingPartner/Model/Finances/Currency.php index 8261aab5d..44e04415b 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/Currency.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/Currency.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return null|string */ public function getCurrencyCode() : ?string { @@ -209,6 +201,8 @@ public function setCurrencyCode(?string $currency_code) : self /** * Gets currency_amount. + * + * @return null|float */ public function getCurrencyAmount() : ?float { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/DebtRecoveryEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/DebtRecoveryEvent.php index 90b31ee76..e24ce6f99 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/DebtRecoveryEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/DebtRecoveryEvent.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -214,6 +204,8 @@ public function validate() : void /** * Gets debt_recovery_type. + * + * @return null|string */ public function getDebtRecoveryType() : ?string { @@ -234,6 +226,8 @@ public function setDebtRecoveryType(?string $debt_recovery_type) : self /** * Gets recovery_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getRecoveryAmount() : ?Currency { @@ -254,6 +248,8 @@ public function setRecoveryAmount(?Currency $recovery_amount) : self /** * Gets over_payment_credit. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getOverPaymentCredit() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/DebtRecoveryItem.php b/src/AmazonPHP/SellingPartner/Model/Finances/DebtRecoveryItem.php index da1c3cff9..c3d70153c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/DebtRecoveryItem.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/DebtRecoveryItem.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets recovery_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getRecoveryAmount() : ?Currency { @@ -228,6 +220,8 @@ public function setRecoveryAmount(?Currency $recovery_amount) : self /** * Gets original_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getOriginalAmount() : ?Currency { @@ -248,6 +242,8 @@ public function setOriginalAmount(?Currency $original_amount) : self /** * Gets group_begin_date. + * + * @return null|\DateTimeInterface */ public function getGroupBeginDate() : ?\DateTimeInterface { @@ -268,6 +264,8 @@ public function setGroupBeginDate(?\DateTimeInterface $group_begin_date) : self /** * Gets group_end_date. + * + * @return null|\DateTimeInterface */ public function getGroupEndDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/DirectPayment.php b/src/AmazonPHP/SellingPartner/Model/Finances/DirectPayment.php index 27549eae6..4f095b597 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/DirectPayment.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/DirectPayment.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets direct_payment_type. + * + * @return null|string */ public function getDirectPaymentType() : ?string { @@ -212,6 +204,8 @@ public function setDirectPaymentType(?string $direct_payment_type) : self /** * Gets direct_payment_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getDirectPaymentAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/Error.php b/src/AmazonPHP/SellingPartner/Model/Finances/Error.php index b6a718793..a6038e4ce 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/FBALiquidationEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/FBALiquidationEvent.php index ca7cabfb9..3a9f752e5 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/FBALiquidationEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/FBALiquidationEvent.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -228,6 +220,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets original_removal_order_id. + * + * @return null|string */ public function getOriginalRemovalOrderId() : ?string { @@ -248,6 +242,8 @@ public function setOriginalRemovalOrderId(?string $original_removal_order_id) : /** * Gets liquidation_proceeds_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getLiquidationProceedsAmount() : ?Currency { @@ -268,6 +264,8 @@ public function setLiquidationProceedsAmount(?Currency $liquidation_proceeds_amo /** * Gets liquidation_fee_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getLiquidationFeeAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/FailedAdhocDisbursementEventList.php b/src/AmazonPHP/SellingPartner/Model/Finances/FailedAdhocDisbursementEventList.php index 4d52690c4..18728bae9 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/FailedAdhocDisbursementEventList.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/FailedAdhocDisbursementEventList.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -222,6 +212,8 @@ public function validate() : void /** * Gets funds_transfers_type. + * + * @return null|string */ public function getFundsTransfersType() : ?string { @@ -242,6 +234,8 @@ public function setFundsTransfersType(?string $funds_transfers_type) : self /** * Gets transfer_id. + * + * @return null|string */ public function getTransferId() : ?string { @@ -262,6 +256,8 @@ public function setTransferId(?string $transfer_id) : self /** * Gets disbursement_id. + * + * @return null|string */ public function getDisbursementId() : ?string { @@ -282,6 +278,8 @@ public function setDisbursementId(?string $disbursement_id) : self /** * Gets payment_disbursement_type. + * + * @return null|string */ public function getPaymentDisbursementType() : ?string { @@ -302,6 +300,8 @@ public function setPaymentDisbursementType(?string $payment_disbursement_type) : /** * Gets status. + * + * @return null|string */ public function getStatus() : ?string { @@ -322,6 +322,8 @@ public function setStatus(?string $status) : self /** * Gets transfer_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTransferAmount() : ?Currency { @@ -342,6 +344,8 @@ public function setTransferAmount(?Currency $transfer_amount) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/FeeComponent.php b/src/AmazonPHP/SellingPartner/Model/Finances/FeeComponent.php index 4ddeaa25e..9553b9665 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/FeeComponent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/FeeComponent.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets fee_type. + * + * @return null|string */ public function getFeeType() : ?string { @@ -212,6 +204,8 @@ public function setFeeType(?string $fee_type) : self /** * Gets fee_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getFeeAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/FinancialEventGroup.php b/src/AmazonPHP/SellingPartner/Model/Finances/FinancialEventGroup.php index bf428bf83..d99829227 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/FinancialEventGroup.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/FinancialEventGroup.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -254,6 +244,8 @@ public function validate() : void /** * Gets financial_event_group_id. + * + * @return null|string */ public function getFinancialEventGroupId() : ?string { @@ -274,6 +266,8 @@ public function setFinancialEventGroupId(?string $financial_event_group_id) : se /** * Gets processing_status. + * + * @return null|string */ public function getProcessingStatus() : ?string { @@ -294,6 +288,8 @@ public function setProcessingStatus(?string $processing_status) : self /** * Gets fund_transfer_status. + * + * @return null|string */ public function getFundTransferStatus() : ?string { @@ -314,6 +310,8 @@ public function setFundTransferStatus(?string $fund_transfer_status) : self /** * Gets original_total. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getOriginalTotal() : ?Currency { @@ -334,6 +332,8 @@ public function setOriginalTotal(?Currency $original_total) : self /** * Gets converted_total. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getConvertedTotal() : ?Currency { @@ -354,6 +354,8 @@ public function setConvertedTotal(?Currency $converted_total) : self /** * Gets fund_transfer_date. + * + * @return null|\DateTimeInterface */ public function getFundTransferDate() : ?\DateTimeInterface { @@ -374,6 +376,8 @@ public function setFundTransferDate(?\DateTimeInterface $fund_transfer_date) : s /** * Gets trace_id. + * + * @return null|string */ public function getTraceId() : ?string { @@ -394,6 +398,8 @@ public function setTraceId(?string $trace_id) : self /** * Gets account_tail. + * + * @return null|string */ public function getAccountTail() : ?string { @@ -414,6 +420,8 @@ public function setAccountTail(?string $account_tail) : self /** * Gets beginning_balance. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getBeginningBalance() : ?Currency { @@ -434,6 +442,8 @@ public function setBeginningBalance(?Currency $beginning_balance) : self /** * Gets financial_event_group_start. + * + * @return null|\DateTimeInterface */ public function getFinancialEventGroupStart() : ?\DateTimeInterface { @@ -454,6 +464,8 @@ public function setFinancialEventGroupStart(?\DateTimeInterface $financial_event /** * Gets financial_event_group_end. + * + * @return null|\DateTimeInterface */ public function getFinancialEventGroupEnd() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/FinancialEvents.php b/src/AmazonPHP/SellingPartner/Model/Finances/FinancialEvents.php index 2cb781984..2d4654104 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/FinancialEvents.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/FinancialEvents.php @@ -296,8 +296,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -306,8 +304,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -317,8 +313,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -327,8 +321,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -337,8 +329,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -350,7 +340,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -1042,6 +1032,8 @@ public function setChargeRefundEventList(?array $charge_refund_event_list) : sel /** * Gets failed_adhoc_disbursement_event_list. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\FailedAdhocDisbursementEventList */ public function getFailedAdhocDisbursementEventList() : ?FailedAdhocDisbursementEventList { @@ -1062,6 +1054,8 @@ public function setFailedAdhocDisbursementEventList(?FailedAdhocDisbursementEven /** * Gets value_added_service_charge_event_list. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\ValueAddedServiceChargeEventList */ public function getValueAddedServiceChargeEventList() : ?ValueAddedServiceChargeEventList { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ImagingServicesFeeEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/ImagingServicesFeeEvent.php index 60fc7e0fe..a6a2691aa 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ImagingServicesFeeEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ImagingServicesFeeEvent.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -201,6 +191,8 @@ public function validate() : void /** * Gets imaging_request_billing_item_id. + * + * @return null|string */ public function getImagingRequestBillingItemId() : ?string { @@ -221,6 +213,8 @@ public function setImagingRequestBillingItemId(?string $imaging_request_billing_ /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -241,6 +235,8 @@ public function setAsin(?string $asin) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventGroupsPayload.php b/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventGroupsPayload.php index 5d3e7f0dd..dee99ce48 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventGroupsPayload.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventGroupsPayload.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventGroupsResponse.php b/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventGroupsResponse.php index 90494c820..c21d1981d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventGroupsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventGroupsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventGroupsPayload */ public function getPayload() : ?ListFinancialEventGroupsPayload { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventsPayload.php b/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventsPayload.php index 3d91914b5..a8b2f151c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventsPayload.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventsPayload.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { @@ -212,6 +204,8 @@ public function setNextToken(?string $next_token) : self /** * Gets financial_events. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\FinancialEvents */ public function getFinancialEvents() : ?FinancialEvents { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventsResponse.php b/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventsResponse.php index 8f7b7dd61..c9367c6bd 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ListFinancialEventsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\ListFinancialEventsPayload */ public function getPayload() : ?ListFinancialEventsPayload { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/LoanServicingEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/LoanServicingEvent.php index fa93d08c3..7362ff025 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/LoanServicingEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/LoanServicingEvent.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets loan_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getLoanAmount() : ?Currency { @@ -212,6 +204,8 @@ public function setLoanAmount(?Currency $loan_amount) : self /** * Gets source_business_event_type. + * + * @return null|string */ public function getSourceBusinessEventType() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/NetworkComminglingTransactionEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/NetworkComminglingTransactionEvent.php index 7bc399927..90e5f1667 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/NetworkComminglingTransactionEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/NetworkComminglingTransactionEvent.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -232,6 +222,8 @@ public function validate() : void /** * Gets transaction_type. + * + * @return null|string */ public function getTransactionType() : ?string { @@ -252,6 +244,8 @@ public function setTransactionType(?string $transaction_type) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -272,6 +266,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets net_co_transaction_id. + * + * @return null|string */ public function getNetCoTransactionId() : ?string { @@ -292,6 +288,8 @@ public function setNetCoTransactionId(?string $net_co_transaction_id) : self /** * Gets swap_reason. + * + * @return null|string */ public function getSwapReason() : ?string { @@ -312,6 +310,8 @@ public function setSwapReason(?string $swap_reason) : self /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -332,6 +332,8 @@ public function setAsin(?string $asin) : self /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -352,6 +354,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets tax_exclusive_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxExclusiveAmount() : ?Currency { @@ -372,6 +376,8 @@ public function setTaxExclusiveAmount(?Currency $tax_exclusive_amount) : self /** * Gets tax_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/PayWithAmazonEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/PayWithAmazonEvent.php index 0e838dea0..dbd4ec4e1 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/PayWithAmazonEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/PayWithAmazonEvent.php @@ -158,8 +158,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +166,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +175,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +183,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +191,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +202,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets seller_order_id. + * + * @return null|string */ public function getSellerOrderId() : ?string { @@ -260,6 +252,8 @@ public function setSellerOrderId(?string $seller_order_id) : self /** * Gets transaction_posted_date. + * + * @return null|\DateTimeInterface */ public function getTransactionPostedDate() : ?\DateTimeInterface { @@ -280,6 +274,8 @@ public function setTransactionPostedDate(?\DateTimeInterface $transaction_posted /** * Gets business_object_type. + * + * @return null|string */ public function getBusinessObjectType() : ?string { @@ -300,6 +296,8 @@ public function setBusinessObjectType(?string $business_object_type) : self /** * Gets sales_channel. + * + * @return null|string */ public function getSalesChannel() : ?string { @@ -320,6 +318,8 @@ public function setSalesChannel(?string $sales_channel) : self /** * Gets charge. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\ChargeComponent */ public function getCharge() : ?ChargeComponent { @@ -362,6 +362,8 @@ public function setFeeList(?array $fee_list) : self /** * Gets payment_amount_type. + * + * @return null|string */ public function getPaymentAmountType() : ?string { @@ -382,6 +384,8 @@ public function setPaymentAmountType(?string $payment_amount_type) : self /** * Gets amount_description. + * + * @return null|string */ public function getAmountDescription() : ?string { @@ -402,6 +406,8 @@ public function setAmountDescription(?string $amount_description) : self /** * Gets fulfillment_channel. + * + * @return null|string */ public function getFulfillmentChannel() : ?string { @@ -422,6 +428,8 @@ public function setFulfillmentChannel(?string $fulfillment_channel) : self /** * Gets store_name. + * + * @return null|string */ public function getStoreName() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ProductAdsPaymentEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/ProductAdsPaymentEvent.php index 9f524d7b5..374822003 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ProductAdsPaymentEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ProductAdsPaymentEvent.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -244,6 +236,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets transaction_type. + * + * @return null|string */ public function getTransactionType() : ?string { @@ -264,6 +258,8 @@ public function setTransactionType(?string $transaction_type) : self /** * Gets invoice_id. + * + * @return null|string */ public function getInvoiceId() : ?string { @@ -284,6 +280,8 @@ public function setInvoiceId(?string $invoice_id) : self /** * Gets base_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getBaseValue() : ?Currency { @@ -304,6 +302,8 @@ public function setBaseValue(?Currency $base_value) : self /** * Gets tax_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxValue() : ?Currency { @@ -324,6 +324,8 @@ public function setTaxValue(?Currency $tax_value) : self /** * Gets transaction_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTransactionValue() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/Promotion.php b/src/AmazonPHP/SellingPartner/Model/Finances/Promotion.php index a34faf7b4..ec754a133 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/Promotion.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/Promotion.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets promotion_type. + * + * @return null|string */ public function getPromotionType() : ?string { @@ -218,6 +210,8 @@ public function setPromotionType(?string $promotion_type) : self /** * Gets promotion_id. + * + * @return null|string */ public function getPromotionId() : ?string { @@ -238,6 +232,8 @@ public function setPromotionId(?string $promotion_id) : self /** * Gets promotion_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getPromotionAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentAdjustmentEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentAdjustmentEvent.php index a22981203..693cbfb97 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentAdjustmentEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentAdjustmentEvent.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -213,6 +203,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -233,6 +225,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets adjustment_event_id. + * + * @return null|string */ public function getAdjustmentEventId() : ?string { @@ -253,6 +247,8 @@ public function setAdjustmentEventId(?string $adjustment_event_id) : self /** * Gets merchant_order_id. + * + * @return null|string */ public function getMerchantOrderId() : ?string { @@ -273,6 +269,8 @@ public function setMerchantOrderId(?string $merchant_order_id) : self /** * Gets order_id. + * + * @return null|string */ public function getOrderId() : ?string { @@ -293,6 +291,8 @@ public function setOrderId(?string $order_id) : self /** * Gets transaction_type. + * + * @return null|string */ public function getTransactionType() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentEvent.php index 7500a97db..4ec35a706 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentEvent.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -207,6 +197,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -227,6 +219,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets merchant_order_id. + * + * @return null|string */ public function getMerchantOrderId() : ?string { @@ -247,6 +241,8 @@ public function setMerchantOrderId(?string $merchant_order_id) : self /** * Gets order_id. + * + * @return null|string */ public function getOrderId() : ?string { @@ -267,6 +263,8 @@ public function setOrderId(?string $order_id) : self /** * Gets transaction_type. + * + * @return null|string */ public function getTransactionType() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentItem.php b/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentItem.php index 708c7a701..9ccb95f87 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentItem.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentItem.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets removal_shipment_item_id. + * + * @return null|string */ public function getRemovalShipmentItemId() : ?string { @@ -260,6 +252,8 @@ public function setRemovalShipmentItemId(?string $removal_shipment_item_id) : se /** * Gets tax_collection_model. + * + * @return null|string */ public function getTaxCollectionModel() : ?string { @@ -280,6 +274,8 @@ public function setTaxCollectionModel(?string $tax_collection_model) : self /** * Gets fulfillment_network_sku. + * + * @return null|string */ public function getFulfillmentNetworkSku() : ?string { @@ -300,6 +296,8 @@ public function setFulfillmentNetworkSku(?string $fulfillment_network_sku) : sel /** * Gets quantity. + * + * @return null|int */ public function getQuantity() : ?int { @@ -320,6 +318,8 @@ public function setQuantity(?int $quantity) : self /** * Gets revenue. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getRevenue() : ?Currency { @@ -340,6 +340,8 @@ public function setRevenue(?Currency $revenue) : self /** * Gets fee_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getFeeAmount() : ?Currency { @@ -360,6 +362,8 @@ public function setFeeAmount(?Currency $fee_amount) : self /** * Gets tax_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxAmount() : ?Currency { @@ -380,6 +384,8 @@ public function setTaxAmount(?Currency $tax_amount) : self /** * Gets tax_withheld. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxWithheld() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentItemAdjustment.php b/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentItemAdjustment.php index d309176a5..cec4916d6 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentItemAdjustment.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/RemovalShipmentItemAdjustment.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -230,6 +220,8 @@ public function validate() : void /** * Gets removal_shipment_item_id. + * + * @return null|string */ public function getRemovalShipmentItemId() : ?string { @@ -250,6 +242,8 @@ public function setRemovalShipmentItemId(?string $removal_shipment_item_id) : se /** * Gets tax_collection_model. + * + * @return null|string */ public function getTaxCollectionModel() : ?string { @@ -270,6 +264,8 @@ public function setTaxCollectionModel(?string $tax_collection_model) : self /** * Gets fulfillment_network_sku. + * + * @return null|string */ public function getFulfillmentNetworkSku() : ?string { @@ -290,6 +286,8 @@ public function setFulfillmentNetworkSku(?string $fulfillment_network_sku) : sel /** * Gets adjusted_quantity. + * + * @return null|int */ public function getAdjustedQuantity() : ?int { @@ -310,6 +308,8 @@ public function setAdjustedQuantity(?int $adjusted_quantity) : self /** * Gets revenue_adjustment. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getRevenueAdjustment() : ?Currency { @@ -330,6 +330,8 @@ public function setRevenueAdjustment(?Currency $revenue_adjustment) : self /** * Gets tax_amount_adjustment. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxAmountAdjustment() : ?Currency { @@ -350,6 +352,8 @@ public function setTaxAmountAdjustment(?Currency $tax_amount_adjustment) : self /** * Gets tax_withheld_adjustment. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxWithheldAdjustment() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/RentalTransactionEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/RentalTransactionEvent.php index a4c3fbb63..b63577ec5 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/RentalTransactionEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/RentalTransactionEvent.php @@ -158,8 +158,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +166,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +175,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +183,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +191,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +202,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -244,6 +234,8 @@ public function validate() : void /** * Gets amazon_order_id. + * + * @return null|string */ public function getAmazonOrderId() : ?string { @@ -264,6 +256,8 @@ public function setAmazonOrderId(?string $amazon_order_id) : self /** * Gets rental_event_type. + * + * @return null|string */ public function getRentalEventType() : ?string { @@ -284,6 +278,8 @@ public function setRentalEventType(?string $rental_event_type) : self /** * Gets extension_length. + * + * @return null|int */ public function getExtensionLength() : ?int { @@ -304,6 +300,8 @@ public function setExtensionLength(?int $extension_length) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -368,6 +366,8 @@ public function setRentalFeeList(?array $rental_fee_list) : self /** * Gets marketplace_name. + * + * @return null|string */ public function getMarketplaceName() : ?string { @@ -388,6 +388,8 @@ public function setMarketplaceName(?string $marketplace_name) : self /** * Gets rental_initial_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getRentalInitialValue() : ?Currency { @@ -408,6 +410,8 @@ public function setRentalInitialValue(?Currency $rental_initial_value) : self /** * Gets rental_reimbursement. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getRentalReimbursement() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/RetrochargeEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/RetrochargeEvent.php index 0090d2e20..ce31b6a4e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/RetrochargeEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/RetrochargeEvent.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -226,6 +216,8 @@ public function validate() : void /** * Gets retrocharge_event_type. + * + * @return null|string */ public function getRetrochargeEventType() : ?string { @@ -246,6 +238,8 @@ public function setRetrochargeEventType(?string $retrocharge_event_type) : self /** * Gets amazon_order_id. + * + * @return null|string */ public function getAmazonOrderId() : ?string { @@ -266,6 +260,8 @@ public function setAmazonOrderId(?string $amazon_order_id) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -286,6 +282,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets base_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getBaseTax() : ?Currency { @@ -306,6 +304,8 @@ public function setBaseTax(?Currency $base_tax) : self /** * Gets shipping_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getShippingTax() : ?Currency { @@ -326,6 +326,8 @@ public function setShippingTax(?Currency $shipping_tax) : self /** * Gets marketplace_name. + * + * @return null|string */ public function getMarketplaceName() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/SAFETReimbursementEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/SAFETReimbursementEvent.php index ab8b3d057..6a2a7f756 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/SAFETReimbursementEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/SAFETReimbursementEvent.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -210,6 +200,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -230,6 +222,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets safet_claim_id. + * + * @return null|string */ public function getSafetClaimId() : ?string { @@ -250,6 +244,8 @@ public function setSafetClaimId(?string $safet_claim_id) : self /** * Gets reimbursed_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getReimbursedAmount() : ?Currency { @@ -270,6 +266,8 @@ public function setReimbursedAmount(?Currency $reimbursed_amount) : self /** * Gets reason_code. + * + * @return null|string */ public function getReasonCode() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/SAFETReimbursementItem.php b/src/AmazonPHP/SellingPartner/Model/Finances/SAFETReimbursementItem.php index fc65f902d..63d690ff4 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/SAFETReimbursementItem.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/SAFETReimbursementItem.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -217,6 +207,8 @@ public function setItemChargeList(?array $item_charge_list) : self /** * Gets product_description. + * + * @return null|string */ public function getProductDescription() : ?string { @@ -237,6 +229,8 @@ public function setProductDescription(?string $product_description) : self /** * Gets quantity. + * + * @return null|string */ public function getQuantity() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/SellerDealPaymentEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/SellerDealPaymentEvent.php index 14ac6b026..51d7dd724 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/SellerDealPaymentEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/SellerDealPaymentEvent.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -236,6 +226,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -256,6 +248,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets deal_id. + * + * @return null|string */ public function getDealId() : ?string { @@ -276,6 +270,8 @@ public function setDealId(?string $deal_id) : self /** * Gets deal_description. + * + * @return null|string */ public function getDealDescription() : ?string { @@ -296,6 +292,8 @@ public function setDealDescription(?string $deal_description) : self /** * Gets event_type. + * + * @return null|string */ public function getEventType() : ?string { @@ -316,6 +314,8 @@ public function setEventType(?string $event_type) : self /** * Gets fee_type. + * + * @return null|string */ public function getFeeType() : ?string { @@ -336,6 +336,8 @@ public function setFeeType(?string $fee_type) : self /** * Gets fee_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getFeeAmount() : ?Currency { @@ -356,6 +358,8 @@ public function setFeeAmount(?Currency $fee_amount) : self /** * Gets tax_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTaxAmount() : ?Currency { @@ -376,6 +380,8 @@ public function setTaxAmount(?Currency $tax_amount) : self /** * Gets total_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTotalAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/SellerReviewEnrollmentPaymentEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/SellerReviewEnrollmentPaymentEvent.php index bf5ba8a84..3020b0e2f 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/SellerReviewEnrollmentPaymentEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/SellerReviewEnrollmentPaymentEvent.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -244,6 +236,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets enrollment_id. + * + * @return null|string */ public function getEnrollmentId() : ?string { @@ -264,6 +258,8 @@ public function setEnrollmentId(?string $enrollment_id) : self /** * Gets parent_asin. + * + * @return null|string */ public function getParentAsin() : ?string { @@ -284,6 +280,8 @@ public function setParentAsin(?string $parent_asin) : self /** * Gets fee_component. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\FeeComponent */ public function getFeeComponent() : ?FeeComponent { @@ -304,6 +302,8 @@ public function setFeeComponent(?FeeComponent $fee_component) : self /** * Gets charge_component. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\ChargeComponent */ public function getChargeComponent() : ?ChargeComponent { @@ -324,6 +324,8 @@ public function setChargeComponent(?ChargeComponent $charge_component) : self /** * Gets total_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTotalAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ServiceFeeEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/ServiceFeeEvent.php index 3da7d8e08..ceff0e607 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ServiceFeeEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ServiceFeeEvent.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -219,6 +209,8 @@ public function validate() : void /** * Gets amazon_order_id. + * + * @return null|string */ public function getAmazonOrderId() : ?string { @@ -239,6 +231,8 @@ public function setAmazonOrderId(?string $amazon_order_id) : self /** * Gets fee_reason. + * + * @return null|string */ public function getFeeReason() : ?string { @@ -281,6 +275,8 @@ public function setFeeList(?array $fee_list) : self /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -301,6 +297,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets fn_sku. + * + * @return null|string */ public function getFnSku() : ?string { @@ -321,6 +319,8 @@ public function setFnSku(?string $fn_sku) : self /** * Gets fee_description. + * + * @return null|string */ public function getFeeDescription() : ?string { @@ -341,6 +341,8 @@ public function setFeeDescription(?string $fee_description) : self /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ShipmentEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/ShipmentEvent.php index 42a6c4ac8..a34e2e923 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ShipmentEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ShipmentEvent.php @@ -176,8 +176,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -186,8 +184,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -197,8 +193,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -207,8 +201,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -217,8 +209,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -230,7 +220,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -255,6 +245,8 @@ public function validate() : void /** * Gets amazon_order_id. + * + * @return null|string */ public function getAmazonOrderId() : ?string { @@ -275,6 +267,8 @@ public function setAmazonOrderId(?string $amazon_order_id) : self /** * Gets seller_order_id. + * + * @return null|string */ public function getSellerOrderId() : ?string { @@ -295,6 +289,8 @@ public function setSellerOrderId(?string $seller_order_id) : self /** * Gets marketplace_name. + * + * @return null|string */ public function getMarketplaceName() : ?string { @@ -469,6 +465,8 @@ public function setDirectPaymentList(?array $direct_payment_list) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ShipmentItem.php b/src/AmazonPHP/SellingPartner/Model/Finances/ShipmentItem.php index 8578dc419..dad911352 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ShipmentItem.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ShipmentItem.php @@ -176,8 +176,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -186,8 +184,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -197,8 +193,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -207,8 +201,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -217,8 +209,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -230,7 +220,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -262,6 +252,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -282,6 +274,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets order_item_id. + * + * @return null|string */ public function getOrderItemId() : ?string { @@ -302,6 +296,8 @@ public function setOrderItemId(?string $order_item_id) : self /** * Gets order_adjustment_item_id. + * + * @return null|string */ public function getOrderAdjustmentItemId() : ?string { @@ -322,6 +318,8 @@ public function setOrderAdjustmentItemId(?string $order_adjustment_item_id) : se /** * Gets quantity_shipped. + * + * @return null|int */ public function getQuantityShipped() : ?int { @@ -496,6 +494,8 @@ public function setPromotionAdjustmentList(?array $promotion_adjustment_list) : /** * Gets cost_of_points_granted. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getCostOfPointsGranted() : ?Currency { @@ -516,6 +516,8 @@ public function setCostOfPointsGranted(?Currency $cost_of_points_granted) : self /** * Gets cost_of_points_returned. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getCostOfPointsReturned() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/SolutionProviderCreditEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/SolutionProviderCreditEvent.php index 7a0b43a9f..e67deecac 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/SolutionProviderCreditEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/SolutionProviderCreditEvent.php @@ -158,8 +158,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +166,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +175,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +183,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +191,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +202,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets provider_transaction_type. + * + * @return null|string */ public function getProviderTransactionType() : ?string { @@ -260,6 +252,8 @@ public function setProviderTransactionType(?string $provider_transaction_type) : /** * Gets seller_order_id. + * + * @return null|string */ public function getSellerOrderId() : ?string { @@ -280,6 +274,8 @@ public function setSellerOrderId(?string $seller_order_id) : self /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -300,6 +296,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets marketplace_country_code. + * + * @return null|string */ public function getMarketplaceCountryCode() : ?string { @@ -320,6 +318,8 @@ public function setMarketplaceCountryCode(?string $marketplace_country_code) : s /** * Gets seller_id. + * + * @return null|string */ public function getSellerId() : ?string { @@ -340,6 +340,8 @@ public function setSellerId(?string $seller_id) : self /** * Gets seller_store_name. + * + * @return null|string */ public function getSellerStoreName() : ?string { @@ -360,6 +362,8 @@ public function setSellerStoreName(?string $seller_store_name) : self /** * Gets provider_id. + * + * @return null|string */ public function getProviderId() : ?string { @@ -380,6 +384,8 @@ public function setProviderId(?string $provider_id) : self /** * Gets provider_store_name. + * + * @return null|string */ public function getProviderStoreName() : ?string { @@ -400,6 +406,8 @@ public function setProviderStoreName(?string $provider_store_name) : self /** * Gets transaction_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTransactionAmount() : ?Currency { @@ -420,6 +428,8 @@ public function setTransactionAmount(?Currency $transaction_amount) : self /** * Gets transaction_creation_date. + * + * @return null|\DateTimeInterface */ public function getTransactionCreationDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/TDSReimbursementEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/TDSReimbursementEvent.php index 861b000f1..d5de0fcbd 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/TDSReimbursementEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/TDSReimbursementEvent.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -218,6 +210,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets tds_order_id. + * + * @return null|string */ public function getTdsOrderId() : ?string { @@ -238,6 +232,8 @@ public function setTdsOrderId(?string $tds_order_id) : self /** * Gets reimbursed_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getReimbursedAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithheldComponent.php b/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithheldComponent.php index b0e437fe1..a5f53f9a1 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithheldComponent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithheldComponent.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets tax_collection_model. + * + * @return null|string */ public function getTaxCollectionModel() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithholdingEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithholdingEvent.php index 43875ec02..3e30690fd 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithholdingEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithholdingEvent.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -232,6 +224,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets base_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getBaseAmount() : ?Currency { @@ -252,6 +246,8 @@ public function setBaseAmount(?Currency $base_amount) : self /** * Gets withheld_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getWithheldAmount() : ?Currency { @@ -272,6 +268,8 @@ public function setWithheldAmount(?Currency $withheld_amount) : self /** * Gets tax_withholding_period. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\TaxWithholdingPeriod */ public function getTaxWithholdingPeriod() : ?TaxWithholdingPeriod { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithholdingPeriod.php b/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithholdingPeriod.php index c020ff967..1a2f700c2 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithholdingPeriod.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/TaxWithholdingPeriod.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets start_date. + * + * @return null|\DateTimeInterface */ public function getStartDate() : ?\DateTimeInterface { @@ -209,6 +201,8 @@ public function setStartDate(?\DateTimeInterface $start_date) : self /** * Gets end_date. + * + * @return null|\DateTimeInterface */ public function getEndDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/TrialShipmentEvent.php b/src/AmazonPHP/SellingPartner/Model/Finances/TrialShipmentEvent.php index 61cfde87f..1f7cf0fd5 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/TrialShipmentEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/TrialShipmentEvent.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -207,6 +197,8 @@ public function validate() : void /** * Gets amazon_order_id. + * + * @return null|string */ public function getAmazonOrderId() : ?string { @@ -227,6 +219,8 @@ public function setAmazonOrderId(?string $amazon_order_id) : self /** * Gets financial_event_group_id. + * + * @return null|string */ public function getFinancialEventGroupId() : ?string { @@ -247,6 +241,8 @@ public function setFinancialEventGroupId(?string $financial_event_group_id) : se /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -267,6 +263,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets sku. + * + * @return null|string */ public function getSku() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Finances/ValueAddedServiceChargeEventList.php b/src/AmazonPHP/SellingPartner/Model/Finances/ValueAddedServiceChargeEventList.php index 1f0944626..409987ff8 100644 --- a/src/AmazonPHP/SellingPartner/Model/Finances/ValueAddedServiceChargeEventList.php +++ b/src/AmazonPHP/SellingPartner/Model/Finances/ValueAddedServiceChargeEventList.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -204,6 +194,8 @@ public function validate() : void /** * Gets transaction_type. + * + * @return null|string */ public function getTransactionType() : ?string { @@ -224,6 +216,8 @@ public function setTransactionType(?string $transaction_type) : self /** * Gets posted_date. + * + * @return null|\DateTimeInterface */ public function getPostedDate() : ?\DateTimeInterface { @@ -244,6 +238,8 @@ public function setPostedDate(?\DateTimeInterface $posted_date) : self /** * Gets description. + * + * @return null|string */ public function getDescription() : ?string { @@ -264,6 +260,8 @@ public function setDescription(?string $description) : self /** * Gets transaction_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Finances\Currency */ public function getTransactionAmount() : ?Currency { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ASINInboundGuidance.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ASINInboundGuidance.php index 669d4fc0e..8c2d39414 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ASINInboundGuidance.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ASINInboundGuidance.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets asin. + * + * @return string */ public function getAsin() : string { @@ -222,6 +214,8 @@ public function setAsin(string $asin) : self /** * Gets inbound_guidance. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundGuidance */ public function getInboundGuidance() : InboundGuidance { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ASINPrepInstructions.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ASINPrepInstructions.php index d15f2689d..ac48cd0e3 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ASINPrepInstructions.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ASINPrepInstructions.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -201,6 +191,8 @@ public function validate() : void /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -221,6 +213,8 @@ public function setAsin(?string $asin) : self /** * Gets barcode_instruction. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\BarcodeInstruction */ public function getBarcodeInstruction() : ?BarcodeInstruction { @@ -241,6 +235,8 @@ public function setBarcodeInstruction(?BarcodeInstruction $barcode_instruction) /** * Gets prep_guidance. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\PrepGuidance */ public function getPrepGuidance() : ?PrepGuidance { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Address.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Address.php index ea6aa96d7..528c50301 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Address.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -272,6 +262,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -292,6 +284,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -312,6 +306,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -332,6 +328,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets district_or_county. + * + * @return null|string */ public function getDistrictOrCounty() : ?string { @@ -352,6 +350,8 @@ public function setDistrictOrCounty(?string $district_or_county) : self /** * Gets city. + * + * @return string */ public function getCity() : string { @@ -372,6 +372,8 @@ public function setCity(string $city) : self /** * Gets state_or_province_code. + * + * @return string */ public function getStateOrProvinceCode() : string { @@ -392,6 +394,8 @@ public function setStateOrProvinceCode(string $state_or_province_code) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -412,6 +416,8 @@ public function setCountryCode(string $country_code) : self /** * Gets postal_code. + * + * @return string */ public function getPostalCode() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/AmazonPrepFeesDetails.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/AmazonPrepFeesDetails.php index 1c65a1fba..bcfae97b9 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/AmazonPrepFeesDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/AmazonPrepFeesDetails.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets prep_instruction. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\PrepInstruction */ public function getPrepInstruction() : ?PrepInstruction { @@ -212,6 +204,8 @@ public function setPrepInstruction(?PrepInstruction $prep_instruction) : self /** * Gets fee_per_unit. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\Amount */ public function getFeePerUnit() : ?Amount { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Amount.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Amount.php index a59ec2449..34d6136e7 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Amount.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Amount.php @@ -41,7 +41,7 @@ class Amount implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInter */ protected static array $openAPITypes = [ 'currency_code' => '\AmazonPHP\SellingPartner\Model\FulfillmentInbound\CurrencyCode', - 'value' => 'double', + 'value' => 'float', ]; /** @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\CurrencyCode */ public function getCurrencyCode() : CurrencyCode { @@ -216,6 +208,8 @@ public function setCurrencyCode(CurrencyCode $currency_code) : self /** * Gets value. + * + * @return float */ public function getValue() : float { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/BillOfLadingDownloadURL.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/BillOfLadingDownloadURL.php index 67fe457c2..65cfc04a3 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/BillOfLadingDownloadURL.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/BillOfLadingDownloadURL.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets download_url. + * + * @return null|string */ public function getDownloadUrl() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/BoxContentsFeeDetails.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/BoxContentsFeeDetails.php index deedf61ce..5743d55b1 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/BoxContentsFeeDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/BoxContentsFeeDetails.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets total_units. + * + * @return null|int */ public function getTotalUnits() : ?int { @@ -222,6 +214,8 @@ public function setTotalUnits(?int $total_units) : self /** * Gets fee_per_unit. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\Amount */ public function getFeePerUnit() : ?Amount { @@ -242,6 +236,8 @@ public function setFeePerUnit(?Amount $fee_per_unit) : self /** * Gets total_fee. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\Amount */ public function getTotalFee() : ?Amount { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CommonTransportResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CommonTransportResult.php index 9ee3046e5..7e96206f6 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CommonTransportResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CommonTransportResult.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets transport_result. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\TransportResult */ public function getTransportResult() : ?TransportResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmPreorderResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmPreorderResponse.php index e882be05a..c8d4fce2d 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmPreorderResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmPreorderResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\ConfirmPreorderResult */ public function getPayload() : ?ConfirmPreorderResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmPreorderResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmPreorderResult.php index 3a770d777..2ce9bf390 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmPreorderResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmPreorderResult.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets confirmed_need_by_date. + * + * @return null|\DateTimeInterface */ public function getConfirmedNeedByDate() : ?\DateTimeInterface { @@ -209,6 +201,8 @@ public function setConfirmedNeedByDate(?\DateTimeInterface $confirmed_need_by_da /** * Gets confirmed_fulfillable_date. + * + * @return null|\DateTimeInterface */ public function getConfirmedFulfillableDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmTransportResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmTransportResponse.php index ee6e9ee61..410573ee0 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmTransportResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/ConfirmTransportResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\CommonTransportResult */ public function getPayload() : ?CommonTransportResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Contact.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Contact.php index 68c687cf0..28dd65a96 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Contact.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Contact.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -248,6 +240,8 @@ public function setName(string $name) : self /** * Gets phone. + * + * @return string */ public function getPhone() : string { @@ -268,6 +262,8 @@ public function setPhone(string $phone) : self /** * Gets email. + * + * @return string */ public function getEmail() : string { @@ -288,6 +284,8 @@ public function setEmail(string $email) : self /** * Gets fax. + * + * @return null|string */ public function getFax() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanRequest.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanRequest.php index 107801049..10cae6f4a 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanRequest.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -220,6 +210,8 @@ public function validate() : void /** * Gets ship_from_address. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Address */ public function getShipFromAddress() : Address { @@ -240,6 +232,8 @@ public function setShipFromAddress(Address $ship_from_address) : self /** * Gets label_prep_preference. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\LabelPrepPreference */ public function getLabelPrepPreference() : LabelPrepPreference { @@ -260,6 +254,8 @@ public function setLabelPrepPreference(LabelPrepPreference $label_prep_preferenc /** * Gets ship_to_country_code. + * + * @return null|string */ public function getShipToCountryCode() : ?string { @@ -280,6 +276,8 @@ public function setShipToCountryCode(?string $ship_to_country_code) : self /** * Gets ship_to_country_subdivision_code. + * + * @return null|string */ public function getShipToCountrySubdivisionCode() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanResponse.php index e0c5ceb7c..24fb12c73 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\CreateInboundShipmentPlanResult */ public function getPayload() : ?CreateInboundShipmentPlanResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanResult.php index 47762983b..1fb947346 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/CreateInboundShipmentPlanResult.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Dimensions.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Dimensions.php index 5fe975962..4e17e568f 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Dimensions.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Dimensions.php @@ -40,9 +40,9 @@ class Dimensions implements \ArrayAccess, \JsonSerializable, \Stringable, ModelI * @var string[] */ protected static array $openAPITypes = [ - 'length' => 'double', - 'width' => 'double', - 'height' => 'double', + 'length' => 'float', + 'width' => 'float', + 'height' => 'float', 'unit' => '\AmazonPHP\SellingPartner\Model\FulfillmentInbound\UnitOfMeasurement', ]; @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets length. + * + * @return float */ public function getLength() : float { @@ -236,6 +228,8 @@ public function setLength(float $length) : self /** * Gets width. + * + * @return float */ public function getWidth() : float { @@ -256,6 +250,8 @@ public function setWidth(float $width) : self /** * Gets height. + * + * @return float */ public function getHeight() : float { @@ -276,6 +272,8 @@ public function setHeight(float $height) : self /** * Gets unit. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\UnitOfMeasurement */ public function getUnit() : UnitOfMeasurement { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Error.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Error.php index 6f9ec5d22..099be85ca 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/EstimateTransportResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/EstimateTransportResponse.php index c57177be5..8c872b727 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/EstimateTransportResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/EstimateTransportResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\CommonTransportResult */ public function getPayload() : ?CommonTransportResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetBillOfLadingResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetBillOfLadingResponse.php index c3eedfc08..ead507bc8 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetBillOfLadingResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetBillOfLadingResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\BillOfLadingDownloadURL */ public function getPayload() : ?BillOfLadingDownloadURL { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetInboundGuidanceResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetInboundGuidanceResponse.php index 5393ba689..5d6727e70 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetInboundGuidanceResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetInboundGuidanceResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetInboundGuidanceResult */ public function getPayload() : ?GetInboundGuidanceResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetInboundGuidanceResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetInboundGuidanceResult.php index 362babdf4..50020d8f4 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetInboundGuidanceResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetInboundGuidanceResult.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetLabelsResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetLabelsResponse.php index 62214cba5..81b473e3b 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetLabelsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetLabelsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\LabelDownloadURL */ public function getPayload() : ?LabelDownloadURL { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPreorderInfoResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPreorderInfoResponse.php index 546f49451..bb686bff5 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPreorderInfoResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPreorderInfoResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetPreorderInfoResult */ public function getPayload() : ?GetPreorderInfoResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPreorderInfoResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPreorderInfoResult.php index 2d3fea45d..95952c2c5 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPreorderInfoResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPreorderInfoResult.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -201,6 +191,8 @@ public function validate() : void /** * Gets shipment_contains_preorderable_items. + * + * @return null|bool */ public function getShipmentContainsPreorderableItems() : ?bool { @@ -221,6 +213,8 @@ public function setShipmentContainsPreorderableItems(?bool $shipment_contains_pr /** * Gets shipment_confirmed_for_preorder. + * + * @return null|bool */ public function getShipmentConfirmedForPreorder() : ?bool { @@ -241,6 +235,8 @@ public function setShipmentConfirmedForPreorder(?bool $shipment_confirmed_for_pr /** * Gets need_by_date. + * + * @return null|\DateTimeInterface */ public function getNeedByDate() : ?\DateTimeInterface { @@ -261,6 +257,8 @@ public function setNeedByDate(?\DateTimeInterface $need_by_date) : self /** * Gets confirmed_fulfillable_date. + * + * @return null|\DateTimeInterface */ public function getConfirmedFulfillableDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPrepInstructionsResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPrepInstructionsResponse.php index a1b1f59e9..ad4b96f93 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPrepInstructionsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPrepInstructionsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetPrepInstructionsResult */ public function getPayload() : ?GetPrepInstructionsResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPrepInstructionsResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPrepInstructionsResult.php index b405a5f95..c601a9314 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPrepInstructionsResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetPrepInstructionsResult.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentItemsResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentItemsResponse.php index 4bf9b55d1..f205881da 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentItemsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentItemsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentItemsResult */ public function getPayload() : ?GetShipmentItemsResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentItemsResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentItemsResult.php index d90babadf..f618cd64d 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentItemsResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentItemsResult.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -211,6 +201,8 @@ public function setItemData(?array $item_data) : self /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentsResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentsResponse.php index b8e416b4a..f6d4b7385 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetShipmentsResult */ public function getPayload() : ?GetShipmentsResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentsResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentsResult.php index 068ea70d5..a2839205a 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentsResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetShipmentsResult.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -211,6 +201,8 @@ public function setShipmentData(?array $shipment_data) : self /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetTransportDetailsResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetTransportDetailsResponse.php index f7e1c6ace..451ddb1fb 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetTransportDetailsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetTransportDetailsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\GetTransportDetailsResult */ public function getPayload() : ?GetTransportDetailsResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetTransportDetailsResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetTransportDetailsResult.php index e7ced6b15..3fe72d104 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetTransportDetailsResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/GetTransportDetailsResult.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets transport_content. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\TransportContent */ public function getTransportContent() : ?TransportContent { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentHeader.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentHeader.php index b3b9b4eee..4a59448f1 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentHeader.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentHeader.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets shipment_name. + * + * @return string */ public function getShipmentName() : string { @@ -260,6 +252,8 @@ public function setShipmentName(string $shipment_name) : self /** * Gets ship_from_address. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Address */ public function getShipFromAddress() : Address { @@ -280,6 +274,8 @@ public function setShipFromAddress(Address $ship_from_address) : self /** * Gets destination_fulfillment_center_id. + * + * @return string */ public function getDestinationFulfillmentCenterId() : string { @@ -300,6 +296,8 @@ public function setDestinationFulfillmentCenterId(string $destination_fulfillmen /** * Gets are_cases_required. + * + * @return null|bool */ public function getAreCasesRequired() : ?bool { @@ -320,6 +318,8 @@ public function setAreCasesRequired(?bool $are_cases_required) : self /** * Gets shipment_status. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ShipmentStatus */ public function getShipmentStatus() : ShipmentStatus { @@ -340,6 +340,8 @@ public function setShipmentStatus(ShipmentStatus $shipment_status) : self /** * Gets label_prep_preference. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\LabelPrepPreference */ public function getLabelPrepPreference() : LabelPrepPreference { @@ -360,6 +362,8 @@ public function setLabelPrepPreference(LabelPrepPreference $label_prep_preferenc /** * Gets intended_box_contents_source. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\IntendedBoxContentsSource */ public function getIntendedBoxContentsSource() : ?IntendedBoxContentsSource { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentInfo.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentInfo.php index dd0688351..4ca309d89 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentInfo.php @@ -158,8 +158,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +166,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +175,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +183,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +191,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +202,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -250,6 +240,8 @@ public function validate() : void /** * Gets shipment_id. + * + * @return null|string */ public function getShipmentId() : ?string { @@ -270,6 +262,8 @@ public function setShipmentId(?string $shipment_id) : self /** * Gets shipment_name. + * + * @return null|string */ public function getShipmentName() : ?string { @@ -290,6 +284,8 @@ public function setShipmentName(?string $shipment_name) : self /** * Gets ship_from_address. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Address */ public function getShipFromAddress() : Address { @@ -310,6 +306,8 @@ public function setShipFromAddress(Address $ship_from_address) : self /** * Gets destination_fulfillment_center_id. + * + * @return null|string */ public function getDestinationFulfillmentCenterId() : ?string { @@ -330,6 +328,8 @@ public function setDestinationFulfillmentCenterId(?string $destination_fulfillme /** * Gets shipment_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\ShipmentStatus */ public function getShipmentStatus() : ?ShipmentStatus { @@ -350,6 +350,8 @@ public function setShipmentStatus(?ShipmentStatus $shipment_status) : self /** * Gets label_prep_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\LabelPrepType */ public function getLabelPrepType() : ?LabelPrepType { @@ -370,8 +372,10 @@ public function setLabelPrepType(?LabelPrepType $label_prep_type) : self /** * Gets are_cases_required. + * + * @return bool */ - public function getAreCasesRequired() : ?bool + public function getAreCasesRequired() : bool { return $this->container['are_cases_required']; } @@ -390,6 +394,8 @@ public function setAreCasesRequired(bool $are_cases_required) : self /** * Gets confirmed_need_by_date. + * + * @return null|\DateTimeInterface */ public function getConfirmedNeedByDate() : ?\DateTimeInterface { @@ -410,6 +416,8 @@ public function setConfirmedNeedByDate(?\DateTimeInterface $confirmed_need_by_da /** * Gets box_contents_source. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\BoxContentsSource */ public function getBoxContentsSource() : ?BoxContentsSource { @@ -430,6 +438,8 @@ public function setBoxContentsSource(?BoxContentsSource $box_contents_source) : /** * Gets estimated_box_contents_fee. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\BoxContentsFeeDetails */ public function getEstimatedBoxContentsFee() : ?BoxContentsFeeDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentItem.php index 52767c8a5..354d3d580 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentItem.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -232,6 +222,8 @@ public function validate() : void /** * Gets shipment_id. + * + * @return null|string */ public function getShipmentId() : ?string { @@ -252,6 +244,8 @@ public function setShipmentId(?string $shipment_id) : self /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -272,6 +266,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets fulfillment_network_sku. + * + * @return null|string */ public function getFulfillmentNetworkSku() : ?string { @@ -292,6 +288,8 @@ public function setFulfillmentNetworkSku(?string $fulfillment_network_sku) : sel /** * Gets quantity_shipped. + * + * @return int */ public function getQuantityShipped() : int { @@ -312,6 +310,8 @@ public function setQuantityShipped(int $quantity_shipped) : self /** * Gets quantity_received. + * + * @return null|int */ public function getQuantityReceived() : ?int { @@ -332,6 +332,8 @@ public function setQuantityReceived(?int $quantity_received) : self /** * Gets quantity_in_case. + * + * @return null|int */ public function getQuantityInCase() : ?int { @@ -352,6 +354,8 @@ public function setQuantityInCase(?int $quantity_in_case) : self /** * Gets release_date. + * + * @return null|\DateTimeInterface */ public function getReleaseDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlan.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlan.php index 57fbfbb80..5e2f1bf08 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlan.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlan.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -238,6 +228,8 @@ public function validate() : void /** * Gets shipment_id. + * + * @return string */ public function getShipmentId() : string { @@ -258,6 +250,8 @@ public function setShipmentId(string $shipment_id) : self /** * Gets destination_fulfillment_center_id. + * + * @return string */ public function getDestinationFulfillmentCenterId() : string { @@ -278,6 +272,8 @@ public function setDestinationFulfillmentCenterId(string $destination_fulfillmen /** * Gets ship_to_address. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Address */ public function getShipToAddress() : Address { @@ -298,6 +294,8 @@ public function setShipToAddress(Address $ship_to_address) : self /** * Gets label_prep_type. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\LabelPrepType */ public function getLabelPrepType() : LabelPrepType { @@ -340,6 +338,8 @@ public function setItems(array $items) : self /** * Gets estimated_box_contents_fee. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\BoxContentsFeeDetails */ public function getEstimatedBoxContentsFee() : ?BoxContentsFeeDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlanItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlanItem.php index 4e7e8a9dc..6b6e1a592 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlanItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlanItem.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -232,6 +224,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets fulfillment_network_sku. + * + * @return string */ public function getFulfillmentNetworkSku() : string { @@ -252,6 +246,8 @@ public function setFulfillmentNetworkSku(string $fulfillment_network_sku) : self /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlanRequestItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlanRequestItem.php index c3f8a42ec..49c504d6d 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlanRequestItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentPlanRequestItem.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -248,6 +240,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets asin. + * + * @return string */ public function getAsin() : string { @@ -268,6 +262,8 @@ public function setAsin(string $asin) : self /** * Gets condition. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Condition */ public function getCondition() : Condition { @@ -288,6 +284,8 @@ public function setCondition(Condition $condition) : self /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { @@ -308,6 +306,8 @@ public function setQuantity(int $quantity) : self /** * Gets quantity_in_case. + * + * @return null|int */ public function getQuantityInCase() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentRequest.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentRequest.php index c3187164a..219835ab3 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets inbound_shipment_header. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentHeader */ public function getInboundShipmentHeader() : InboundShipmentHeader { @@ -250,6 +242,8 @@ public function setInboundShipmentItems(array $inbound_shipment_items) : self /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentResponse.php index 280c0ed5c..844c79ff1 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundShipmentResult */ public function getPayload() : ?InboundShipmentResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentResult.php index dd42e1f27..2c63b2f06 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InboundShipmentResult.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets shipment_id. + * + * @return string */ public function getShipmentId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InvalidASIN.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InvalidASIN.php index 7abdec2f7..184fbd31b 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InvalidASIN.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InvalidASIN.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -209,6 +201,8 @@ public function setAsin(?string $asin) : self /** * Gets error_reason. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\ErrorReason */ public function getErrorReason() : ?ErrorReason { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InvalidSKU.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InvalidSKU.php index 52927a206..c0268424d 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InvalidSKU.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/InvalidSKU.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -209,6 +201,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets error_reason. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\ErrorReason */ public function getErrorReason() : ?ErrorReason { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/LabelDownloadURL.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/LabelDownloadURL.php index 25f9443d7..9424df1ba 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/LabelDownloadURL.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/LabelDownloadURL.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets download_url. + * + * @return null|string */ public function getDownloadUrl() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredLtlDataInput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredLtlDataInput.php index ed4e7a41a..ed2a3678c 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredLtlDataInput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredLtlDataInput.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets carrier_name. + * + * @return string */ public function getCarrierName() : string { @@ -216,6 +208,8 @@ public function setCarrierName(string $carrier_name) : self /** * Gets pro_number. + * + * @return string */ public function getProNumber() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredLtlDataOutput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredLtlDataOutput.php index 4146ecd17..98c2747fd 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredLtlDataOutput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredLtlDataOutput.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,8 +186,10 @@ public function validate() : void /** * Gets carrier_name. + * + * @return string */ - public function getCarrierName() : ?string + public function getCarrierName() : string { return $this->container['carrier_name']; } @@ -216,8 +208,10 @@ public function setCarrierName(string $carrier_name) : self /** * Gets pro_number. + * + * @return string */ - public function getProNumber() : ?string + public function getProNumber() : string { return $this->container['pro_number']; } diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelDataInput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelDataInput.php index b0703c74c..68c2d694d 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelDataInput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelDataInput.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets carrier_name. + * + * @return string */ public function getCarrierName() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelDataOutput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelDataOutput.php index d69d2b667..6b642699d 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelDataOutput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelDataOutput.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelPackageInput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelPackageInput.php index 8d8a36447..513cad406 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelPackageInput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelPackageInput.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets tracking_id. + * + * @return string */ public function getTrackingId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.php index 5ce6bde5f..847800a97 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,8 +196,10 @@ public function validate() : void /** * Gets carrier_name. + * + * @return string */ - public function getCarrierName() : ?string + public function getCarrierName() : string { return $this->container['carrier_name']; } @@ -226,8 +218,10 @@ public function setCarrierName(string $carrier_name) : self /** * Gets tracking_id. + * + * @return string */ - public function getTrackingId() : ?string + public function getTrackingId() : string { return $this->container['tracking_id']; } @@ -246,6 +240,8 @@ public function setTrackingId(string $tracking_id) : self /** * Gets package_status. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PackageStatus */ public function getPackageStatus() : PackageStatus { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Pallet.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Pallet.php index 9514c423a..dc89da3a4 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Pallet.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Pallet.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets dimensions. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Dimensions */ public function getDimensions() : Dimensions { @@ -228,6 +220,8 @@ public function setDimensions(Dimensions $dimensions) : self /** * Gets weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\Weight */ public function getWeight() : ?Weight { @@ -248,8 +242,10 @@ public function setWeight(?Weight $weight) : self /** * Gets is_stacked. + * + * @return bool */ - public function getIsStacked() : ?bool + public function getIsStacked() : bool { return $this->container['is_stacked']; } diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredEstimate.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredEstimate.php index 5e5705258..3618eece2 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredEstimate.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredEstimate.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets amount. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Amount */ public function getAmount() : Amount { @@ -220,6 +212,8 @@ public function setAmount(Amount $amount) : self /** * Gets confirm_deadline. + * + * @return null|\DateTimeInterface */ public function getConfirmDeadline() : ?\DateTimeInterface { @@ -240,6 +234,8 @@ public function setConfirmDeadline(?\DateTimeInterface $confirm_deadline) : self /** * Gets void_deadline. + * + * @return null|\DateTimeInterface */ public function getVoidDeadline() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredLtlDataInput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredLtlDataInput.php index ae940a1b8..e710d86ff 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredLtlDataInput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredLtlDataInput.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -230,6 +220,8 @@ public function validate() : void /** * Gets contact. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\Contact */ public function getContact() : ?Contact { @@ -250,6 +242,8 @@ public function setContact(?Contact $contact) : self /** * Gets box_count. + * + * @return null|int */ public function getBoxCount() : ?int { @@ -270,6 +264,8 @@ public function setBoxCount(?int $box_count) : self /** * Gets seller_freight_class. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\SellerFreightClass */ public function getSellerFreightClass() : ?SellerFreightClass { @@ -290,6 +286,8 @@ public function setSellerFreightClass(?SellerFreightClass $seller_freight_class) /** * Gets freight_ready_date. + * + * @return null|\DateTimeInterface */ public function getFreightReadyDate() : ?\DateTimeInterface { @@ -332,6 +330,8 @@ public function setPalletList(?array $pallet_list) : self /** * Gets total_weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\Weight */ public function getTotalWeight() : ?Weight { @@ -352,6 +352,8 @@ public function setTotalWeight(?Weight $total_weight) : self /** * Gets seller_declared_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\Amount */ public function getSellerDeclaredValue() : ?Amount { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredLtlDataOutput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredLtlDataOutput.php index 5edfc7d2c..f69e1eeec 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredLtlDataOutput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredLtlDataOutput.php @@ -188,8 +188,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -198,8 +196,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -209,8 +205,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -219,8 +213,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -229,8 +221,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -242,7 +232,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -326,6 +316,8 @@ public function validate() : void /** * Gets contact. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Contact */ public function getContact() : Contact { @@ -346,6 +338,8 @@ public function setContact(Contact $contact) : self /** * Gets box_count. + * + * @return int */ public function getBoxCount() : int { @@ -366,6 +360,8 @@ public function setBoxCount(int $box_count) : self /** * Gets seller_freight_class. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\SellerFreightClass */ public function getSellerFreightClass() : ?SellerFreightClass { @@ -386,6 +382,8 @@ public function setSellerFreightClass(?SellerFreightClass $seller_freight_class) /** * Gets freight_ready_date. + * + * @return \DateTimeInterface */ public function getFreightReadyDate() : \DateTimeInterface { @@ -428,8 +426,10 @@ public function setPalletList(array $pallet_list) : self /** * Gets total_weight. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Weight */ - public function getTotalWeight() : ?Weight + public function getTotalWeight() : Weight { return $this->container['total_weight']; } @@ -448,6 +448,8 @@ public function setTotalWeight(Weight $total_weight) : self /** * Gets seller_declared_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\Amount */ public function getSellerDeclaredValue() : ?Amount { @@ -468,6 +470,8 @@ public function setSellerDeclaredValue(?Amount $seller_declared_value) : self /** * Gets amazon_calculated_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\Amount */ public function getAmazonCalculatedValue() : ?Amount { @@ -488,8 +492,10 @@ public function setAmazonCalculatedValue(?Amount $amazon_calculated_value) : sel /** * Gets preview_pickup_date. + * + * @return \DateTimeInterface */ - public function getPreviewPickupDate() : ?\DateTimeInterface + public function getPreviewPickupDate() : \DateTimeInterface { return $this->container['preview_pickup_date']; } @@ -508,8 +514,10 @@ public function setPreviewPickupDate(\DateTimeInterface $preview_pickup_date) : /** * Gets preview_delivery_date. + * + * @return \DateTimeInterface */ - public function getPreviewDeliveryDate() : ?\DateTimeInterface + public function getPreviewDeliveryDate() : \DateTimeInterface { return $this->container['preview_delivery_date']; } @@ -528,8 +536,10 @@ public function setPreviewDeliveryDate(\DateTimeInterface $preview_delivery_date /** * Gets preview_freight_class. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\SellerFreightClass */ - public function getPreviewFreightClass() : ?SellerFreightClass + public function getPreviewFreightClass() : SellerFreightClass { return $this->container['preview_freight_class']; } @@ -548,8 +558,10 @@ public function setPreviewFreightClass(SellerFreightClass $preview_freight_class /** * Gets amazon_reference_id. + * + * @return string */ - public function getAmazonReferenceId() : ?string + public function getAmazonReferenceId() : string { return $this->container['amazon_reference_id']; } @@ -568,8 +580,10 @@ public function setAmazonReferenceId(string $amazon_reference_id) : self /** * Gets is_bill_of_lading_available. + * + * @return bool */ - public function getIsBillOfLadingAvailable() : ?bool + public function getIsBillOfLadingAvailable() : bool { return $this->container['is_bill_of_lading_available']; } @@ -588,6 +602,8 @@ public function setIsBillOfLadingAvailable(bool $is_bill_of_lading_available) : /** * Gets partnered_estimate. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\PartneredEstimate */ public function getPartneredEstimate() : ?PartneredEstimate { @@ -608,8 +624,10 @@ public function setPartneredEstimate(?PartneredEstimate $partnered_estimate) : s /** * Gets carrier_name. + * + * @return string */ - public function getCarrierName() : ?string + public function getCarrierName() : string { return $this->container['carrier_name']; } diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelDataInput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelDataInput.php index e2c933d02..1abb8e801 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelDataInput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelDataInput.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -211,6 +201,8 @@ public function setPackageList(?array $package_list) : self /** * Gets carrier_name. + * + * @return null|string */ public function getCarrierName() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelDataOutput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelDataOutput.php index 470be6c62..94d3ba278 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelDataOutput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelDataOutput.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function setPackageList(array $package_list) : self /** * Gets partnered_estimate. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\PartneredEstimate */ public function getPartneredEstimate() : ?PartneredEstimate { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelPackageInput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelPackageInput.php index 27389f857..a55b7bdfb 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelPackageInput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelPackageInput.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets dimensions. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Dimensions */ public function getDimensions() : Dimensions { @@ -220,6 +212,8 @@ public function setDimensions(Dimensions $dimensions) : self /** * Gets weight. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Weight */ public function getWeight() : Weight { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelPackageOutput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelPackageOutput.php index 113ea9565..d43431c69 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelPackageOutput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PartneredSmallParcelPackageOutput.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -230,6 +220,8 @@ public function validate() : void /** * Gets dimensions. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Dimensions */ public function getDimensions() : Dimensions { @@ -250,6 +242,8 @@ public function setDimensions(Dimensions $dimensions) : self /** * Gets weight. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\Weight */ public function getWeight() : Weight { @@ -270,6 +264,8 @@ public function setWeight(Weight $weight) : self /** * Gets carrier_name. + * + * @return string */ public function getCarrierName() : string { @@ -290,8 +286,10 @@ public function setCarrierName(string $carrier_name) : self /** * Gets tracking_id. + * + * @return string */ - public function getTrackingId() : ?string + public function getTrackingId() : string { return $this->container['tracking_id']; } @@ -310,6 +308,8 @@ public function setTrackingId(string $tracking_id) : self /** * Gets package_status. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PackageStatus */ public function getPackageStatus() : PackageStatus { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PrepDetails.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PrepDetails.php index 1c4fe9f0d..905aa5552 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PrepDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PrepDetails.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets prep_instruction. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PrepInstruction */ public function getPrepInstruction() : PrepInstruction { @@ -216,6 +208,8 @@ public function setPrepInstruction(PrepInstruction $prep_instruction) : self /** * Gets prep_owner. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\PrepOwner */ public function getPrepOwner() : PrepOwner { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PutTransportDetailsRequest.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PutTransportDetailsRequest.php index 482fa331c..64148ec9a 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PutTransportDetailsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PutTransportDetailsRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets is_partnered. + * + * @return bool */ public function getIsPartnered() : bool { @@ -228,6 +220,8 @@ public function setIsPartnered(bool $is_partnered) : self /** * Gets shipment_type. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ShipmentType */ public function getShipmentType() : ShipmentType { @@ -248,6 +242,8 @@ public function setShipmentType(ShipmentType $shipment_type) : self /** * Gets transport_details. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\TransportDetailInput */ public function getTransportDetails() : TransportDetailInput { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PutTransportDetailsResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PutTransportDetailsResponse.php index a22fcf4d4..387a962ad 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PutTransportDetailsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/PutTransportDetailsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\CommonTransportResult */ public function getPayload() : ?CommonTransportResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/SKUInboundGuidance.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/SKUInboundGuidance.php index f0759cde6..c7d1c49bc 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/SKUInboundGuidance.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/SKUInboundGuidance.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -232,6 +224,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets asin. + * + * @return string */ public function getAsin() : string { @@ -252,6 +246,8 @@ public function setAsin(string $asin) : self /** * Gets inbound_guidance. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\InboundGuidance */ public function getInboundGuidance() : InboundGuidance { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/SKUPrepInstructions.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/SKUPrepInstructions.php index 3b79f79f9..8631ff329 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/SKUPrepInstructions.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/SKUPrepInstructions.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -213,6 +203,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -233,6 +225,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -253,6 +247,8 @@ public function setAsin(?string $asin) : self /** * Gets barcode_instruction. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\BarcodeInstruction */ public function getBarcodeInstruction() : ?BarcodeInstruction { @@ -273,6 +269,8 @@ public function setBarcodeInstruction(?BarcodeInstruction $barcode_instruction) /** * Gets prep_guidance. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\PrepGuidance */ public function getPrepGuidance() : ?PrepGuidance { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportContent.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportContent.php index dd63223a3..c53b6716f 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportContent.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportContent.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets transport_header. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\TransportHeader */ public function getTransportHeader() : TransportHeader { @@ -232,6 +224,8 @@ public function setTransportHeader(TransportHeader $transport_header) : self /** * Gets transport_details. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\TransportDetailOutput */ public function getTransportDetails() : TransportDetailOutput { @@ -252,6 +246,8 @@ public function setTransportDetails(TransportDetailOutput $transport_details) : /** * Gets transport_result. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\TransportResult */ public function getTransportResult() : TransportResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportDetailInput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportDetailInput.php index b11aeb527..b1e767575 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportDetailInput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportDetailInput.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets partnered_small_parcel_data. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\PartneredSmallParcelDataInput */ public function getPartneredSmallParcelData() : ?PartneredSmallParcelDataInput { @@ -236,6 +228,8 @@ public function setPartneredSmallParcelData(?PartneredSmallParcelDataInput $part /** * Gets non_partnered_small_parcel_data. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\NonPartneredSmallParcelDataInput */ public function getNonPartneredSmallParcelData() : ?NonPartneredSmallParcelDataInput { @@ -256,6 +250,8 @@ public function setNonPartneredSmallParcelData(?NonPartneredSmallParcelDataInput /** * Gets partnered_ltl_data. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\PartneredLtlDataInput */ public function getPartneredLtlData() : ?PartneredLtlDataInput { @@ -276,6 +272,8 @@ public function setPartneredLtlData(?PartneredLtlDataInput $partnered_ltl_data) /** * Gets non_partnered_ltl_data. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\NonPartneredLtlDataInput */ public function getNonPartneredLtlData() : ?NonPartneredLtlDataInput { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportDetailOutput.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportDetailOutput.php index ee901e00f..6b4972926 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportDetailOutput.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportDetailOutput.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets partnered_small_parcel_data. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\PartneredSmallParcelDataOutput */ public function getPartneredSmallParcelData() : ?PartneredSmallParcelDataOutput { @@ -236,6 +228,8 @@ public function setPartneredSmallParcelData(?PartneredSmallParcelDataOutput $par /** * Gets non_partnered_small_parcel_data. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\NonPartneredSmallParcelDataOutput */ public function getNonPartneredSmallParcelData() : ?NonPartneredSmallParcelDataOutput { @@ -256,6 +250,8 @@ public function setNonPartneredSmallParcelData(?NonPartneredSmallParcelDataOutpu /** * Gets partnered_ltl_data. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\PartneredLtlDataOutput */ public function getPartneredLtlData() : ?PartneredLtlDataOutput { @@ -276,6 +272,8 @@ public function setPartneredLtlData(?PartneredLtlDataOutput $partnered_ltl_data) /** * Gets non_partnered_ltl_data. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\NonPartneredLtlDataOutput */ public function getNonPartneredLtlData() : ?NonPartneredLtlDataOutput { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportHeader.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportHeader.php index 6231a0f65..1a9c830a4 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportHeader.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportHeader.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets seller_id. + * + * @return string */ public function getSellerId() : string { @@ -236,6 +228,8 @@ public function setSellerId(string $seller_id) : self /** * Gets shipment_id. + * + * @return string */ public function getShipmentId() : string { @@ -256,8 +250,10 @@ public function setShipmentId(string $shipment_id) : self /** * Gets is_partnered. + * + * @return bool */ - public function getIsPartnered() : ?bool + public function getIsPartnered() : bool { return $this->container['is_partnered']; } @@ -276,6 +272,8 @@ public function setIsPartnered(bool $is_partnered) : self /** * Gets shipment_type. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\ShipmentType */ public function getShipmentType() : ShipmentType { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportResult.php index 05342ced7..c9332c44a 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/TransportResult.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets transport_status. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\TransportStatus */ public function getTransportStatus() : TransportStatus { @@ -218,6 +210,8 @@ public function setTransportStatus(TransportStatus $transport_status) : self /** * Gets error_code. + * + * @return null|string */ public function getErrorCode() : ?string { @@ -238,6 +232,8 @@ public function setErrorCode(?string $error_code) : self /** * Gets error_description. + * + * @return null|string */ public function getErrorDescription() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/VoidTransportResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/VoidTransportResponse.php index 9be61a7c7..209d05e3b 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/VoidTransportResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/VoidTransportResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentInbound\CommonTransportResult */ public function getPayload() : ?CommonTransportResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Weight.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Weight.php index c1c3350f6..96fed4709 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Weight.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentInbound/Weight.php @@ -40,7 +40,7 @@ class Weight implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInter * @var string[] */ protected static array $openAPITypes = [ - 'value' => 'double', + 'value' => 'float', 'unit' => '\AmazonPHP\SellingPartner\Model\FulfillmentInbound\UnitOfWeight', ]; @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets value. + * + * @return float */ public function getValue() : float { @@ -216,6 +208,8 @@ public function setValue(float $value) : self /** * Gets unit. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentInbound\UnitOfWeight */ public function getUnit() : UnitOfWeight { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Address.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Address.php index af9e16a16..b5dd9e332 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Address.php @@ -158,8 +158,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +166,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +175,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +183,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +191,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +202,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -245,6 +235,10 @@ public function validate() : void throw new AssertionException("'state_or_region' can't be null"); } + if ($this->container['postal_code'] === null) { + throw new AssertionException("'postal_code' can't be null"); + } + if ($this->container['country_code'] === null) { throw new AssertionException("'country_code' can't be null"); } @@ -252,6 +246,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -272,6 +268,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -292,6 +290,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -312,6 +312,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -332,6 +334,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets city. + * + * @return null|string */ public function getCity() : ?string { @@ -341,7 +345,7 @@ public function getCity() : ?string /** * Sets city. * - * @param null|string $city the city where the person, business, or institution is located + * @param null|string $city The city where the person, business, or institution is located. This property is required in all countries except Japan. It should not be used in Japan. */ public function setCity(?string $city) : self { @@ -352,6 +356,8 @@ public function setCity(?string $city) : self /** * Gets district_or_county. + * + * @return null|string */ public function getDistrictOrCounty() : ?string { @@ -372,6 +378,8 @@ public function setDistrictOrCounty(?string $district_or_county) : self /** * Gets state_or_region. + * + * @return string */ public function getStateOrRegion() : string { @@ -392,8 +400,10 @@ public function setStateOrRegion(string $state_or_region) : self /** * Gets postal_code. + * + * @return string */ - public function getPostalCode() : ?string + public function getPostalCode() : string { return $this->container['postal_code']; } @@ -401,9 +411,9 @@ public function getPostalCode() : ?string /** * Sets postal_code. * - * @param null|string $postal_code the postal code of the address + * @param string $postal_code the postal code of the address */ - public function setPostalCode(?string $postal_code) : self + public function setPostalCode(string $postal_code) : self { $this->container['postal_code'] = $postal_code; @@ -412,6 +422,8 @@ public function setPostalCode(?string $postal_code) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -432,6 +444,8 @@ public function setCountryCode(string $country_code) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CODSettings.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CODSettings.php index f22369dd8..75287218b 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CODSettings.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CODSettings.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -226,6 +216,8 @@ public function validate() : void /** * Gets is_cod_required. + * + * @return bool */ public function getIsCodRequired() : bool { @@ -246,6 +238,8 @@ public function setIsCodRequired(bool $is_cod_required) : self /** * Gets cod_charge. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getCodCharge() : ?Money { @@ -266,6 +260,8 @@ public function setCodCharge(?Money $cod_charge) : self /** * Gets cod_charge_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getCodChargeTax() : ?Money { @@ -286,6 +282,8 @@ public function setCodChargeTax(?Money $cod_charge_tax) : self /** * Gets shipping_charge. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getShippingCharge() : ?Money { @@ -306,6 +304,8 @@ public function setShippingCharge(?Money $shipping_charge) : self /** * Gets shipping_charge_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getShippingChargeTax() : ?Money { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CancelFulfillmentOrderResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CancelFulfillmentOrderResponse.php index 5bb71339c..61126450a 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CancelFulfillmentOrderResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CancelFulfillmentOrderResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderItem.php index 4d8b4fd37..91f0669a7 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderItem.php @@ -152,8 +152,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -162,8 +160,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -173,8 +169,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -183,8 +177,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -193,8 +185,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -206,7 +196,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -270,6 +260,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -290,6 +282,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets seller_fulfillment_order_item_id. + * + * @return string */ public function getSellerFulfillmentOrderItemId() : string { @@ -310,6 +304,8 @@ public function setSellerFulfillmentOrderItemId(string $seller_fulfillment_order /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { @@ -330,6 +326,8 @@ public function setQuantity(int $quantity) : self /** * Gets gift_message. + * + * @return null|string */ public function getGiftMessage() : ?string { @@ -350,6 +348,8 @@ public function setGiftMessage(?string $gift_message) : self /** * Gets displayable_comment. + * + * @return null|string */ public function getDisplayableComment() : ?string { @@ -370,6 +370,8 @@ public function setDisplayableComment(?string $displayable_comment) : self /** * Gets fulfillment_network_sku. + * + * @return null|string */ public function getFulfillmentNetworkSku() : ?string { @@ -390,6 +392,8 @@ public function setFulfillmentNetworkSku(?string $fulfillment_network_sku) : sel /** * Gets per_unit_declared_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getPerUnitDeclaredValue() : ?Money { @@ -410,6 +414,8 @@ public function setPerUnitDeclaredValue(?Money $per_unit_declared_value) : self /** * Gets per_unit_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getPerUnitPrice() : ?Money { @@ -430,6 +436,8 @@ public function setPerUnitPrice(?Money $per_unit_price) : self /** * Gets per_unit_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getPerUnitTax() : ?Money { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderRequest.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderRequest.php index 94e810c14..fa1c53e78 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderRequest.php @@ -188,8 +188,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -198,8 +196,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -209,8 +205,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -219,8 +213,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -229,8 +221,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -242,7 +232,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -316,6 +306,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -336,6 +328,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets seller_fulfillment_order_id. + * + * @return string */ public function getSellerFulfillmentOrderId() : string { @@ -356,6 +350,8 @@ public function setSellerFulfillmentOrderId(string $seller_fulfillment_order_id) /** * Gets displayable_order_id. + * + * @return string */ public function getDisplayableOrderId() : string { @@ -376,6 +372,8 @@ public function setDisplayableOrderId(string $displayable_order_id) : self /** * Gets displayable_order_date. + * + * @return \DateTimeInterface */ public function getDisplayableOrderDate() : \DateTimeInterface { @@ -396,6 +394,8 @@ public function setDisplayableOrderDate(\DateTimeInterface $displayable_order_da /** * Gets displayable_order_comment. + * + * @return string */ public function getDisplayableOrderComment() : string { @@ -416,6 +416,8 @@ public function setDisplayableOrderComment(string $displayable_order_comment) : /** * Gets shipping_speed_category. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ShippingSpeedCategory */ public function getShippingSpeedCategory() : ShippingSpeedCategory { @@ -436,6 +438,8 @@ public function setShippingSpeedCategory(ShippingSpeedCategory $shipping_speed_c /** * Gets delivery_window. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\DeliveryWindow */ public function getDeliveryWindow() : ?DeliveryWindow { @@ -456,6 +460,8 @@ public function setDeliveryWindow(?DeliveryWindow $delivery_window) : self /** * Gets destination_address. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Address */ public function getDestinationAddress() : Address { @@ -476,6 +482,8 @@ public function setDestinationAddress(Address $destination_address) : self /** * Gets fulfillment_action. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentAction */ public function getFulfillmentAction() : ?FulfillmentAction { @@ -496,6 +504,8 @@ public function setFulfillmentAction(?FulfillmentAction $fulfillment_action) : s /** * Gets fulfillment_policy. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentPolicy */ public function getFulfillmentPolicy() : ?FulfillmentPolicy { @@ -516,6 +526,8 @@ public function setFulfillmentPolicy(?FulfillmentPolicy $fulfillment_policy) : s /** * Gets cod_settings. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CODSettings */ public function getCodSettings() : ?CODSettings { @@ -536,6 +548,8 @@ public function setCodSettings(?CODSettings $cod_settings) : self /** * Gets ship_from_country_code. + * + * @return null|string */ public function getShipFromCountryCode() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderResponse.php index e415115d8..0f6b20a70 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentOrderResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnRequest.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnRequest.php index 1984a9c98..0f5086598 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnResponse.php index 737f32c76..e5b01c580 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CreateFulfillmentReturnResult */ public function getPayload() : ?CreateFulfillmentReturnResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnResult.php index 2cb6616c5..57159d089 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateFulfillmentReturnResult.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateReturnItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateReturnItem.php index f9e730f4b..2d5be8645 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateReturnItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/CreateReturnItem.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -230,6 +220,8 @@ public function validate() : void /** * Gets seller_return_item_id. + * + * @return string */ public function getSellerReturnItemId() : string { @@ -250,6 +242,8 @@ public function setSellerReturnItemId(string $seller_return_item_id) : self /** * Gets seller_fulfillment_order_item_id. + * + * @return string */ public function getSellerFulfillmentOrderItemId() : string { @@ -270,6 +264,8 @@ public function setSellerFulfillmentOrderItemId(string $seller_fulfillment_order /** * Gets amazon_shipment_id. + * + * @return string */ public function getAmazonShipmentId() : string { @@ -290,6 +286,8 @@ public function setAmazonShipmentId(string $amazon_shipment_id) : self /** * Gets return_reason_code. + * + * @return string */ public function getReturnReasonCode() : string { @@ -310,6 +308,8 @@ public function setReturnReasonCode(string $return_reason_code) : self /** * Gets return_comment. + * + * @return null|string */ public function getReturnComment() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/DeliveryWindow.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/DeliveryWindow.php index ba10b536b..ff71960ca 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/DeliveryWindow.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/DeliveryWindow.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets start_date. + * + * @return \DateTimeInterface */ public function getStartDate() : \DateTimeInterface { @@ -216,6 +208,8 @@ public function setStartDate(\DateTimeInterface $start_date) : self /** * Gets end_date. + * + * @return \DateTimeInterface */ public function getEndDate() : \DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Error.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Error.php index b98c1839e..771100c97 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Feature.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Feature.php index 9c2d295a4..f6e3851ed 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Feature.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Feature.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets feature_name. + * + * @return string */ public function getFeatureName() : string { @@ -222,6 +214,8 @@ public function setFeatureName(string $feature_name) : self /** * Gets feature_description. + * + * @return string */ public function getFeatureDescription() : string { @@ -242,6 +236,8 @@ public function setFeatureDescription(string $feature_description) : self /** * Gets seller_eligible. + * + * @return null|bool */ public function getSellerEligible() : ?bool { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FeatureSettings.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FeatureSettings.php index aea6d5d12..5af9f6c4f 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FeatureSettings.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FeatureSettings.php @@ -114,8 +114,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -124,8 +122,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -135,8 +131,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -145,8 +139,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -155,8 +147,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -168,7 +158,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -217,6 +207,8 @@ public function validate() : void /** * Gets feature_name. + * + * @return null|string */ public function getFeatureName() : ?string { @@ -237,6 +229,8 @@ public function setFeatureName(?string $feature_name) : self /** * Gets feature_fulfillment_policy. + * + * @return null|string */ public function getFeatureFulfillmentPolicy() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FeatureSku.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FeatureSku.php index 99c7d0f53..e73535f43 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FeatureSku.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FeatureSku.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -207,6 +197,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -227,6 +219,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets fn_sku. + * + * @return null|string */ public function getFnSku() : ?string { @@ -247,6 +241,8 @@ public function setFnSku(?string $fn_sku) : self /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -267,6 +263,8 @@ public function setAsin(?string $asin) : self /** * Gets sku_count. + * + * @return null|float */ public function getSkuCount() : ?float { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Fee.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Fee.php index 94e5dab65..3aac6029c 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Fee.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Fee.php @@ -118,8 +118,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -128,8 +126,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -139,8 +135,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -149,8 +143,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -159,8 +151,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -172,7 +162,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -233,6 +223,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -253,6 +245,8 @@ public function setName(string $name) : self /** * Gets amount. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getAmount() : Money { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentOrder.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentOrder.php index 9e718d11f..b0492e11b 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentOrder.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentOrder.php @@ -194,8 +194,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -204,8 +202,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -215,8 +211,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -225,8 +219,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -235,8 +227,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -248,7 +238,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -322,6 +312,8 @@ public function validate() : void /** * Gets seller_fulfillment_order_id. + * + * @return string */ public function getSellerFulfillmentOrderId() : string { @@ -342,6 +334,8 @@ public function setSellerFulfillmentOrderId(string $seller_fulfillment_order_id) /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -362,6 +356,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets displayable_order_id. + * + * @return string */ public function getDisplayableOrderId() : string { @@ -382,6 +378,8 @@ public function setDisplayableOrderId(string $displayable_order_id) : self /** * Gets displayable_order_date. + * + * @return \DateTimeInterface */ public function getDisplayableOrderDate() : \DateTimeInterface { @@ -402,6 +400,8 @@ public function setDisplayableOrderDate(\DateTimeInterface $displayable_order_da /** * Gets displayable_order_comment. + * + * @return string */ public function getDisplayableOrderComment() : string { @@ -422,6 +422,8 @@ public function setDisplayableOrderComment(string $displayable_order_comment) : /** * Gets shipping_speed_category. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ShippingSpeedCategory */ public function getShippingSpeedCategory() : ShippingSpeedCategory { @@ -442,6 +444,8 @@ public function setShippingSpeedCategory(ShippingSpeedCategory $shipping_speed_c /** * Gets delivery_window. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\DeliveryWindow */ public function getDeliveryWindow() : ?DeliveryWindow { @@ -462,6 +466,8 @@ public function setDeliveryWindow(?DeliveryWindow $delivery_window) : self /** * Gets destination_address. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Address */ public function getDestinationAddress() : Address { @@ -482,6 +488,8 @@ public function setDestinationAddress(Address $destination_address) : self /** * Gets fulfillment_action. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentAction */ public function getFulfillmentAction() : ?FulfillmentAction { @@ -502,6 +510,8 @@ public function setFulfillmentAction(?FulfillmentAction $fulfillment_action) : s /** * Gets fulfillment_policy. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentPolicy */ public function getFulfillmentPolicy() : ?FulfillmentPolicy { @@ -522,6 +532,8 @@ public function setFulfillmentPolicy(?FulfillmentPolicy $fulfillment_policy) : s /** * Gets cod_settings. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CODSettings */ public function getCodSettings() : ?CODSettings { @@ -542,6 +554,8 @@ public function setCodSettings(?CODSettings $cod_settings) : self /** * Gets received_date. + * + * @return \DateTimeInterface */ public function getReceivedDate() : \DateTimeInterface { @@ -562,6 +576,8 @@ public function setReceivedDate(\DateTimeInterface $received_date) : self /** * Gets fulfillment_order_status. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentOrderStatus */ public function getFulfillmentOrderStatus() : FulfillmentOrderStatus { @@ -582,6 +598,8 @@ public function setFulfillmentOrderStatus(FulfillmentOrderStatus $fulfillment_or /** * Gets status_updated_date. + * + * @return \DateTimeInterface */ public function getStatusUpdatedDate() : \DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentOrderItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentOrderItem.php index 42901016a..6b284316a 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentOrderItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentOrderItem.php @@ -182,8 +182,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -192,8 +190,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -203,8 +199,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -213,8 +207,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -223,8 +215,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -236,7 +226,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -292,6 +282,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -312,6 +304,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets seller_fulfillment_order_item_id. + * + * @return string */ public function getSellerFulfillmentOrderItemId() : string { @@ -332,6 +326,8 @@ public function setSellerFulfillmentOrderItemId(string $seller_fulfillment_order /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { @@ -352,6 +348,8 @@ public function setQuantity(int $quantity) : self /** * Gets gift_message. + * + * @return null|string */ public function getGiftMessage() : ?string { @@ -372,6 +370,8 @@ public function setGiftMessage(?string $gift_message) : self /** * Gets displayable_comment. + * + * @return null|string */ public function getDisplayableComment() : ?string { @@ -392,6 +392,8 @@ public function setDisplayableComment(?string $displayable_comment) : self /** * Gets fulfillment_network_sku. + * + * @return null|string */ public function getFulfillmentNetworkSku() : ?string { @@ -412,6 +414,8 @@ public function setFulfillmentNetworkSku(?string $fulfillment_network_sku) : sel /** * Gets order_item_disposition. + * + * @return null|string */ public function getOrderItemDisposition() : ?string { @@ -432,6 +436,8 @@ public function setOrderItemDisposition(?string $order_item_disposition) : self /** * Gets cancelled_quantity. + * + * @return int */ public function getCancelledQuantity() : int { @@ -452,6 +458,8 @@ public function setCancelledQuantity(int $cancelled_quantity) : self /** * Gets unfulfillable_quantity. + * + * @return int */ public function getUnfulfillableQuantity() : int { @@ -472,6 +480,8 @@ public function setUnfulfillableQuantity(int $unfulfillable_quantity) : self /** * Gets estimated_ship_date. + * + * @return null|\DateTimeInterface */ public function getEstimatedShipDate() : ?\DateTimeInterface { @@ -492,6 +502,8 @@ public function setEstimatedShipDate(?\DateTimeInterface $estimated_ship_date) : /** * Gets estimated_arrival_date. + * + * @return null|\DateTimeInterface */ public function getEstimatedArrivalDate() : ?\DateTimeInterface { @@ -512,6 +524,8 @@ public function setEstimatedArrivalDate(?\DateTimeInterface $estimated_arrival_d /** * Gets per_unit_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getPerUnitPrice() : ?Money { @@ -532,6 +546,8 @@ public function setPerUnitPrice(?Money $per_unit_price) : self /** * Gets per_unit_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getPerUnitTax() : ?Money { @@ -552,6 +568,8 @@ public function setPerUnitTax(?Money $per_unit_tax) : self /** * Gets per_unit_declared_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getPerUnitDeclaredValue() : ?Money { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreview.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreview.php index 69084254d..41b8b0b67 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreview.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreview.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -266,6 +256,8 @@ public function validate() : void /** * Gets shipping_speed_category. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ShippingSpeedCategory */ public function getShippingSpeedCategory() : ShippingSpeedCategory { @@ -286,6 +278,8 @@ public function setShippingSpeedCategory(ShippingSpeedCategory $shipping_speed_c /** * Gets scheduled_delivery_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ScheduledDeliveryInfo */ public function getScheduledDeliveryInfo() : ?ScheduledDeliveryInfo { @@ -306,6 +300,8 @@ public function setScheduledDeliveryInfo(?ScheduledDeliveryInfo $scheduled_deliv /** * Gets is_fulfillable. + * + * @return bool */ public function getIsFulfillable() : bool { @@ -326,6 +322,8 @@ public function setIsFulfillable(bool $is_fulfillable) : self /** * Gets is_cod_capable. + * + * @return bool */ public function getIsCodCapable() : bool { @@ -346,6 +344,8 @@ public function setIsCodCapable(bool $is_cod_capable) : self /** * Gets estimated_shipping_weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Weight */ public function getEstimatedShippingWeight() : ?Weight { @@ -454,6 +454,8 @@ public function setOrderUnfulfillableReasons(?array $order_unfulfillable_reasons /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreviewItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreviewItem.php index 7409c831c..bd44976b8 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreviewItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreviewItem.php @@ -132,8 +132,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -142,8 +140,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -153,8 +149,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -163,8 +157,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -173,8 +165,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -186,7 +176,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -251,6 +241,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -271,6 +263,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { @@ -291,6 +285,8 @@ public function setQuantity(int $quantity) : self /** * Gets seller_fulfillment_order_item_id. + * + * @return string */ public function getSellerFulfillmentOrderItemId() : string { @@ -311,6 +307,8 @@ public function setSellerFulfillmentOrderItemId(string $seller_fulfillment_order /** * Gets estimated_shipping_weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Weight */ public function getEstimatedShippingWeight() : ?Weight { @@ -331,6 +329,8 @@ public function setEstimatedShippingWeight(?Weight $estimated_shipping_weight) : /** * Gets shipping_weight_calculation_method. + * + * @return null|string */ public function getShippingWeightCalculationMethod() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreviewShipment.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreviewShipment.php index 4ff91a504..480da9d95 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreviewShipment.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentPreviewShipment.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets earliest_ship_date. + * + * @return null|\DateTimeInterface */ public function getEarliestShipDate() : ?\DateTimeInterface { @@ -236,6 +228,8 @@ public function setEarliestShipDate(?\DateTimeInterface $earliest_ship_date) : s /** * Gets latest_ship_date. + * + * @return null|\DateTimeInterface */ public function getLatestShipDate() : ?\DateTimeInterface { @@ -256,6 +250,8 @@ public function setLatestShipDate(?\DateTimeInterface $latest_ship_date) : self /** * Gets earliest_arrival_date. + * + * @return null|\DateTimeInterface */ public function getEarliestArrivalDate() : ?\DateTimeInterface { @@ -276,6 +272,8 @@ public function setEarliestArrivalDate(?\DateTimeInterface $earliest_arrival_dat /** * Gets latest_arrival_date. + * + * @return null|\DateTimeInterface */ public function getLatestArrivalDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipment.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipment.php index b8b8629c1..2dd90626e 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipment.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipment.php @@ -154,8 +154,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -164,8 +162,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -175,8 +171,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -185,8 +179,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -195,8 +187,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -208,7 +198,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -275,6 +265,8 @@ public function validate() : void /** * Gets amazon_shipment_id. + * + * @return string */ public function getAmazonShipmentId() : string { @@ -295,6 +287,8 @@ public function setAmazonShipmentId(string $amazon_shipment_id) : self /** * Gets fulfillment_center_id. + * + * @return string */ public function getFulfillmentCenterId() : string { @@ -315,6 +309,8 @@ public function setFulfillmentCenterId(string $fulfillment_center_id) : self /** * Gets fulfillment_shipment_status. + * + * @return string */ public function getFulfillmentShipmentStatus() : string { @@ -335,6 +331,8 @@ public function setFulfillmentShipmentStatus(string $fulfillment_shipment_status /** * Gets shipping_date. + * + * @return null|\DateTimeInterface */ public function getShippingDate() : ?\DateTimeInterface { @@ -355,6 +353,8 @@ public function setShippingDate(?\DateTimeInterface $shipping_date) : self /** * Gets estimated_arrival_date. + * + * @return null|\DateTimeInterface */ public function getEstimatedArrivalDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipmentItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipmentItem.php index 64988ca12..87ddb1c68 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipmentItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipmentItem.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -238,6 +230,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets seller_fulfillment_order_item_id. + * + * @return string */ public function getSellerFulfillmentOrderItemId() : string { @@ -258,6 +252,8 @@ public function setSellerFulfillmentOrderItemId(string $seller_fulfillment_order /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { @@ -278,6 +274,8 @@ public function setQuantity(int $quantity) : self /** * Gets package_number. + * + * @return null|int */ public function getPackageNumber() : ?int { @@ -298,6 +296,8 @@ public function setPackageNumber(?int $package_number) : self /** * Gets serial_number. + * + * @return null|string */ public function getSerialNumber() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipmentPackage.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipmentPackage.php index 7c4c0ece0..d95bb6807 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipmentPackage.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/FulfillmentShipmentPackage.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets package_number. + * + * @return int */ public function getPackageNumber() : int { @@ -228,6 +220,8 @@ public function setPackageNumber(int $package_number) : self /** * Gets carrier_code. + * + * @return string */ public function getCarrierCode() : string { @@ -248,6 +242,8 @@ public function setCarrierCode(string $carrier_code) : self /** * Gets tracking_number. + * + * @return null|string */ public function getTrackingNumber() : ?string { @@ -268,6 +264,8 @@ public function setTrackingNumber(?string $tracking_number) : self /** * Gets estimated_arrival_date. + * + * @return null|\DateTimeInterface */ public function getEstimatedArrivalDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureInventoryResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureInventoryResponse.php index 2aa688045..c8151d21b 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureInventoryResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureInventoryResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeatureInventoryResult */ public function getPayload() : ?GetFeatureInventoryResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureInventoryResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureInventoryResult.php index 50b85d6b8..6f2840dfc 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureInventoryResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureInventoryResult.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -228,6 +220,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets feature_name. + * + * @return string */ public function getFeatureName() : string { @@ -248,6 +242,8 @@ public function setFeatureName(string $feature_name) : self /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureSkuResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureSkuResponse.php index 4ff81885e..1acd3c338 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureSkuResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureSkuResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeatureSkuResult */ public function getPayload() : ?GetFeatureSkuResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureSkuResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureSkuResult.php index e5f675b02..ef7d9af8f 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureSkuResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeatureSkuResult.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -222,6 +212,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -242,6 +234,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets feature_name. + * + * @return string */ public function getFeatureName() : string { @@ -262,6 +256,8 @@ public function setFeatureName(string $feature_name) : self /** * Gets is_eligible. + * + * @return bool */ public function getIsEligible() : bool { @@ -304,6 +300,8 @@ public function setIneligibleReasons(?array $ineligible_reasons) : self /** * Gets sku_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FeatureSku */ public function getSkuInfo() : ?FeatureSku { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeaturesResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeaturesResponse.php index 5cf0ca265..5566bffb4 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeaturesResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeaturesResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFeaturesResult */ public function getPayload() : ?GetFeaturesResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeaturesResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeaturesResult.php index 2b6206650..dd8c7b18b 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeaturesResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFeaturesResult.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentOrderResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentOrderResponse.php index 4709f956e..4092cf141 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentOrderResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentOrderResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentOrderResult */ public function getPayload() : ?GetFulfillmentOrderResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentOrderResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentOrderResult.php index 4386f4e98..10c3ecab0 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentOrderResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentOrderResult.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets fulfillment_order. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentOrder */ public function getFulfillmentOrder() : FulfillmentOrder { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewItem.php index eeb755341..fffef9228 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewItem.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -244,6 +236,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { @@ -264,6 +258,8 @@ public function setQuantity(int $quantity) : self /** * Gets per_unit_declared_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getPerUnitDeclaredValue() : ?Money { @@ -284,6 +280,8 @@ public function setPerUnitDeclaredValue(?Money $per_unit_declared_value) : self /** * Gets seller_fulfillment_order_item_id. + * + * @return string */ public function getSellerFulfillmentOrderItemId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewRequest.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewRequest.php index f46c8294a..badfd1706 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewRequest.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -248,6 +240,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets address. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Address */ public function getAddress() : Address { @@ -312,6 +306,8 @@ public function setShippingSpeedCategories(?array $shipping_speed_categories) : /** * Gets include_cod_fulfillment_preview. + * + * @return null|bool */ public function getIncludeCodFulfillmentPreview() : ?bool { @@ -321,7 +317,7 @@ public function getIncludeCodFulfillmentPreview() : ?bool /** * Sets include_cod_fulfillment_preview. * - * @param null|bool $include_cod_fulfillment_preview Specifies whether to return fulfillment order previews that are for COD (Cash On Delivery). Possible values: * true - Returns all fulfillment order previews (both for COD and not for COD). * false - Returns only fulfillment order previews that are not for COD. + * @param null|bool $include_cod_fulfillment_preview When true, returns all fulfillment order previews both for COD and not for COD. Otherwise, returns only fulfillment order previews that are not for COD. */ public function setIncludeCodFulfillmentPreview(?bool $include_cod_fulfillment_preview) : self { @@ -332,6 +328,8 @@ public function setIncludeCodFulfillmentPreview(?bool $include_cod_fulfillment_p /** * Gets include_delivery_windows. + * + * @return null|bool */ public function getIncludeDeliveryWindows() : ?bool { @@ -341,7 +339,7 @@ public function getIncludeDeliveryWindows() : ?bool /** * Sets include_delivery_windows. * - * @param null|bool $include_delivery_windows Specifies whether to return the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery. + * @param null|bool $include_delivery_windows When true, returns the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery. */ public function setIncludeDeliveryWindows(?bool $include_delivery_windows) : self { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewResponse.php index 45e9c5f77..c0c1895ed 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\GetFulfillmentPreviewResult */ public function getPayload() : ?GetFulfillmentPreviewResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewResult.php index ea7a3b36f..cd78a3016 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetFulfillmentPreviewResult.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetPackageTrackingDetailsResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetPackageTrackingDetailsResponse.php index 644f439d7..5e2b3d6c6 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetPackageTrackingDetailsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/GetPackageTrackingDetailsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\PackageTrackingDetails */ public function getPayload() : ?PackageTrackingDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/InvalidItemReason.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/InvalidItemReason.php index c8b90142a..cabf185c9 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/InvalidItemReason.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/InvalidItemReason.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets invalid_item_reason_code. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\InvalidItemReasonCode */ public function getInvalidItemReasonCode() : InvalidItemReasonCode { @@ -216,6 +208,8 @@ public function setInvalidItemReasonCode(InvalidItemReasonCode $invalid_item_rea /** * Gets description. + * + * @return string */ public function getDescription() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/InvalidReturnItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/InvalidReturnItem.php index 0e6ea0c1c..35a9ba618 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/InvalidReturnItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/InvalidReturnItem.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets seller_return_item_id. + * + * @return string */ public function getSellerReturnItemId() : string { @@ -228,6 +220,8 @@ public function setSellerReturnItemId(string $seller_return_item_id) : self /** * Gets seller_fulfillment_order_item_id. + * + * @return string */ public function getSellerFulfillmentOrderItemId() : string { @@ -248,6 +242,8 @@ public function setSellerFulfillmentOrderItemId(string $seller_fulfillment_order /** * Gets invalid_item_reason. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\InvalidItemReason */ public function getInvalidItemReason() : InvalidItemReason { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListAllFulfillmentOrdersResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListAllFulfillmentOrdersResponse.php index 28d391dc7..a8ef935c5 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListAllFulfillmentOrdersResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListAllFulfillmentOrdersResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListAllFulfillmentOrdersResult */ public function getPayload() : ?ListAllFulfillmentOrdersResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListAllFulfillmentOrdersResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListAllFulfillmentOrdersResult.php index b7c0ecea5..4c4755455 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListAllFulfillmentOrdersResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListAllFulfillmentOrdersResult.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListReturnReasonCodesResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListReturnReasonCodesResponse.php index 461efbbb9..40131bdf6 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListReturnReasonCodesResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListReturnReasonCodesResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ListReturnReasonCodesResult */ public function getPayload() : ?ListReturnReasonCodesResult { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListReturnReasonCodesResult.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListReturnReasonCodesResult.php index ae5c7260e..73dfb1ce7 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListReturnReasonCodesResult.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ListReturnReasonCodesResult.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Money.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Money.php index 41b9e8cb4..48c81e038 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Money.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Money.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return string */ public function getCurrencyCode() : string { @@ -216,6 +208,8 @@ public function setCurrencyCode(string $currency_code) : self /** * Gets value. + * + * @return string */ public function getValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/PackageTrackingDetails.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/PackageTrackingDetails.php index 64c149a01..7c7c4fcc0 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/PackageTrackingDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/PackageTrackingDetails.php @@ -182,8 +182,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -192,8 +190,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -203,8 +199,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -213,8 +207,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -223,8 +215,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -236,7 +226,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -268,6 +258,8 @@ public function validate() : void /** * Gets package_number. + * + * @return int */ public function getPackageNumber() : int { @@ -288,6 +280,8 @@ public function setPackageNumber(int $package_number) : self /** * Gets tracking_number. + * + * @return null|string */ public function getTrackingNumber() : ?string { @@ -308,6 +302,8 @@ public function setTrackingNumber(?string $tracking_number) : self /** * Gets customer_tracking_link. + * + * @return null|string */ public function getCustomerTrackingLink() : ?string { @@ -328,6 +324,8 @@ public function setCustomerTrackingLink(?string $customer_tracking_link) : self /** * Gets carrier_code. + * + * @return null|string */ public function getCarrierCode() : ?string { @@ -348,6 +346,8 @@ public function setCarrierCode(?string $carrier_code) : self /** * Gets carrier_phone_number. + * + * @return null|string */ public function getCarrierPhoneNumber() : ?string { @@ -368,6 +368,8 @@ public function setCarrierPhoneNumber(?string $carrier_phone_number) : self /** * Gets carrier_url. + * + * @return null|string */ public function getCarrierUrl() : ?string { @@ -377,7 +379,7 @@ public function getCarrierUrl() : ?string /** * Sets carrier_url. * - * @param null|string $carrier_url the URL of the carrier’s website + * @param null|string $carrier_url the URL of the carrier's website */ public function setCarrierUrl(?string $carrier_url) : self { @@ -388,6 +390,8 @@ public function setCarrierUrl(?string $carrier_url) : self /** * Gets ship_date. + * + * @return null|\DateTimeInterface */ public function getShipDate() : ?\DateTimeInterface { @@ -408,6 +412,8 @@ public function setShipDate(?\DateTimeInterface $ship_date) : self /** * Gets estimated_arrival_date. + * + * @return null|\DateTimeInterface */ public function getEstimatedArrivalDate() : ?\DateTimeInterface { @@ -428,6 +434,8 @@ public function setEstimatedArrivalDate(?\DateTimeInterface $estimated_arrival_d /** * Gets ship_to_address. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\TrackingAddress */ public function getShipToAddress() : ?TrackingAddress { @@ -448,6 +456,8 @@ public function setShipToAddress(?TrackingAddress $ship_to_address) : self /** * Gets current_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\CurrentStatus */ public function getCurrentStatus() : ?CurrentStatus { @@ -468,6 +478,8 @@ public function setCurrentStatus(?CurrentStatus $current_status) : self /** * Gets current_status_description. + * + * @return null|string */ public function getCurrentStatusDescription() : ?string { @@ -488,6 +500,8 @@ public function setCurrentStatusDescription(?string $current_status_description) /** * Gets signed_for_by. + * + * @return null|string */ public function getSignedForBy() : ?string { @@ -508,6 +522,8 @@ public function setSignedForBy(?string $signed_for_by) : self /** * Gets additional_location_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\AdditionalLocationInfo */ public function getAdditionalLocationInfo() : ?AdditionalLocationInfo { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReasonCodeDetails.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReasonCodeDetails.php index cdf7d4459..4f1693d0a 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReasonCodeDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReasonCodeDetails.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets return_reason_code. + * + * @return string */ public function getReturnReasonCode() : string { @@ -222,6 +214,8 @@ public function setReturnReasonCode(string $return_reason_code) : self /** * Gets description. + * + * @return string */ public function getDescription() : string { @@ -242,6 +236,8 @@ public function setDescription(string $description) : self /** * Gets translated_description. + * + * @return null|string */ public function getTranslatedDescription() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReturnAuthorization.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReturnAuthorization.php index 09d76ae7f..082e54fe8 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReturnAuthorization.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReturnAuthorization.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets return_authorization_id. + * + * @return string */ public function getReturnAuthorizationId() : string { @@ -248,6 +240,8 @@ public function setReturnAuthorizationId(string $return_authorization_id) : self /** * Gets fulfillment_center_id. + * + * @return string */ public function getFulfillmentCenterId() : string { @@ -268,6 +262,8 @@ public function setFulfillmentCenterId(string $fulfillment_center_id) : self /** * Gets return_to_address. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Address */ public function getReturnToAddress() : Address { @@ -288,6 +284,8 @@ public function setReturnToAddress(Address $return_to_address) : self /** * Gets amazon_rma_id. + * + * @return string */ public function getAmazonRmaId() : string { @@ -308,6 +306,8 @@ public function setAmazonRmaId(string $amazon_rma_id) : self /** * Gets rma_page_url. + * + * @return string */ public function getRmaPageUrl() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReturnItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReturnItem.php index 46565370f..28ae01c77 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReturnItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ReturnItem.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -266,6 +256,8 @@ public function validate() : void /** * Gets seller_return_item_id. + * + * @return string */ public function getSellerReturnItemId() : string { @@ -286,6 +278,8 @@ public function setSellerReturnItemId(string $seller_return_item_id) : self /** * Gets seller_fulfillment_order_item_id. + * + * @return string */ public function getSellerFulfillmentOrderItemId() : string { @@ -306,6 +300,8 @@ public function setSellerFulfillmentOrderItemId(string $seller_fulfillment_order /** * Gets amazon_shipment_id. + * + * @return string */ public function getAmazonShipmentId() : string { @@ -326,6 +322,8 @@ public function setAmazonShipmentId(string $amazon_shipment_id) : self /** * Gets seller_return_reason_code. + * + * @return string */ public function getSellerReturnReasonCode() : string { @@ -346,6 +344,8 @@ public function setSellerReturnReasonCode(string $seller_return_reason_code) : s /** * Gets return_comment. + * + * @return null|string */ public function getReturnComment() : ?string { @@ -366,6 +366,8 @@ public function setReturnComment(?string $return_comment) : self /** * Gets amazon_return_reason_code. + * + * @return null|string */ public function getAmazonReturnReasonCode() : ?string { @@ -386,6 +388,8 @@ public function setAmazonReturnReasonCode(?string $amazon_return_reason_code) : /** * Gets status. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentReturnItemStatus */ public function getStatus() : FulfillmentReturnItemStatus { @@ -406,6 +410,8 @@ public function setStatus(FulfillmentReturnItemStatus $status) : self /** * Gets status_changed_date. + * + * @return \DateTimeInterface */ public function getStatusChangedDate() : \DateTimeInterface { @@ -426,6 +432,8 @@ public function setStatusChangedDate(\DateTimeInterface $status_changed_date) : /** * Gets return_authorization_id. + * + * @return null|string */ public function getReturnAuthorizationId() : ?string { @@ -446,6 +454,8 @@ public function setReturnAuthorizationId(?string $return_authorization_id) : sel /** * Gets return_received_condition. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ReturnItemDisposition */ public function getReturnReceivedCondition() : ?ReturnItemDisposition { @@ -466,6 +476,8 @@ public function setReturnReceivedCondition(?ReturnItemDisposition $return_receiv /** * Gets fulfillment_center_id. + * + * @return null|string */ public function getFulfillmentCenterId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ScheduledDeliveryInfo.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ScheduledDeliveryInfo.php index 4ceaa90ed..54367d27e 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ScheduledDeliveryInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/ScheduledDeliveryInfo.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets delivery_time_zone. + * + * @return string */ public function getDeliveryTimeZone() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/SubmitFulfillmentOrderStatusUpdateRequest.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/SubmitFulfillmentOrderStatusUpdateRequest.php new file mode 100644 index 000000000..b3ee00d8b --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/SubmitFulfillmentOrderStatusUpdateRequest.php @@ -0,0 +1,256 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class SubmitFulfillmentOrderStatusUpdateRequest implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'SubmitFulfillmentOrderStatusUpdateRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'fulfillment_order_status' => '\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentOrderStatus', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'fulfillment_order_status' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'fulfillment_order_status' => 'fulfillmentOrderStatus', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'fulfillment_order_status' => 'setFulfillmentOrderStatus', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'fulfillment_order_status' => 'getFulfillmentOrderStatus', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['fulfillment_order_status'] = $data['fulfillment_order_status'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets fulfillment_order_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentOrderStatus + */ + public function getFulfillmentOrderStatus() : ?FulfillmentOrderStatus + { + return $this->container['fulfillment_order_status']; + } + + /** + * Sets fulfillment_order_status. + * + * @param null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentOrderStatus $fulfillment_order_status fulfillment_order_status + */ + public function setFulfillmentOrderStatus(?FulfillmentOrderStatus $fulfillment_order_status) : self + { + $this->container['fulfillment_order_status'] = $fulfillment_order_status; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/SubmitFulfillmentOrderStatusUpdateResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/SubmitFulfillmentOrderStatusUpdateResponse.php new file mode 100644 index 000000000..81a5ef03a --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/SubmitFulfillmentOrderStatusUpdateResponse.php @@ -0,0 +1,256 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class SubmitFulfillmentOrderStatusUpdateResponse implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'SubmitFulfillmentOrderStatusUpdateResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'errors' => '\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Error[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'errors' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'errors' => 'errors', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'errors' => 'setErrors', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'errors' => 'getErrors', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['errors'] = $data['errors'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets errors. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Error[] + */ + public function getErrors() : ?array + { + return $this->container['errors']; + } + + /** + * Sets errors. + * + * @param null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Error[] $errors a list of error responses returned when a request is unsuccessful + */ + public function setErrors(?array $errors) : self + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/TrackingAddress.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/TrackingAddress.php index 5f33249d1..07246e6e2 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/TrackingAddress.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/TrackingAddress.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function validate() : void /** * Gets city. + * + * @return string */ public function getCity() : string { @@ -238,6 +230,8 @@ public function setCity(string $city) : self /** * Gets state. + * + * @return string */ public function getState() : string { @@ -258,6 +252,8 @@ public function setState(string $state) : self /** * Gets country. + * + * @return string */ public function getCountry() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/TrackingEvent.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/TrackingEvent.php index d60126f88..38a2d08ff 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/TrackingEvent.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/TrackingEvent.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function validate() : void /** * Gets event_date. + * + * @return \DateTimeInterface */ public function getEventDate() : \DateTimeInterface { @@ -238,6 +230,8 @@ public function setEventDate(\DateTimeInterface $event_date) : self /** * Gets event_address. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\TrackingAddress */ public function getEventAddress() : TrackingAddress { @@ -258,6 +252,8 @@ public function setEventAddress(TrackingAddress $event_address) : self /** * Gets event_code. + * + * @return \AmazonPHP\SellingPartner\Model\FulfillmentOutbound\EventCode */ public function getEventCode() : EventCode { @@ -278,6 +274,8 @@ public function setEventCode(EventCode $event_code) : self /** * Gets event_description. + * + * @return string */ public function getEventDescription() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UnfulfillablePreviewItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UnfulfillablePreviewItem.php index 9838dff6a..4d1a27d14 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UnfulfillablePreviewItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UnfulfillablePreviewItem.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -220,6 +210,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { @@ -240,6 +232,8 @@ public function setSellerSku(string $seller_sku) : self /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { @@ -260,6 +254,8 @@ public function setQuantity(int $quantity) : self /** * Gets seller_fulfillment_order_item_id. + * + * @return string */ public function getSellerFulfillmentOrderItemId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderItem.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderItem.php index 26ebd6163..a4e9d7595 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderItem.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderItem.php @@ -158,8 +158,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +166,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +175,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +183,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +191,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +202,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -268,6 +258,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -288,6 +280,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets seller_fulfillment_order_item_id. + * + * @return string */ public function getSellerFulfillmentOrderItemId() : string { @@ -308,6 +302,8 @@ public function setSellerFulfillmentOrderItemId(string $seller_fulfillment_order /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { @@ -328,6 +324,8 @@ public function setQuantity(int $quantity) : self /** * Gets gift_message. + * + * @return null|string */ public function getGiftMessage() : ?string { @@ -348,6 +346,8 @@ public function setGiftMessage(?string $gift_message) : self /** * Gets displayable_comment. + * + * @return null|string */ public function getDisplayableComment() : ?string { @@ -368,6 +368,8 @@ public function setDisplayableComment(?string $displayable_comment) : self /** * Gets fulfillment_network_sku. + * + * @return null|string */ public function getFulfillmentNetworkSku() : ?string { @@ -388,6 +390,8 @@ public function setFulfillmentNetworkSku(?string $fulfillment_network_sku) : sel /** * Gets order_item_disposition. + * + * @return null|string */ public function getOrderItemDisposition() : ?string { @@ -408,6 +412,8 @@ public function setOrderItemDisposition(?string $order_item_disposition) : self /** * Gets per_unit_declared_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getPerUnitDeclaredValue() : ?Money { @@ -428,6 +434,8 @@ public function setPerUnitDeclaredValue(?Money $per_unit_declared_value) : self /** * Gets per_unit_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getPerUnitPrice() : ?Money { @@ -448,6 +456,8 @@ public function setPerUnitPrice(?Money $per_unit_price) : self /** * Gets per_unit_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Money */ public function getPerUnitTax() : ?Money { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderRequest.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderRequest.php index b04a62694..c2d7addd0 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderRequest.php @@ -170,8 +170,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -180,8 +178,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -191,8 +187,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -201,8 +195,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -211,8 +203,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -224,7 +214,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -260,6 +250,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -280,6 +272,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets displayable_order_id. + * + * @return null|string */ public function getDisplayableOrderId() : ?string { @@ -300,6 +294,8 @@ public function setDisplayableOrderId(?string $displayable_order_id) : self /** * Gets displayable_order_date. + * + * @return null|\DateTimeInterface */ public function getDisplayableOrderDate() : ?\DateTimeInterface { @@ -320,6 +316,8 @@ public function setDisplayableOrderDate(?\DateTimeInterface $displayable_order_d /** * Gets displayable_order_comment. + * + * @return null|string */ public function getDisplayableOrderComment() : ?string { @@ -340,6 +338,8 @@ public function setDisplayableOrderComment(?string $displayable_order_comment) : /** * Gets shipping_speed_category. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\ShippingSpeedCategory */ public function getShippingSpeedCategory() : ?ShippingSpeedCategory { @@ -360,6 +360,8 @@ public function setShippingSpeedCategory(?ShippingSpeedCategory $shipping_speed_ /** * Gets destination_address. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\Address */ public function getDestinationAddress() : ?Address { @@ -380,6 +382,8 @@ public function setDestinationAddress(?Address $destination_address) : self /** * Gets fulfillment_action. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentAction */ public function getFulfillmentAction() : ?FulfillmentAction { @@ -400,6 +404,8 @@ public function setFulfillmentAction(?FulfillmentAction $fulfillment_action) : s /** * Gets fulfillment_policy. + * + * @return null|\AmazonPHP\SellingPartner\Model\FulfillmentOutbound\FulfillmentPolicy */ public function getFulfillmentPolicy() : ?FulfillmentPolicy { @@ -420,6 +426,8 @@ public function setFulfillmentPolicy(?FulfillmentPolicy $fulfillment_policy) : s /** * Gets ship_from_country_code. + * + * @return null|string */ public function getShipFromCountryCode() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderResponse.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderResponse.php index 9e3cb192e..cf6900821 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/UpdateFulfillmentOrderResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Weight.php b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Weight.php index f8bbc5bda..575efdadb 100644 --- a/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Weight.php +++ b/src/AmazonPHP/SellingPartner/Model/FulfillmentOutbound/Weight.php @@ -118,8 +118,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -128,8 +126,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -139,8 +135,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -149,8 +143,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -159,8 +151,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -172,7 +162,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -231,6 +221,8 @@ public function validate() : void /** * Gets unit. + * + * @return string */ public function getUnit() : string { @@ -251,6 +243,8 @@ public function setUnit(string $unit) : self /** * Gets value. + * + * @return string */ public function getValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/Error.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/Error.php index 1e65d0774..b121f0969 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ErrorList.php index 70deeae48..59df098bd 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/FulfillmentAvailability.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/FulfillmentAvailability.php index dddf9a8c0..909f433fa 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/FulfillmentAvailability.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/FulfillmentAvailability.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets fulfillment_channel_code. + * + * @return string */ public function getFulfillmentChannelCode() : string { @@ -216,6 +208,8 @@ public function setFulfillmentChannelCode(string $fulfillment_channel_code) : se /** * Gets quantity. + * + * @return null|int */ public function getQuantity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/Issue.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/Issue.php index dfb7294f4..f94820e53 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/Issue.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/Issue.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -244,6 +234,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -264,6 +256,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -284,6 +278,8 @@ public function setMessage(string $message) : self /** * Gets severity. + * + * @return string */ public function getSeverity() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/Item.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/Item.php index ebe0c53e0..bcb2cbfc1 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/Item.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/Item.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -226,6 +216,8 @@ public function validate() : void /** * Gets sku. + * + * @return string */ public function getSku() : string { @@ -356,6 +348,8 @@ public function setFulfillmentAvailability(?array $fulfillment_availability) : s /** * Gets procurement. + * + * @return null|\AmazonPHP\SellingPartner\Model\ListingsItems\ItemProcurement */ public function getProcurement() : ?ItemProcurement { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemImage.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemImage.php index 36254bd34..9f0d15df8 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemImage.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemImage.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets link. + * + * @return string */ public function getLink() : string { @@ -226,6 +218,8 @@ public function setLink(string $link) : self /** * Gets height. + * + * @return int */ public function getHeight() : int { @@ -246,6 +240,8 @@ public function setHeight(int $height) : self /** * Gets width. + * + * @return int */ public function getWidth() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemOfferByMarketplace.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemOfferByMarketplace.php index 87e8ab1d4..267e684aa 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemOfferByMarketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemOfferByMarketplace.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -247,6 +237,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -267,6 +259,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets offer_type. + * + * @return string */ public function getOfferType() : string { @@ -287,6 +281,8 @@ public function setOfferType(string $offer_type) : self /** * Gets price. + * + * @return \AmazonPHP\SellingPartner\Model\ListingsItems\Money */ public function getPrice() : Money { @@ -307,6 +303,8 @@ public function setPrice(Money $price) : self /** * Gets points. + * + * @return null|\AmazonPHP\SellingPartner\Model\ListingsItems\Points */ public function getPoints() : ?Points { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemProcurement.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemProcurement.php index 80f2eb438..404e8951a 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemProcurement.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemProcurement.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,8 +178,10 @@ public function validate() : void /** * Gets cost_price. + * + * @return \AmazonPHP\SellingPartner\Model\ListingsItems\Money */ - public function getCostPrice() : ?Money + public function getCostPrice() : Money { return $this->container['cost_price']; } diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemSummaryByMarketplace.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemSummaryByMarketplace.php index 7238b4f94..63d92cf18 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemSummaryByMarketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ItemSummaryByMarketplace.php @@ -188,8 +188,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -198,8 +196,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -209,8 +205,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -219,8 +213,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -229,8 +221,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -242,7 +232,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -347,6 +337,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -367,6 +359,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets asin. + * + * @return string */ public function getAsin() : string { @@ -387,6 +381,8 @@ public function setAsin(string $asin) : self /** * Gets product_type. + * + * @return string */ public function getProductType() : string { @@ -407,6 +403,8 @@ public function setProductType(string $product_type) : self /** * Gets condition_type. + * + * @return null|string */ public function getConditionType() : ?string { @@ -449,6 +447,8 @@ public function setStatus(array $status) : self /** * Gets fn_sku. + * + * @return null|string */ public function getFnSku() : ?string { @@ -469,6 +469,8 @@ public function setFnSku(?string $fn_sku) : self /** * Gets item_name. + * + * @return string */ public function getItemName() : string { @@ -489,6 +491,8 @@ public function setItemName(string $item_name) : self /** * Gets created_date. + * + * @return \DateTimeInterface */ public function getCreatedDate() : \DateTimeInterface { @@ -509,6 +513,8 @@ public function setCreatedDate(\DateTimeInterface $created_date) : self /** * Gets last_updated_date. + * + * @return \DateTimeInterface */ public function getLastUpdatedDate() : \DateTimeInterface { @@ -529,6 +535,8 @@ public function setLastUpdatedDate(\DateTimeInterface $last_updated_date) : self /** * Gets main_image. + * + * @return null|\AmazonPHP\SellingPartner\Model\ListingsItems\ItemImage */ public function getMainImage() : ?ItemImage { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPatchRequest.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPatchRequest.php index c5c2ae541..a912200bc 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPatchRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPatchRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets product_type. + * + * @return string */ public function getProductType() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPutRequest.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPutRequest.php index f64e697b4..002e5a06b 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPutRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemPutRequest.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -234,6 +224,8 @@ public function validate() : void /** * Gets product_type. + * + * @return string */ public function getProductType() : string { @@ -254,6 +246,8 @@ public function setProductType(string $product_type) : self /** * Gets requirements. + * + * @return null|string */ public function getRequirements() : ?string { @@ -274,6 +268,8 @@ public function setRequirements(?string $requirements) : self /** * Gets attributes. + * + * @return null|object */ public function getAttributes() : ?array { @@ -283,7 +279,7 @@ public function getAttributes() : ?array /** * Sets attributes. * - * @param mixed[] $attributes + * @param object $attributes JSON object containing structured listings item attribute data keyed by attribute name */ public function setAttributes(array $attributes) : self { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemSubmissionResponse.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemSubmissionResponse.php index d691e7617..22faef36f 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemSubmissionResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/ListingsItemSubmissionResponse.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -241,6 +231,8 @@ public function validate() : void /** * Gets sku. + * + * @return string */ public function getSku() : string { @@ -261,6 +253,8 @@ public function setSku(string $sku) : self /** * Gets status. + * + * @return string */ public function getStatus() : string { @@ -281,6 +275,8 @@ public function setStatus(string $status) : self /** * Gets submission_id. + * + * @return string */ public function getSubmissionId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/Money.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/Money.php index 497179a75..43738b6f6 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/Money.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/Money.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return string */ public function getCurrencyCode() : string { @@ -216,6 +208,8 @@ public function setCurrencyCode(string $currency_code) : self /** * Gets amount. + * + * @return string */ public function getAmount() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/PatchOperation.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/PatchOperation.php index 77c083809..6344c1c31 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/PatchOperation.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/PatchOperation.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -234,6 +224,8 @@ public function validate() : void /** * Gets op. + * + * @return string */ public function getOp() : string { @@ -254,6 +246,8 @@ public function setOp(string $op) : self /** * Gets path. + * + * @return string */ public function getPath() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ListingsItems/Points.php b/src/AmazonPHP/SellingPartner/Model/ListingsItems/Points.php index 94154c800..4c031dcde 100644 --- a/src/AmazonPHP/SellingPartner/Model/ListingsItems/Points.php +++ b/src/AmazonPHP/SellingPartner/Model/ListingsItems/Points.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets points_number. + * + * @return int */ public function getPointsNumber() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalInputs.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalInputs.php index f51a81ce3..01812b3f6 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalInputs.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalInputs.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets additional_input_field_name. + * + * @return null|string */ public function getAdditionalInputFieldName() : ?string { @@ -212,6 +204,8 @@ public function setAdditionalInputFieldName(?string $additional_input_field_name /** * Gets seller_input_definition. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\SellerInputDefinition */ public function getSellerInputDefinition() : ?SellerInputDefinition { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalSellerInput.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalSellerInput.php index c5738a00b..b9285c5c8 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalSellerInput.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalSellerInput.php @@ -152,8 +152,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -162,8 +160,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -173,8 +169,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -183,8 +177,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -193,8 +185,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -206,7 +196,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -246,6 +236,8 @@ public function validate() : void /** * Gets data_type. + * + * @return null|string */ public function getDataType() : ?string { @@ -266,6 +258,8 @@ public function setDataType(?string $data_type) : self /** * Gets value_as_string. + * + * @return null|string */ public function getValueAsString() : ?string { @@ -286,6 +280,8 @@ public function setValueAsString(?string $value_as_string) : self /** * Gets value_as_boolean. + * + * @return null|bool */ public function getValueAsBoolean() : ?bool { @@ -306,6 +302,8 @@ public function setValueAsBoolean(?bool $value_as_boolean) : self /** * Gets value_as_integer. + * + * @return null|int */ public function getValueAsInteger() : ?int { @@ -326,6 +324,8 @@ public function setValueAsInteger(?int $value_as_integer) : self /** * Gets value_as_timestamp. + * + * @return null|\DateTimeInterface */ public function getValueAsTimestamp() : ?\DateTimeInterface { @@ -346,6 +346,8 @@ public function setValueAsTimestamp(?\DateTimeInterface $value_as_timestamp) : s /** * Gets value_as_address. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\Address */ public function getValueAsAddress() : ?Address { @@ -366,6 +368,8 @@ public function setValueAsAddress(?Address $value_as_address) : self /** * Gets value_as_weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\Weight */ public function getValueAsWeight() : ?Weight { @@ -386,6 +390,8 @@ public function setValueAsWeight(?Weight $value_as_weight) : self /** * Gets value_as_dimension. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\Length */ public function getValueAsDimension() : ?Length { @@ -406,6 +412,8 @@ public function setValueAsDimension(?Length $value_as_dimension) : self /** * Gets value_as_currency. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\CurrencyAmount */ public function getValueAsCurrency() : ?CurrencyAmount { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalSellerInputs.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalSellerInputs.php index e27e6c1bc..2e4b2311d 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalSellerInputs.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AdditionalSellerInputs.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets additional_input_field_name. + * + * @return string */ public function getAdditionalInputFieldName() : string { @@ -218,6 +210,8 @@ public function setAdditionalInputFieldName(string $additional_input_field_name) /** * Gets additional_seller_input. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\AdditionalSellerInput */ public function getAdditionalSellerInput() : AdditionalSellerInput { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Address.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Address.php index b83249f47..3d832b7f0 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Address.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -302,6 +292,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -322,6 +314,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -342,6 +336,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -362,6 +358,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -382,6 +380,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets district_or_county. + * + * @return null|string */ public function getDistrictOrCounty() : ?string { @@ -402,6 +402,8 @@ public function setDistrictOrCounty(?string $district_or_county) : self /** * Gets email. + * + * @return string */ public function getEmail() : string { @@ -422,6 +424,8 @@ public function setEmail(string $email) : self /** * Gets city. + * + * @return string */ public function getCity() : string { @@ -442,6 +446,8 @@ public function setCity(string $city) : self /** * Gets state_or_province_code. + * + * @return null|string */ public function getStateOrProvinceCode() : ?string { @@ -462,6 +468,8 @@ public function setStateOrProvinceCode(?string $state_or_province_code) : self /** * Gets postal_code. + * + * @return string */ public function getPostalCode() : string { @@ -482,6 +490,8 @@ public function setPostalCode(string $postal_code) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -502,6 +512,8 @@ public function setCountryCode(string $country_code) : self /** * Gets phone. + * + * @return string */ public function getPhone() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableCarrierWillPickUpOption.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableCarrierWillPickUpOption.php index 27acf1826..cc877b788 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableCarrierWillPickUpOption.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableCarrierWillPickUpOption.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets carrier_will_pick_up_option. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CarrierWillPickUpOption */ public function getCarrierWillPickUpOption() : CarrierWillPickUpOption { @@ -218,6 +210,8 @@ public function setCarrierWillPickUpOption(CarrierWillPickUpOption $carrier_will /** * Gets charge. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CurrencyAmount */ public function getCharge() : CurrencyAmount { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableDeliveryExperienceOption.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableDeliveryExperienceOption.php index 45a02740d..09950850a 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableDeliveryExperienceOption.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableDeliveryExperienceOption.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets delivery_experience_option. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\DeliveryExperienceOption */ public function getDeliveryExperienceOption() : DeliveryExperienceOption { @@ -218,6 +210,8 @@ public function setDeliveryExperienceOption(DeliveryExperienceOption $delivery_e /** * Gets charge. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CurrencyAmount */ public function getCharge() : CurrencyAmount { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableShippingServiceOptions.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableShippingServiceOptions.php index ac67017af..0afec13ad 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableShippingServiceOptions.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/AvailableShippingServiceOptions.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CancelShipmentResponse.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CancelShipmentResponse.php index 7e169d90e..96467727e 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CancelShipmentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CancelShipmentResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\Shipment */ public function getPayload() : ?Shipment { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Constraint.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Constraint.php index 06abae303..f63c1934c 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Constraint.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Constraint.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets validation_reg_ex. + * + * @return null|string */ public function getValidationRegEx() : ?string { @@ -212,6 +204,8 @@ public function setValidationRegEx(?string $validation_reg_ex) : self /** * Gets validation_string. + * + * @return string */ public function getValidationString() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CreateShipmentRequest.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CreateShipmentRequest.php index b2d64db5d..a79275bdb 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CreateShipmentRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CreateShipmentRequest.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -226,6 +216,8 @@ public function validate() : void /** * Gets shipment_request_details. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\ShipmentRequestDetails */ public function getShipmentRequestDetails() : ShipmentRequestDetails { @@ -246,6 +238,8 @@ public function setShipmentRequestDetails(ShipmentRequestDetails $shipment_reque /** * Gets shipping_service_id. + * + * @return string */ public function getShippingServiceId() : string { @@ -266,6 +260,8 @@ public function setShippingServiceId(string $shipping_service_id) : self /** * Gets shipping_service_offer_id. + * + * @return null|string */ public function getShippingServiceOfferId() : ?string { @@ -286,6 +282,8 @@ public function setShippingServiceOfferId(?string $shipping_service_offer_id) : /** * Gets hazmat_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\HazmatType */ public function getHazmatType() : ?HazmatType { @@ -306,6 +304,8 @@ public function setHazmatType(?HazmatType $hazmat_type) : self /** * Gets label_format_option. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\LabelFormatOptionRequest */ public function getLabelFormatOption() : ?LabelFormatOptionRequest { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CreateShipmentResponse.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CreateShipmentResponse.php index 0543f09bb..f0df28110 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CreateShipmentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CreateShipmentResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\Shipment */ public function getPayload() : ?Shipment { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CurrencyAmount.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CurrencyAmount.php index 2a39adb14..426517932 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CurrencyAmount.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/CurrencyAmount.php @@ -41,7 +41,7 @@ class CurrencyAmount implements \ArrayAccess, \JsonSerializable, \Stringable, Mo */ protected static array $openAPITypes = [ 'currency_code' => 'string', - 'amount' => 'double', + 'amount' => 'float', ]; /** @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return string */ public function getCurrencyCode() : string { @@ -220,6 +212,8 @@ public function setCurrencyCode(string $currency_code) : self /** * Gets amount. + * + * @return float */ public function getAmount() : float { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Error.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Error.php index 63b02abc4..f93d3acf7 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/FileContents.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/FileContents.php index 04a43353a..aa6593180 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/FileContents.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/FileContents.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets contents. + * + * @return string */ public function getContents() : string { @@ -226,6 +218,8 @@ public function setContents(string $contents) : self /** * Gets file_type. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\FileType */ public function getFileType() : FileType { @@ -246,6 +240,8 @@ public function setFileType(FileType $file_type) : self /** * Gets checksum. + * + * @return string */ public function getChecksum() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsRequest.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsRequest.php index 8a0222ab7..95adbee93 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets shipping_service_id. + * + * @return string */ public function getShippingServiceId() : string { @@ -228,6 +220,8 @@ public function setShippingServiceId(string $shipping_service_id) : self /** * Gets ship_from_address. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\Address */ public function getShipFromAddress() : Address { @@ -248,6 +242,8 @@ public function setShipFromAddress(Address $ship_from_address) : self /** * Gets order_id. + * + * @return string */ public function getOrderId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsResponse.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsResponse.php index 48ea2e4f9..ce28f4420 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetAdditionalSellerInputsResult */ public function getPayload() : ?GetAdditionalSellerInputsResult { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsResult.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsResult.php index 73a0f950d..a992d9224 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsResult.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetAdditionalSellerInputsResult.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesRequest.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesRequest.php index e9a827e2d..e9711335b 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets shipment_request_details. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\ShipmentRequestDetails */ public function getShipmentRequestDetails() : ShipmentRequestDetails { @@ -218,6 +210,8 @@ public function setShipmentRequestDetails(ShipmentRequestDetails $shipment_reque /** * Gets shipping_offering_filter. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\ShippingOfferingFilter */ public function getShippingOfferingFilter() : ?ShippingOfferingFilter { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesResponse.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesResponse.php index b6fae497a..13e2c571c 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\GetEligibleShipmentServicesResult */ public function getPayload() : ?GetEligibleShipmentServicesResult { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesResult.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesResult.php index ea73567e6..9c7d91309 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesResult.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetEligibleShipmentServicesResult.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetShipmentResponse.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetShipmentResponse.php index 470b06f64..8f2b243dc 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetShipmentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/GetShipmentResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\Shipment */ public function getPayload() : ?Shipment { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Item.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Item.php index 10bbc79f9..6ff3d22b6 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Item.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Item.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets order_item_id. + * + * @return string */ public function getOrderItemId() : string { @@ -244,6 +236,8 @@ public function setOrderItemId(string $order_item_id) : self /** * Gets quantity. + * + * @return int */ public function getQuantity() : int { @@ -264,6 +258,8 @@ public function setQuantity(int $quantity) : self /** * Gets item_weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\Weight */ public function getItemWeight() : ?Weight { @@ -284,6 +280,8 @@ public function setItemWeight(?Weight $item_weight) : self /** * Gets item_description. + * + * @return null|string */ public function getItemDescription() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ItemLevelFields.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ItemLevelFields.php index ded896608..5fc63e1cb 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ItemLevelFields.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ItemLevelFields.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets asin. + * + * @return string */ public function getAsin() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Label.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Label.php index 1a9dc6618..d4f464bf9 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Label.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Label.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -222,6 +212,8 @@ public function validate() : void /** * Gets custom_text_for_label. + * + * @return null|string */ public function getCustomTextForLabel() : ?string { @@ -242,6 +234,8 @@ public function setCustomTextForLabel(?string $custom_text_for_label) : self /** * Gets dimensions. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\LabelDimensions */ public function getDimensions() : LabelDimensions { @@ -262,6 +256,8 @@ public function setDimensions(LabelDimensions $dimensions) : self /** * Gets file_contents. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\FileContents */ public function getFileContents() : FileContents { @@ -282,6 +278,8 @@ public function setFileContents(FileContents $file_contents) : self /** * Gets label_format. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\LabelFormat */ public function getLabelFormat() : ?LabelFormat { @@ -302,6 +300,8 @@ public function setLabelFormat(?LabelFormat $label_format) : self /** * Gets standard_id_for_label. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\StandardIdForLabel */ public function getStandardIdForLabel() : ?StandardIdForLabel { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelCustomization.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelCustomization.php index b6515bd0e..f38ee3c25 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelCustomization.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelCustomization.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets custom_text_for_label. + * + * @return null|string */ public function getCustomTextForLabel() : ?string { @@ -212,6 +204,8 @@ public function setCustomTextForLabel(?string $custom_text_for_label) : self /** * Gets standard_id_for_label. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\StandardIdForLabel */ public function getStandardIdForLabel() : ?StandardIdForLabel { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelDimensions.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelDimensions.php index 29a3f2419..222c44343 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelDimensions.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelDimensions.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets length. + * + * @return float */ public function getLength() : float { @@ -226,6 +218,8 @@ public function setLength(float $length) : self /** * Gets width. + * + * @return float */ public function getWidth() : float { @@ -246,6 +240,8 @@ public function setWidth(float $width) : self /** * Gets unit. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\UnitOfLength */ public function getUnit() : UnitOfLength { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormatOption.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormatOption.php index 203e93c02..eb5cc6dbf 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormatOption.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormatOption.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets include_packing_slip_with_label. + * + * @return null|bool */ public function getIncludePackingSlipWithLabel() : ?bool { @@ -209,6 +201,8 @@ public function setIncludePackingSlipWithLabel(?bool $include_packing_slip_with_ /** * Gets label_format. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\LabelFormat */ public function getLabelFormat() : ?LabelFormat { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormatOptionRequest.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormatOptionRequest.php index 3a8b29966..d72293fc0 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormatOptionRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/LabelFormatOptionRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets include_packing_slip_with_label. + * + * @return null|bool */ public function getIncludePackingSlipWithLabel() : ?bool { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Length.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Length.php index af798e7a4..624b91376 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Length.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Length.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets value. + * + * @return null|float */ public function getValue() : ?float { @@ -209,6 +201,8 @@ public function setValue(?float $value) : self /** * Gets unit. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\UnitOfLength */ public function getUnit() : ?UnitOfLength { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/PackageDimensions.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/PackageDimensions.php index e6c744151..c2b5cca90 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/PackageDimensions.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/PackageDimensions.php @@ -40,9 +40,9 @@ class PackageDimensions implements \ArrayAccess, \JsonSerializable, \Stringable, * @var string[] */ protected static array $openAPITypes = [ - 'length' => 'double', - 'width' => 'double', - 'height' => 'double', + 'length' => 'float', + 'width' => 'float', + 'height' => 'float', 'unit' => '\AmazonPHP\SellingPartner\Model\MerchantFulfillment\UnitOfLength', 'predefined_package_dimensions' => '\AmazonPHP\SellingPartner\Model\MerchantFulfillment\PredefinedPackageDimensions', ]; @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -207,6 +197,8 @@ public function validate() : void /** * Gets length. + * + * @return null|float */ public function getLength() : ?float { @@ -227,6 +219,8 @@ public function setLength(?float $length) : self /** * Gets width. + * + * @return null|float */ public function getWidth() : ?float { @@ -247,6 +241,8 @@ public function setWidth(?float $width) : self /** * Gets height. + * + * @return null|float */ public function getHeight() : ?float { @@ -267,6 +263,8 @@ public function setHeight(?float $height) : self /** * Gets unit. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\UnitOfLength */ public function getUnit() : ?UnitOfLength { @@ -287,6 +285,8 @@ public function setUnit(?UnitOfLength $unit) : self /** * Gets predefined_package_dimensions. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\PredefinedPackageDimensions */ public function getPredefinedPackageDimensions() : ?PredefinedPackageDimensions { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/RejectedShippingService.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/RejectedShippingService.php index eb36f2f12..d8bc96548 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/RejectedShippingService.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/RejectedShippingService.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -222,6 +212,8 @@ public function validate() : void /** * Gets carrier_name. + * + * @return string */ public function getCarrierName() : string { @@ -242,6 +234,8 @@ public function setCarrierName(string $carrier_name) : self /** * Gets shipping_service_name. + * + * @return string */ public function getShippingServiceName() : string { @@ -262,6 +256,8 @@ public function setShippingServiceName(string $shipping_service_name) : self /** * Gets shipping_service_id. + * + * @return string */ public function getShippingServiceId() : string { @@ -282,6 +278,8 @@ public function setShippingServiceId(string $shipping_service_id) : self /** * Gets rejection_reason_code. + * + * @return string */ public function getRejectionReasonCode() : string { @@ -302,6 +300,8 @@ public function setRejectionReasonCode(string $rejection_reason_code) : self /** * Gets rejection_reason_message. + * + * @return null|string */ public function getRejectionReasonMessage() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/SellerInputDefinition.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/SellerInputDefinition.php index 129b86913..6143b6350 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/SellerInputDefinition.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/SellerInputDefinition.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets is_required. + * + * @return bool */ public function getIsRequired() : bool { @@ -260,6 +252,8 @@ public function setIsRequired(bool $is_required) : self /** * Gets data_type. + * + * @return string */ public function getDataType() : string { @@ -302,6 +296,8 @@ public function setConstraints(array $constraints) : self /** * Gets input_display_text. + * + * @return string */ public function getInputDisplayText() : string { @@ -322,6 +318,8 @@ public function setInputDisplayText(string $input_display_text) : self /** * Gets input_target. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\InputTargetType */ public function getInputTarget() : ?InputTargetType { @@ -342,6 +340,8 @@ public function setInputTarget(?InputTargetType $input_target) : self /** * Gets stored_value. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\AdditionalSellerInput */ public function getStoredValue() : AdditionalSellerInput { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Shipment.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Shipment.php index 3c5b21158..8c981e01f 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Shipment.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Shipment.php @@ -188,8 +188,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -198,8 +196,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -209,8 +205,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -219,8 +213,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -229,8 +221,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -242,7 +232,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -332,6 +322,8 @@ public function validate() : void /** * Gets shipment_id. + * + * @return string */ public function getShipmentId() : string { @@ -352,6 +344,8 @@ public function setShipmentId(string $shipment_id) : self /** * Gets amazon_order_id. + * + * @return string */ public function getAmazonOrderId() : string { @@ -372,6 +366,8 @@ public function setAmazonOrderId(string $amazon_order_id) : self /** * Gets seller_order_id. + * + * @return null|string */ public function getSellerOrderId() : ?string { @@ -414,6 +410,8 @@ public function setItemList(array $item_list) : self /** * Gets ship_from_address. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\Address */ public function getShipFromAddress() : Address { @@ -434,6 +432,8 @@ public function setShipFromAddress(Address $ship_from_address) : self /** * Gets ship_to_address. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\Address */ public function getShipToAddress() : Address { @@ -454,6 +454,8 @@ public function setShipToAddress(Address $ship_to_address) : self /** * Gets package_dimensions. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\PackageDimensions */ public function getPackageDimensions() : PackageDimensions { @@ -474,6 +476,8 @@ public function setPackageDimensions(PackageDimensions $package_dimensions) : se /** * Gets weight. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\Weight */ public function getWeight() : Weight { @@ -494,6 +498,8 @@ public function setWeight(Weight $weight) : self /** * Gets insurance. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CurrencyAmount */ public function getInsurance() : CurrencyAmount { @@ -514,6 +520,8 @@ public function setInsurance(CurrencyAmount $insurance) : self /** * Gets shipping_service. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\ShippingService */ public function getShippingService() : ShippingService { @@ -534,6 +542,8 @@ public function setShippingService(ShippingService $shipping_service) : self /** * Gets label. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\Label */ public function getLabel() : Label { @@ -554,6 +564,8 @@ public function setLabel(Label $label) : self /** * Gets status. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\ShipmentStatus */ public function getStatus() : ShipmentStatus { @@ -574,6 +586,8 @@ public function setStatus(ShipmentStatus $status) : self /** * Gets tracking_id. + * + * @return null|string */ public function getTrackingId() : ?string { @@ -594,6 +608,8 @@ public function setTrackingId(?string $tracking_id) : self /** * Gets created_date. + * + * @return \DateTimeInterface */ public function getCreatedDate() : \DateTimeInterface { @@ -614,6 +630,8 @@ public function setCreatedDate(\DateTimeInterface $created_date) : self /** * Gets last_updated_date. + * + * @return null|\DateTimeInterface */ public function getLastUpdatedDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShipmentRequestDetails.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShipmentRequestDetails.php index 06089e157..99941acaa 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShipmentRequestDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShipmentRequestDetails.php @@ -158,8 +158,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +166,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +175,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +183,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +191,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +202,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -276,6 +266,8 @@ public function validate() : void /** * Gets amazon_order_id. + * + * @return string */ public function getAmazonOrderId() : string { @@ -296,6 +288,8 @@ public function setAmazonOrderId(string $amazon_order_id) : self /** * Gets seller_order_id. + * + * @return null|string */ public function getSellerOrderId() : ?string { @@ -338,6 +332,8 @@ public function setItemList(array $item_list) : self /** * Gets ship_from_address. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\Address */ public function getShipFromAddress() : Address { @@ -358,6 +354,8 @@ public function setShipFromAddress(Address $ship_from_address) : self /** * Gets package_dimensions. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\PackageDimensions */ public function getPackageDimensions() : PackageDimensions { @@ -378,6 +376,8 @@ public function setPackageDimensions(PackageDimensions $package_dimensions) : se /** * Gets weight. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\Weight */ public function getWeight() : Weight { @@ -398,6 +398,8 @@ public function setWeight(Weight $weight) : self /** * Gets must_arrive_by_date. + * + * @return null|\DateTimeInterface */ public function getMustArriveByDate() : ?\DateTimeInterface { @@ -418,6 +420,8 @@ public function setMustArriveByDate(?\DateTimeInterface $must_arrive_by_date) : /** * Gets ship_date. + * + * @return null|\DateTimeInterface */ public function getShipDate() : ?\DateTimeInterface { @@ -438,6 +442,8 @@ public function setShipDate(?\DateTimeInterface $ship_date) : self /** * Gets shipping_service_options. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\ShippingServiceOptions */ public function getShippingServiceOptions() : ShippingServiceOptions { @@ -458,6 +464,8 @@ public function setShippingServiceOptions(ShippingServiceOptions $shipping_servi /** * Gets label_customization. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\LabelCustomization */ public function getLabelCustomization() : ?LabelCustomization { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingOfferingFilter.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingOfferingFilter.php index e26466735..e8711dca5 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingOfferingFilter.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingOfferingFilter.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -201,6 +191,8 @@ public function validate() : void /** * Gets include_packing_slip_with_label. + * + * @return null|bool */ public function getIncludePackingSlipWithLabel() : ?bool { @@ -221,6 +213,8 @@ public function setIncludePackingSlipWithLabel(?bool $include_packing_slip_with_ /** * Gets include_complex_shipping_options. + * + * @return null|bool */ public function getIncludeComplexShippingOptions() : ?bool { @@ -241,6 +235,8 @@ public function setIncludeComplexShippingOptions(?bool $include_complex_shipping /** * Gets carrier_will_pick_up. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\CarrierWillPickUpOption */ public function getCarrierWillPickUp() : ?CarrierWillPickUpOption { @@ -261,6 +257,8 @@ public function setCarrierWillPickUp(?CarrierWillPickUpOption $carrier_will_pick /** * Gets delivery_experience. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\DeliveryExperienceOption */ public function getDeliveryExperience() : ?DeliveryExperienceOption { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingService.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingService.php index c38b2f1c1..ac1364ec9 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingService.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingService.php @@ -176,8 +176,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -186,8 +184,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -197,8 +193,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -207,8 +201,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -217,8 +209,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -230,7 +220,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -294,6 +284,8 @@ public function validate() : void /** * Gets shipping_service_name. + * + * @return string */ public function getShippingServiceName() : string { @@ -314,6 +306,8 @@ public function setShippingServiceName(string $shipping_service_name) : self /** * Gets carrier_name. + * + * @return string */ public function getCarrierName() : string { @@ -334,6 +328,8 @@ public function setCarrierName(string $carrier_name) : self /** * Gets shipping_service_id. + * + * @return string */ public function getShippingServiceId() : string { @@ -354,6 +350,8 @@ public function setShippingServiceId(string $shipping_service_id) : self /** * Gets shipping_service_offer_id. + * + * @return string */ public function getShippingServiceOfferId() : string { @@ -374,6 +372,8 @@ public function setShippingServiceOfferId(string $shipping_service_offer_id) : s /** * Gets ship_date. + * + * @return \DateTimeInterface */ public function getShipDate() : \DateTimeInterface { @@ -394,6 +394,8 @@ public function setShipDate(\DateTimeInterface $ship_date) : self /** * Gets earliest_estimated_delivery_date. + * + * @return null|\DateTimeInterface */ public function getEarliestEstimatedDeliveryDate() : ?\DateTimeInterface { @@ -414,6 +416,8 @@ public function setEarliestEstimatedDeliveryDate(?\DateTimeInterface $earliest_e /** * Gets latest_estimated_delivery_date. + * + * @return null|\DateTimeInterface */ public function getLatestEstimatedDeliveryDate() : ?\DateTimeInterface { @@ -434,6 +438,8 @@ public function setLatestEstimatedDeliveryDate(?\DateTimeInterface $latest_estim /** * Gets rate. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\CurrencyAmount */ public function getRate() : CurrencyAmount { @@ -454,6 +460,8 @@ public function setRate(CurrencyAmount $rate) : self /** * Gets shipping_service_options. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\ShippingServiceOptions */ public function getShippingServiceOptions() : ShippingServiceOptions { @@ -474,6 +482,8 @@ public function setShippingServiceOptions(ShippingServiceOptions $shipping_servi /** * Gets available_shipping_service_options. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\AvailableShippingServiceOptions */ public function getAvailableShippingServiceOptions() : ?AvailableShippingServiceOptions { @@ -538,6 +548,8 @@ public function setAvailableFormatOptionsForLabel(?array $available_format_optio /** * Gets requires_additional_seller_inputs. + * + * @return bool */ public function getRequiresAdditionalSellerInputs() : bool { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingServiceOptions.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingServiceOptions.php index 70e3d7591..e92093bb8 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingServiceOptions.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/ShippingServiceOptions.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function validate() : void /** * Gets delivery_experience. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\DeliveryExperienceType */ public function getDeliveryExperience() : DeliveryExperienceType { @@ -238,6 +230,8 @@ public function setDeliveryExperience(DeliveryExperienceType $delivery_experienc /** * Gets declared_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\CurrencyAmount */ public function getDeclaredValue() : ?CurrencyAmount { @@ -258,6 +252,8 @@ public function setDeclaredValue(?CurrencyAmount $declared_value) : self /** * Gets carrier_will_pick_up. + * + * @return bool */ public function getCarrierWillPickUp() : bool { @@ -278,6 +274,8 @@ public function setCarrierWillPickUp(bool $carrier_will_pick_up) : self /** * Gets carrier_will_pick_up_option. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\CarrierWillPickUpOption */ public function getCarrierWillPickUpOption() : ?CarrierWillPickUpOption { @@ -298,6 +296,8 @@ public function setCarrierWillPickUpOption(?CarrierWillPickUpOption $carrier_wil /** * Gets label_format. + * + * @return null|\AmazonPHP\SellingPartner\Model\MerchantFulfillment\LabelFormat */ public function getLabelFormat() : ?LabelFormat { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/TemporarilyUnavailableCarrier.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/TemporarilyUnavailableCarrier.php index 33f4e2ab6..78ef8ba4e 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/TemporarilyUnavailableCarrier.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/TemporarilyUnavailableCarrier.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets carrier_name. + * + * @return string */ public function getCarrierName() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrier.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrier.php index a7ab250e0..53b0d7363 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrier.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrier.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets carrier_name. + * + * @return string */ public function getCarrierName() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Weight.php b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Weight.php index 8e8ce096f..ddba18341 100644 --- a/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Weight.php +++ b/src/AmazonPHP/SellingPartner/Model/MerchantFulfillment/Weight.php @@ -40,7 +40,7 @@ class Weight implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInter * @var string[] */ protected static array $openAPITypes = [ - 'value' => 'double', + 'value' => 'float', 'unit' => '\AmazonPHP\SellingPartner\Model\MerchantFulfillment\UnitOfWeight', ]; @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets value. + * + * @return float */ public function getValue() : float { @@ -216,6 +208,8 @@ public function setValue(float $value) : self /** * Gets unit. + * + * @return \AmazonPHP\SellingPartner\Model\MerchantFulfillment\UnitOfWeight */ public function getUnit() : UnitOfWeight { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/Attachment.php b/src/AmazonPHP/SellingPartner/Model/Messaging/Attachment.php index 4747e8cbd..470bf198d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/Attachment.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/Attachment.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets upload_destination_id. + * + * @return string */ public function getUploadDestinationId() : string { @@ -216,6 +208,8 @@ public function setUploadDestinationId(string $upload_destination_id) : self /** * Gets file_name. + * + * @return string */ public function getFileName() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateAmazonMotorsRequest.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateAmazonMotorsRequest.php index f1cca1eb3..789a1d050 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateAmazonMotorsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateAmazonMotorsRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateAmazonMotorsResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateAmazonMotorsResponse.php index 09962021b..1d29b639f 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateAmazonMotorsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateAmazonMotorsResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmCustomizationDetailsRequest.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmCustomizationDetailsRequest.php index 4be7d91f2..8eece0114 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmCustomizationDetailsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmCustomizationDetailsRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets text. + * + * @return null|string */ public function getText() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmCustomizationDetailsResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmCustomizationDetailsResponse.php index 87b6e7c15..de1251c31 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmCustomizationDetailsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmCustomizationDetailsResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmDeliveryDetailsRequest.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmDeliveryDetailsRequest.php index 54792c71f..37c0231d0 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmDeliveryDetailsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmDeliveryDetailsRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -190,6 +180,8 @@ public function validate() : void /** * Gets text. + * + * @return null|string */ public function getText() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmDeliveryDetailsResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmDeliveryDetailsResponse.php index dff6e4654..b327fdfe4 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmDeliveryDetailsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmDeliveryDetailsResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmOrderDetailsRequest.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmOrderDetailsRequest.php index 78dac5e12..0a5176934 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmOrderDetailsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmOrderDetailsRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -190,6 +180,8 @@ public function validate() : void /** * Gets text. + * + * @return null|string */ public function getText() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmOrderDetailsResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmOrderDetailsResponse.php index da2c663c5..a03b73823 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmOrderDetailsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmOrderDetailsResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmServiceDetailsRequest.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmServiceDetailsRequest.php index 1a73c47ca..3e667c556 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmServiceDetailsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmServiceDetailsRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -190,6 +180,8 @@ public function validate() : void /** * Gets text. + * + * @return null|string */ public function getText() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmServiceDetailsResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmServiceDetailsResponse.php index d7e886382..791d8222c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmServiceDetailsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateConfirmServiceDetailsResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateDigitalAccessKeyRequest.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateDigitalAccessKeyRequest.php index d127412bd..cb9c5cb17 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateDigitalAccessKeyRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateDigitalAccessKeyRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets text. + * + * @return null|string */ public function getText() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateDigitalAccessKeyResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateDigitalAccessKeyResponse.php index b909f22a8..ff9ae16f8 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateDigitalAccessKeyResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateDigitalAccessKeyResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateLegalDisclosureRequest.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateLegalDisclosureRequest.php index f9e831d9a..f4ecd83f2 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateLegalDisclosureRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateLegalDisclosureRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateLegalDisclosureResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateLegalDisclosureResponse.php index 1c91c0a02..e6b3c998f 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateLegalDisclosureResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateLegalDisclosureResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateNegativeFeedbackRemovalResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateNegativeFeedbackRemovalResponse.php index 9b2ef2335..eafa6720a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateNegativeFeedbackRemovalResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateNegativeFeedbackRemovalResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateUnexpectedProblemRequest.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateUnexpectedProblemRequest.php index b0403c67e..08c01e201 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateUnexpectedProblemRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateUnexpectedProblemRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -190,6 +180,8 @@ public function validate() : void /** * Gets text. + * + * @return null|string */ public function getText() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateUnexpectedProblemResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateUnexpectedProblemResponse.php index 16ce186f3..94a5190ed 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateUnexpectedProblemResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateUnexpectedProblemResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateWarrantyRequest.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateWarrantyRequest.php index df4b1ece5..7f46bf06c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateWarrantyRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateWarrantyRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -217,6 +207,8 @@ public function setAttachments(?array $attachments) : self /** * Gets coverage_start_date. + * + * @return null|\DateTimeInterface */ public function getCoverageStartDate() : ?\DateTimeInterface { @@ -237,6 +229,8 @@ public function setCoverageStartDate(?\DateTimeInterface $coverage_start_date) : /** * Gets coverage_end_date. + * + * @return null|\DateTimeInterface */ public function getCoverageEndDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateWarrantyResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateWarrantyResponse.php index f3f035c3b..92e13fd03 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/CreateWarrantyResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/CreateWarrantyResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/Error.php b/src/AmazonPHP/SellingPartner/Model/Messaging/Error.php index 80310fba9..2d32be9bf 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/GetAttributesResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/GetAttributesResponse.php index fd509bc68..f05ff2738 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/GetAttributesResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/GetAttributesResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets buyer. + * + * @return null|\AmazonPHP\SellingPartner\Model\Messaging\GetAttributesResponseBuyer */ public function getBuyer() : ?GetAttributesResponseBuyer { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/GetAttributesResponseBuyer.php b/src/AmazonPHP/SellingPartner/Model/Messaging/GetAttributesResponseBuyer.php index 0c719573c..335cb492d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/GetAttributesResponseBuyer.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/GetAttributesResponseBuyer.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets locale. + * + * @return null|string */ public function getLocale() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponse.php index 23975be94..1b6b73a70 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponse.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets _links. + * + * @return null|\AmazonPHP\SellingPartner\Model\Messaging\GetMessagingActionResponseLinks */ public function getLinks() : ?GetMessagingActionResponseLinks { @@ -232,6 +224,8 @@ public function setLinks(?GetMessagingActionResponseLinks $_links) : self /** * Gets _embedded. + * + * @return null|\AmazonPHP\SellingPartner\Model\Messaging\GetMessagingActionResponseEmbedded */ public function getEmbedded() : ?GetMessagingActionResponseEmbedded { @@ -252,6 +246,8 @@ public function setEmbedded(?GetMessagingActionResponseEmbedded $_embedded) : se /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Messaging\MessagingAction */ public function getPayload() : ?MessagingAction { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponseEmbedded.php b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponseEmbedded.php index 28072d65b..52ee9a6dc 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponseEmbedded.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponseEmbedded.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets schema. + * + * @return null|\AmazonPHP\SellingPartner\Model\Messaging\GetSchemaResponse */ public function getSchema() : ?GetSchemaResponse { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponseLinks.php b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponseLinks.php index a6e9dbce8..4bbad67e2 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponseLinks.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionResponseLinks.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets self. + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\LinkObject */ public function getSelf() : LinkObject { @@ -220,6 +212,8 @@ public function setSelf(LinkObject $self) : self /** * Gets schema. + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\LinkObject */ public function getSchema() : LinkObject { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponse.php index e1537b4a8..378d0e9c1 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponse.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets _links. + * + * @return null|\AmazonPHP\SellingPartner\Model\Messaging\GetMessagingActionsForOrderResponseLinks */ public function getLinks() : ?GetMessagingActionsForOrderResponseLinks { @@ -222,6 +214,8 @@ public function setLinks(?GetMessagingActionsForOrderResponseLinks $_links) : se /** * Gets _embedded. + * + * @return null|\AmazonPHP\SellingPartner\Model\Messaging\GetMessagingActionsForOrderResponseEmbedded */ public function getEmbedded() : ?GetMessagingActionsForOrderResponseEmbedded { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponseEmbedded.php b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponseEmbedded.php index 9932d7be5..652f62ad8 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponseEmbedded.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponseEmbedded.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponseLinks.php b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponseLinks.php index 6c7f93137..3b5288a53 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponseLinks.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/GetMessagingActionsForOrderResponseLinks.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets self. + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\LinkObject */ public function getSelf() : LinkObject { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/GetSchemaResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/GetSchemaResponse.php index cf2d79a14..0a8986c9a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/GetSchemaResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/GetSchemaResponse.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets _links. + * + * @return null|\AmazonPHP\SellingPartner\Model\Messaging\GetSchemaResponseLinks */ public function getLinks() : ?GetSchemaResponseLinks { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/GetSchemaResponseLinks.php b/src/AmazonPHP/SellingPartner/Model/Messaging/GetSchemaResponseLinks.php index bd4bc6a8b..676e18cf1 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/GetSchemaResponseLinks.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/GetSchemaResponseLinks.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,6 +178,8 @@ public function validate() : void /** * Gets self. + * + * @return \AmazonPHP\SellingPartner\Model\Messaging\LinkObject */ public function getSelf() : LinkObject { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/InvoiceRequest.php b/src/AmazonPHP/SellingPartner/Model/Messaging/InvoiceRequest.php index a01285b2f..5492fcad6 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/InvoiceRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/InvoiceRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/InvoiceResponse.php b/src/AmazonPHP/SellingPartner/Model/Messaging/InvoiceResponse.php index e8770f706..61e698ca1 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/InvoiceResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/InvoiceResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/LinkObject.php b/src/AmazonPHP/SellingPartner/Model/Messaging/LinkObject.php index dacd1a50b..14fd12565 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/LinkObject.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/LinkObject.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets href. + * + * @return string */ public function getHref() : string { @@ -212,6 +204,8 @@ public function setHref(string $href) : self /** * Gets name. + * + * @return null|string */ public function getName() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Messaging/MessagingAction.php b/src/AmazonPHP/SellingPartner/Model/Messaging/MessagingAction.php index e56a0bd2d..b3884d573 100644 --- a/src/AmazonPHP/SellingPartner/Model/Messaging/MessagingAction.php +++ b/src/AmazonPHP/SellingPartner/Model/Messaging/MessagingAction.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/AggregationFilter.php b/src/AmazonPHP/SellingPartner/Model/Notifications/AggregationFilter.php index 7756f31c7..5bdafb309 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/AggregationFilter.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/AggregationFilter.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets aggregation_settings. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\AggregationSettings */ public function getAggregationSettings() : ?AggregationSettings { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/AggregationSettings.php b/src/AmazonPHP/SellingPartner/Model/Notifications/AggregationSettings.php index 5a49855d8..76a7ec82e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/AggregationSettings.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/AggregationSettings.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets aggregation_time_period. + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\AggregationTimePeriod */ public function getAggregationTimePeriod() : AggregationTimePeriod { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/CreateDestinationRequest.php b/src/AmazonPHP/SellingPartner/Model/Notifications/CreateDestinationRequest.php index 567470d21..49479afcd 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/CreateDestinationRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/CreateDestinationRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets resource_specification. + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\DestinationResourceSpecification */ public function getResourceSpecification() : DestinationResourceSpecification { @@ -218,6 +210,8 @@ public function setResourceSpecification(DestinationResourceSpecification $resou /** * Gets name. + * + * @return string */ public function getName() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/CreateDestinationResponse.php b/src/AmazonPHP/SellingPartner/Model/Notifications/CreateDestinationResponse.php index a33f42191..f04bcc0df 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/CreateDestinationResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/CreateDestinationResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\Destination */ public function getPayload() : ?Destination { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/CreateSubscriptionRequest.php b/src/AmazonPHP/SellingPartner/Model/Notifications/CreateSubscriptionRequest.php index 7445af967..8e12f31c7 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/CreateSubscriptionRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/CreateSubscriptionRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets payload_version. + * + * @return null|string */ public function getPayloadVersion() : ?string { @@ -218,6 +210,8 @@ public function setPayloadVersion(?string $payload_version) : self /** * Gets destination_id. + * + * @return null|string */ public function getDestinationId() : ?string { @@ -238,6 +232,8 @@ public function setDestinationId(?string $destination_id) : self /** * Gets processing_directive. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\ProcessingDirective */ public function getProcessingDirective() : ?ProcessingDirective { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/CreateSubscriptionResponse.php b/src/AmazonPHP/SellingPartner/Model/Notifications/CreateSubscriptionResponse.php index 8edbc0868..2450702ba 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/CreateSubscriptionResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/CreateSubscriptionResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\Subscription */ public function getPayload() : ?Subscription { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/DeleteDestinationResponse.php b/src/AmazonPHP/SellingPartner/Model/Notifications/DeleteDestinationResponse.php index a8b02437f..3b219441a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/DeleteDestinationResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/DeleteDestinationResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/DeleteSubscriptionByIdResponse.php b/src/AmazonPHP/SellingPartner/Model/Notifications/DeleteSubscriptionByIdResponse.php index e7913497d..02a331294 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/DeleteSubscriptionByIdResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/DeleteSubscriptionByIdResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/Destination.php b/src/AmazonPHP/SellingPartner/Model/Notifications/Destination.php index e2802ee47..6ff90738a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/Destination.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/Destination.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -232,6 +224,8 @@ public function setName(string $name) : self /** * Gets destination_id. + * + * @return string */ public function getDestinationId() : string { @@ -252,6 +246,8 @@ public function setDestinationId(string $destination_id) : self /** * Gets resource. + * + * @return \AmazonPHP\SellingPartner\Model\Notifications\DestinationResource */ public function getResource() : DestinationResource { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/DestinationResource.php b/src/AmazonPHP/SellingPartner/Model/Notifications/DestinationResource.php index 39cecedd7..1e3b40600 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/DestinationResource.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/DestinationResource.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets sqs. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\SqsResource */ public function getSqs() : ?SqsResource { @@ -216,6 +208,8 @@ public function setSqs(?SqsResource $sqs) : self /** * Gets event_bridge. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\EventBridgeResource */ public function getEventBridge() : ?EventBridgeResource { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/DestinationResourceSpecification.php b/src/AmazonPHP/SellingPartner/Model/Notifications/DestinationResourceSpecification.php index b45bd6e65..90fbfc068 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/DestinationResourceSpecification.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/DestinationResourceSpecification.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets sqs. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\SqsResource */ public function getSqs() : ?SqsResource { @@ -216,6 +208,8 @@ public function setSqs(?SqsResource $sqs) : self /** * Gets event_bridge. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\EventBridgeResourceSpecification */ public function getEventBridge() : ?EventBridgeResourceSpecification { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/Error.php b/src/AmazonPHP/SellingPartner/Model/Notifications/Error.php index 4254846ef..16f075d3e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/EventBridgeResource.php b/src/AmazonPHP/SellingPartner/Model/Notifications/EventBridgeResource.php index 1d15d0703..ef174c186 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/EventBridgeResource.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/EventBridgeResource.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -210,6 +200,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -230,6 +222,8 @@ public function setName(string $name) : self /** * Gets region. + * + * @return string */ public function getRegion() : string { @@ -250,6 +244,8 @@ public function setRegion(string $region) : self /** * Gets account_id. + * + * @return string */ public function getAccountId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/EventBridgeResourceSpecification.php b/src/AmazonPHP/SellingPartner/Model/Notifications/EventBridgeResourceSpecification.php index f6d94c470..52659aa79 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/EventBridgeResourceSpecification.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/EventBridgeResourceSpecification.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets region. + * + * @return string */ public function getRegion() : string { @@ -216,6 +208,8 @@ public function setRegion(string $region) : self /** * Gets account_id. + * + * @return string */ public function getAccountId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/EventFilter.php b/src/AmazonPHP/SellingPartner/Model/Notifications/EventFilter.php index d179c57a4..6869b7f5c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/EventFilter.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/EventFilter.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets aggregation_settings. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\AggregationSettings */ public function getAggregationSettings() : ?AggregationSettings { @@ -244,6 +236,8 @@ public function setMarketplaceIds(?array $marketplace_ids) : self /** * Gets event_filter_type. + * + * @return string */ public function getEventFilterType() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/EventFilterAllOf.php b/src/AmazonPHP/SellingPartner/Model/Notifications/EventFilterAllOf.php index 1c8b3c4b9..1a381bacc 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/EventFilterAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/EventFilterAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets event_filter_type. + * + * @return string */ public function getEventFilterType() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/GetDestinationResponse.php b/src/AmazonPHP/SellingPartner/Model/Notifications/GetDestinationResponse.php index 05b430f34..bf5f62dd9 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/GetDestinationResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/GetDestinationResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\Destination */ public function getPayload() : ?Destination { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/GetDestinationsResponse.php b/src/AmazonPHP/SellingPartner/Model/Notifications/GetDestinationsResponse.php index 82d36bd52..d6e619a95 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/GetDestinationsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/GetDestinationsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/GetSubscriptionByIdResponse.php b/src/AmazonPHP/SellingPartner/Model/Notifications/GetSubscriptionByIdResponse.php index 960763a92..2be94d08c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/GetSubscriptionByIdResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/GetSubscriptionByIdResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\Subscription */ public function getPayload() : ?Subscription { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/GetSubscriptionResponse.php b/src/AmazonPHP/SellingPartner/Model/Notifications/GetSubscriptionResponse.php index d618b12bc..219f3b7e5 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/GetSubscriptionResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/GetSubscriptionResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\Subscription */ public function getPayload() : ?Subscription { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/MarketplaceFilter.php b/src/AmazonPHP/SellingPartner/Model/Notifications/MarketplaceFilter.php index 4edadef11..147acf85e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/MarketplaceFilter.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/MarketplaceFilter.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/ProcessingDirective.php b/src/AmazonPHP/SellingPartner/Model/Notifications/ProcessingDirective.php index 7887ea53b..a6f10e3ed 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/ProcessingDirective.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/ProcessingDirective.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets event_filter. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\EventFilter */ public function getEventFilter() : ?EventFilter { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/SqsResource.php b/src/AmazonPHP/SellingPartner/Model/Notifications/SqsResource.php index e7de3d769..582542b15 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/SqsResource.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/SqsResource.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -194,6 +184,8 @@ public function validate() : void /** * Gets arn. + * + * @return string */ public function getArn() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Notifications/Subscription.php b/src/AmazonPHP/SellingPartner/Model/Notifications/Subscription.php index d1e78d3af..5cba1eb52 100644 --- a/src/AmazonPHP/SellingPartner/Model/Notifications/Subscription.php +++ b/src/AmazonPHP/SellingPartner/Model/Notifications/Subscription.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets subscription_id. + * + * @return string */ public function getSubscriptionId() : string { @@ -236,6 +228,8 @@ public function setSubscriptionId(string $subscription_id) : self /** * Gets payload_version. + * + * @return string */ public function getPayloadVersion() : string { @@ -256,6 +250,8 @@ public function setPayloadVersion(string $payload_version) : self /** * Gets destination_id. + * + * @return string */ public function getDestinationId() : string { @@ -276,6 +272,8 @@ public function setDestinationId(string $destination_id) : self /** * Gets processing_directive. + * + * @return null|\AmazonPHP\SellingPartner\Model\Notifications\ProcessingDirective */ public function getProcessingDirective() : ?ProcessingDirective { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/Address.php b/src/AmazonPHP/SellingPartner/Model/Orders/Address.php index f76c80808..f9848d3f9 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/Address.php @@ -180,8 +180,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -190,8 +188,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -201,8 +197,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -211,8 +205,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -221,8 +213,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -234,7 +224,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -288,7 +278,7 @@ public function validate() : void /** * Gets name. */ - public function getName() : string + public function getName() : ?string { return $this->container['name']; } @@ -307,6 +297,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return null|string */ public function getAddressLine1() : ?string { @@ -327,6 +319,8 @@ public function setAddressLine1(?string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -347,6 +341,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -367,6 +363,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets city. + * + * @return null|string */ public function getCity() : ?string { @@ -387,6 +385,8 @@ public function setCity(?string $city) : self /** * Gets county. + * + * @return null|string */ public function getCounty() : ?string { @@ -407,6 +407,8 @@ public function setCounty(?string $county) : self /** * Gets district. + * + * @return null|string */ public function getDistrict() : ?string { @@ -427,6 +429,8 @@ public function setDistrict(?string $district) : self /** * Gets state_or_region. + * + * @return null|string */ public function getStateOrRegion() : ?string { @@ -447,6 +451,8 @@ public function setStateOrRegion(?string $state_or_region) : self /** * Gets municipality. + * + * @return null|string */ public function getMunicipality() : ?string { @@ -467,6 +473,8 @@ public function setMunicipality(?string $municipality) : self /** * Gets postal_code. + * + * @return null|string */ public function getPostalCode() : ?string { @@ -487,6 +495,8 @@ public function setPostalCode(?string $postal_code) : self /** * Gets country_code. + * + * @return null|string */ public function getCountryCode() : ?string { @@ -507,6 +517,8 @@ public function setCountryCode(?string $country_code) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { @@ -527,6 +539,8 @@ public function setPhone(?string $phone) : self /** * Gets address_type. + * + * @return null|string */ public function getAddressType() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ApprovalSupportDataElement.php b/src/AmazonPHP/SellingPartner/Model/Orders/ApprovalSupportDataElement.php new file mode 100644 index 000000000..de2c3753c --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ApprovalSupportDataElement.php @@ -0,0 +1,291 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ApprovalSupportDataElement implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ApprovalSupportDataElement'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'name' => 'string', + 'value' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'name' => null, + 'value' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'name' => 'Name', + 'value' => 'Value', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'name' => 'setName', + 'value' => 'setValue', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'name' => 'getName', + 'value' => 'getValue', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = $data['name'] ?? null; + $this->container['value'] = $data['value'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['name'] === null) { + throw new AssertionException("'name' can't be null"); + } + + if ($this->container['value'] === null) { + throw new AssertionException("'value' can't be null"); + } + } + + /** + * Gets name. + * + * @return string + */ + public function getName() : string + { + return $this->container['name']; + } + + /** + * Sets name. + * + * @param string $name Name of the approval support element. Allowed names are defined in specific approval types schemas. + */ + public function setName(string $name) : self + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets value. + * + * @return string + */ + public function getValue() : string + { + return $this->container['value']; + } + + /** + * Sets value. + * + * @param string $value string value of the approval support element + */ + public function setValue(string $value) : self + { + $this->container['value'] = $value; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/AutomatedShippingSettings.php b/src/AmazonPHP/SellingPartner/Model/Orders/AutomatedShippingSettings.php index cbd3a45db..56f72cdf6 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/AutomatedShippingSettings.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/AutomatedShippingSettings.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets has_automated_shipping_settings. + * + * @return null|bool */ public function getHasAutomatedShippingSettings() : ?bool { @@ -215,6 +207,8 @@ public function setHasAutomatedShippingSettings(?bool $has_automated_shipping_se /** * Gets automated_carrier. + * + * @return null|string */ public function getAutomatedCarrier() : ?string { @@ -235,6 +229,8 @@ public function setAutomatedCarrier(?string $automated_carrier) : self /** * Gets automated_ship_method. + * + * @return null|string */ public function getAutomatedShipMethod() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/BusinessHours.php b/src/AmazonPHP/SellingPartner/Model/Orders/BusinessHours.php new file mode 100644 index 000000000..9bdc8ac83 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/BusinessHours.php @@ -0,0 +1,327 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class BusinessHours implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const DAY_OF_WEEK_SUN = 'SUN'; + + final public const DAY_OF_WEEK_MON = 'MON'; + + final public const DAY_OF_WEEK_TUE = 'TUE'; + + final public const DAY_OF_WEEK_WED = 'WED'; + + final public const DAY_OF_WEEK_THU = 'THU'; + + final public const DAY_OF_WEEK_FRI = 'FRI'; + + final public const DAY_OF_WEEK_SAT = 'SAT'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'BusinessHours'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'day_of_week' => 'string', + 'open_intervals' => '\AmazonPHP\SellingPartner\Model\Orders\OpenInterval[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'day_of_week' => null, + 'open_intervals' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'day_of_week' => 'DayOfWeek', + 'open_intervals' => 'OpenIntervals', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'day_of_week' => 'setDayOfWeek', + 'open_intervals' => 'setOpenIntervals', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'day_of_week' => 'getDayOfWeek', + 'open_intervals' => 'getOpenIntervals', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['day_of_week'] = $data['day_of_week'] ?? null; + $this->container['open_intervals'] = $data['open_intervals'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getDayOfWeekAllowableValues() : array + { + return [ + self::DAY_OF_WEEK_SUN, + self::DAY_OF_WEEK_MON, + self::DAY_OF_WEEK_TUE, + self::DAY_OF_WEEK_WED, + self::DAY_OF_WEEK_THU, + self::DAY_OF_WEEK_FRI, + self::DAY_OF_WEEK_SAT, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + $allowedValues = $this->getDayOfWeekAllowableValues(); + + if (null !== $this->container['day_of_week'] && !\in_array($this->container['day_of_week'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'day_of_week', must be one of '%s'", + $this->container['day_of_week'], + \implode("', '", $allowedValues) + ) + ); + } + } + + /** + * Gets day_of_week. + * + * @return null|string + */ + public function getDayOfWeek() : ?string + { + return $this->container['day_of_week']; + } + + /** + * Sets day_of_week. + * + * @param null|string $day_of_week day of the week + */ + public function setDayOfWeek(?string $day_of_week) : self + { + $this->container['day_of_week'] = $day_of_week; + + return $this; + } + + /** + * Gets open_intervals. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OpenInterval[] + */ + public function getOpenIntervals() : ?array + { + return $this->container['open_intervals']; + } + + /** + * Sets open_intervals. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\OpenInterval[] $open_intervals time window during the day when the business is open + */ + public function setOpenIntervals(?array $open_intervals) : self + { + $this->container['open_intervals'] = $open_intervals; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/BuyerCustomizedInfoDetail.php b/src/AmazonPHP/SellingPartner/Model/Orders/BuyerCustomizedInfoDetail.php index 5c5fb13ad..464a6e4da 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/BuyerCustomizedInfoDetail.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/BuyerCustomizedInfoDetail.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets customized_url. + * + * @return null|string */ public function getCustomizedUrl() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/BuyerInfo.php b/src/AmazonPHP/SellingPartner/Model/Orders/BuyerInfo.php index 7bab72891..8f0239104 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/BuyerInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/BuyerInfo.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -210,6 +200,8 @@ public function validate() : void /** * Gets buyer_email. + * + * @return null|string */ public function getBuyerEmail() : ?string { @@ -230,6 +222,8 @@ public function setBuyerEmail(?string $buyer_email) : self /** * Gets buyer_name. + * + * @return null|string */ public function getBuyerName() : ?string { @@ -250,6 +244,8 @@ public function setBuyerName(?string $buyer_name) : self /** * Gets buyer_county. + * + * @return null|string */ public function getBuyerCounty() : ?string { @@ -270,6 +266,8 @@ public function setBuyerCounty(?string $buyer_county) : self /** * Gets buyer_tax_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\BuyerTaxInfo */ public function getBuyerTaxInfo() : ?BuyerTaxInfo { @@ -290,6 +288,8 @@ public function setBuyerTaxInfo(?BuyerTaxInfo $buyer_tax_info) : self /** * Gets purchase_order_number. + * + * @return null|string */ public function getPurchaseOrderNumber() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/BuyerRequestedCancel.php b/src/AmazonPHP/SellingPartner/Model/Orders/BuyerRequestedCancel.php index 8e22bb4e5..e2fa31f75 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/BuyerRequestedCancel.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/BuyerRequestedCancel.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets is_buyer_requested_cancel. + * + * @return null|bool */ public function getIsBuyerRequestedCancel() : ?bool { @@ -209,6 +201,8 @@ public function setIsBuyerRequestedCancel(?bool $is_buyer_requested_cancel) : se /** * Gets buyer_cancel_reason. + * + * @return null|string */ public function getBuyerCancelReason() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/BuyerTaxInfo.php b/src/AmazonPHP/SellingPartner/Model/Orders/BuyerTaxInfo.php index 8e45ba43d..2edb4e6a2 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/BuyerTaxInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/BuyerTaxInfo.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets company_legal_name. + * + * @return null|string */ public function getCompanyLegalName() : ?string { @@ -215,6 +207,8 @@ public function setCompanyLegalName(?string $company_legal_name) : self /** * Gets taxing_region. + * + * @return null|string */ public function getTaxingRegion() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/BuyerTaxInformation.php b/src/AmazonPHP/SellingPartner/Model/Orders/BuyerTaxInformation.php index 146e51c61..9fe5eff43 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/BuyerTaxInformation.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/BuyerTaxInformation.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -201,6 +191,8 @@ public function validate() : void /** * Gets buyer_legal_company_name. + * + * @return null|string */ public function getBuyerLegalCompanyName() : ?string { @@ -221,6 +213,8 @@ public function setBuyerLegalCompanyName(?string $buyer_legal_company_name) : se /** * Gets buyer_business_address. + * + * @return null|string */ public function getBuyerBusinessAddress() : ?string { @@ -241,6 +235,8 @@ public function setBuyerBusinessAddress(?string $buyer_business_address) : self /** * Gets buyer_tax_registration_id. + * + * @return null|string */ public function getBuyerTaxRegistrationId() : ?string { @@ -261,6 +257,8 @@ public function setBuyerTaxRegistrationId(?string $buyer_tax_registration_id) : /** * Gets buyer_tax_office. + * + * @return null|string */ public function getBuyerTaxOffice() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentErrorResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentErrorResponse.php new file mode 100644 index 000000000..4a04edd9c --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentErrorResponse.php @@ -0,0 +1,256 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ConfirmShipmentErrorResponse implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ConfirmShipmentErrorResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'errors' => '\AmazonPHP\SellingPartner\Model\Orders\Error[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'errors' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'errors' => 'errors', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'errors' => 'setErrors', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'errors' => 'getErrors', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['errors'] = $data['errors'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets errors. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Error[] + */ + public function getErrors() : ?array + { + return $this->container['errors']; + } + + /** + * Sets errors. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\Error[] $errors a list of error responses returned when a request is unsuccessful + */ + public function setErrors(?array $errors) : self + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentOrderItem.php b/src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentOrderItem.php new file mode 100644 index 000000000..16820a743 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentOrderItem.php @@ -0,0 +1,319 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ConfirmShipmentOrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ConfirmShipmentOrderItem'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'order_item_id' => 'string', + 'quantity' => 'int', + 'transparency_codes' => 'string[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'order_item_id' => null, + 'quantity' => null, + 'transparency_codes' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'order_item_id' => 'orderItemId', + 'quantity' => 'quantity', + 'transparency_codes' => 'transparencyCodes', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'order_item_id' => 'setOrderItemId', + 'quantity' => 'setQuantity', + 'transparency_codes' => 'setTransparencyCodes', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'order_item_id' => 'getOrderItemId', + 'quantity' => 'getQuantity', + 'transparency_codes' => 'getTransparencyCodes', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['order_item_id'] = $data['order_item_id'] ?? null; + $this->container['quantity'] = $data['quantity'] ?? null; + $this->container['transparency_codes'] = $data['transparency_codes'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['order_item_id'] === null) { + throw new AssertionException("'order_item_id' can't be null"); + } + + if ($this->container['quantity'] === null) { + throw new AssertionException("'quantity' can't be null"); + } + } + + /** + * Gets order_item_id. + * + * @return string + */ + public function getOrderItemId() : string + { + return $this->container['order_item_id']; + } + + /** + * Sets order_item_id. + * + * @param string $order_item_id the unique identifier of the order item + */ + public function setOrderItemId(string $order_item_id) : self + { + $this->container['order_item_id'] = $order_item_id; + + return $this; + } + + /** + * Gets quantity. + * + * @return int + */ + public function getQuantity() : int + { + return $this->container['quantity']; + } + + /** + * Sets quantity. + * + * @param int $quantity the quantity of the item + */ + public function setQuantity(int $quantity) : self + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets transparency_codes. + * + * @return null|string[] + */ + public function getTransparencyCodes() : ?array + { + return $this->container['transparency_codes']; + } + + /** + * Sets transparency_codes. + * + * @param null|string[] $transparency_codes a list of order items + */ + public function setTransparencyCodes(?array $transparency_codes) : self + { + $this->container['transparency_codes'] = $transparency_codes; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentRequest.php b/src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentRequest.php new file mode 100644 index 000000000..0fc74d2a9 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ConfirmShipmentRequest.php @@ -0,0 +1,347 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ConfirmShipmentRequest implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const COD_COLLECTION_METHOD_DIRECT_PAYMENT = 'DirectPayment'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ConfirmShipmentRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'package_detail' => '\AmazonPHP\SellingPartner\Model\Orders\PackageDetail', + 'cod_collection_method' => 'string', + 'marketplace_id' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'package_detail' => null, + 'cod_collection_method' => null, + 'marketplace_id' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'package_detail' => 'packageDetail', + 'cod_collection_method' => 'codCollectionMethod', + 'marketplace_id' => 'marketplaceId', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'package_detail' => 'setPackageDetail', + 'cod_collection_method' => 'setCodCollectionMethod', + 'marketplace_id' => 'setMarketplaceId', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'package_detail' => 'getPackageDetail', + 'cod_collection_method' => 'getCodCollectionMethod', + 'marketplace_id' => 'getMarketplaceId', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['package_detail'] = $data['package_detail'] ?? null; + $this->container['cod_collection_method'] = $data['cod_collection_method'] ?? null; + $this->container['marketplace_id'] = $data['marketplace_id'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getCodCollectionMethodAllowableValues() : array + { + return [ + self::COD_COLLECTION_METHOD_DIRECT_PAYMENT, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['package_detail'] === null) { + throw new AssertionException("'package_detail' can't be null"); + } + + $this->container['package_detail']->validate(); + + $allowedValues = $this->getCodCollectionMethodAllowableValues(); + + if (null !== $this->container['cod_collection_method'] && !\in_array($this->container['cod_collection_method'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'cod_collection_method', must be one of '%s'", + $this->container['cod_collection_method'], + \implode("', '", $allowedValues) + ) + ); + } + + if ($this->container['marketplace_id'] === null) { + throw new AssertionException("'marketplace_id' can't be null"); + } + } + + /** + * Gets package_detail. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\PackageDetail + */ + public function getPackageDetail() : PackageDetail + { + return $this->container['package_detail']; + } + + /** + * Sets package_detail. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\PackageDetail $package_detail package_detail + */ + public function setPackageDetail(PackageDetail $package_detail) : self + { + $this->container['package_detail'] = $package_detail; + + return $this; + } + + /** + * Gets cod_collection_method. + * + * @return null|string + */ + public function getCodCollectionMethod() : ?string + { + return $this->container['cod_collection_method']; + } + + /** + * Sets cod_collection_method. + * + * @param null|string $cod_collection_method the cod collection method, support in JP only + */ + public function setCodCollectionMethod(?string $cod_collection_method) : self + { + $this->container['cod_collection_method'] = $cod_collection_method; + + return $this; + } + + /** + * Gets marketplace_id. + * + * @return string + */ + public function getMarketplaceId() : string + { + return $this->container['marketplace_id']; + } + + /** + * Sets marketplace_id. + * + * @param string $marketplace_id the unobfuscated marketplace identifier + */ + public function setMarketplaceId(string $marketplace_id) : self + { + $this->container['marketplace_id'] = $marketplace_id; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/DeliveryPreferences.php b/src/AmazonPHP/SellingPartner/Model/Orders/DeliveryPreferences.php new file mode 100644 index 000000000..9f568108b --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/DeliveryPreferences.php @@ -0,0 +1,343 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class DeliveryPreferences implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'DeliveryPreferences'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'drop_off_location' => 'string', + 'preferred_delivery_time' => '\AmazonPHP\SellingPartner\Model\Orders\PreferredDeliveryTime', + 'other_attributes' => '\AmazonPHP\SellingPartner\Model\Orders\OtherDeliveryAttributes[]', + 'address_instructions' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'drop_off_location' => null, + 'preferred_delivery_time' => null, + 'other_attributes' => null, + 'address_instructions' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'drop_off_location' => 'DropOffLocation', + 'preferred_delivery_time' => 'PreferredDeliveryTime', + 'other_attributes' => 'OtherAttributes', + 'address_instructions' => 'AddressInstructions', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'drop_off_location' => 'setDropOffLocation', + 'preferred_delivery_time' => 'setPreferredDeliveryTime', + 'other_attributes' => 'setOtherAttributes', + 'address_instructions' => 'setAddressInstructions', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'drop_off_location' => 'getDropOffLocation', + 'preferred_delivery_time' => 'getPreferredDeliveryTime', + 'other_attributes' => 'getOtherAttributes', + 'address_instructions' => 'getAddressInstructions', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['drop_off_location'] = $data['drop_off_location'] ?? null; + $this->container['preferred_delivery_time'] = $data['preferred_delivery_time'] ?? null; + $this->container['other_attributes'] = $data['other_attributes'] ?? null; + $this->container['address_instructions'] = $data['address_instructions'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['preferred_delivery_time'] !== null) { + $this->container['preferred_delivery_time']->validate(); + } + } + + /** + * Gets drop_off_location. + * + * @return null|string + */ + public function getDropOffLocation() : ?string + { + return $this->container['drop_off_location']; + } + + /** + * Sets drop_off_location. + * + * @param null|string $drop_off_location drop-off location selected by the customer + */ + public function setDropOffLocation(?string $drop_off_location) : self + { + $this->container['drop_off_location'] = $drop_off_location; + + return $this; + } + + /** + * Gets preferred_delivery_time. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\PreferredDeliveryTime + */ + public function getPreferredDeliveryTime() : ?PreferredDeliveryTime + { + return $this->container['preferred_delivery_time']; + } + + /** + * Sets preferred_delivery_time. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\PreferredDeliveryTime $preferred_delivery_time preferred_delivery_time + */ + public function setPreferredDeliveryTime(?PreferredDeliveryTime $preferred_delivery_time) : self + { + $this->container['preferred_delivery_time'] = $preferred_delivery_time; + + return $this; + } + + /** + * Gets other_attributes. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OtherDeliveryAttributes[] + */ + public function getOtherAttributes() : ?array + { + return $this->container['other_attributes']; + } + + /** + * Sets other_attributes. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\OtherDeliveryAttributes[] $other_attributes enumerated list of miscellaneous delivery attributes associated with the shipping address + */ + public function setOtherAttributes(?array $other_attributes) : self + { + $this->container['other_attributes'] = $other_attributes; + + return $this; + } + + /** + * Gets address_instructions. + * + * @return null|string + */ + public function getAddressInstructions() : ?string + { + return $this->container['address_instructions']; + } + + /** + * Sets address_instructions. + * + * @param null|string $address_instructions building instructions, nearby landmark or navigation instructions + */ + public function setAddressInstructions(?string $address_instructions) : self + { + $this->container['address_instructions'] = $address_instructions; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/Error.php b/src/AmazonPHP/SellingPartner/Model/Orders/Error.php index 565743665..40891ab7e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ExceptionDates.php b/src/AmazonPHP/SellingPartner/Model/Orders/ExceptionDates.php new file mode 100644 index 000000000..beac5846f --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ExceptionDates.php @@ -0,0 +1,312 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ExceptionDates implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ExceptionDates'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'exception_date' => 'string', + 'is_open' => 'bool', + 'open_intervals' => '\AmazonPHP\SellingPartner\Model\Orders\OpenInterval[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'exception_date' => null, + 'is_open' => null, + 'open_intervals' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'exception_date' => 'ExceptionDate', + 'is_open' => 'IsOpen', + 'open_intervals' => 'OpenIntervals', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'exception_date' => 'setExceptionDate', + 'is_open' => 'setIsOpen', + 'open_intervals' => 'setOpenIntervals', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'exception_date' => 'getExceptionDate', + 'is_open' => 'getIsOpen', + 'open_intervals' => 'getOpenIntervals', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['exception_date'] = $data['exception_date'] ?? null; + $this->container['is_open'] = $data['is_open'] ?? null; + $this->container['open_intervals'] = $data['open_intervals'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets exception_date. + * + * @return null|string + */ + public function getExceptionDate() : ?string + { + return $this->container['exception_date']; + } + + /** + * Sets exception_date. + * + * @param null|string $exception_date date when the business is closed, in ISO-8601 date format + */ + public function setExceptionDate(?string $exception_date) : self + { + $this->container['exception_date'] = $exception_date; + + return $this; + } + + /** + * Gets is_open. + * + * @return null|bool + */ + public function getIsOpen() : ?bool + { + return $this->container['is_open']; + } + + /** + * Sets is_open. + * + * @param null|bool $is_open boolean indicating if the business is closed or open on that date + */ + public function setIsOpen(?bool $is_open) : self + { + $this->container['is_open'] = $is_open; + + return $this; + } + + /** + * Gets open_intervals. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OpenInterval[] + */ + public function getOpenIntervals() : ?array + { + return $this->container['open_intervals']; + } + + /** + * Sets open_intervals. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\OpenInterval[] $open_intervals time window during the day when the business is open + */ + public function setOpenIntervals(?array $open_intervals) : self + { + $this->container['open_intervals'] = $open_intervals; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/FulfillmentInstruction.php b/src/AmazonPHP/SellingPartner/Model/Orders/FulfillmentInstruction.php index cd4d3efd6..9be3d8a13 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/FulfillmentInstruction.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/FulfillmentInstruction.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets fulfillment_supply_source_id. + * + * @return null|string */ public function getFulfillmentSupplySourceId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderAddressResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderAddressResponse.php index bdb735303..8a0bf66ee 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderAddressResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderAddressResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OrderAddress */ public function getPayload() : ?OrderAddress { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderApprovalsResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderApprovalsResponse.php new file mode 100644 index 000000000..61b066f23 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderApprovalsResponse.php @@ -0,0 +1,287 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class GetOrderApprovalsResponse implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'GetOrderApprovalsResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'payload' => '\AmazonPHP\SellingPartner\Model\Orders\OrderApprovalsResponse', + 'errors' => '\AmazonPHP\SellingPartner\Model\Orders\Error[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'payload' => null, + 'errors' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'payload' => 'payload', + 'errors' => 'errors', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'payload' => 'setPayload', + 'errors' => 'setErrors', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'payload' => 'getPayload', + 'errors' => 'getErrors', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['payload'] = $data['payload'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['payload'] !== null) { + $this->container['payload']->validate(); + } + } + + /** + * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OrderApprovalsResponse + */ + public function getPayload() : ?OrderApprovalsResponse + { + return $this->container['payload']; + } + + /** + * Sets payload. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\OrderApprovalsResponse $payload payload + */ + public function setPayload(?OrderApprovalsResponse $payload) : self + { + $this->container['payload'] = $payload; + + return $this; + } + + /** + * Gets errors. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Error[] + */ + public function getErrors() : ?array + { + return $this->container['errors']; + } + + /** + * Sets errors. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\Error[] $errors a list of error responses returned when a request is unsuccessful + */ + public function setErrors(?array $errors) : self + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderBuyerInfoResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderBuyerInfoResponse.php index d7e75f7e6..9f3b257c6 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderBuyerInfoResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderBuyerInfoResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OrderBuyerInfo */ public function getPayload() : ?OrderBuyerInfo { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderItemsBuyerInfoResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderItemsBuyerInfoResponse.php index c34aebd09..6aa65c9cd 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderItemsBuyerInfoResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderItemsBuyerInfoResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OrderItemsBuyerInfoList */ public function getPayload() : ?OrderItemsBuyerInfoList { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderItemsResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderItemsResponse.php index 63e3e69db..94e652ffb 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderItemsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderItemsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OrderItemsList */ public function getPayload() : ?OrderItemsList { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderRegulatedInfoResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderRegulatedInfoResponse.php index eaf0bc530..3194a3733 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderRegulatedInfoResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderRegulatedInfoResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OrderRegulatedInfo */ public function getPayload() : ?OrderRegulatedInfo { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderResponse.php index 0f91bbc3c..093416eec 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrderResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Order */ public function getPayload() : ?Order { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrdersResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrdersResponse.php index 037579b3a..c9680a059 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/GetOrdersResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/GetOrdersResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OrdersList */ public function getPayload() : ?OrdersList { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ItemApproval.php b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApproval.php new file mode 100644 index 000000000..d96453f2c --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApproval.php @@ -0,0 +1,506 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ItemApproval implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const ACTOR_SELLING_PARTNER = 'SELLING_PARTNER'; + + final public const ACTOR_AMAZON = 'AMAZON'; + + final public const APPROVAL_ACTION_PROCESS_STATUS_PROCESSING = 'PROCESSING'; + + final public const APPROVAL_ACTION_PROCESS_STATUS_SUCCESS = 'SUCCESS'; + + final public const APPROVAL_ACTION_PROCESS_STATUS_ERROR = 'ERROR'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ItemApproval'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'sequence_id' => 'int', + 'timestamp' => 'string', + 'actor' => 'string', + 'approver' => 'string', + 'approval_action' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalAction', + 'approval_action_process_status' => 'string', + 'approval_action_process_status_message' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'sequence_id' => null, + 'timestamp' => null, + 'actor' => null, + 'approver' => null, + 'approval_action' => null, + 'approval_action_process_status' => null, + 'approval_action_process_status_message' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'sequence_id' => 'SequenceId', + 'timestamp' => 'Timestamp', + 'actor' => 'Actor', + 'approver' => 'Approver', + 'approval_action' => 'ApprovalAction', + 'approval_action_process_status' => 'ApprovalActionProcessStatus', + 'approval_action_process_status_message' => 'ApprovalActionProcessStatusMessage', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'sequence_id' => 'setSequenceId', + 'timestamp' => 'setTimestamp', + 'actor' => 'setActor', + 'approver' => 'setApprover', + 'approval_action' => 'setApprovalAction', + 'approval_action_process_status' => 'setApprovalActionProcessStatus', + 'approval_action_process_status_message' => 'setApprovalActionProcessStatusMessage', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'sequence_id' => 'getSequenceId', + 'timestamp' => 'getTimestamp', + 'actor' => 'getActor', + 'approver' => 'getApprover', + 'approval_action' => 'getApprovalAction', + 'approval_action_process_status' => 'getApprovalActionProcessStatus', + 'approval_action_process_status_message' => 'getApprovalActionProcessStatusMessage', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['sequence_id'] = $data['sequence_id'] ?? null; + $this->container['timestamp'] = $data['timestamp'] ?? null; + $this->container['actor'] = $data['actor'] ?? null; + $this->container['approver'] = $data['approver'] ?? null; + $this->container['approval_action'] = $data['approval_action'] ?? null; + $this->container['approval_action_process_status'] = $data['approval_action_process_status'] ?? null; + $this->container['approval_action_process_status_message'] = $data['approval_action_process_status_message'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getActorAllowableValues() : array + { + return [ + self::ACTOR_SELLING_PARTNER, + self::ACTOR_AMAZON, + ]; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getApprovalActionProcessStatusAllowableValues() : array + { + return [ + self::APPROVAL_ACTION_PROCESS_STATUS_PROCESSING, + self::APPROVAL_ACTION_PROCESS_STATUS_SUCCESS, + self::APPROVAL_ACTION_PROCESS_STATUS_ERROR, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['sequence_id'] === null) { + throw new AssertionException("'sequence_id' can't be null"); + } + + if ($this->container['timestamp'] === null) { + throw new AssertionException("'timestamp' can't be null"); + } + + if ($this->container['actor'] === null) { + throw new AssertionException("'actor' can't be null"); + } + + $allowedValues = $this->getActorAllowableValues(); + + if (null !== $this->container['actor'] && !\in_array($this->container['actor'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'actor', must be one of '%s'", + $this->container['actor'], + \implode("', '", $allowedValues) + ) + ); + } + + if ($this->container['approval_action'] === null) { + throw new AssertionException("'approval_action' can't be null"); + } + + $this->container['approval_action']->validate(); + + if ($this->container['approval_action_process_status'] === null) { + throw new AssertionException("'approval_action_process_status' can't be null"); + } + + $allowedValues = $this->getApprovalActionProcessStatusAllowableValues(); + + if (null !== $this->container['approval_action_process_status'] && !\in_array($this->container['approval_action_process_status'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'approval_action_process_status', must be one of '%s'", + $this->container['approval_action_process_status'], + \implode("', '", $allowedValues) + ) + ); + } + } + + /** + * Gets sequence_id. + * + * @return int + */ + public function getSequenceId() : int + { + return $this->container['sequence_id']; + } + + /** + * Sets sequence_id. + * + * @param int $sequence_id Sequence number of the item approval. Each ItemApproval gets its sequenceId automatically from a monotonic increasing function. + */ + public function setSequenceId(int $sequence_id) : self + { + $this->container['sequence_id'] = $sequence_id; + + return $this; + } + + /** + * Gets timestamp. + * + * @return string + */ + public function getTimestamp() : string + { + return $this->container['timestamp']; + } + + /** + * Sets timestamp. + * + * @param string $timestamp Timestamp when the ItemApproval was recorded by Amazon's internal order approvals system. In ISO 8601 date time format. + */ + public function setTimestamp(string $timestamp) : self + { + $this->container['timestamp'] = $timestamp; + + return $this; + } + + /** + * Gets actor. + * + * @return string + */ + public function getActor() : string + { + return $this->container['actor']; + } + + /** + * Sets actor. + * + * @param string $actor high level actors involved in the approval process + */ + public function setActor(string $actor) : self + { + $this->container['actor'] = $actor; + + return $this; + } + + /** + * Gets approver. + * + * @return null|string + */ + public function getApprover() : ?string + { + return $this->container['approver']; + } + + /** + * Sets approver. + * + * @param null|string $approver person or system that triggers the approval actions on behalf of the actor + */ + public function setApprover(?string $approver) : self + { + $this->container['approver'] = $approver; + + return $this; + } + + /** + * Gets approval_action. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalAction + */ + public function getApprovalAction() : ItemApprovalAction + { + return $this->container['approval_action']; + } + + /** + * Sets approval_action. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalAction $approval_action approval_action + */ + public function setApprovalAction(ItemApprovalAction $approval_action) : self + { + $this->container['approval_action'] = $approval_action; + + return $this; + } + + /** + * Gets approval_action_process_status. + * + * @return string + */ + public function getApprovalActionProcessStatus() : string + { + return $this->container['approval_action_process_status']; + } + + /** + * Sets approval_action_process_status. + * + * @param string $approval_action_process_status status of approval action + */ + public function setApprovalActionProcessStatus(string $approval_action_process_status) : self + { + $this->container['approval_action_process_status'] = $approval_action_process_status; + + return $this; + } + + /** + * Gets approval_action_process_status_message. + * + * @return null|string + */ + public function getApprovalActionProcessStatusMessage() : ?string + { + return $this->container['approval_action_process_status_message']; + } + + /** + * Sets approval_action_process_status_message. + * + * @param null|string $approval_action_process_status_message optional message to communicate optional additional context about the current status of the approval action + */ + public function setApprovalActionProcessStatusMessage(?string $approval_action_process_status_message) : self + { + $this->container['approval_action_process_status_message'] = $approval_action_process_status_message; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalAction.php b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalAction.php new file mode 100644 index 000000000..794069623 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalAction.php @@ -0,0 +1,351 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ItemApprovalAction implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const ACTION_TYPE_APPROVE = 'APPROVE'; + + final public const ACTION_TYPE_DECLINE = 'DECLINE'; + + final public const ACTION_TYPE_APPROVE_WITH_CHANGES = 'APPROVE_WITH_CHANGES'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ItemApprovalAction'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'action_type' => 'string', + 'comment' => 'string', + 'changes' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalActionChanges', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'action_type' => null, + 'comment' => null, + 'changes' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'action_type' => 'ActionType', + 'comment' => 'Comment', + 'changes' => 'Changes', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'action_type' => 'setActionType', + 'comment' => 'setComment', + 'changes' => 'setChanges', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'action_type' => 'getActionType', + 'comment' => 'getComment', + 'changes' => 'getChanges', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['action_type'] = $data['action_type'] ?? null; + $this->container['comment'] = $data['comment'] ?? null; + $this->container['changes'] = $data['changes'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getActionTypeAllowableValues() : array + { + return [ + self::ACTION_TYPE_APPROVE, + self::ACTION_TYPE_DECLINE, + self::ACTION_TYPE_APPROVE_WITH_CHANGES, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['action_type'] === null) { + throw new AssertionException("'action_type' can't be null"); + } + + $allowedValues = $this->getActionTypeAllowableValues(); + + if (null !== $this->container['action_type'] && !\in_array($this->container['action_type'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'action_type', must be one of '%s'", + $this->container['action_type'], + \implode("', '", $allowedValues) + ) + ); + } + + if ($this->container['changes'] !== null) { + $this->container['changes']->validate(); + } + } + + /** + * Gets action_type. + * + * @return string + */ + public function getActionType() : string + { + return $this->container['action_type']; + } + + /** + * Sets action_type. + * + * @param string $action_type defines the type of action for the approval + */ + public function setActionType(string $action_type) : self + { + $this->container['action_type'] = $action_type; + + return $this; + } + + /** + * Gets comment. + * + * @return null|string + */ + public function getComment() : ?string + { + return $this->container['comment']; + } + + /** + * Sets comment. + * + * @param null|string $comment comment message to provide optional additional context on the approval action + */ + public function setComment(?string $comment) : self + { + $this->container['comment'] = $comment; + + return $this; + } + + /** + * Gets changes. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalActionChanges + */ + public function getChanges() : ?ItemApprovalActionChanges + { + return $this->container['changes']; + } + + /** + * Sets changes. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalActionChanges $changes changes + */ + public function setChanges(?ItemApprovalActionChanges $changes) : self + { + $this->container['changes'] = $changes; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalActionChanges.php b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalActionChanges.php new file mode 100644 index 000000000..5f46e0474 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalActionChanges.php @@ -0,0 +1,319 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ItemApprovalActionChanges implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ItemApprovalAction_Changes'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'item_price' => '\AmazonPHP\SellingPartner\Model\Orders\Money', + 'quantity' => 'int', + 'substituted_by' => '\AmazonPHP\SellingPartner\Model\Orders\ItemIdentifier', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'item_price' => null, + 'quantity' => null, + 'substituted_by' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'item_price' => 'ItemPrice', + 'quantity' => 'Quantity', + 'substituted_by' => 'SubstitutedBy', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'item_price' => 'setItemPrice', + 'quantity' => 'setQuantity', + 'substituted_by' => 'setSubstitutedBy', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'item_price' => 'getItemPrice', + 'quantity' => 'getQuantity', + 'substituted_by' => 'getSubstitutedBy', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['item_price'] = $data['item_price'] ?? null; + $this->container['quantity'] = $data['quantity'] ?? null; + $this->container['substituted_by'] = $data['substituted_by'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['item_price'] !== null) { + $this->container['item_price']->validate(); + } + + if ($this->container['substituted_by'] !== null) { + $this->container['substituted_by']->validate(); + } + } + + /** + * Gets item_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money + */ + public function getItemPrice() : ?Money + { + return $this->container['item_price']; + } + + /** + * Sets item_price. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\Money $item_price item_price + */ + public function setItemPrice(?Money $item_price) : self + { + $this->container['item_price'] = $item_price; + + return $this; + } + + /** + * Gets quantity. + * + * @return null|int + */ + public function getQuantity() : ?int + { + return $this->container['quantity']; + } + + /** + * Sets quantity. + * + * @param null|int $quantity Quantity approved. If substitutedBy is specified, this value applies to the substitution item. + */ + public function setQuantity(?int $quantity) : self + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets substituted_by. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\ItemIdentifier + */ + public function getSubstitutedBy() : ?ItemIdentifier + { + return $this->container['substituted_by']; + } + + /** + * Sets substituted_by. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemIdentifier $substituted_by substituted_by + */ + public function setSubstitutedBy(?ItemIdentifier $substituted_by) : self + { + $this->container['substituted_by'] = $substituted_by; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalContext.php b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalContext.php new file mode 100644 index 000000000..0bf7f3402 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalContext.php @@ -0,0 +1,319 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ItemApprovalContext implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ItemApprovalContext'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'approval_type' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType', + 'approval_status' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus', + 'approval_support_data' => '\AmazonPHP\SellingPartner\Model\Orders\ApprovalSupportDataElement[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'approval_type' => null, + 'approval_status' => null, + 'approval_support_data' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'approval_type' => 'ApprovalType', + 'approval_status' => 'ApprovalStatus', + 'approval_support_data' => 'ApprovalSupportData', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'approval_type' => 'setApprovalType', + 'approval_status' => 'setApprovalStatus', + 'approval_support_data' => 'setApprovalSupportData', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'approval_type' => 'getApprovalType', + 'approval_status' => 'getApprovalStatus', + 'approval_support_data' => 'getApprovalSupportData', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['approval_type'] = $data['approval_type'] ?? null; + $this->container['approval_status'] = $data['approval_status'] ?? null; + $this->container['approval_support_data'] = $data['approval_support_data'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['approval_type'] === null) { + throw new AssertionException("'approval_type' can't be null"); + } + + if ($this->container['approval_status'] === null) { + throw new AssertionException("'approval_status' can't be null"); + } + } + + /** + * Gets approval_type. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType + */ + public function getApprovalType() : ItemApprovalType + { + return $this->container['approval_type']; + } + + /** + * Sets approval_type. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType $approval_type approval_type + */ + public function setApprovalType(ItemApprovalType $approval_type) : self + { + $this->container['approval_type'] = $approval_type; + + return $this; + } + + /** + * Gets approval_status. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus + */ + public function getApprovalStatus() : ItemApprovalStatus + { + return $this->container['approval_status']; + } + + /** + * Sets approval_status. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus $approval_status approval_status + */ + public function setApprovalStatus(ItemApprovalStatus $approval_status) : self + { + $this->container['approval_status'] = $approval_status; + + return $this; + } + + /** + * Gets approval_support_data. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\ApprovalSupportDataElement[] + */ + public function getApprovalSupportData() : ?array + { + return $this->container['approval_support_data']; + } + + /** + * Sets approval_support_data. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ApprovalSupportDataElement[] $approval_support_data List of additional data elements supporting the approval process. Check the applicable restrictions at the specific approval type schemas. + */ + public function setApprovalSupportData(?array $approval_support_data) : self + { + $this->container['approval_support_data'] = $approval_support_data; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalStatus.php b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalStatus.php new file mode 100644 index 000000000..f36d2dbd5 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalStatus.php @@ -0,0 +1,59 @@ +value; + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalType.php b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalType.php new file mode 100644 index 000000000..37a844aea --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ItemApprovalType.php @@ -0,0 +1,44 @@ +value; + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ItemBuyerInfo.php b/src/AmazonPHP/SellingPartner/Model/Orders/ItemBuyerInfo.php index 80879ba6f..c684f7f87 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/ItemBuyerInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ItemBuyerInfo.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function validate() : void /** * Gets buyer_customized_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\BuyerCustomizedInfoDetail */ public function getBuyerCustomizedInfo() : ?BuyerCustomizedInfoDetail { @@ -238,6 +230,8 @@ public function setBuyerCustomizedInfo(?BuyerCustomizedInfoDetail $buyer_customi /** * Gets gift_wrap_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getGiftWrapPrice() : ?Money { @@ -258,6 +252,8 @@ public function setGiftWrapPrice(?Money $gift_wrap_price) : self /** * Gets gift_wrap_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getGiftWrapTax() : ?Money { @@ -278,6 +274,8 @@ public function setGiftWrapTax(?Money $gift_wrap_tax) : self /** * Gets gift_message_text. + * + * @return null|string */ public function getGiftMessageText() : ?string { @@ -298,6 +296,8 @@ public function setGiftMessageText(?string $gift_message_text) : self /** * Gets gift_wrap_level. + * + * @return null|string */ public function getGiftWrapLevel() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ItemIdentifier.php b/src/AmazonPHP/SellingPartner/Model/Orders/ItemIdentifier.php new file mode 100644 index 000000000..9bb4c6e8a --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ItemIdentifier.php @@ -0,0 +1,323 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ItemIdentifier implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const IDENTIFIER_TYPE_ASIN = 'ASIN'; + + final public const IDENTIFIER_TYPE_SELLER_SKU = 'SELLER_SKU'; + + final public const IDENTIFIER_TYPE_EXTERNAL_ID = 'EXTERNAL_ID'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ItemIdentifier'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'identifier_type' => 'string', + 'identifier' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'identifier_type' => null, + 'identifier' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'identifier_type' => 'IdentifierType', + 'identifier' => 'Identifier', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'identifier_type' => 'setIdentifierType', + 'identifier' => 'setIdentifier', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'identifier_type' => 'getIdentifierType', + 'identifier' => 'getIdentifier', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['identifier_type'] = $data['identifier_type'] ?? null; + $this->container['identifier'] = $data['identifier'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getIdentifierTypeAllowableValues() : array + { + return [ + self::IDENTIFIER_TYPE_ASIN, + self::IDENTIFIER_TYPE_SELLER_SKU, + self::IDENTIFIER_TYPE_EXTERNAL_ID, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['identifier_type'] === null) { + throw new AssertionException("'identifier_type' can't be null"); + } + + $allowedValues = $this->getIdentifierTypeAllowableValues(); + + if (null !== $this->container['identifier_type'] && !\in_array($this->container['identifier_type'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'identifier_type', must be one of '%s'", + $this->container['identifier_type'], + \implode("', '", $allowedValues) + ) + ); + } + + if ($this->container['identifier'] === null) { + throw new AssertionException("'identifier' can't be null"); + } + } + + /** + * Gets identifier_type. + * + * @return string + */ + public function getIdentifierType() : string + { + return $this->container['identifier_type']; + } + + /** + * Sets identifier_type. + * + * @param string $identifier_type defines the type of identifiers allowed to specify a substitution + */ + public function setIdentifierType(string $identifier_type) : self + { + $this->container['identifier_type'] = $identifier_type; + + return $this; + } + + /** + * Gets identifier. + * + * @return string + */ + public function getIdentifier() : string + { + return $this->container['identifier']; + } + + /** + * Sets identifier. + * + * @param string $identifier identifier + */ + public function setIdentifier(string $identifier) : self + { + $this->container['identifier'] = $identifier; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/MarketplaceTaxInfo.php b/src/AmazonPHP/SellingPartner/Model/Orders/MarketplaceTaxInfo.php index 1e9d1f1b2..a19c88076 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/MarketplaceTaxInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/MarketplaceTaxInfo.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/Money.php b/src/AmazonPHP/SellingPartner/Model/Orders/Money.php index 2632b347f..147273146 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/Money.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/Money.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return null|string */ public function getCurrencyCode() : ?string { @@ -209,6 +201,8 @@ public function setCurrencyCode(?string $currency_code) : self /** * Gets amount. + * + * @return null|string */ public function getAmount() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OpenInterval.php b/src/AmazonPHP/SellingPartner/Model/Orders/OpenInterval.php new file mode 100644 index 000000000..cd26e9184 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OpenInterval.php @@ -0,0 +1,291 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class OpenInterval implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'OpenInterval'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'start_time' => '\AmazonPHP\SellingPartner\Model\Orders\OpenTimeInterval', + 'end_time' => '\AmazonPHP\SellingPartner\Model\Orders\OpenTimeInterval', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'start_time' => null, + 'end_time' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'start_time' => 'StartTime', + 'end_time' => 'EndTime', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'start_time' => 'setStartTime', + 'end_time' => 'setEndTime', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'start_time' => 'getStartTime', + 'end_time' => 'getEndTime', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['start_time'] = $data['start_time'] ?? null; + $this->container['end_time'] = $data['end_time'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['start_time'] !== null) { + $this->container['start_time']->validate(); + } + + if ($this->container['end_time'] !== null) { + $this->container['end_time']->validate(); + } + } + + /** + * Gets start_time. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OpenTimeInterval + */ + public function getStartTime() : ?OpenTimeInterval + { + return $this->container['start_time']; + } + + /** + * Sets start_time. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\OpenTimeInterval $start_time start_time + */ + public function setStartTime(?OpenTimeInterval $start_time) : self + { + $this->container['start_time'] = $start_time; + + return $this; + } + + /** + * Gets end_time. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\OpenTimeInterval + */ + public function getEndTime() : ?OpenTimeInterval + { + return $this->container['end_time']; + } + + /** + * Sets end_time. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\OpenTimeInterval $end_time end_time + */ + public function setEndTime(?OpenTimeInterval $end_time) : self + { + $this->container['end_time'] = $end_time; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OpenTimeInterval.php b/src/AmazonPHP/SellingPartner/Model/Orders/OpenTimeInterval.php new file mode 100644 index 000000000..7d9d6a999 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OpenTimeInterval.php @@ -0,0 +1,284 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class OpenTimeInterval implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'OpenTimeInterval'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'hour' => 'int', + 'minute' => 'int', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'hour' => null, + 'minute' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'hour' => 'Hour', + 'minute' => 'Minute', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'hour' => 'setHour', + 'minute' => 'setMinute', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'hour' => 'getHour', + 'minute' => 'getMinute', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['hour'] = $data['hour'] ?? null; + $this->container['minute'] = $data['minute'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets hour. + * + * @return null|int + */ + public function getHour() : ?int + { + return $this->container['hour']; + } + + /** + * Sets hour. + * + * @param null|int $hour the hour when the business opens or closes + */ + public function setHour(?int $hour) : self + { + $this->container['hour'] = $hour; + + return $this; + } + + /** + * Gets minute. + * + * @return null|int + */ + public function getMinute() : ?int + { + return $this->container['minute']; + } + + /** + * Sets minute. + * + * @param null|int $minute the minute when the business opens or closes + */ + public function setMinute(?int $minute) : self + { + $this->container['minute'] = $minute; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/Order.php b/src/AmazonPHP/SellingPartner/Model/Orders/Order.php index dcb27f0d7..3420c25fd 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/Order.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/Order.php @@ -127,6 +127,8 @@ class Order implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterf 'automated_shipping_settings' => '\AmazonPHP\SellingPartner\Model\Orders\AutomatedShippingSettings', 'has_regulated_items' => 'bool', 'electronic_invoice_status' => '\AmazonPHP\SellingPartner\Model\Orders\ElectronicInvoiceStatus', + 'item_approval_types' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType[]', + 'item_approval_status' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus[]', ]; /** @@ -186,6 +188,8 @@ class Order implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterf 'automated_shipping_settings' => null, 'has_regulated_items' => null, 'electronic_invoice_status' => null, + 'item_approval_types' => null, + 'item_approval_status' => null, ]; /** @@ -242,6 +246,8 @@ class Order implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterf 'automated_shipping_settings' => 'AutomatedShippingSettings', 'has_regulated_items' => 'HasRegulatedItems', 'electronic_invoice_status' => 'ElectronicInvoiceStatus', + 'item_approval_types' => 'ItemApprovalTypes', + 'item_approval_status' => 'ItemApprovalStatus', ]; /** @@ -297,6 +303,8 @@ class Order implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterf 'automated_shipping_settings' => 'setAutomatedShippingSettings', 'has_regulated_items' => 'setHasRegulatedItems', 'electronic_invoice_status' => 'setElectronicInvoiceStatus', + 'item_approval_types' => 'setItemApprovalTypes', + 'item_approval_status' => 'setItemApprovalStatus', ]; /** @@ -352,6 +360,8 @@ class Order implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterf 'automated_shipping_settings' => 'getAutomatedShippingSettings', 'has_regulated_items' => 'getHasRegulatedItems', 'electronic_invoice_status' => 'getElectronicInvoiceStatus', + 'item_approval_types' => 'getItemApprovalTypes', + 'item_approval_status' => 'getItemApprovalStatus', ]; /** @@ -416,12 +426,12 @@ public function __construct(array $data = null) $this->container['automated_shipping_settings'] = $data['automated_shipping_settings'] ?? null; $this->container['has_regulated_items'] = $data['has_regulated_items'] ?? null; $this->container['electronic_invoice_status'] = $data['electronic_invoice_status'] ?? null; + $this->container['item_approval_types'] = $data['item_approval_types'] ?? null; + $this->container['item_approval_status'] = $data['item_approval_status'] ?? null; } /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -430,8 +440,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -441,8 +449,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -451,8 +457,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -461,8 +465,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -474,7 +476,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -681,6 +683,8 @@ public function validate() : void /** * Gets amazon_order_id. + * + * @return string */ public function getAmazonOrderId() : string { @@ -701,6 +705,8 @@ public function setAmazonOrderId(string $amazon_order_id) : self /** * Gets seller_order_id. + * + * @return null|string */ public function getSellerOrderId() : ?string { @@ -721,6 +727,8 @@ public function setSellerOrderId(?string $seller_order_id) : self /** * Gets purchase_date. + * + * @return string */ public function getPurchaseDate() : string { @@ -741,6 +749,8 @@ public function setPurchaseDate(string $purchase_date) : self /** * Gets last_update_date. + * + * @return string */ public function getLastUpdateDate() : string { @@ -761,6 +771,8 @@ public function setLastUpdateDate(string $last_update_date) : self /** * Gets order_status. + * + * @return string */ public function getOrderStatus() : string { @@ -781,6 +793,8 @@ public function setOrderStatus(string $order_status) : self /** * Gets fulfillment_channel. + * + * @return null|string */ public function getFulfillmentChannel() : ?string { @@ -801,6 +815,8 @@ public function setFulfillmentChannel(?string $fulfillment_channel) : self /** * Gets sales_channel. + * + * @return null|string */ public function getSalesChannel() : ?string { @@ -821,6 +837,8 @@ public function setSalesChannel(?string $sales_channel) : self /** * Gets order_channel. + * + * @return null|string */ public function getOrderChannel() : ?string { @@ -841,6 +859,8 @@ public function setOrderChannel(?string $order_channel) : self /** * Gets ship_service_level. + * + * @return null|string */ public function getShipServiceLevel() : ?string { @@ -861,6 +881,8 @@ public function setShipServiceLevel(?string $ship_service_level) : self /** * Gets order_total. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getOrderTotal() : ?Money { @@ -881,6 +903,8 @@ public function setOrderTotal(?Money $order_total) : self /** * Gets number_of_items_shipped. + * + * @return null|int */ public function getNumberOfItemsShipped() : ?int { @@ -901,6 +925,8 @@ public function setNumberOfItemsShipped(?int $number_of_items_shipped) : self /** * Gets number_of_items_unshipped. + * + * @return null|int */ public function getNumberOfItemsUnshipped() : ?int { @@ -943,6 +969,8 @@ public function setPaymentExecutionDetail(?array $payment_execution_detail) : se /** * Gets payment_method. + * + * @return null|string */ public function getPaymentMethod() : ?string { @@ -985,6 +1013,8 @@ public function setPaymentMethodDetails(?array $payment_method_details) : self /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -1005,6 +1035,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets shipment_service_level_category. + * + * @return null|string */ public function getShipmentServiceLevelCategory() : ?string { @@ -1025,6 +1057,8 @@ public function setShipmentServiceLevelCategory(?string $shipment_service_level_ /** * Gets easy_ship_shipment_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\EasyShipShipmentStatus */ public function getEasyShipShipmentStatus() : ?EasyShipShipmentStatus { @@ -1045,6 +1079,8 @@ public function setEasyShipShipmentStatus(?EasyShipShipmentStatus $easy_ship_shi /** * Gets cba_displayable_shipping_label. + * + * @return null|string */ public function getCbaDisplayableShippingLabel() : ?string { @@ -1065,6 +1101,8 @@ public function setCbaDisplayableShippingLabel(?string $cba_displayable_shipping /** * Gets order_type. + * + * @return null|string */ public function getOrderType() : ?string { @@ -1085,6 +1123,8 @@ public function setOrderType(?string $order_type) : self /** * Gets earliest_ship_date. + * + * @return null|string */ public function getEarliestShipDate() : ?string { @@ -1105,6 +1145,8 @@ public function setEarliestShipDate(?string $earliest_ship_date) : self /** * Gets latest_ship_date. + * + * @return null|string */ public function getLatestShipDate() : ?string { @@ -1125,6 +1167,8 @@ public function setLatestShipDate(?string $latest_ship_date) : self /** * Gets earliest_delivery_date. + * + * @return null|string */ public function getEarliestDeliveryDate() : ?string { @@ -1145,6 +1189,8 @@ public function setEarliestDeliveryDate(?string $earliest_delivery_date) : self /** * Gets latest_delivery_date. + * + * @return null|string */ public function getLatestDeliveryDate() : ?string { @@ -1165,6 +1211,8 @@ public function setLatestDeliveryDate(?string $latest_delivery_date) : self /** * Gets is_business_order. + * + * @return null|bool */ public function getIsBusinessOrder() : ?bool { @@ -1185,6 +1233,8 @@ public function setIsBusinessOrder(?bool $is_business_order) : self /** * Gets is_prime. + * + * @return null|bool */ public function getIsPrime() : ?bool { @@ -1205,6 +1255,8 @@ public function setIsPrime(?bool $is_prime) : self /** * Gets is_premium_order. + * + * @return null|bool */ public function getIsPremiumOrder() : ?bool { @@ -1225,6 +1277,8 @@ public function setIsPremiumOrder(?bool $is_premium_order) : self /** * Gets is_global_express_enabled. + * + * @return null|bool */ public function getIsGlobalExpressEnabled() : ?bool { @@ -1245,6 +1299,8 @@ public function setIsGlobalExpressEnabled(?bool $is_global_express_enabled) : se /** * Gets replaced_order_id. + * + * @return null|string */ public function getReplacedOrderId() : ?string { @@ -1265,6 +1321,8 @@ public function setReplacedOrderId(?string $replaced_order_id) : self /** * Gets is_replacement_order. + * + * @return null|bool */ public function getIsReplacementOrder() : ?bool { @@ -1285,6 +1343,8 @@ public function setIsReplacementOrder(?bool $is_replacement_order) : self /** * Gets promise_response_due_date. + * + * @return null|string */ public function getPromiseResponseDueDate() : ?string { @@ -1305,6 +1365,8 @@ public function setPromiseResponseDueDate(?string $promise_response_due_date) : /** * Gets is_estimated_ship_date_set. + * + * @return null|bool */ public function getIsEstimatedShipDateSet() : ?bool { @@ -1325,6 +1387,8 @@ public function setIsEstimatedShipDateSet(?bool $is_estimated_ship_date_set) : s /** * Gets is_sold_by_ab. + * + * @return null|bool */ public function getIsSoldByAb() : ?bool { @@ -1345,6 +1409,8 @@ public function setIsSoldByAb(?bool $is_sold_by_ab) : self /** * Gets is_iba. + * + * @return null|bool */ public function getIsIba() : ?bool { @@ -1365,6 +1431,8 @@ public function setIsIba(?bool $is_iba) : self /** * Gets default_ship_from_location_address. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Address */ public function getDefaultShipFromLocationAddress() : ?Address { @@ -1385,6 +1453,8 @@ public function setDefaultShipFromLocationAddress(?Address $default_ship_from_lo /** * Gets buyer_invoice_preference. + * + * @return null|string */ public function getBuyerInvoicePreference() : ?string { @@ -1405,6 +1475,8 @@ public function setBuyerInvoicePreference(?string $buyer_invoice_preference) : s /** * Gets buyer_tax_information. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\BuyerTaxInformation */ public function getBuyerTaxInformation() : ?BuyerTaxInformation { @@ -1425,6 +1497,8 @@ public function setBuyerTaxInformation(?BuyerTaxInformation $buyer_tax_informati /** * Gets fulfillment_instruction. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\FulfillmentInstruction */ public function getFulfillmentInstruction() : ?FulfillmentInstruction { @@ -1445,6 +1519,8 @@ public function setFulfillmentInstruction(?FulfillmentInstruction $fulfillment_i /** * Gets is_ispu. + * + * @return null|bool */ public function getIsIspu() : ?bool { @@ -1465,6 +1541,8 @@ public function setIsIspu(?bool $is_ispu) : self /** * Gets is_access_point_order. + * + * @return null|bool */ public function getIsAccessPointOrder() : ?bool { @@ -1485,6 +1563,8 @@ public function setIsAccessPointOrder(?bool $is_access_point_order) : self /** * Gets marketplace_tax_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\MarketplaceTaxInfo */ public function getMarketplaceTaxInfo() : ?MarketplaceTaxInfo { @@ -1505,6 +1585,8 @@ public function setMarketplaceTaxInfo(?MarketplaceTaxInfo $marketplace_tax_info) /** * Gets seller_display_name. + * + * @return null|string */ public function getSellerDisplayName() : ?string { @@ -1525,6 +1607,8 @@ public function setSellerDisplayName(?string $seller_display_name) : self /** * Gets shipping_address. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Address */ public function getShippingAddress() : ?Address { @@ -1545,6 +1629,8 @@ public function setShippingAddress(?Address $shipping_address) : self /** * Gets buyer_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\BuyerInfo */ public function getBuyerInfo() : ?BuyerInfo { @@ -1565,6 +1651,8 @@ public function setBuyerInfo(?BuyerInfo $buyer_info) : self /** * Gets automated_shipping_settings. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\AutomatedShippingSettings */ public function getAutomatedShippingSettings() : ?AutomatedShippingSettings { @@ -1585,6 +1673,8 @@ public function setAutomatedShippingSettings(?AutomatedShippingSettings $automat /** * Gets has_regulated_items. + * + * @return null|bool */ public function getHasRegulatedItems() : ?bool { @@ -1605,6 +1695,8 @@ public function setHasRegulatedItems(?bool $has_regulated_items) : self /** * Gets electronic_invoice_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\ElectronicInvoiceStatus */ public function getElectronicInvoiceStatus() : ?ElectronicInvoiceStatus { @@ -1623,6 +1715,50 @@ public function setElectronicInvoiceStatus(?ElectronicInvoiceStatus $electronic_ return $this; } + /** + * Gets item_approval_types. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType[] + */ + public function getItemApprovalTypes() : ?array + { + return $this->container['item_approval_types']; + } + + /** + * Sets item_approval_types. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType[] $item_approval_types set of approval types which applies to at least one order item in the order + */ + public function setItemApprovalTypes(?array $item_approval_types) : self + { + $this->container['item_approval_types'] = $item_approval_types; + + return $this; + } + + /** + * Gets item_approval_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus[] + */ + public function getItemApprovalStatus() : ?array + { + return $this->container['item_approval_status']; + } + + /** + * Sets item_approval_status. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus[] $item_approval_status subset of all ItemApprovalStatus that are set in at least one of the order items subject to approvals + */ + public function setItemApprovalStatus(?array $item_approval_status) : self + { + $this->container['item_approval_status'] = $item_approval_status; + + return $this; + } + /** * Returns true if offset exists. False otherwise. */ diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderAddress.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderAddress.php index 4d513ce1a..a1e8cf3ce 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/OrderAddress.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderAddress.php @@ -41,7 +41,9 @@ class OrderAddress implements \ArrayAccess, \JsonSerializable, \Stringable, Mode */ protected static array $openAPITypes = [ 'amazon_order_id' => 'string', + 'buyer_company_name' => 'string', 'shipping_address' => '\AmazonPHP\SellingPartner\Model\Orders\Address', + 'delivery_preferences' => '\AmazonPHP\SellingPartner\Model\Orders\DeliveryPreferences', ]; /** @@ -55,7 +57,9 @@ class OrderAddress implements \ArrayAccess, \JsonSerializable, \Stringable, Mode */ protected static array $openAPIFormats = [ 'amazon_order_id' => null, + 'buyer_company_name' => null, 'shipping_address' => null, + 'delivery_preferences' => null, ]; /** @@ -66,7 +70,9 @@ class OrderAddress implements \ArrayAccess, \JsonSerializable, \Stringable, Mode */ protected static array $attributeMap = [ 'amazon_order_id' => 'AmazonOrderId', + 'buyer_company_name' => 'BuyerCompanyName', 'shipping_address' => 'ShippingAddress', + 'delivery_preferences' => 'DeliveryPreferences', ]; /** @@ -76,7 +82,9 @@ class OrderAddress implements \ArrayAccess, \JsonSerializable, \Stringable, Mode */ protected static array $setters = [ 'amazon_order_id' => 'setAmazonOrderId', + 'buyer_company_name' => 'setBuyerCompanyName', 'shipping_address' => 'setShippingAddress', + 'delivery_preferences' => 'setDeliveryPreferences', ]; /** @@ -86,7 +94,9 @@ class OrderAddress implements \ArrayAccess, \JsonSerializable, \Stringable, Mode */ protected static array $getters = [ 'amazon_order_id' => 'getAmazonOrderId', + 'buyer_company_name' => 'getBuyerCompanyName', 'shipping_address' => 'getShippingAddress', + 'delivery_preferences' => 'getDeliveryPreferences', ]; /** @@ -105,13 +115,13 @@ class OrderAddress implements \ArrayAccess, \JsonSerializable, \Stringable, Mode public function __construct(array $data = null) { $this->container['amazon_order_id'] = $data['amazon_order_id'] ?? null; + $this->container['buyer_company_name'] = $data['buyer_company_name'] ?? null; $this->container['shipping_address'] = $data['shipping_address'] ?? null; + $this->container['delivery_preferences'] = $data['delivery_preferences'] ?? null; } /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,10 +194,16 @@ public function validate() : void if ($this->container['shipping_address'] !== null) { $this->container['shipping_address']->validate(); } + + if ($this->container['delivery_preferences'] !== null) { + $this->container['delivery_preferences']->validate(); + } } /** * Gets amazon_order_id. + * + * @return string */ public function getAmazonOrderId() : string { @@ -214,8 +222,32 @@ public function setAmazonOrderId(string $amazon_order_id) : self return $this; } + /** + * Gets buyer_company_name. + * + * @return null|string + */ + public function getBuyerCompanyName() : ?string + { + return $this->container['buyer_company_name']; + } + + /** + * Sets buyer_company_name. + * + * @param null|string $buyer_company_name company name of the destination address + */ + public function setBuyerCompanyName(?string $buyer_company_name) : self + { + $this->container['buyer_company_name'] = $buyer_company_name; + + return $this; + } + /** * Gets shipping_address. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Address */ public function getShippingAddress() : ?Address { @@ -234,6 +266,28 @@ public function setShippingAddress(?Address $shipping_address) : self return $this; } + /** + * Gets delivery_preferences. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\DeliveryPreferences + */ + public function getDeliveryPreferences() : ?DeliveryPreferences + { + return $this->container['delivery_preferences']; + } + + /** + * Sets delivery_preferences. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\DeliveryPreferences $delivery_preferences delivery_preferences + */ + public function setDeliveryPreferences(?DeliveryPreferences $delivery_preferences) : self + { + $this->container['delivery_preferences'] = $delivery_preferences; + + return $this; + } + /** * Returns true if offset exists. False otherwise. */ diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderApprovalsResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderApprovalsResponse.php new file mode 100644 index 000000000..a20361f76 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderApprovalsResponse.php @@ -0,0 +1,287 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class OrderApprovalsResponse implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'OrderApprovalsResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'next_token' => 'string', + 'order_items_approvals_list' => '\AmazonPHP\SellingPartner\Model\Orders\OrderItemApprovals[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'next_token' => null, + 'order_items_approvals_list' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'next_token' => 'NextToken', + 'order_items_approvals_list' => 'OrderItemsApprovalsList', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'next_token' => 'setNextToken', + 'order_items_approvals_list' => 'setOrderItemsApprovalsList', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'next_token' => 'getNextToken', + 'order_items_approvals_list' => 'getOrderItemsApprovalsList', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = $data['next_token'] ?? null; + $this->container['order_items_approvals_list'] = $data['order_items_approvals_list'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['order_items_approvals_list'] === null) { + throw new AssertionException("'order_items_approvals_list' can't be null"); + } + } + + /** + * Gets next_token. + * + * @return null|string + */ + public function getNextToken() : ?string + { + return $this->container['next_token']; + } + + /** + * Sets next_token. + * + * @param null|string $next_token when present and not empty, pass this string token in the next request to return the next response page + */ + public function setNextToken(?string $next_token) : self + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets order_items_approvals_list. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\OrderItemApprovals[] + */ + public function getOrderItemsApprovalsList() : array + { + return $this->container['order_items_approvals_list']; + } + + /** + * Sets order_items_approvals_list. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\OrderItemApprovals[] $order_items_approvals_list list of OrderItemApprovals + */ + public function setOrderItemsApprovalsList(array $order_items_approvals_list) : self + { + $this->container['order_items_approvals_list'] = $order_items_approvals_list; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderBuyerInfo.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderBuyerInfo.php index fe189cef5..4b7b30341 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/OrderBuyerInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderBuyerInfo.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -220,6 +210,8 @@ public function validate() : void /** * Gets amazon_order_id. + * + * @return string */ public function getAmazonOrderId() : string { @@ -240,6 +232,8 @@ public function setAmazonOrderId(string $amazon_order_id) : self /** * Gets buyer_email. + * + * @return null|string */ public function getBuyerEmail() : ?string { @@ -260,6 +254,8 @@ public function setBuyerEmail(?string $buyer_email) : self /** * Gets buyer_name. + * + * @return null|string */ public function getBuyerName() : ?string { @@ -280,6 +276,8 @@ public function setBuyerName(?string $buyer_name) : self /** * Gets buyer_county. + * + * @return null|string */ public function getBuyerCounty() : ?string { @@ -300,6 +298,8 @@ public function setBuyerCounty(?string $buyer_county) : self /** * Gets buyer_tax_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\BuyerTaxInfo */ public function getBuyerTaxInfo() : ?BuyerTaxInfo { @@ -320,6 +320,8 @@ public function setBuyerTaxInfo(?BuyerTaxInfo $buyer_tax_info) : self /** * Gets purchase_order_number. + * + * @return null|string */ public function getPurchaseOrderNumber() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItem.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItem.php index 5f1f8469a..ea3453a04 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItem.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItem.php @@ -78,6 +78,8 @@ class OrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelIn 'deemed_reseller_category' => 'string', 'buyer_info' => '\AmazonPHP\SellingPartner\Model\Orders\ItemBuyerInfo', 'buyer_requested_cancel' => '\AmazonPHP\SellingPartner\Model\Orders\BuyerRequestedCancel', + 'item_approval_context' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalContext', + 'serial_numbers' => 'string[]', ]; /** @@ -124,6 +126,8 @@ class OrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelIn 'deemed_reseller_category' => null, 'buyer_info' => null, 'buyer_requested_cancel' => null, + 'item_approval_context' => null, + 'serial_numbers' => null, ]; /** @@ -167,6 +171,8 @@ class OrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelIn 'deemed_reseller_category' => 'DeemedResellerCategory', 'buyer_info' => 'BuyerInfo', 'buyer_requested_cancel' => 'BuyerRequestedCancel', + 'item_approval_context' => 'ItemApprovalContext', + 'serial_numbers' => 'SerialNumbers', ]; /** @@ -209,6 +215,8 @@ class OrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelIn 'deemed_reseller_category' => 'setDeemedResellerCategory', 'buyer_info' => 'setBuyerInfo', 'buyer_requested_cancel' => 'setBuyerRequestedCancel', + 'item_approval_context' => 'setItemApprovalContext', + 'serial_numbers' => 'setSerialNumbers', ]; /** @@ -251,6 +259,8 @@ class OrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelIn 'deemed_reseller_category' => 'getDeemedResellerCategory', 'buyer_info' => 'getBuyerInfo', 'buyer_requested_cancel' => 'getBuyerRequestedCancel', + 'item_approval_context' => 'getItemApprovalContext', + 'serial_numbers' => 'getSerialNumbers', ]; /** @@ -302,12 +312,12 @@ public function __construct(array $data = null) $this->container['deemed_reseller_category'] = $data['deemed_reseller_category'] ?? null; $this->container['buyer_info'] = $data['buyer_info'] ?? null; $this->container['buyer_requested_cancel'] = $data['buyer_requested_cancel'] ?? null; + $this->container['item_approval_context'] = $data['item_approval_context'] ?? null; + $this->container['serial_numbers'] = $data['serial_numbers'] ?? null; } /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -316,8 +326,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -327,8 +335,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -337,8 +343,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -347,8 +351,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -360,7 +362,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -477,10 +479,16 @@ public function validate() : void if ($this->container['buyer_requested_cancel'] !== null) { $this->container['buyer_requested_cancel']->validate(); } + + if ($this->container['item_approval_context'] !== null) { + $this->container['item_approval_context']->validate(); + } } /** * Gets asin. + * + * @return string */ public function getAsin() : string { @@ -501,6 +509,8 @@ public function setAsin(string $asin) : self /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -521,6 +531,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets order_item_id. + * + * @return string */ public function getOrderItemId() : string { @@ -541,6 +553,8 @@ public function setOrderItemId(string $order_item_id) : self /** * Gets title. + * + * @return null|string */ public function getTitle() : ?string { @@ -561,6 +575,8 @@ public function setTitle(?string $title) : self /** * Gets quantity_ordered. + * + * @return int */ public function getQuantityOrdered() : int { @@ -581,6 +597,8 @@ public function setQuantityOrdered(int $quantity_ordered) : self /** * Gets quantity_shipped. + * + * @return null|int */ public function getQuantityShipped() : ?int { @@ -601,6 +619,8 @@ public function setQuantityShipped(?int $quantity_shipped) : self /** * Gets product_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\ProductInfoDetail */ public function getProductInfo() : ?ProductInfoDetail { @@ -621,6 +641,8 @@ public function setProductInfo(?ProductInfoDetail $product_info) : self /** * Gets points_granted. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\PointsGrantedDetail */ public function getPointsGranted() : ?PointsGrantedDetail { @@ -641,6 +663,8 @@ public function setPointsGranted(?PointsGrantedDetail $points_granted) : self /** * Gets item_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getItemPrice() : ?Money { @@ -661,6 +685,8 @@ public function setItemPrice(?Money $item_price) : self /** * Gets shipping_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getShippingPrice() : ?Money { @@ -681,6 +707,8 @@ public function setShippingPrice(?Money $shipping_price) : self /** * Gets item_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getItemTax() : ?Money { @@ -701,6 +729,8 @@ public function setItemTax(?Money $item_tax) : self /** * Gets shipping_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getShippingTax() : ?Money { @@ -721,6 +751,8 @@ public function setShippingTax(?Money $shipping_tax) : self /** * Gets shipping_discount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getShippingDiscount() : ?Money { @@ -741,6 +773,8 @@ public function setShippingDiscount(?Money $shipping_discount) : self /** * Gets shipping_discount_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getShippingDiscountTax() : ?Money { @@ -761,6 +795,8 @@ public function setShippingDiscountTax(?Money $shipping_discount_tax) : self /** * Gets promotion_discount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getPromotionDiscount() : ?Money { @@ -781,6 +817,8 @@ public function setPromotionDiscount(?Money $promotion_discount) : self /** * Gets promotion_discount_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getPromotionDiscountTax() : ?Money { @@ -823,6 +861,8 @@ public function setPromotionIds(?array $promotion_ids) : self /** * Gets cod_fee. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getCodFee() : ?Money { @@ -843,6 +883,8 @@ public function setCodFee(?Money $cod_fee) : self /** * Gets cod_fee_discount. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getCodFeeDiscount() : ?Money { @@ -863,6 +905,8 @@ public function setCodFeeDiscount(?Money $cod_fee_discount) : self /** * Gets is_gift. + * + * @return null|bool */ public function getIsGift() : ?bool { @@ -883,6 +927,8 @@ public function setIsGift(?bool $is_gift) : self /** * Gets condition_note. + * + * @return null|string */ public function getConditionNote() : ?string { @@ -903,6 +949,8 @@ public function setConditionNote(?string $condition_note) : self /** * Gets condition_id. + * + * @return null|string */ public function getConditionId() : ?string { @@ -923,6 +971,8 @@ public function setConditionId(?string $condition_id) : self /** * Gets condition_subtype_id. + * + * @return null|string */ public function getConditionSubtypeId() : ?string { @@ -943,6 +993,8 @@ public function setConditionSubtypeId(?string $condition_subtype_id) : self /** * Gets scheduled_delivery_start_date. + * + * @return null|string */ public function getScheduledDeliveryStartDate() : ?string { @@ -963,6 +1015,8 @@ public function setScheduledDeliveryStartDate(?string $scheduled_delivery_start_ /** * Gets scheduled_delivery_end_date. + * + * @return null|string */ public function getScheduledDeliveryEndDate() : ?string { @@ -983,6 +1037,8 @@ public function setScheduledDeliveryEndDate(?string $scheduled_delivery_end_date /** * Gets price_designation. + * + * @return null|string */ public function getPriceDesignation() : ?string { @@ -1003,6 +1059,8 @@ public function setPriceDesignation(?string $price_designation) : self /** * Gets tax_collection. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\TaxCollection */ public function getTaxCollection() : ?TaxCollection { @@ -1023,6 +1081,8 @@ public function setTaxCollection(?TaxCollection $tax_collection) : self /** * Gets serial_number_required. + * + * @return null|bool */ public function getSerialNumberRequired() : ?bool { @@ -1043,6 +1103,8 @@ public function setSerialNumberRequired(?bool $serial_number_required) : self /** * Gets is_transparency. + * + * @return null|bool */ public function getIsTransparency() : ?bool { @@ -1063,6 +1125,8 @@ public function setIsTransparency(?bool $is_transparency) : self /** * Gets ioss_number. + * + * @return null|string */ public function getIossNumber() : ?string { @@ -1083,6 +1147,8 @@ public function setIossNumber(?string $ioss_number) : self /** * Gets store_chain_store_id. + * + * @return null|string */ public function getStoreChainStoreId() : ?string { @@ -1103,6 +1169,8 @@ public function setStoreChainStoreId(?string $store_chain_store_id) : self /** * Gets deemed_reseller_category. + * + * @return null|string */ public function getDeemedResellerCategory() : ?string { @@ -1123,6 +1191,8 @@ public function setDeemedResellerCategory(?string $deemed_reseller_category) : s /** * Gets buyer_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\ItemBuyerInfo */ public function getBuyerInfo() : ?ItemBuyerInfo { @@ -1143,6 +1213,8 @@ public function setBuyerInfo(?ItemBuyerInfo $buyer_info) : self /** * Gets buyer_requested_cancel. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\BuyerRequestedCancel */ public function getBuyerRequestedCancel() : ?BuyerRequestedCancel { @@ -1161,6 +1233,50 @@ public function setBuyerRequestedCancel(?BuyerRequestedCancel $buyer_requested_c return $this; } + /** + * Gets item_approval_context. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalContext + */ + public function getItemApprovalContext() : ?ItemApprovalContext + { + return $this->container['item_approval_context']; + } + + /** + * Sets item_approval_context. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalContext $item_approval_context item_approval_context + */ + public function setItemApprovalContext(?ItemApprovalContext $item_approval_context) : self + { + $this->container['item_approval_context'] = $item_approval_context; + + return $this; + } + + /** + * Gets serial_numbers. + * + * @return null|string[] + */ + public function getSerialNumbers() : ?array + { + return $this->container['serial_numbers']; + } + + /** + * Sets serial_numbers. + * + * @param null|string[] $serial_numbers A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only. + */ + public function setSerialNumbers(?array $serial_numbers) : self + { + $this->container['serial_numbers'] = $serial_numbers; + + return $this; + } + /** * Returns true if offset exists. False otherwise. */ diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemApprovalRequest.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemApprovalRequest.php new file mode 100644 index 000000000..684facf36 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemApprovalRequest.php @@ -0,0 +1,293 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class OrderItemApprovalRequest implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'OrderItemApprovalRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'order_item_id' => 'string', + 'approval_action' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalAction', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'order_item_id' => null, + 'approval_action' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'order_item_id' => 'OrderItemId', + 'approval_action' => 'ApprovalAction', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'order_item_id' => 'setOrderItemId', + 'approval_action' => 'setApprovalAction', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'order_item_id' => 'getOrderItemId', + 'approval_action' => 'getApprovalAction', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['order_item_id'] = $data['order_item_id'] ?? null; + $this->container['approval_action'] = $data['approval_action'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['order_item_id'] === null) { + throw new AssertionException("'order_item_id' can't be null"); + } + + if ($this->container['approval_action'] === null) { + throw new AssertionException("'approval_action' can't be null"); + } + + $this->container['approval_action']->validate(); + } + + /** + * Gets order_item_id. + * + * @return string + */ + public function getOrderItemId() : string + { + return $this->container['order_item_id']; + } + + /** + * Sets order_item_id. + * + * @param string $order_item_id the unique identifier of the order item + */ + public function setOrderItemId(string $order_item_id) : self + { + $this->container['order_item_id'] = $order_item_id; + + return $this; + } + + /** + * Gets approval_action. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalAction + */ + public function getApprovalAction() : ItemApprovalAction + { + return $this->container['approval_action']; + } + + /** + * Sets approval_action. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalAction $approval_action approval_action + */ + public function setApprovalAction(ItemApprovalAction $approval_action) : self + { + $this->container['approval_action'] = $approval_action; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemApprovals.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemApprovals.php new file mode 100644 index 000000000..33bddfce4 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemApprovals.php @@ -0,0 +1,355 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class OrderItemApprovals implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'OrderItemApprovals'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'order_item_id' => 'string', + 'approval_type' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType', + 'approval_status' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus', + 'item_approvals' => '\AmazonPHP\SellingPartner\Model\Orders\ItemApproval[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'order_item_id' => null, + 'approval_type' => null, + 'approval_status' => null, + 'item_approvals' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'order_item_id' => 'OrderItemId', + 'approval_type' => 'ApprovalType', + 'approval_status' => 'ApprovalStatus', + 'item_approvals' => 'ItemApprovals', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'order_item_id' => 'setOrderItemId', + 'approval_type' => 'setApprovalType', + 'approval_status' => 'setApprovalStatus', + 'item_approvals' => 'setItemApprovals', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'order_item_id' => 'getOrderItemId', + 'approval_type' => 'getApprovalType', + 'approval_status' => 'getApprovalStatus', + 'item_approvals' => 'getItemApprovals', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['order_item_id'] = $data['order_item_id'] ?? null; + $this->container['approval_type'] = $data['approval_type'] ?? null; + $this->container['approval_status'] = $data['approval_status'] ?? null; + $this->container['item_approvals'] = $data['item_approvals'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['order_item_id'] === null) { + throw new AssertionException("'order_item_id' can't be null"); + } + + if ($this->container['approval_type'] === null) { + throw new AssertionException("'approval_type' can't be null"); + } + + if ($this->container['approval_status'] === null) { + throw new AssertionException("'approval_status' can't be null"); + } + + if ($this->container['item_approvals'] === null) { + throw new AssertionException("'item_approvals' can't be null"); + } + } + + /** + * Gets order_item_id. + * + * @return string + */ + public function getOrderItemId() : string + { + return $this->container['order_item_id']; + } + + /** + * Sets order_item_id. + * + * @param string $order_item_id the unique identifier of the order item + */ + public function setOrderItemId(string $order_item_id) : self + { + $this->container['order_item_id'] = $order_item_id; + + return $this; + } + + /** + * Gets approval_type. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType + */ + public function getApprovalType() : ItemApprovalType + { + return $this->container['approval_type']; + } + + /** + * Sets approval_type. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalType $approval_type approval_type + */ + public function setApprovalType(ItemApprovalType $approval_type) : self + { + $this->container['approval_type'] = $approval_type; + + return $this; + } + + /** + * Gets approval_status. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus + */ + public function getApprovalStatus() : ItemApprovalStatus + { + return $this->container['approval_status']; + } + + /** + * Sets approval_status. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\ItemApprovalStatus $approval_status approval_status + */ + public function setApprovalStatus(ItemApprovalStatus $approval_status) : self + { + $this->container['approval_status'] = $approval_status; + + return $this; + } + + /** + * Gets item_approvals. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\ItemApproval[] + */ + public function getItemApprovals() : array + { + return $this->container['item_approvals']; + } + + /** + * Sets item_approvals. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\ItemApproval[] $item_approvals item_approvals + */ + public function setItemApprovals(array $item_approvals) : self + { + $this->container['item_approvals'] = $item_approvals; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemBuyerInfo.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemBuyerInfo.php index a76c3496e..261beadcd 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemBuyerInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemBuyerInfo.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets order_item_id. + * + * @return string */ public function getOrderItemId() : string { @@ -248,6 +240,8 @@ public function setOrderItemId(string $order_item_id) : self /** * Gets buyer_customized_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\BuyerCustomizedInfoDetail */ public function getBuyerCustomizedInfo() : ?BuyerCustomizedInfoDetail { @@ -268,6 +262,8 @@ public function setBuyerCustomizedInfo(?BuyerCustomizedInfoDetail $buyer_customi /** * Gets gift_wrap_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getGiftWrapPrice() : ?Money { @@ -288,6 +284,8 @@ public function setGiftWrapPrice(?Money $gift_wrap_price) : self /** * Gets gift_wrap_tax. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getGiftWrapTax() : ?Money { @@ -308,6 +306,8 @@ public function setGiftWrapTax(?Money $gift_wrap_tax) : self /** * Gets gift_message_text. + * + * @return null|string */ public function getGiftMessageText() : ?string { @@ -328,6 +328,8 @@ public function setGiftMessageText(?string $gift_message_text) : self /** * Gets gift_wrap_level. + * + * @return null|string */ public function getGiftWrapLevel() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsBuyerInfoList.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsBuyerInfoList.php index 58b4bf7d7..4bcf5b16c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsBuyerInfoList.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsBuyerInfoList.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function setOrderItems(array $order_items) : self /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { @@ -244,6 +236,8 @@ public function setNextToken(?string $next_token) : self /** * Gets amazon_order_id. + * + * @return string */ public function getAmazonOrderId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsInner.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsInner.php index f9098074b..cfc397acf 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsInner.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsInner.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets order_item_id. + * + * @return null|string */ public function getOrderItemId() : ?string { @@ -209,6 +201,8 @@ public function setOrderItemId(?string $order_item_id) : self /** * Gets quantity. + * + * @return null|int */ public function getQuantity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsList.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsList.php index f3932396f..0184c3a63 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsList.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderItemsList.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function setOrderItems(array $order_items) : self /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { @@ -244,6 +236,8 @@ public function setNextToken(?string $next_token) : self /** * Gets amazon_order_id. + * + * @return string */ public function getAmazonOrderId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrderRegulatedInfo.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrderRegulatedInfo.php index 35983a6d3..698fd370a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/OrderRegulatedInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrderRegulatedInfo.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -220,6 +210,8 @@ public function validate() : void /** * Gets amazon_order_id. + * + * @return string */ public function getAmazonOrderId() : string { @@ -240,6 +232,8 @@ public function setAmazonOrderId(string $amazon_order_id) : self /** * Gets regulated_information. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\RegulatedInformation */ public function getRegulatedInformation() : RegulatedInformation { @@ -260,6 +254,8 @@ public function setRegulatedInformation(RegulatedInformation $regulated_informat /** * Gets requires_dosage_label. + * + * @return bool */ public function getRequiresDosageLabel() : bool { @@ -280,6 +276,8 @@ public function setRequiresDosageLabel(bool $requires_dosage_label) : self /** * Gets regulated_order_verification_status. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\RegulatedOrderVerificationStatus */ public function getRegulatedOrderVerificationStatus() : RegulatedOrderVerificationStatus { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OrdersList.php b/src/AmazonPHP/SellingPartner/Model/Orders/OrdersList.php index 4102fa5e9..6648d075d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/OrdersList.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OrdersList.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -226,6 +216,8 @@ public function setOrders(array $orders) : self /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { @@ -246,6 +238,8 @@ public function setNextToken(?string $next_token) : self /** * Gets last_updated_before. + * + * @return null|string */ public function getLastUpdatedBefore() : ?string { @@ -266,6 +260,8 @@ public function setLastUpdatedBefore(?string $last_updated_before) : self /** * Gets created_before. + * + * @return null|string */ public function getCreatedBefore() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/OtherDeliveryAttributes.php b/src/AmazonPHP/SellingPartner/Model/Orders/OtherDeliveryAttributes.php new file mode 100644 index 000000000..6f6e48f4a --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/OtherDeliveryAttributes.php @@ -0,0 +1,50 @@ +value; + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/PackageDetail.php b/src/AmazonPHP/SellingPartner/Model/Orders/PackageDetail.php new file mode 100644 index 000000000..ed5479580 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/PackageDetail.php @@ -0,0 +1,471 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class PackageDetail implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'PackageDetail'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'package_reference_id' => 'string', + 'carrier_code' => 'string', + 'carrier_name' => 'string', + 'shipping_method' => 'string', + 'tracking_number' => 'string', + 'ship_date' => '\DateTimeInterface', + 'ship_from_supply_source_id' => 'string', + 'order_items' => '\AmazonPHP\SellingPartner\Model\Orders\ConfirmShipmentOrderItem[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'package_reference_id' => null, + 'carrier_code' => null, + 'carrier_name' => null, + 'shipping_method' => null, + 'tracking_number' => null, + 'ship_date' => 'date-time', + 'ship_from_supply_source_id' => null, + 'order_items' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'package_reference_id' => 'packageReferenceId', + 'carrier_code' => 'carrierCode', + 'carrier_name' => 'carrierName', + 'shipping_method' => 'shippingMethod', + 'tracking_number' => 'trackingNumber', + 'ship_date' => 'shipDate', + 'ship_from_supply_source_id' => 'shipFromSupplySourceId', + 'order_items' => 'orderItems', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'package_reference_id' => 'setPackageReferenceId', + 'carrier_code' => 'setCarrierCode', + 'carrier_name' => 'setCarrierName', + 'shipping_method' => 'setShippingMethod', + 'tracking_number' => 'setTrackingNumber', + 'ship_date' => 'setShipDate', + 'ship_from_supply_source_id' => 'setShipFromSupplySourceId', + 'order_items' => 'setOrderItems', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'package_reference_id' => 'getPackageReferenceId', + 'carrier_code' => 'getCarrierCode', + 'carrier_name' => 'getCarrierName', + 'shipping_method' => 'getShippingMethod', + 'tracking_number' => 'getTrackingNumber', + 'ship_date' => 'getShipDate', + 'ship_from_supply_source_id' => 'getShipFromSupplySourceId', + 'order_items' => 'getOrderItems', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['package_reference_id'] = $data['package_reference_id'] ?? null; + $this->container['carrier_code'] = $data['carrier_code'] ?? null; + $this->container['carrier_name'] = $data['carrier_name'] ?? null; + $this->container['shipping_method'] = $data['shipping_method'] ?? null; + $this->container['tracking_number'] = $data['tracking_number'] ?? null; + $this->container['ship_date'] = $data['ship_date'] ?? null; + $this->container['ship_from_supply_source_id'] = $data['ship_from_supply_source_id'] ?? null; + $this->container['order_items'] = $data['order_items'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['package_reference_id'] === null) { + throw new AssertionException("'package_reference_id' can't be null"); + } + + if ($this->container['carrier_code'] === null) { + throw new AssertionException("'carrier_code' can't be null"); + } + + if ($this->container['tracking_number'] === null) { + throw new AssertionException("'tracking_number' can't be null"); + } + + if ($this->container['ship_date'] === null) { + throw new AssertionException("'ship_date' can't be null"); + } + + if ($this->container['order_items'] === null) { + throw new AssertionException("'order_items' can't be null"); + } + } + + /** + * Gets package_reference_id. + * + * @return string + */ + public function getPackageReferenceId() : string + { + return $this->container['package_reference_id']; + } + + /** + * Sets package_reference_id. + * + * @param string $package_reference_id A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported. + */ + public function setPackageReferenceId(string $package_reference_id) : self + { + $this->container['package_reference_id'] = $package_reference_id; + + return $this; + } + + /** + * Gets carrier_code. + * + * @return string + */ + public function getCarrierCode() : string + { + return $this->container['carrier_code']; + } + + /** + * Sets carrier_code. + * + * @param string $carrier_code Identifies the carrier that will deliver the package. This field is required for all marketplaces, see [reference](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces). + */ + public function setCarrierCode(string $carrier_code) : self + { + $this->container['carrier_code'] = $carrier_code; + + return $this; + } + + /** + * Gets carrier_name. + * + * @return null|string + */ + public function getCarrierName() : ?string + { + return $this->container['carrier_name']; + } + + /** + * Sets carrier_name. + * + * @param null|string $carrier_name Carrier Name that will deliver the package. Required when carrierCode is \"Others\" + */ + public function setCarrierName(?string $carrier_name) : self + { + $this->container['carrier_name'] = $carrier_name; + + return $this; + } + + /** + * Gets shipping_method. + * + * @return null|string + */ + public function getShippingMethod() : ?string + { + return $this->container['shipping_method']; + } + + /** + * Sets shipping_method. + * + * @param null|string $shipping_method ship method to be used for shipping the order + */ + public function setShippingMethod(?string $shipping_method) : self + { + $this->container['shipping_method'] = $shipping_method; + + return $this; + } + + /** + * Gets tracking_number. + * + * @return string + */ + public function getTrackingNumber() : string + { + return $this->container['tracking_number']; + } + + /** + * Sets tracking_number. + * + * @param string $tracking_number the tracking number used to obtain tracking and delivery information + */ + public function setTrackingNumber(string $tracking_number) : self + { + $this->container['tracking_number'] = $tracking_number; + + return $this; + } + + /** + * Gets ship_date. + * + * @return \DateTimeInterface + */ + public function getShipDate() : \DateTimeInterface + { + return $this->container['ship_date']; + } + + /** + * Sets ship_date. + * + * @param \DateTimeInterface $ship_date The shipping date for the package. Must be in ISO-8601 date/time format. + */ + public function setShipDate(\DateTimeInterface $ship_date) : self + { + $this->container['ship_date'] = $ship_date; + + return $this; + } + + /** + * Gets ship_from_supply_source_id. + * + * @return null|string + */ + public function getShipFromSupplySourceId() : ?string + { + return $this->container['ship_from_supply_source_id']; + } + + /** + * Sets ship_from_supply_source_id. + * + * @param null|string $ship_from_supply_source_id the unique identifier of the supply source + */ + public function setShipFromSupplySourceId(?string $ship_from_supply_source_id) : self + { + $this->container['ship_from_supply_source_id'] = $ship_from_supply_source_id; + + return $this; + } + + /** + * Gets order_items. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\ConfirmShipmentOrderItem[] + */ + public function getOrderItems() : array + { + return $this->container['order_items']; + } + + /** + * Sets order_items. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\ConfirmShipmentOrderItem[] $order_items a list of order items + */ + public function setOrderItems(array $order_items) : self + { + $this->container['order_items'] = $order_items; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/PaymentExecutionDetailItem.php b/src/AmazonPHP/SellingPartner/Model/Orders/PaymentExecutionDetailItem.php index 18a4239c0..0bd90b931 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/PaymentExecutionDetailItem.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/PaymentExecutionDetailItem.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets payment. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\Money */ public function getPayment() : Money { @@ -218,6 +210,8 @@ public function setPayment(Money $payment) : self /** * Gets payment_method. + * + * @return string */ public function getPaymentMethod() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/PointsGrantedDetail.php b/src/AmazonPHP/SellingPartner/Model/Orders/PointsGrantedDetail.php index f40356623..f2ead5541 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/PointsGrantedDetail.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/PointsGrantedDetail.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets points_number. + * + * @return null|int */ public function getPointsNumber() : ?int { @@ -212,6 +204,8 @@ public function setPointsNumber(?int $points_number) : self /** * Gets points_monetary_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Money */ public function getPointsMonetaryValue() : ?Money { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/PreferredDeliveryTime.php b/src/AmazonPHP/SellingPartner/Model/Orders/PreferredDeliveryTime.php new file mode 100644 index 000000000..fb6516d80 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/PreferredDeliveryTime.php @@ -0,0 +1,284 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class PreferredDeliveryTime implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'PreferredDeliveryTime'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'business_hours' => '\AmazonPHP\SellingPartner\Model\Orders\BusinessHours[]', + 'exception_dates' => '\AmazonPHP\SellingPartner\Model\Orders\ExceptionDates[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'business_hours' => null, + 'exception_dates' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'business_hours' => 'BusinessHours', + 'exception_dates' => 'ExceptionDates', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'business_hours' => 'setBusinessHours', + 'exception_dates' => 'setExceptionDates', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'business_hours' => 'getBusinessHours', + 'exception_dates' => 'getExceptionDates', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['business_hours'] = $data['business_hours'] ?? null; + $this->container['exception_dates'] = $data['exception_dates'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets business_hours. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\BusinessHours[] + */ + public function getBusinessHours() : ?array + { + return $this->container['business_hours']; + } + + /** + * Sets business_hours. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\BusinessHours[] $business_hours business hours when the business is open for deliveries + */ + public function setBusinessHours(?array $business_hours) : self + { + $this->container['business_hours'] = $business_hours; + + return $this; + } + + /** + * Gets exception_dates. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\ExceptionDates[] + */ + public function getExceptionDates() : ?array + { + return $this->container['exception_dates']; + } + + /** + * Sets exception_dates. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\ExceptionDates[] $exception_dates dates when the business is closed in the next 30 days + */ + public function setExceptionDates(?array $exception_dates) : self + { + $this->container['exception_dates'] = $exception_dates; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/ProductInfoDetail.php b/src/AmazonPHP/SellingPartner/Model/Orders/ProductInfoDetail.php index e90da3885..0895695e2 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/ProductInfoDetail.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/ProductInfoDetail.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets number_of_items. + * + * @return null|int */ public function getNumberOfItems() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedInformation.php b/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedInformation.php index b8e8dbdad..aa51caf5a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedInformation.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedInformation.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedInformationField.php b/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedInformationField.php index f73a24ead..ec957bf2d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedInformationField.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedInformationField.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -245,6 +235,8 @@ public function validate() : void /** * Gets field_id. + * + * @return string */ public function getFieldId() : string { @@ -265,6 +257,8 @@ public function setFieldId(string $field_id) : self /** * Gets field_label. + * + * @return string */ public function getFieldLabel() : string { @@ -285,6 +279,8 @@ public function setFieldLabel(string $field_label) : self /** * Gets field_type. + * + * @return string */ public function getFieldType() : string { @@ -305,6 +301,8 @@ public function setFieldType(string $field_type) : self /** * Gets field_value. + * + * @return string */ public function getFieldValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedOrderVerificationStatus.php b/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedOrderVerificationStatus.php index dd974fb53..0a8d3f746 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedOrderVerificationStatus.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/RegulatedOrderVerificationStatus.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets status. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\VerificationStatus */ public function getStatus() : VerificationStatus { @@ -248,6 +240,8 @@ public function setStatus(VerificationStatus $status) : self /** * Gets requires_merchant_action. + * + * @return bool */ public function getRequiresMerchantAction() : bool { @@ -290,6 +284,8 @@ public function setValidRejectionReasons(array $valid_rejection_reasons) : self /** * Gets rejection_reason. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\RejectionReason */ public function getRejectionReason() : ?RejectionReason { @@ -310,6 +306,8 @@ public function setRejectionReason(?RejectionReason $rejection_reason) : self /** * Gets review_date. + * + * @return null|string */ public function getReviewDate() : ?string { @@ -330,6 +328,8 @@ public function setReviewDate(?string $review_date) : self /** * Gets external_reviewer_id. + * + * @return null|string */ public function getExternalReviewerId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/RejectionReason.php b/src/AmazonPHP/SellingPartner/Model/Orders/RejectionReason.php index b4cef479e..63c4d1aea 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/RejectionReason.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/RejectionReason.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets rejection_reason_id. + * + * @return string */ public function getRejectionReasonId() : string { @@ -216,6 +208,8 @@ public function setRejectionReasonId(string $rejection_reason_id) : self /** * Gets rejection_reason_description. + * + * @return string */ public function getRejectionReasonDescription() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/TaxClassification.php b/src/AmazonPHP/SellingPartner/Model/Orders/TaxClassification.php index d12d51149..9163e16a4 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/TaxClassification.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/TaxClassification.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets name. + * + * @return null|string */ public function getName() : ?string { @@ -209,6 +201,8 @@ public function setName(?string $name) : self /** * Gets value. + * + * @return null|string */ public function getValue() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/TaxCollection.php b/src/AmazonPHP/SellingPartner/Model/Orders/TaxCollection.php index c47de5c97..995d40f25 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/TaxCollection.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/TaxCollection.php @@ -114,8 +114,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -124,8 +122,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -135,8 +131,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -145,8 +139,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -155,8 +147,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -168,7 +158,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets model. + * + * @return null|string */ public function getModel() : ?string { @@ -260,6 +252,8 @@ public function setModel(?string $model) : self /** * Gets responsible_party. + * + * @return null|string */ public function getResponsibleParty() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateItemsApprovalsErrorResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateItemsApprovalsErrorResponse.php new file mode 100644 index 000000000..f80c6967d --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateItemsApprovalsErrorResponse.php @@ -0,0 +1,256 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class UpdateItemsApprovalsErrorResponse implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'UpdateItemsApprovalsErrorResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'errors' => '\AmazonPHP\SellingPartner\Model\Orders\Error[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'errors' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'errors' => 'errors', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'errors' => 'setErrors', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'errors' => 'getErrors', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['errors'] = $data['errors'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets errors. + * + * @return null|\AmazonPHP\SellingPartner\Model\Orders\Error[] + */ + public function getErrors() : ?array + { + return $this->container['errors']; + } + + /** + * Sets errors. + * + * @param null|\AmazonPHP\SellingPartner\Model\Orders\Error[] $errors a list of error responses returned when a request is unsuccessful + */ + public function setErrors(?array $errors) : self + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateOrderApprovalsRequest.php b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateOrderApprovalsRequest.php new file mode 100644 index 000000000..564d89305 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateOrderApprovalsRequest.php @@ -0,0 +1,287 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class UpdateOrderApprovalsRequest implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'UpdateOrderApprovalsRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'approver' => 'string', + 'order_items_approval_requests' => '\AmazonPHP\SellingPartner\Model\Orders\OrderItemApprovalRequest[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'approver' => null, + 'order_items_approval_requests' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'approver' => 'Approver', + 'order_items_approval_requests' => 'OrderItemsApprovalRequests', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'approver' => 'setApprover', + 'order_items_approval_requests' => 'setOrderItemsApprovalRequests', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'approver' => 'getApprover', + 'order_items_approval_requests' => 'getOrderItemsApprovalRequests', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['approver'] = $data['approver'] ?? null; + $this->container['order_items_approval_requests'] = $data['order_items_approval_requests'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['order_items_approval_requests'] === null) { + throw new AssertionException("'order_items_approval_requests' can't be null"); + } + } + + /** + * Gets approver. + * + * @return null|string + */ + public function getApprover() : ?string + { + return $this->container['approver']; + } + + /** + * Sets approver. + * + * @param null|string $approver person or system that triggers the approval actions on behalf of the actor + */ + public function setApprover(?string $approver) : self + { + $this->container['approver'] = $approver; + + return $this; + } + + /** + * Gets order_items_approval_requests. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\OrderItemApprovalRequest[] + */ + public function getOrderItemsApprovalRequests() : array + { + return $this->container['order_items_approval_requests']; + } + + /** + * Sets order_items_approval_requests. + * + * @param \AmazonPHP\SellingPartner\Model\Orders\OrderItemApprovalRequest[] $order_items_approval_requests a list of item approval requests + */ + public function setOrderItemsApprovalRequests(array $order_items_approval_requests) : self + { + $this->container['order_items_approval_requests'] = $order_items_approval_requests; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateShipmentStatusErrorResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateShipmentStatusErrorResponse.php index 92a96dc19..89ada390d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateShipmentStatusErrorResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateShipmentStatusErrorResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateShipmentStatusRequest.php b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateShipmentStatusRequest.php index 0d7211d1a..132967354 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateShipmentStatusRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateShipmentStatusRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -222,6 +214,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets shipment_status. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\ShipmentStatus */ public function getShipmentStatus() : ShipmentStatus { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusErrorResponse.php b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusErrorResponse.php index c80068f15..cee2af330 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusErrorResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusErrorResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusRequest.php b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusRequest.php index 39475b9b7..fbc3d7813 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,6 +178,8 @@ public function validate() : void /** * Gets regulated_order_verification_status. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\UpdateVerificationStatusRequestBody */ public function getRegulatedOrderVerificationStatus() : UpdateVerificationStatusRequestBody { diff --git a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusRequestBody.php b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusRequestBody.php index efd199bf3..c7fdfa414 100644 --- a/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusRequestBody.php +++ b/src/AmazonPHP/SellingPartner/Model/Orders/UpdateVerificationStatusRequestBody.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets status. + * + * @return \AmazonPHP\SellingPartner\Model\Orders\VerificationStatus */ public function getStatus() : VerificationStatus { @@ -222,6 +214,8 @@ public function setStatus(VerificationStatus $status) : self /** * Gets external_reviewer_id. + * + * @return string */ public function getExternalReviewerId() : string { @@ -242,6 +236,8 @@ public function setExternalReviewerId(string $external_reviewer_id) : self /** * Gets rejection_reason_id. + * + * @return null|string */ public function getRejectionReasonId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/Error.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/Error.php index b014858fb..ff59ea747 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeeDetail.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeeDetail.php index 3ee22985b..31f63f0f3 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeeDetail.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeeDetail.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -236,6 +226,8 @@ public function validate() : void /** * Gets fee_type. + * + * @return string */ public function getFeeType() : string { @@ -256,6 +248,8 @@ public function setFeeType(string $fee_type) : self /** * Gets fee_amount. + * + * @return \AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getFeeAmount() : MoneyType { @@ -276,6 +270,8 @@ public function setFeeAmount(MoneyType $fee_amount) : self /** * Gets fee_promotion. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getFeePromotion() : ?MoneyType { @@ -296,6 +292,8 @@ public function setFeePromotion(?MoneyType $fee_promotion) : self /** * Gets tax_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getTaxAmount() : ?MoneyType { @@ -316,6 +314,8 @@ public function setTaxAmount(?MoneyType $tax_amount) : self /** * Gets final_fee. + * + * @return \AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getFinalFee() : MoneyType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimate.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimate.php index c4738b5fb..796c7d148 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimate.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimate.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets time_of_fees_estimation. + * + * @return \DateTimeInterface */ public function getTimeOfFeesEstimation() : \DateTimeInterface { @@ -222,6 +214,8 @@ public function setTimeOfFeesEstimation(\DateTimeInterface $time_of_fees_estimat /** * Gets total_fees_estimate. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getTotalFeesEstimate() : ?MoneyType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateByIdRequest.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateByIdRequest.php index 2db9f9388..37047cca9 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateByIdRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateByIdRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets fees_estimate_request. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\FeesEstimateRequest */ public function getFeesEstimateRequest() : ?FeesEstimateRequest { @@ -226,6 +218,8 @@ public function setFeesEstimateRequest(?FeesEstimateRequest $fees_estimate_reque /** * Gets id_type. + * + * @return \AmazonPHP\SellingPartner\Model\ProductFees\IdType */ public function getIdType() : IdType { @@ -246,6 +240,8 @@ public function setIdType(IdType $id_type) : self /** * Gets id_value. + * + * @return string */ public function getIdValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateError.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateError.php index 6432d084c..5613047c8 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateError.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateError.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets type. + * + * @return string */ public function getType() : string { @@ -236,6 +228,8 @@ public function setType(string $type) : self /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -256,6 +250,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateIdentifier.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateIdentifier.php index 9dddd83bc..371505073 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateIdentifier.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateIdentifier.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -248,6 +240,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets seller_id. + * + * @return null|string */ public function getSellerId() : ?string { @@ -268,6 +262,8 @@ public function setSellerId(?string $seller_id) : self /** * Gets id_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\IdType */ public function getIdType() : ?IdType { @@ -288,6 +284,8 @@ public function setIdType(?IdType $id_type) : self /** * Gets id_value. + * + * @return null|string */ public function getIdValue() : ?string { @@ -308,6 +306,8 @@ public function setIdValue(?string $id_value) : self /** * Gets is_amazon_fulfilled. + * + * @return null|bool */ public function getIsAmazonFulfilled() : ?bool { @@ -328,6 +328,8 @@ public function setIsAmazonFulfilled(?bool $is_amazon_fulfilled) : self /** * Gets price_to_estimate_fees. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\PriceToEstimateFees */ public function getPriceToEstimateFees() : ?PriceToEstimateFees { @@ -348,6 +350,8 @@ public function setPriceToEstimateFees(?PriceToEstimateFees $price_to_estimate_f /** * Gets seller_input_identifier. + * + * @return null|string */ public function getSellerInputIdentifier() : ?string { @@ -368,6 +372,8 @@ public function setSellerInputIdentifier(?string $seller_input_identifier) : sel /** * Gets optional_fulfillment_program. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\OptionalFulfillmentProgram */ public function getOptionalFulfillmentProgram() : ?OptionalFulfillmentProgram { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateRequest.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateRequest.php index eab865bd0..c3d314b06 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateRequest.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -220,6 +210,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -240,6 +232,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets is_amazon_fulfilled. + * + * @return null|bool */ public function getIsAmazonFulfilled() : ?bool { @@ -260,6 +254,8 @@ public function setIsAmazonFulfilled(?bool $is_amazon_fulfilled) : self /** * Gets price_to_estimate_fees. + * + * @return \AmazonPHP\SellingPartner\Model\ProductFees\PriceToEstimateFees */ public function getPriceToEstimateFees() : PriceToEstimateFees { @@ -280,6 +276,8 @@ public function setPriceToEstimateFees(PriceToEstimateFees $price_to_estimate_fe /** * Gets identifier. + * + * @return string */ public function getIdentifier() : string { @@ -300,6 +298,8 @@ public function setIdentifier(string $identifier) : self /** * Gets optional_fulfillment_program. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\OptionalFulfillmentProgram */ public function getOptionalFulfillmentProgram() : ?OptionalFulfillmentProgram { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateResult.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateResult.php index 80b23045c..2f2406fe5 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateResult.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/FeesEstimateResult.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets status. + * + * @return null|string */ public function getStatus() : ?string { @@ -232,6 +224,8 @@ public function setStatus(?string $status) : self /** * Gets fees_estimate_identifier. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\FeesEstimateIdentifier */ public function getFeesEstimateIdentifier() : ?FeesEstimateIdentifier { @@ -252,6 +246,8 @@ public function setFeesEstimateIdentifier(?FeesEstimateIdentifier $fees_estimate /** * Gets fees_estimate. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\FeesEstimate */ public function getFeesEstimate() : ?FeesEstimate { @@ -272,6 +268,8 @@ public function setFeesEstimate(?FeesEstimate $fees_estimate) : self /** * Gets error. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\FeesEstimateError */ public function getError() : ?FeesEstimateError { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateRequest.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateRequest.php index 2fc861144..6d6a33b57 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets fees_estimate_request. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\FeesEstimateRequest */ public function getFeesEstimateRequest() : ?FeesEstimateRequest { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateResponse.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateResponse.php index 0c95a40b9..d2c1ad81a 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\GetMyFeesEstimateResult */ public function getPayload() : ?GetMyFeesEstimateResult { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateResult.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateResult.php index 50823e87f..f822848fd 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateResult.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimateResult.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets fees_estimate_result. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\FeesEstimateResult */ public function getFeesEstimateResult() : ?FeesEstimateResult { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimatesErrorList.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimatesErrorList.php index d6f215f0c..0eca37222 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimatesErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/GetMyFeesEstimatesErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/IncludedFeeDetail.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/IncludedFeeDetail.php index 8d8991d5a..1e186b089 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/IncludedFeeDetail.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/IncludedFeeDetail.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -230,6 +220,8 @@ public function validate() : void /** * Gets fee_type. + * + * @return string */ public function getFeeType() : string { @@ -250,6 +242,8 @@ public function setFeeType(string $fee_type) : self /** * Gets fee_amount. + * + * @return \AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getFeeAmount() : MoneyType { @@ -270,6 +264,8 @@ public function setFeeAmount(MoneyType $fee_amount) : self /** * Gets fee_promotion. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getFeePromotion() : ?MoneyType { @@ -290,6 +286,8 @@ public function setFeePromotion(?MoneyType $fee_promotion) : self /** * Gets tax_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getTaxAmount() : ?MoneyType { @@ -310,6 +308,8 @@ public function setTaxAmount(?MoneyType $tax_amount) : self /** * Gets final_fee. + * + * @return \AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getFinalFee() : MoneyType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/MoneyType.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/MoneyType.php index d4984a45f..84b2f2511 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/MoneyType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/MoneyType.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return null|string */ public function getCurrencyCode() : ?string { @@ -209,6 +201,8 @@ public function setCurrencyCode(?string $currency_code) : self /** * Gets amount. + * + * @return null|float */ public function getAmount() : ?float { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/Points.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/Points.php index c746309d9..56c7823b8 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/Points.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/Points.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets points_number. + * + * @return null|int */ public function getPointsNumber() : ?int { @@ -212,6 +204,8 @@ public function setPointsNumber(?int $points_number) : self /** * Gets points_monetary_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getPointsMonetaryValue() : ?MoneyType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductFees/PriceToEstimateFees.php b/src/AmazonPHP/SellingPartner/Model/ProductFees/PriceToEstimateFees.php index 52bdf6240..1592da83e 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductFees/PriceToEstimateFees.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductFees/PriceToEstimateFees.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets listing_price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getListingPrice() : MoneyType { @@ -228,6 +220,8 @@ public function setListingPrice(MoneyType $listing_price) : self /** * Gets shipping. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\MoneyType */ public function getShipping() : ?MoneyType { @@ -248,6 +242,8 @@ public function setShipping(?MoneyType $shipping) : self /** * Gets points. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductFees\Points */ public function getPoints() : ?Points { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ASINIdentifier.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ASINIdentifier.php index 9c76e1f5a..7d90deb0b 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ASINIdentifier.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ASINIdentifier.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -216,6 +208,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets asin. + * + * @return string */ public function getAsin() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchOffersRequestParams.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchOffersRequestParams.php index 969391e93..7c8369c13 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchOffersRequestParams.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchOffersRequestParams.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -222,6 +214,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets item_condition. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ItemCondition */ public function getItemCondition() : ItemCondition { @@ -242,6 +236,8 @@ public function setItemCondition(ItemCondition $item_condition) : self /** * Gets customer_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\CustomerType */ public function getCustomerType() : ?CustomerType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchOffersResponse.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchOffersResponse.php index 35e0098d4..43cbf7cf2 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchOffersResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchOffersResponse.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -204,6 +194,8 @@ public function validate() : void /** * Gets headers. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\HttpResponseHeaders */ public function getHeaders() : ?HttpResponseHeaders { @@ -224,6 +216,8 @@ public function setHeaders(?HttpResponseHeaders $headers) : self /** * Gets status. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersHttpStatusLine */ public function getStatus() : ?GetOffersHttpStatusLine { @@ -244,6 +238,8 @@ public function setStatus(?GetOffersHttpStatusLine $status) : self /** * Gets body. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse */ public function getBody() : GetOffersResponse { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchRequest.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchRequest.php index 90f54bbe8..5d27dd379 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/BatchRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets uri. + * + * @return string */ public function getUri() : string { @@ -222,6 +214,8 @@ public function setUri(string $uri) : self /** * Gets method. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\HttpMethod */ public function getMethod() : HttpMethod { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/BuyBoxPriceType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/BuyBoxPriceType.php index e28eb70d7..97b11ebee 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/BuyBoxPriceType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/BuyBoxPriceType.php @@ -152,8 +152,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -162,8 +160,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -173,8 +169,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -183,8 +177,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -193,8 +185,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -206,7 +196,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -256,6 +246,8 @@ public function validate() : void /** * Gets condition. + * + * @return string */ public function getCondition() : string { @@ -276,6 +268,8 @@ public function setCondition(string $condition) : self /** * Gets offer_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\OfferCustomerType */ public function getOfferType() : ?OfferCustomerType { @@ -296,6 +290,8 @@ public function setOfferType(?OfferCustomerType $offer_type) : self /** * Gets quantity_tier. + * + * @return null|int */ public function getQuantityTier() : ?int { @@ -316,6 +312,8 @@ public function setQuantityTier(?int $quantity_tier) : self /** * Gets quantity_discount_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\QuantityDiscountType */ public function getQuantityDiscountType() : ?QuantityDiscountType { @@ -336,6 +334,8 @@ public function setQuantityDiscountType(?QuantityDiscountType $quantity_discount /** * Gets landed_price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getLandedPrice() : MoneyType { @@ -356,6 +356,8 @@ public function setLandedPrice(MoneyType $landed_price) : self /** * Gets listing_price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getListingPrice() : MoneyType { @@ -376,6 +378,8 @@ public function setListingPrice(MoneyType $listing_price) : self /** * Gets shipping. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getShipping() : MoneyType { @@ -396,6 +400,8 @@ public function setShipping(MoneyType $shipping) : self /** * Gets points. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\Points */ public function getPoints() : ?Points { @@ -416,6 +422,8 @@ public function setPoints(?Points $points) : self /** * Gets seller_id. + * + * @return null|string */ public function getSellerId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/CompetitivePriceType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/CompetitivePriceType.php index 8c4835578..8ef0fb6f6 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/CompetitivePriceType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/CompetitivePriceType.php @@ -152,8 +152,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -162,8 +160,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -173,8 +169,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -183,8 +177,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -193,8 +185,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -206,7 +196,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets competitive_price_id. + * + * @return string */ public function getCompetitivePriceId() : string { @@ -260,6 +252,8 @@ public function setCompetitivePriceId(string $competitive_price_id) : self /** * Gets price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\PriceType */ public function getPrice() : PriceType { @@ -280,6 +274,8 @@ public function setPrice(PriceType $price) : self /** * Gets condition. + * + * @return null|string */ public function getCondition() : ?string { @@ -300,6 +296,8 @@ public function setCondition(?string $condition) : self /** * Gets subcondition. + * + * @return null|string */ public function getSubcondition() : ?string { @@ -320,6 +318,8 @@ public function setSubcondition(?string $subcondition) : self /** * Gets offer_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\OfferCustomerType */ public function getOfferType() : ?OfferCustomerType { @@ -340,6 +340,8 @@ public function setOfferType(?OfferCustomerType $offer_type) : self /** * Gets quantity_tier. + * + * @return null|int */ public function getQuantityTier() : ?int { @@ -360,6 +362,8 @@ public function setQuantityTier(?int $quantity_tier) : self /** * Gets quantity_discount_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\QuantityDiscountType */ public function getQuantityDiscountType() : ?QuantityDiscountType { @@ -380,6 +384,8 @@ public function setQuantityDiscountType(?QuantityDiscountType $quantity_discount /** * Gets seller_id. + * + * @return null|string */ public function getSellerId() : ?string { @@ -400,6 +406,8 @@ public function setSellerId(?string $seller_id) : self /** * Gets belongs_to_requester. + * + * @return null|bool */ public function getBelongsToRequester() : ?bool { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/CompetitivePricingType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/CompetitivePricingType.php index aa33a3fb4..5e8aff3a6 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/CompetitivePricingType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/CompetitivePricingType.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -250,6 +240,8 @@ public function setNumberOfOfferListings(array $number_of_offer_listings) : self /** * Gets trade_in_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getTradeInValue() : ?MoneyType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/DetailedShippingTimeType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/DetailedShippingTimeType.php index 2c7e15c4c..a6155878c 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/DetailedShippingTimeType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/DetailedShippingTimeType.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -232,6 +222,8 @@ public function validate() : void /** * Gets minimum_hours. + * + * @return null|int */ public function getMinimumHours() : ?int { @@ -252,6 +244,8 @@ public function setMinimumHours(?int $minimum_hours) : self /** * Gets maximum_hours. + * + * @return null|int */ public function getMaximumHours() : ?int { @@ -272,6 +266,8 @@ public function setMaximumHours(?int $maximum_hours) : self /** * Gets available_date. + * + * @return null|string */ public function getAvailableDate() : ?string { @@ -292,6 +288,8 @@ public function setAvailableDate(?string $available_date) : self /** * Gets availability_type. + * + * @return null|string */ public function getAvailabilityType() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Error.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Error.php index da34b1787..141d3f0ee 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Errors.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Errors.php index 67dd43a0f..6bddcb1ea 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Errors.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Errors.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetItemOffersBatchRequest.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetItemOffersBatchRequest.php index 3f78ba703..bda587965 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetItemOffersBatchRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetItemOffersBatchRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetItemOffersBatchResponse.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetItemOffersBatchResponse.php index 75be8c70d..febabf600 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetItemOffersBatchResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetItemOffersBatchResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetListingOffersBatchRequest.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetListingOffersBatchRequest.php index 0e22f1e3b..bd9204d5d 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetListingOffersBatchRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetListingOffersBatchRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetListingOffersBatchResponse.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetListingOffersBatchResponse.php index 214bce14d..f29ce4d0b 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetListingOffersBatchResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetListingOffersBatchResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersHttpStatusLine.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersHttpStatusLine.php index 694fa36ac..2c0d50db1 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersHttpStatusLine.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersHttpStatusLine.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets status_code. + * + * @return null|int */ public function getStatusCode() : ?int { @@ -216,6 +208,8 @@ public function setStatusCode(?int $status_code) : self /** * Gets reason_phrase. + * + * @return null|string */ public function getReasonPhrase() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersResponse.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersResponse.php index 68f60cc45..276dd5096 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResult */ public function getPayload() : ?GetOffersResult { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersResult.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersResult.php index 9821485f1..9820292ed 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersResult.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetOffersResult.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -276,6 +266,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -296,6 +288,8 @@ public function setAsin(?string $asin) : self /** * Gets sku. + * + * @return null|string */ public function getSku() : ?string { @@ -316,6 +310,8 @@ public function setSku(?string $sku) : self /** * Gets item_condition. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ConditionType */ public function getItemCondition() : ConditionType { @@ -336,6 +332,8 @@ public function setItemCondition(ConditionType $item_condition) : self /** * Gets status. + * + * @return string */ public function getStatus() : string { @@ -356,6 +354,8 @@ public function setStatus(string $status) : self /** * Gets identifier. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ItemIdentifier */ public function getIdentifier() : ItemIdentifier { @@ -376,6 +376,8 @@ public function setIdentifier(ItemIdentifier $identifier) : self /** * Gets summary. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\Summary */ public function getSummary() : Summary { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetPricingResponse.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetPricingResponse.php index f38bba3aa..fd1a37d51 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetPricingResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/GetPricingResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/HttpResponseHeaders.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/HttpResponseHeaders.php index a11d0b32c..7c182f4eb 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/HttpResponseHeaders.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/HttpResponseHeaders.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets date. + * + * @return null|string */ public function getDate() : ?string { @@ -209,6 +201,8 @@ public function setDate(?string $date) : self /** * Gets x_amzn_request_id. + * + * @return null|string */ public function getXAmznRequestId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/IdentifierType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/IdentifierType.php index fa971dbb7..95c2a1e9d 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/IdentifierType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/IdentifierType.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets marketplace_asin. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ASINIdentifier */ public function getMarketplaceAsin() : ASINIdentifier { @@ -218,6 +210,8 @@ public function setMarketplaceAsin(ASINIdentifier $marketplace_asin) : self /** * Gets sku_identifier. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\SellerSKUIdentifier */ public function getSkuIdentifier() : ?SellerSKUIdentifier { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemIdentifier.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemIdentifier.php index d0f02eea9..ce5ed7bf0 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemIdentifier.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemIdentifier.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -228,6 +220,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -248,6 +242,8 @@ public function setAsin(?string $asin) : self /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -268,6 +264,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets item_condition. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ConditionType */ public function getItemCondition() : ConditionType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequest.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequest.php index 9f39cee77..42add9db8 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequest.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets uri. + * + * @return string */ public function getUri() : string { @@ -248,6 +240,8 @@ public function setUri(string $uri) : self /** * Gets method. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\HttpMethod */ public function getMethod() : HttpMethod { @@ -290,6 +284,8 @@ public function setHeaders(?array $headers) : self /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -310,6 +306,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets item_condition. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ItemCondition */ public function getItemCondition() : ItemCondition { @@ -330,6 +328,8 @@ public function setItemCondition(ItemCondition $item_condition) : self /** * Gets customer_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\CustomerType */ public function getCustomerType() : ?CustomerType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequestParams.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequestParams.php index 02ef0bd46..8b7d8ead3 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequestParams.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequestParams.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -228,6 +220,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets item_condition. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ItemCondition */ public function getItemCondition() : ItemCondition { @@ -248,6 +242,8 @@ public function setItemCondition(ItemCondition $item_condition) : self /** * Gets customer_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\CustomerType */ public function getCustomerType() : ?CustomerType { @@ -268,6 +264,8 @@ public function setCustomerType(?CustomerType $customer_type) : self /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequestParamsAllOf.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequestParamsAllOf.php index 31b6eac81..2f978e112 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequestParamsAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersRequestParamsAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersResponse.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersResponse.php index 0040f1526..f896c3ecd 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersResponse.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets headers. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\HttpResponseHeaders */ public function getHeaders() : ?HttpResponseHeaders { @@ -236,6 +228,8 @@ public function setHeaders(?HttpResponseHeaders $headers) : self /** * Gets status. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersHttpStatusLine */ public function getStatus() : ?GetOffersHttpStatusLine { @@ -256,6 +250,8 @@ public function setStatus(?GetOffersHttpStatusLine $status) : self /** * Gets body. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse */ public function getBody() : GetOffersResponse { @@ -276,6 +272,8 @@ public function setBody(GetOffersResponse $body) : self /** * Gets request. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ItemOffersRequestParams */ public function getRequest() : ItemOffersRequestParams { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersResponseAllOf.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersResponseAllOf.php index 4065e26ed..fc141bdd8 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersResponseAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ItemOffersResponseAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,6 +178,8 @@ public function validate() : void /** * Gets request. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ItemOffersRequestParams */ public function getRequest() : ItemOffersRequestParams { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequest.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequest.php index 5466558aa..c7a23f1de 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequest.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets uri. + * + * @return string */ public function getUri() : string { @@ -248,6 +240,8 @@ public function setUri(string $uri) : self /** * Gets method. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\HttpMethod */ public function getMethod() : HttpMethod { @@ -290,6 +284,8 @@ public function setHeaders(?array $headers) : self /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -310,6 +306,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets item_condition. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ItemCondition */ public function getItemCondition() : ItemCondition { @@ -330,6 +328,8 @@ public function setItemCondition(ItemCondition $item_condition) : self /** * Gets customer_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\CustomerType */ public function getCustomerType() : ?CustomerType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequestParams.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequestParams.php index c967bab5d..529648628 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequestParams.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequestParams.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -232,6 +224,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets item_condition. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\ItemCondition */ public function getItemCondition() : ItemCondition { @@ -252,6 +246,8 @@ public function setItemCondition(ItemCondition $item_condition) : self /** * Gets customer_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\CustomerType */ public function getCustomerType() : ?CustomerType { @@ -272,6 +268,8 @@ public function setCustomerType(?CustomerType $customer_type) : self /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequestParamsAllOf.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequestParamsAllOf.php index 88ad37d1f..198a5ae83 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequestParamsAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersRequestParamsAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersResponse.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersResponse.php index 307940efd..f808ae7e3 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersResponse.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -214,6 +204,8 @@ public function validate() : void /** * Gets headers. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\HttpResponseHeaders */ public function getHeaders() : ?HttpResponseHeaders { @@ -234,6 +226,8 @@ public function setHeaders(?HttpResponseHeaders $headers) : self /** * Gets status. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersHttpStatusLine */ public function getStatus() : ?GetOffersHttpStatusLine { @@ -254,6 +248,8 @@ public function setStatus(?GetOffersHttpStatusLine $status) : self /** * Gets body. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\GetOffersResponse */ public function getBody() : GetOffersResponse { @@ -274,6 +270,8 @@ public function setBody(GetOffersResponse $body) : self /** * Gets request. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\ListingOffersRequestParams */ public function getRequest() : ?ListingOffersRequestParams { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersResponseAllOf.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersResponseAllOf.php index f93e2ebb5..5cd5507b4 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersResponseAllOf.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ListingOffersResponseAllOf.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets request. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\ListingOffersRequestParams */ public function getRequest() : ?ListingOffersRequestParams { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/LowestPriceType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/LowestPriceType.php index 3b506519e..00665a8bc 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/LowestPriceType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/LowestPriceType.php @@ -152,8 +152,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -162,8 +160,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -173,8 +169,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -183,8 +177,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -193,8 +185,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -206,7 +196,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -260,6 +250,8 @@ public function validate() : void /** * Gets condition. + * + * @return string */ public function getCondition() : string { @@ -280,6 +272,8 @@ public function setCondition(string $condition) : self /** * Gets fulfillment_channel. + * + * @return string */ public function getFulfillmentChannel() : string { @@ -300,6 +294,8 @@ public function setFulfillmentChannel(string $fulfillment_channel) : self /** * Gets offer_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\OfferCustomerType */ public function getOfferType() : ?OfferCustomerType { @@ -320,6 +316,8 @@ public function setOfferType(?OfferCustomerType $offer_type) : self /** * Gets quantity_tier. + * + * @return null|int */ public function getQuantityTier() : ?int { @@ -340,6 +338,8 @@ public function setQuantityTier(?int $quantity_tier) : self /** * Gets quantity_discount_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\QuantityDiscountType */ public function getQuantityDiscountType() : ?QuantityDiscountType { @@ -360,6 +360,8 @@ public function setQuantityDiscountType(?QuantityDiscountType $quantity_discount /** * Gets landed_price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getLandedPrice() : MoneyType { @@ -380,6 +382,8 @@ public function setLandedPrice(MoneyType $landed_price) : self /** * Gets listing_price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getListingPrice() : MoneyType { @@ -400,6 +404,8 @@ public function setListingPrice(MoneyType $listing_price) : self /** * Gets shipping. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getShipping() : MoneyType { @@ -420,6 +426,8 @@ public function setShipping(MoneyType $shipping) : self /** * Gets points. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\Points */ public function getPoints() : ?Points { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/MoneyType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/MoneyType.php index d9f0617b6..4a29b6965 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/MoneyType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/MoneyType.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return null|string */ public function getCurrencyCode() : ?string { @@ -209,6 +201,8 @@ public function setCurrencyCode(?string $currency_code) : self /** * Gets amount. + * + * @return null|float */ public function getAmount() : ?float { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferCountType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferCountType.php index 461c30f0b..0eb401a9f 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferCountType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferCountType.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets condition. + * + * @return null|string */ public function getCondition() : ?string { @@ -215,6 +207,8 @@ public function setCondition(?string $condition) : self /** * Gets fulfillment_channel. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\FulfillmentChannelType */ public function getFulfillmentChannel() : ?FulfillmentChannelType { @@ -235,6 +229,8 @@ public function setFulfillmentChannel(?FulfillmentChannelType $fulfillment_chann /** * Gets offer_count. + * + * @return null|int */ public function getOfferCount() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferDetail.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferDetail.php index a54e9e9a5..944e4c8de 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferDetail.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferDetail.php @@ -194,8 +194,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -204,8 +202,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -215,8 +211,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -225,8 +219,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -235,8 +227,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -248,7 +238,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -314,6 +304,8 @@ public function validate() : void /** * Gets my_offer. + * + * @return null|bool */ public function getMyOffer() : ?bool { @@ -334,6 +326,8 @@ public function setMyOffer(?bool $my_offer) : self /** * Gets offer_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\OfferCustomerType */ public function getOfferType() : ?OfferCustomerType { @@ -354,6 +348,8 @@ public function setOfferType(?OfferCustomerType $offer_type) : self /** * Gets sub_condition. + * + * @return string */ public function getSubCondition() : string { @@ -374,6 +370,8 @@ public function setSubCondition(string $sub_condition) : self /** * Gets seller_id. + * + * @return null|string */ public function getSellerId() : ?string { @@ -394,6 +392,8 @@ public function setSellerId(?string $seller_id) : self /** * Gets condition_notes. + * + * @return null|string */ public function getConditionNotes() : ?string { @@ -414,6 +414,8 @@ public function setConditionNotes(?string $condition_notes) : self /** * Gets seller_feedback_rating. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\SellerFeedbackType */ public function getSellerFeedbackRating() : ?SellerFeedbackType { @@ -434,6 +436,8 @@ public function setSellerFeedbackRating(?SellerFeedbackType $seller_feedback_rat /** * Gets shipping_time. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\DetailedShippingTimeType */ public function getShippingTime() : DetailedShippingTimeType { @@ -454,6 +458,8 @@ public function setShippingTime(DetailedShippingTimeType $shipping_time) : self /** * Gets listing_price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getListingPrice() : MoneyType { @@ -496,6 +502,8 @@ public function setQuantityDiscountPrices(?array $quantity_discount_prices) : se /** * Gets points. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\Points */ public function getPoints() : ?Points { @@ -516,6 +524,8 @@ public function setPoints(?Points $points) : self /** * Gets shipping. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getShipping() : MoneyType { @@ -536,6 +546,8 @@ public function setShipping(MoneyType $shipping) : self /** * Gets ships_from. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\ShipsFromType */ public function getShipsFrom() : ?ShipsFromType { @@ -556,6 +568,8 @@ public function setShipsFrom(?ShipsFromType $ships_from) : self /** * Gets is_fulfilled_by_amazon. + * + * @return bool */ public function getIsFulfilledByAmazon() : bool { @@ -576,6 +590,8 @@ public function setIsFulfilledByAmazon(bool $is_fulfilled_by_amazon) : self /** * Gets prime_information. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\PrimeInformationType */ public function getPrimeInformation() : ?PrimeInformationType { @@ -596,6 +612,8 @@ public function setPrimeInformation(?PrimeInformationType $prime_information) : /** * Gets is_buy_box_winner. + * + * @return null|bool */ public function getIsBuyBoxWinner() : ?bool { @@ -616,6 +634,8 @@ public function setIsBuyBoxWinner(?bool $is_buy_box_winner) : self /** * Gets is_featured_merchant. + * + * @return null|bool */ public function getIsFeaturedMerchant() : ?bool { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferListingCountType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferListingCountType.php index 26b1f5e7c..96dd5c336 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferListingCountType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferListingCountType.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets count. + * + * @return int */ public function getCount() : int { @@ -216,6 +208,8 @@ public function setCount(int $count) : self /** * Gets condition. + * + * @return string */ public function getCondition() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferType.php index c94792889..6e7ec4573 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/OfferType.php @@ -152,8 +152,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -162,8 +160,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -173,8 +169,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -183,8 +177,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -193,8 +185,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -206,7 +196,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -262,6 +252,8 @@ public function validate() : void /** * Gets offer_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\OfferCustomerType */ public function getOfferType() : ?OfferCustomerType { @@ -282,6 +274,8 @@ public function setOfferType(?OfferCustomerType $offer_type) : self /** * Gets buying_price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\PriceType */ public function getBuyingPrice() : PriceType { @@ -302,6 +296,8 @@ public function setBuyingPrice(PriceType $buying_price) : self /** * Gets regular_price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getRegularPrice() : MoneyType { @@ -322,6 +318,8 @@ public function setRegularPrice(MoneyType $regular_price) : self /** * Gets business_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getBusinessPrice() : ?MoneyType { @@ -364,6 +362,8 @@ public function setQuantityDiscountPrices(?array $quantity_discount_prices) : se /** * Gets fulfillment_channel. + * + * @return string */ public function getFulfillmentChannel() : string { @@ -384,6 +384,8 @@ public function setFulfillmentChannel(string $fulfillment_channel) : self /** * Gets item_condition. + * + * @return string */ public function getItemCondition() : string { @@ -404,6 +406,8 @@ public function setItemCondition(string $item_condition) : self /** * Gets item_sub_condition. + * + * @return string */ public function getItemSubCondition() : string { @@ -424,6 +428,8 @@ public function setItemSubCondition(string $item_sub_condition) : self /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Points.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Points.php index 9b93acb93..2a007d68b 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Points.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Points.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets points_number. + * + * @return null|int */ public function getPointsNumber() : ?int { @@ -212,6 +204,8 @@ public function setPointsNumber(?int $points_number) : self /** * Gets points_monetary_value. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getPointsMonetaryValue() : ?MoneyType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Price.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Price.php index b25b373e9..f2023141b 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Price.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Price.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets status. + * + * @return string */ public function getStatus() : string { @@ -228,6 +220,8 @@ public function setStatus(string $status) : self /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -248,6 +242,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -268,6 +264,8 @@ public function setAsin(?string $asin) : self /** * Gets product. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\Product */ public function getProduct() : ?Product { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/PriceType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/PriceType.php index 400cbf60f..62a4dd1f4 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/PriceType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/PriceType.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function validate() : void /** * Gets landed_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getLandedPrice() : ?MoneyType { @@ -238,6 +230,8 @@ public function setLandedPrice(?MoneyType $landed_price) : self /** * Gets listing_price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getListingPrice() : MoneyType { @@ -258,6 +252,8 @@ public function setListingPrice(MoneyType $listing_price) : self /** * Gets shipping. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getShipping() : ?MoneyType { @@ -278,6 +274,8 @@ public function setShipping(?MoneyType $shipping) : self /** * Gets points. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\Points */ public function getPoints() : ?Points { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/PrimeInformationType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/PrimeInformationType.php index 684e25453..692e5fe19 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/PrimeInformationType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/PrimeInformationType.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets is_prime. + * + * @return bool */ public function getIsPrime() : bool { @@ -216,6 +208,8 @@ public function setIsPrime(bool $is_prime) : self /** * Gets is_national_prime. + * + * @return bool */ public function getIsNationalPrime() : bool { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Product.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Product.php index faba38969..511c56423 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Product.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Product.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -222,6 +212,8 @@ public function validate() : void /** * Gets identifiers. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\IdentifierType */ public function getIdentifiers() : IdentifierType { @@ -286,6 +278,8 @@ public function setRelationships(?array $relationships) : self /** * Gets competitive_pricing. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\CompetitivePricingType */ public function getCompetitivePricing() : ?CompetitivePricingType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/QuantityDiscountPriceType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/QuantityDiscountPriceType.php index 3c4491f15..a26ec93ea 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/QuantityDiscountPriceType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/QuantityDiscountPriceType.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets quantity_tier. + * + * @return int */ public function getQuantityTier() : int { @@ -228,6 +220,8 @@ public function setQuantityTier(int $quantity_tier) : self /** * Gets quantity_discount_type. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\QuantityDiscountType */ public function getQuantityDiscountType() : QuantityDiscountType { @@ -248,6 +242,8 @@ public function setQuantityDiscountType(QuantityDiscountType $quantity_discount_ /** * Gets listing_price. + * + * @return \AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getListingPrice() : MoneyType { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/SalesRankType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/SalesRankType.php index 7201fcc46..5f136a100 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/SalesRankType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/SalesRankType.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets product_category_id. + * + * @return string */ public function getProductCategoryId() : string { @@ -216,6 +208,8 @@ public function setProductCategoryId(string $product_category_id) : self /** * Gets rank. + * + * @return int */ public function getRank() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/SellerFeedbackType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/SellerFeedbackType.php index ff3610724..d3789ff3f 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/SellerFeedbackType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/SellerFeedbackType.php @@ -40,7 +40,7 @@ class SellerFeedbackType implements \ArrayAccess, \JsonSerializable, \Stringable * @var string[] */ protected static array $openAPITypes = [ - 'seller_positive_feedback_rating' => 'double', + 'seller_positive_feedback_rating' => 'float', 'feedback_count' => 'int', ]; @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets seller_positive_feedback_rating. + * + * @return null|float */ public function getSellerPositiveFeedbackRating() : ?float { @@ -212,6 +204,8 @@ public function setSellerPositiveFeedbackRating(?float $seller_positive_feedback /** * Gets feedback_count. + * + * @return int */ public function getFeedbackCount() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/SellerSKUIdentifier.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/SellerSKUIdentifier.php index abf2e9f50..40956b76f 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/SellerSKUIdentifier.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/SellerSKUIdentifier.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets marketplace_id. + * + * @return string */ public function getMarketplaceId() : string { @@ -226,6 +218,8 @@ public function setMarketplaceId(string $marketplace_id) : self /** * Gets seller_id. + * + * @return string */ public function getSellerId() : string { @@ -246,6 +240,8 @@ public function setSellerId(string $seller_id) : self /** * Gets seller_sku. + * + * @return string */ public function getSellerSku() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ShipsFromType.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ShipsFromType.php index 400a6a334..fbf11014a 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/ShipsFromType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/ShipsFromType.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets state. + * + * @return null|string */ public function getState() : ?string { @@ -209,6 +201,8 @@ public function setState(?string $state) : self /** * Gets country. + * + * @return null|string */ public function getCountry() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Summary.php b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Summary.php index b4ca9d34f..ee5780e77 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductPricing/Summary.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductPricing/Summary.php @@ -158,8 +158,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +166,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +175,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +183,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +191,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +202,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -252,6 +242,8 @@ public function validate() : void /** * Gets total_offer_count. + * + * @return int */ public function getTotalOfferCount() : int { @@ -338,6 +330,8 @@ public function setBuyBoxPrices(?array $buy_box_prices) : self /** * Gets list_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getListPrice() : ?MoneyType { @@ -358,6 +352,8 @@ public function setListPrice(?MoneyType $list_price) : self /** * Gets competitive_price_threshold. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getCompetitivePriceThreshold() : ?MoneyType { @@ -378,6 +374,8 @@ public function setCompetitivePriceThreshold(?MoneyType $competitive_price_thres /** * Gets suggested_lower_price_plus_shipping. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductPricing\MoneyType */ public function getSuggestedLowerPricePlusShipping() : ?MoneyType { @@ -442,6 +440,8 @@ public function setBuyBoxEligibleOffers(?array $buy_box_eligible_offers) : self /** * Gets offers_available_time. + * + * @return null|\DateTimeInterface */ public function getOffersAvailableTime() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/Error.php b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/Error.php index c12a77f15..60ceda336 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ErrorList.php index 28597ec78..0ac4eabd0 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductType.php b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductType.php index e64089cbf..6ee1ab68e 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductType.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductType.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeDefinition.php b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeDefinition.php index 52777b4f4..b8ec7070f 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeDefinition.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeDefinition.php @@ -162,8 +162,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -172,8 +170,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -183,8 +179,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -193,8 +187,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -203,8 +195,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -216,7 +206,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -331,6 +321,8 @@ public function validate() : void /** * Gets meta_schema. + * + * @return null|\AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\SchemaLink */ public function getMetaSchema() : ?SchemaLink { @@ -351,6 +343,8 @@ public function setMetaSchema(?SchemaLink $meta_schema) : self /** * Gets schema. + * + * @return \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\SchemaLink */ public function getSchema() : SchemaLink { @@ -371,6 +365,8 @@ public function setSchema(SchemaLink $schema) : self /** * Gets requirements. + * + * @return string */ public function getRequirements() : string { @@ -391,6 +387,8 @@ public function setRequirements(string $requirements) : self /** * Gets requirements_enforced. + * + * @return string */ public function getRequirementsEnforced() : string { @@ -433,6 +431,8 @@ public function setPropertyGroups(array $property_groups) : self /** * Gets locale. + * + * @return string */ public function getLocale() : string { @@ -475,6 +475,8 @@ public function setMarketplaceIds(array $marketplace_ids) : self /** * Gets product_type. + * + * @return string */ public function getProductType() : string { @@ -495,6 +497,8 @@ public function setProductType(string $product_type) : self /** * Gets product_type_version. + * + * @return \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\ProductTypeVersion */ public function getProductTypeVersion() : ProductTypeVersion { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeList.php b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeList.php index 1187f7773..87a56ae68 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeList.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeVersion.php b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeVersion.php index 6b6308cd6..92247fc46 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeVersion.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/ProductTypeVersion.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets version. + * + * @return string */ public function getVersion() : string { @@ -222,6 +214,8 @@ public function setVersion(string $version) : self /** * Gets latest. + * + * @return bool */ public function getLatest() : bool { @@ -242,6 +236,8 @@ public function setLatest(bool $latest) : self /** * Gets release_candidate. + * + * @return null|bool */ public function getReleaseCandidate() : ?bool { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/PropertyGroup.php b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/PropertyGroup.php index 7865e5939..5bf2841d5 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/PropertyGroup.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/PropertyGroup.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets title. + * + * @return null|string */ public function getTitle() : ?string { @@ -215,6 +207,8 @@ public function setTitle(?string $title) : self /** * Gets description. + * + * @return null|string */ public function getDescription() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/SchemaLink.php b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/SchemaLink.php index e6715bf2b..475eb56b3 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/SchemaLink.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/SchemaLink.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets link. + * + * @return \AmazonPHP\SellingPartner\Model\ProductTypesDefinitions\SchemaLinkLink */ public function getLink() : SchemaLinkLink { @@ -218,6 +210,8 @@ public function setLink(SchemaLinkLink $link) : self /** * Gets checksum. + * + * @return string */ public function getChecksum() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/SchemaLinkLink.php b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/SchemaLinkLink.php index 9ee147b5c..892951827 100644 --- a/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/SchemaLinkLink.php +++ b/src/AmazonPHP/SellingPartner/Model/ProductTypesDefinitions/SchemaLinkLink.php @@ -112,8 +112,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -122,8 +120,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -133,8 +129,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -143,8 +137,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -153,8 +145,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -166,7 +156,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -222,6 +212,8 @@ public function validate() : void /** * Gets resource. + * + * @return string */ public function getResource() : string { @@ -242,6 +234,8 @@ public function setResource(string $resource) : self /** * Gets verb. + * + * @return string */ public function getVerb() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportResponse.php b/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportResponse.php index ac4cc330b..7ece32077 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets report_id. + * + * @return string */ public function getReportId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportScheduleResponse.php b/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportScheduleResponse.php index ff66637cc..b82a3cc9c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportScheduleResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportScheduleResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets report_schedule_id. + * + * @return string */ public function getReportScheduleId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportScheduleSpecification.php b/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportScheduleSpecification.php index e11263f0d..142c71c5b 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportScheduleSpecification.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportScheduleSpecification.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -303,6 +293,8 @@ public function validate() : void /** * Gets report_type. + * + * @return string */ public function getReportType() : string { @@ -312,7 +304,7 @@ public function getReportType() : string /** * Sets report_type. * - * @param string $report_type the report type + * @param string $report_type The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. */ public function setReportType(string $report_type) : self { @@ -367,6 +359,8 @@ public function setReportOptions(?array $report_options) : self /** * Gets period. + * + * @return string */ public function getPeriod() : string { @@ -387,6 +381,8 @@ public function setPeriod(string $period) : self /** * Gets next_report_creation_time. + * + * @return null|\DateTimeInterface */ public function getNextReportCreationTime() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportSpecification.php b/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportSpecification.php index 8f760e5f8..cc9b464ea 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportSpecification.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/CreateReportSpecification.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -244,6 +234,8 @@ public function setReportOptions(?array $report_options) : self /** * Gets report_type. + * + * @return string */ public function getReportType() : string { @@ -253,7 +245,7 @@ public function getReportType() : string /** * Sets report_type. * - * @param string $report_type the report type + * @param string $report_type The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. */ public function setReportType(string $report_type) : self { @@ -264,6 +256,8 @@ public function setReportType(string $report_type) : self /** * Gets data_start_time. + * + * @return null|\DateTimeInterface */ public function getDataStartTime() : ?\DateTimeInterface { @@ -284,6 +278,8 @@ public function setDataStartTime(?\DateTimeInterface $data_start_time) : self /** * Gets data_end_time. + * + * @return null|\DateTimeInterface */ public function getDataEndTime() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/Error.php b/src/AmazonPHP/SellingPartner/Model/Reports/Error.php index 023d7896d..a5d9e89df 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/Reports/ErrorList.php index c92763e48..938cf75f2 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/GetReportsResponse.php b/src/AmazonPHP/SellingPartner/Model/Reports/GetReportsResponse.php index 1c1950f4e..851dc3da3 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/GetReportsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/GetReportsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -214,6 +204,8 @@ public function setReports(array $reports) : self /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/Report.php b/src/AmazonPHP/SellingPartner/Model/Reports/Report.php index 2b2ae4e94..0146357fd 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/Report.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/Report.php @@ -174,8 +174,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -184,8 +182,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -195,8 +191,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -205,8 +199,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -215,8 +207,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -228,7 +218,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -318,6 +308,8 @@ public function setMarketplaceIds(?array $marketplace_ids) : self /** * Gets report_id. + * + * @return string */ public function getReportId() : string { @@ -338,6 +330,8 @@ public function setReportId(string $report_id) : self /** * Gets report_type. + * + * @return string */ public function getReportType() : string { @@ -347,7 +341,7 @@ public function getReportType() : string /** * Sets report_type. * - * @param string $report_type the report type + * @param string $report_type The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. */ public function setReportType(string $report_type) : self { @@ -358,6 +352,8 @@ public function setReportType(string $report_type) : self /** * Gets data_start_time. + * + * @return null|\DateTimeInterface */ public function getDataStartTime() : ?\DateTimeInterface { @@ -378,6 +374,8 @@ public function setDataStartTime(?\DateTimeInterface $data_start_time) : self /** * Gets data_end_time. + * + * @return null|\DateTimeInterface */ public function getDataEndTime() : ?\DateTimeInterface { @@ -398,6 +396,8 @@ public function setDataEndTime(?\DateTimeInterface $data_end_time) : self /** * Gets report_schedule_id. + * + * @return null|string */ public function getReportScheduleId() : ?string { @@ -418,6 +418,8 @@ public function setReportScheduleId(?string $report_schedule_id) : self /** * Gets created_time. + * + * @return \DateTimeInterface */ public function getCreatedTime() : \DateTimeInterface { @@ -438,6 +440,8 @@ public function setCreatedTime(\DateTimeInterface $created_time) : self /** * Gets processing_status. + * + * @return string */ public function getProcessingStatus() : string { @@ -458,6 +462,8 @@ public function setProcessingStatus(string $processing_status) : self /** * Gets processing_start_time. + * + * @return null|\DateTimeInterface */ public function getProcessingStartTime() : ?\DateTimeInterface { @@ -478,6 +484,8 @@ public function setProcessingStartTime(?\DateTimeInterface $processing_start_tim /** * Gets processing_end_time. + * + * @return null|\DateTimeInterface */ public function getProcessingEndTime() : ?\DateTimeInterface { @@ -498,6 +506,8 @@ public function setProcessingEndTime(?\DateTimeInterface $processing_end_time) : /** * Gets report_document_id. + * + * @return null|string */ public function getReportDocumentId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/ReportDocument.php b/src/AmazonPHP/SellingPartner/Model/Reports/ReportDocument.php index 44fea35ce..6078fbf73 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/ReportDocument.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/ReportDocument.php @@ -118,8 +118,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -128,8 +126,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -139,8 +135,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -149,8 +143,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -159,8 +151,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -172,7 +162,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -228,6 +218,8 @@ public function validate() : void /** * Gets report_document_id. + * + * @return string */ public function getReportDocumentId() : string { @@ -248,6 +240,8 @@ public function setReportDocumentId(string $report_document_id) : self /** * Gets url. + * + * @return string */ public function getUrl() : string { @@ -268,6 +262,8 @@ public function setUrl(string $url) : self /** * Gets compression_algorithm. + * + * @return null|string */ public function getCompressionAlgorithm() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/ReportSchedule.php b/src/AmazonPHP/SellingPartner/Model/Reports/ReportSchedule.php index 3f5b2fa8d..c4ec90a35 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/ReportSchedule.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/ReportSchedule.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets report_schedule_id. + * + * @return string */ public function getReportScheduleId() : string { @@ -244,6 +236,8 @@ public function setReportScheduleId(string $report_schedule_id) : self /** * Gets report_type. + * + * @return string */ public function getReportType() : string { @@ -253,7 +247,7 @@ public function getReportType() : string /** * Sets report_type. * - * @param string $report_type the report type + * @param string $report_type The report type. Refer to [Report Type Values](https://developer-docs.amazon.com/sp-api/docs/report-type-values) for more information. */ public function setReportType(string $report_type) : self { @@ -308,6 +302,8 @@ public function setReportOptions(?array $report_options) : self /** * Gets period. + * + * @return string */ public function getPeriod() : string { @@ -328,6 +324,8 @@ public function setPeriod(string $period) : self /** * Gets next_report_creation_time. + * + * @return null|\DateTimeInterface */ public function getNextReportCreationTime() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Reports/ReportScheduleList.php b/src/AmazonPHP/SellingPartner/Model/Reports/ReportScheduleList.php index 20fb22c78..02b0815b1 100644 --- a/src/AmazonPHP/SellingPartner/Model/Reports/ReportScheduleList.php +++ b/src/AmazonPHP/SellingPartner/Model/Reports/ReportScheduleList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Sales/Error.php b/src/AmazonPHP/SellingPartner/Model/Sales/Error.php index f24836b1a..82e7ae1a8 100644 --- a/src/AmazonPHP/SellingPartner/Model/Sales/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Sales/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Sales/GetOrderMetricsResponse.php b/src/AmazonPHP/SellingPartner/Model/Sales/GetOrderMetricsResponse.php index 95cbc48e3..be4cacfe0 100644 --- a/src/AmazonPHP/SellingPartner/Model/Sales/GetOrderMetricsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Sales/GetOrderMetricsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Sales/Money.php b/src/AmazonPHP/SellingPartner/Model/Sales/Money.php index a49eb6207..a9c531614 100644 --- a/src/AmazonPHP/SellingPartner/Model/Sales/Money.php +++ b/src/AmazonPHP/SellingPartner/Model/Sales/Money.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return string */ public function getCurrencyCode() : string { @@ -216,6 +208,8 @@ public function setCurrencyCode(string $currency_code) : self /** * Gets amount. + * + * @return string */ public function getAmount() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Sales/OrderMetricsInterval.php b/src/AmazonPHP/SellingPartner/Model/Sales/OrderMetricsInterval.php index d9a0934b0..38a653b8d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Sales/OrderMetricsInterval.php +++ b/src/AmazonPHP/SellingPartner/Model/Sales/OrderMetricsInterval.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets interval. + * + * @return string */ public function getInterval() : string { @@ -260,6 +252,8 @@ public function setInterval(string $interval) : self /** * Gets unit_count. + * + * @return int */ public function getUnitCount() : int { @@ -280,6 +274,8 @@ public function setUnitCount(int $unit_count) : self /** * Gets order_item_count. + * + * @return int */ public function getOrderItemCount() : int { @@ -300,6 +296,8 @@ public function setOrderItemCount(int $order_item_count) : self /** * Gets order_count. + * + * @return int */ public function getOrderCount() : int { @@ -320,6 +318,8 @@ public function setOrderCount(int $order_count) : self /** * Gets average_unit_price. + * + * @return \AmazonPHP\SellingPartner\Model\Sales\Money */ public function getAverageUnitPrice() : Money { @@ -340,6 +340,8 @@ public function setAverageUnitPrice(Money $average_unit_price) : self /** * Gets total_sales. + * + * @return \AmazonPHP\SellingPartner\Model\Sales\Money */ public function getTotalSales() : Money { diff --git a/src/AmazonPHP/SellingPartner/Model/Sellers/Error.php b/src/AmazonPHP/SellingPartner/Model/Sellers/Error.php index 2a72624db..e5541e3e5 100644 --- a/src/AmazonPHP/SellingPartner/Model/Sellers/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Sellers/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Sellers/GetMarketplaceParticipationsResponse.php b/src/AmazonPHP/SellingPartner/Model/Sellers/GetMarketplaceParticipationsResponse.php index 4479f711b..423ea78e9 100644 --- a/src/AmazonPHP/SellingPartner/Model/Sellers/GetMarketplaceParticipationsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Sellers/GetMarketplaceParticipationsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Sellers/Marketplace.php b/src/AmazonPHP/SellingPartner/Model/Sellers/Marketplace.php index 3b3675e85..902121e74 100644 --- a/src/AmazonPHP/SellingPartner/Model/Sellers/Marketplace.php +++ b/src/AmazonPHP/SellingPartner/Model/Sellers/Marketplace.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets id. + * + * @return string */ public function getId() : string { @@ -260,6 +252,8 @@ public function setId(string $id) : self /** * Gets name. + * + * @return string */ public function getName() : string { @@ -280,6 +274,8 @@ public function setName(string $name) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -300,6 +296,8 @@ public function setCountryCode(string $country_code) : self /** * Gets default_currency_code. + * + * @return string */ public function getDefaultCurrencyCode() : string { @@ -320,6 +318,8 @@ public function setDefaultCurrencyCode(string $default_currency_code) : self /** * Gets default_language_code. + * + * @return string */ public function getDefaultLanguageCode() : string { @@ -340,6 +340,8 @@ public function setDefaultLanguageCode(string $default_language_code) : self /** * Gets domain_name. + * + * @return string */ public function getDomainName() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Sellers/MarketplaceParticipation.php b/src/AmazonPHP/SellingPartner/Model/Sellers/MarketplaceParticipation.php index 6785449bc..e5dc3e6cf 100644 --- a/src/AmazonPHP/SellingPartner/Model/Sellers/MarketplaceParticipation.php +++ b/src/AmazonPHP/SellingPartner/Model/Sellers/MarketplaceParticipation.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets marketplace. + * + * @return \AmazonPHP\SellingPartner\Model\Sellers\Marketplace */ public function getMarketplace() : Marketplace { @@ -220,6 +212,8 @@ public function setMarketplace(Marketplace $marketplace) : self /** * Gets participation. + * + * @return \AmazonPHP\SellingPartner\Model\Sellers\Participation */ public function getParticipation() : Participation { diff --git a/src/AmazonPHP/SellingPartner/Model/Sellers/Participation.php b/src/AmazonPHP/SellingPartner/Model/Sellers/Participation.php index 2153bf93e..03ffb20da 100644 --- a/src/AmazonPHP/SellingPartner/Model/Sellers/Participation.php +++ b/src/AmazonPHP/SellingPartner/Model/Sellers/Participation.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets is_participating. + * + * @return bool */ public function getIsParticipating() : bool { @@ -216,6 +208,8 @@ public function setIsParticipating(bool $is_participating) : self /** * Gets has_suspended_listings. + * + * @return bool */ public function getHasSuspendedListings() : bool { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AddAppointmentRequest.php b/src/AmazonPHP/SellingPartner/Model/Services/AddAppointmentRequest.php index c438ad670..59c7a5626 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AddAppointmentRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AddAppointmentRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,6 +178,8 @@ public function validate() : void /** * Gets appointment_time. + * + * @return \AmazonPHP\SellingPartner\Model\Services\AppointmentTimeInput */ public function getAppointmentTime() : AppointmentTimeInput { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/Address.php b/src/AmazonPHP/SellingPartner/Model/Services/Address.php index fee1be03c..1598344d5 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/Address.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -250,6 +240,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -270,6 +262,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -290,6 +284,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -310,6 +306,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -330,6 +328,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets city. + * + * @return null|string */ public function getCity() : ?string { @@ -350,6 +350,8 @@ public function setCity(?string $city) : self /** * Gets county. + * + * @return null|string */ public function getCounty() : ?string { @@ -370,6 +372,8 @@ public function setCounty(?string $county) : self /** * Gets district. + * + * @return null|string */ public function getDistrict() : ?string { @@ -390,6 +394,8 @@ public function setDistrict(?string $district) : self /** * Gets state_or_region. + * + * @return null|string */ public function getStateOrRegion() : ?string { @@ -410,6 +416,8 @@ public function setStateOrRegion(?string $state_or_region) : self /** * Gets postal_code. + * + * @return null|string */ public function getPostalCode() : ?string { @@ -430,6 +438,8 @@ public function setPostalCode(?string $postal_code) : self /** * Gets country_code. + * + * @return null|string */ public function getCountryCode() : ?string { @@ -450,6 +460,8 @@ public function setCountryCode(?string $country_code) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/Appointment.php b/src/AmazonPHP/SellingPartner/Model/Services/Appointment.php index 0dee0916d..bcb587683 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/Appointment.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/Appointment.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -272,6 +262,8 @@ public function validate() : void /** * Gets appointment_id. + * + * @return null|string */ public function getAppointmentId() : ?string { @@ -292,6 +284,8 @@ public function setAppointmentId(?string $appointment_id) : self /** * Gets appointment_status. + * + * @return null|string */ public function getAppointmentStatus() : ?string { @@ -312,6 +306,8 @@ public function setAppointmentStatus(?string $appointment_status) : self /** * Gets appointment_time. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\AppointmentTime */ public function getAppointmentTime() : ?AppointmentTime { @@ -354,6 +350,8 @@ public function setAssignedTechnicians(?array $assigned_technicians) : self /** * Gets rescheduled_appointment_id. + * + * @return null|string */ public function getRescheduledAppointmentId() : ?string { @@ -374,6 +372,8 @@ public function setRescheduledAppointmentId(?string $rescheduled_appointment_id) /** * Gets poa. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\Poa */ public function getPoa() : ?Poa { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AppointmentResource.php b/src/AmazonPHP/SellingPartner/Model/Services/AppointmentResource.php index 76092de4a..b68a5d8b3 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AppointmentResource.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AppointmentResource.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets resource_id. + * + * @return null|string */ public function getResourceId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AppointmentSlot.php b/src/AmazonPHP/SellingPartner/Model/Services/AppointmentSlot.php index e0149d037..adfe04a14 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AppointmentSlot.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AppointmentSlot.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets start_time. + * + * @return null|\DateTimeInterface */ public function getStartTime() : ?\DateTimeInterface { @@ -218,6 +210,8 @@ public function setStartTime(?\DateTimeInterface $start_time) : self /** * Gets end_time. + * + * @return null|\DateTimeInterface */ public function getEndTime() : ?\DateTimeInterface { @@ -238,6 +232,8 @@ public function setEndTime(?\DateTimeInterface $end_time) : self /** * Gets capacity. + * + * @return null|int */ public function getCapacity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AppointmentSlotReport.php b/src/AmazonPHP/SellingPartner/Model/Services/AppointmentSlotReport.php index 44a0a4aca..da5ecd693 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AppointmentSlotReport.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AppointmentSlotReport.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -229,6 +219,8 @@ public function validate() : void /** * Gets scheduling_type. + * + * @return null|string */ public function getSchedulingType() : ?string { @@ -249,6 +241,8 @@ public function setSchedulingType(?string $scheduling_type) : self /** * Gets start_time. + * + * @return null|\DateTimeInterface */ public function getStartTime() : ?\DateTimeInterface { @@ -269,6 +263,8 @@ public function setStartTime(?\DateTimeInterface $start_time) : self /** * Gets end_time. + * + * @return null|\DateTimeInterface */ public function getEndTime() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AppointmentTime.php b/src/AmazonPHP/SellingPartner/Model/Services/AppointmentTime.php index 2485810ed..8e453e382 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AppointmentTime.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AppointmentTime.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets start_time. + * + * @return \DateTimeInterface */ public function getStartTime() : \DateTimeInterface { @@ -220,6 +212,8 @@ public function setStartTime(\DateTimeInterface $start_time) : self /** * Gets duration_in_minutes. + * + * @return int */ public function getDurationInMinutes() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AppointmentTimeInput.php b/src/AmazonPHP/SellingPartner/Model/Services/AppointmentTimeInput.php index aa87d071e..e58c4bb7e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AppointmentTimeInput.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AppointmentTimeInput.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets start_time. + * + * @return \DateTimeInterface */ public function getStartTime() : \DateTimeInterface { @@ -212,6 +204,8 @@ public function setStartTime(\DateTimeInterface $start_time) : self /** * Gets duration_in_minutes. + * + * @return null|int */ public function getDurationInMinutes() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesRequest.php b/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesRequest.php index 178b40f49..e1dc85ce4 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesResponse.php index 3da2316a7..24f691aad 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\AssignAppointmentResourcesResponsePayload */ public function getPayload() : ?AssignAppointmentResourcesResponsePayload { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesResponsePayload.php b/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesResponsePayload.php index 7c2c0a74b..b5b2f72eb 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesResponsePayload.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AssignAppointmentResourcesResponsePayload.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AssociatedItem.php b/src/AmazonPHP/SellingPartner/Model/Services/AssociatedItem.php index 1af54f946..a48f22bd8 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AssociatedItem.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AssociatedItem.php @@ -148,8 +148,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -158,8 +156,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -169,8 +165,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -179,8 +173,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -189,8 +181,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -202,7 +192,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -265,6 +255,8 @@ public function validate() : void /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -285,6 +277,8 @@ public function setAsin(?string $asin) : self /** * Gets title. + * + * @return null|string */ public function getTitle() : ?string { @@ -305,6 +299,8 @@ public function setTitle(?string $title) : self /** * Gets quantity. + * + * @return null|int */ public function getQuantity() : ?int { @@ -325,6 +321,8 @@ public function setQuantity(?int $quantity) : self /** * Gets order_id. + * + * @return null|string */ public function getOrderId() : ?string { @@ -345,6 +343,8 @@ public function setOrderId(?string $order_id) : self /** * Gets item_status. + * + * @return null|string */ public function getItemStatus() : ?string { @@ -365,6 +365,8 @@ public function setItemStatus(?string $item_status) : self /** * Gets brand_name. + * + * @return null|string */ public function getBrandName() : ?string { @@ -385,6 +387,8 @@ public function setBrandName(?string $brand_name) : self /** * Gets item_delivery. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\ItemDelivery */ public function getItemDelivery() : ?ItemDelivery { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/AvailabilityRecord.php b/src/AmazonPHP/SellingPartner/Model/Services/AvailabilityRecord.php index 01a81a8ad..b71d7c7c6 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/AvailabilityRecord.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/AvailabilityRecord.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets start_time. + * + * @return \DateTimeInterface */ public function getStartTime() : \DateTimeInterface { @@ -236,6 +228,8 @@ public function setStartTime(\DateTimeInterface $start_time) : self /** * Gets end_time. + * + * @return \DateTimeInterface */ public function getEndTime() : \DateTimeInterface { @@ -256,6 +250,8 @@ public function setEndTime(\DateTimeInterface $end_time) : self /** * Gets recurrence. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\Recurrence */ public function getRecurrence() : ?Recurrence { @@ -276,6 +272,8 @@ public function setRecurrence(?Recurrence $recurrence) : self /** * Gets capacity. + * + * @return null|int */ public function getCapacity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/Buyer.php b/src/AmazonPHP/SellingPartner/Model/Services/Buyer.php index ac9e1e2a7..c2d18e724 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/Buyer.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/Buyer.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -204,6 +194,8 @@ public function validate() : void /** * Gets buyer_id. + * + * @return null|string */ public function getBuyerId() : ?string { @@ -224,6 +216,8 @@ public function setBuyerId(?string $buyer_id) : self /** * Gets name. + * + * @return null|string */ public function getName() : ?string { @@ -244,6 +238,8 @@ public function setName(?string $name) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { @@ -264,6 +260,8 @@ public function setPhone(?string $phone) : self /** * Gets is_prime_member. + * + * @return null|bool */ public function getIsPrimeMember() : ?bool { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/CancelReservationResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/CancelReservationResponse.php index c5cc9a59f..23dec149a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/CancelReservationResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/CancelReservationResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Services/CancelServiceJobByServiceJobIdResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/CancelServiceJobByServiceJobIdResponse.php index a1b1b64fa..80945f238 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/CancelServiceJobByServiceJobIdResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/CancelServiceJobByServiceJobIdResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Services/CompleteServiceJobByServiceJobIdResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/CompleteServiceJobByServiceJobIdResponse.php index e207b635d..d47bc8215 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/CompleteServiceJobByServiceJobIdResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/CompleteServiceJobByServiceJobIdResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationRecord.php b/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationRecord.php index 7a98e0eca..f3cebd444 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationRecord.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationRecord.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets reservation. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\Reservation */ public function getReservation() : ?Reservation { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationRequest.php b/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationRequest.php index 6348350c0..b53578799 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets resource_id. + * + * @return string */ public function getResourceId() : string { @@ -218,6 +210,8 @@ public function setResourceId(string $resource_id) : self /** * Gets reservation. + * + * @return \AmazonPHP\SellingPartner\Model\Services\Reservation */ public function getReservation() : Reservation { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationResponse.php index 2c1183bf2..c752ebd33 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/CreateReservationResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\CreateReservationRecord */ public function getPayload() : ?CreateReservationRecord { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/CreateServiceDocumentUploadDestination.php b/src/AmazonPHP/SellingPartner/Model/Services/CreateServiceDocumentUploadDestination.php index 0d8a22692..cbfd1a51b 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/CreateServiceDocumentUploadDestination.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/CreateServiceDocumentUploadDestination.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\ServiceDocumentUploadDestination */ public function getPayload() : ?ServiceDocumentUploadDestination { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/EncryptionDetails.php b/src/AmazonPHP/SellingPartner/Model/Services/EncryptionDetails.php index 0a031379f..ac805e5cb 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/EncryptionDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/EncryptionDetails.php @@ -118,8 +118,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -128,8 +126,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -139,8 +135,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -149,8 +143,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -159,8 +151,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -172,7 +162,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -232,6 +222,8 @@ public function validate() : void /** * Gets standard. + * + * @return string */ public function getStandard() : string { @@ -252,6 +244,8 @@ public function setStandard(string $standard) : self /** * Gets initialization_vector. + * + * @return string */ public function getInitializationVector() : string { @@ -272,6 +266,8 @@ public function setInitializationVector(string $initialization_vector) : self /** * Gets key. + * + * @return string */ public function getKey() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/Error.php b/src/AmazonPHP/SellingPartner/Model/Services/Error.php index 9f275534c..a8577262b 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/Error.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -237,6 +227,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -257,6 +249,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -277,6 +271,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { @@ -297,6 +293,8 @@ public function setDetails(?string $details) : self /** * Gets error_level. + * + * @return null|string */ public function getErrorLevel() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/FixedSlot.php b/src/AmazonPHP/SellingPartner/Model/Services/FixedSlot.php index 4027e584a..4c156b4b9 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/FixedSlot.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/FixedSlot.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -207,6 +197,8 @@ public function validate() : void /** * Gets start_date_time. + * + * @return null|\DateTimeInterface */ public function getStartDateTime() : ?\DateTimeInterface { @@ -227,6 +219,8 @@ public function setStartDateTime(?\DateTimeInterface $start_date_time) : self /** * Gets scheduled_capacity. + * + * @return null|int */ public function getScheduledCapacity() : ?int { @@ -247,6 +241,8 @@ public function setScheduledCapacity(?int $scheduled_capacity) : self /** * Gets available_capacity. + * + * @return null|int */ public function getAvailableCapacity() : ?int { @@ -267,6 +263,8 @@ public function setAvailableCapacity(?int $available_capacity) : self /** * Gets encumbered_capacity. + * + * @return null|int */ public function getEncumberedCapacity() : ?int { @@ -287,6 +285,8 @@ public function setEncumberedCapacity(?int $encumbered_capacity) : self /** * Gets reserved_capacity. + * + * @return null|int */ public function getReservedCapacity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacity.php b/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacity.php index 3d1e9abdc..7fa4e3ee2 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacity.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacity.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -201,6 +191,8 @@ public function validate() : void /** * Gets resource_id. + * + * @return null|string */ public function getResourceId() : ?string { @@ -221,6 +213,8 @@ public function setResourceId(?string $resource_id) : self /** * Gets slot_duration. + * + * @return null|float */ public function getSlotDuration() : ?float { @@ -263,6 +257,8 @@ public function setCapacities(?array $capacities) : self /** * Gets next_page_token. + * + * @return null|string */ public function getNextPageToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacityErrors.php b/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacityErrors.php index 8bd1620ee..fb410669c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacityErrors.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacityErrors.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacityQuery.php b/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacityQuery.php index d5a0cfa0d..2a5fbebdb 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacityQuery.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/FixedSlotCapacityQuery.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -230,6 +220,8 @@ public function setCapacityTypes(?array $capacity_types) : self /** * Gets slot_duration. + * + * @return null|float */ public function getSlotDuration() : ?float { @@ -250,6 +242,8 @@ public function setSlotDuration(?float $slot_duration) : self /** * Gets start_date_time. + * + * @return \DateTimeInterface */ public function getStartDateTime() : \DateTimeInterface { @@ -270,6 +264,8 @@ public function setStartDateTime(\DateTimeInterface $start_date_time) : self /** * Gets end_date_time. + * + * @return \DateTimeInterface */ public function getEndDateTime() : \DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/FulfillmentDocument.php b/src/AmazonPHP/SellingPartner/Model/Services/FulfillmentDocument.php index a51b97c98..826bcfd5c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/FulfillmentDocument.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/FulfillmentDocument.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets upload_destination_id. + * + * @return null|string */ public function getUploadDestinationId() : ?string { @@ -209,6 +201,8 @@ public function setUploadDestinationId(?string $upload_destination_id) : self /** * Gets content_sha256. + * + * @return null|string */ public function getContentSha256() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/FulfillmentTime.php b/src/AmazonPHP/SellingPartner/Model/Services/FulfillmentTime.php index 70e771a57..c3849985b 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/FulfillmentTime.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/FulfillmentTime.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets start_time. + * + * @return null|\DateTimeInterface */ public function getStartTime() : ?\DateTimeInterface { @@ -209,6 +201,8 @@ public function setStartTime(?\DateTimeInterface $start_time) : self /** * Gets end_time. + * + * @return null|\DateTimeInterface */ public function getEndTime() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/GetAppointmentSlotsResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/GetAppointmentSlotsResponse.php index bb14732b2..12abad638 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/GetAppointmentSlotsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/GetAppointmentSlotsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\AppointmentSlotReport */ public function getPayload() : ?AppointmentSlotReport { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/GetServiceJobByServiceJobIdResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/GetServiceJobByServiceJobIdResponse.php index a1a650591..51f191753 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/GetServiceJobByServiceJobIdResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/GetServiceJobByServiceJobIdResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\ServiceJob */ public function getPayload() : ?ServiceJob { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/GetServiceJobsResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/GetServiceJobsResponse.php index 2db11ea70..c1515cf7c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/GetServiceJobsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/GetServiceJobsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\JobListing */ public function getPayload() : ?JobListing { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/ItemDelivery.php b/src/AmazonPHP/SellingPartner/Model/Services/ItemDelivery.php index adfe3754b..8952648ec 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/ItemDelivery.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/ItemDelivery.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets estimated_delivery_date. + * + * @return null|\DateTimeInterface */ public function getEstimatedDeliveryDate() : ?\DateTimeInterface { @@ -212,6 +204,8 @@ public function setEstimatedDeliveryDate(?\DateTimeInterface $estimated_delivery /** * Gets item_delivery_promise. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\ItemDeliveryPromise */ public function getItemDeliveryPromise() : ?ItemDeliveryPromise { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/ItemDeliveryPromise.php b/src/AmazonPHP/SellingPartner/Model/Services/ItemDeliveryPromise.php index 8de3aeeee..cb23b0480 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/ItemDeliveryPromise.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/ItemDeliveryPromise.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets start_time. + * + * @return null|\DateTimeInterface */ public function getStartTime() : ?\DateTimeInterface { @@ -209,6 +201,8 @@ public function setStartTime(?\DateTimeInterface $start_time) : self /** * Gets end_time. + * + * @return null|\DateTimeInterface */ public function getEndTime() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/JobListing.php b/src/AmazonPHP/SellingPartner/Model/Services/JobListing.php index 9f45feb0f..93006c1ff 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/JobListing.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/JobListing.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -201,6 +191,8 @@ public function validate() : void /** * Gets total_result_size. + * + * @return null|int */ public function getTotalResultSize() : ?int { @@ -221,6 +213,8 @@ public function setTotalResultSize(?int $total_result_size) : self /** * Gets next_page_token. + * + * @return null|string */ public function getNextPageToken() : ?string { @@ -241,6 +235,8 @@ public function setNextPageToken(?string $next_page_token) : self /** * Gets previous_page_token. + * + * @return null|string */ public function getPreviousPageToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/Poa.php b/src/AmazonPHP/SellingPartner/Model/Services/Poa.php index 93f15dd41..385c9d341 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/Poa.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/Poa.php @@ -136,8 +136,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -146,8 +144,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -157,8 +153,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -167,8 +161,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -177,8 +169,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -190,7 +180,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -253,6 +243,8 @@ public function validate() : void /** * Gets appointment_time. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\AppointmentTime */ public function getAppointmentTime() : ?AppointmentTime { @@ -295,6 +287,8 @@ public function setTechnicians(?array $technicians) : self /** * Gets uploading_technician. + * + * @return null|string */ public function getUploadingTechnician() : ?string { @@ -315,6 +309,8 @@ public function setUploadingTechnician(?string $uploading_technician) : self /** * Gets upload_time. + * + * @return null|\DateTimeInterface */ public function getUploadTime() : ?\DateTimeInterface { @@ -335,6 +331,8 @@ public function setUploadTime(?\DateTimeInterface $upload_time) : self /** * Gets poa_type. + * + * @return null|string */ public function getPoaType() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/RangeCapacity.php b/src/AmazonPHP/SellingPartner/Model/Services/RangeCapacity.php index f951fca4e..027d88e0b 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/RangeCapacity.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/RangeCapacity.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets capacity_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\CapacityType */ public function getCapacityType() : ?CapacityType { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/RangeSlot.php b/src/AmazonPHP/SellingPartner/Model/Services/RangeSlot.php index b5f1e2c7d..20c5c476d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/RangeSlot.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/RangeSlot.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets start_date_time. + * + * @return null|\DateTimeInterface */ public function getStartDateTime() : ?\DateTimeInterface { @@ -215,6 +207,8 @@ public function setStartDateTime(?\DateTimeInterface $start_date_time) : self /** * Gets end_date_time. + * + * @return null|\DateTimeInterface */ public function getEndDateTime() : ?\DateTimeInterface { @@ -235,6 +229,8 @@ public function setEndDateTime(?\DateTimeInterface $end_date_time) : self /** * Gets capacity. + * + * @return null|int */ public function getCapacity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacity.php b/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacity.php index 332675268..559710c39 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacity.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacity.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets resource_id. + * + * @return null|string */ public function getResourceId() : ?string { @@ -237,6 +229,8 @@ public function setCapacities(?array $capacities) : self /** * Gets next_page_token. + * + * @return null|string */ public function getNextPageToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacityErrors.php b/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacityErrors.php index 95d2dd9e4..67bbc4056 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacityErrors.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacityErrors.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacityQuery.php b/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacityQuery.php index 481fa909b..110863021 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacityQuery.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/RangeSlotCapacityQuery.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function setCapacityTypes(?array $capacity_types) : self /** * Gets start_date_time. + * + * @return \DateTimeInterface */ public function getStartDateTime() : \DateTimeInterface { @@ -244,6 +236,8 @@ public function setStartDateTime(\DateTimeInterface $start_date_time) : self /** * Gets end_date_time. + * + * @return \DateTimeInterface */ public function getEndDateTime() : \DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/Recurrence.php b/src/AmazonPHP/SellingPartner/Model/Services/Recurrence.php index 5671f07bc..761738a36 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/Recurrence.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/Recurrence.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets end_time. + * + * @return \DateTimeInterface */ public function getEndTime() : \DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/RescheduleAppointmentRequest.php b/src/AmazonPHP/SellingPartner/Model/Services/RescheduleAppointmentRequest.php index 29c6aa7d2..c32392f53 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/RescheduleAppointmentRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/RescheduleAppointmentRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets appointment_time. + * + * @return \AmazonPHP\SellingPartner\Model\Services\AppointmentTimeInput */ public function getAppointmentTime() : AppointmentTimeInput { @@ -218,6 +210,8 @@ public function setAppointmentTime(AppointmentTimeInput $appointment_time) : sel /** * Gets reschedule_reason_code. + * + * @return string */ public function getRescheduleReasonCode() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/Reservation.php b/src/AmazonPHP/SellingPartner/Model/Services/Reservation.php index cc03a3a64..52512360d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/Reservation.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/Reservation.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -242,6 +232,8 @@ public function validate() : void /** * Gets reservation_id. + * + * @return null|string */ public function getReservationId() : ?string { @@ -262,6 +254,8 @@ public function setReservationId(?string $reservation_id) : self /** * Gets type. + * + * @return string */ public function getType() : string { @@ -282,6 +276,8 @@ public function setType(string $type) : self /** * Gets availability. + * + * @return \AmazonPHP\SellingPartner\Model\Services\AvailabilityRecord */ public function getAvailability() : AvailabilityRecord { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/ScopeOfWork.php b/src/AmazonPHP/SellingPartner/Model/Services/ScopeOfWork.php index 24902dd10..e928bd5d3 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/ScopeOfWork.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/ScopeOfWork.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -201,6 +191,8 @@ public function validate() : void /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -221,6 +213,8 @@ public function setAsin(?string $asin) : self /** * Gets title. + * + * @return null|string */ public function getTitle() : ?string { @@ -241,6 +235,8 @@ public function setTitle(?string $title) : self /** * Gets quantity. + * + * @return null|int */ public function getQuantity() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/Seller.php b/src/AmazonPHP/SellingPartner/Model/Services/Seller.php index c203f1799..40b823ab6 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/Seller.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/Seller.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets seller_id. + * + * @return null|string */ public function getSellerId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/ServiceDocumentUploadDestination.php b/src/AmazonPHP/SellingPartner/Model/Services/ServiceDocumentUploadDestination.php index 6afd59efc..7b1ec63e0 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/ServiceDocumentUploadDestination.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/ServiceDocumentUploadDestination.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -214,6 +204,8 @@ public function validate() : void /** * Gets upload_destination_id. + * + * @return string */ public function getUploadDestinationId() : string { @@ -234,6 +226,8 @@ public function setUploadDestinationId(string $upload_destination_id) : self /** * Gets url. + * + * @return string */ public function getUrl() : string { @@ -254,6 +248,8 @@ public function setUrl(string $url) : self /** * Gets encryption_details. + * + * @return \AmazonPHP\SellingPartner\Model\Services\EncryptionDetails */ public function getEncryptionDetails() : EncryptionDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/ServiceJob.php b/src/AmazonPHP/SellingPartner/Model/Services/ServiceJob.php index b4a1c3e7e..4487e5701 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/ServiceJob.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/ServiceJob.php @@ -196,8 +196,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -206,8 +204,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -217,8 +213,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -227,8 +221,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -237,8 +229,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -250,7 +240,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -352,6 +342,8 @@ public function validate() : void /** * Gets create_time. + * + * @return null|\DateTimeInterface */ public function getCreateTime() : ?\DateTimeInterface { @@ -372,6 +364,8 @@ public function setCreateTime(?\DateTimeInterface $create_time) : self /** * Gets service_job_id. + * + * @return null|string */ public function getServiceJobId() : ?string { @@ -392,6 +386,8 @@ public function setServiceJobId(?string $service_job_id) : self /** * Gets service_job_status. + * + * @return null|string */ public function getServiceJobStatus() : ?string { @@ -412,6 +408,8 @@ public function setServiceJobStatus(?string $service_job_status) : self /** * Gets scope_of_work. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\ScopeOfWork */ public function getScopeOfWork() : ?ScopeOfWork { @@ -432,6 +430,8 @@ public function setScopeOfWork(?ScopeOfWork $scope_of_work) : self /** * Gets seller. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\Seller */ public function getSeller() : ?Seller { @@ -452,6 +452,8 @@ public function setSeller(?Seller $seller) : self /** * Gets service_job_provider. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\ServiceJobProvider */ public function getServiceJobProvider() : ?ServiceJobProvider { @@ -516,6 +518,8 @@ public function setAppointments(?array $appointments) : self /** * Gets service_order_id. + * + * @return null|string */ public function getServiceOrderId() : ?string { @@ -536,6 +540,8 @@ public function setServiceOrderId(?string $service_order_id) : self /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -556,6 +562,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets store_id. + * + * @return null|string */ public function getStoreId() : ?string { @@ -576,6 +584,8 @@ public function setStoreId(?string $store_id) : self /** * Gets buyer. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\Buyer */ public function getBuyer() : ?Buyer { @@ -618,6 +628,8 @@ public function setAssociatedItems(?array $associated_items) : self /** * Gets service_location. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\ServiceLocation */ public function getServiceLocation() : ?ServiceLocation { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/ServiceJobProvider.php b/src/AmazonPHP/SellingPartner/Model/Services/ServiceJobProvider.php index 6d4e80d5f..00b7c3a7c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/ServiceJobProvider.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/ServiceJobProvider.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets service_job_provider_id. + * + * @return null|string */ public function getServiceJobProviderId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/ServiceLocation.php b/src/AmazonPHP/SellingPartner/Model/Services/ServiceLocation.php index b97813919..d23aeb26a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/ServiceLocation.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/ServiceLocation.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets service_location_type. + * + * @return null|string */ public function getServiceLocationType() : ?string { @@ -244,6 +236,8 @@ public function setServiceLocationType(?string $service_location_type) : self /** * Gets address. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\Address */ public function getAddress() : ?Address { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/ServiceUploadDocument.php b/src/AmazonPHP/SellingPartner/Model/Services/ServiceUploadDocument.php index 63e5288e3..4c2faf462 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/ServiceUploadDocument.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/ServiceUploadDocument.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -255,6 +245,8 @@ public function validate() : void /** * Gets content_type. + * + * @return string */ public function getContentType() : string { @@ -275,6 +267,8 @@ public function setContentType(string $content_type) : self /** * Gets content_length. + * + * @return float */ public function getContentLength() : float { @@ -295,6 +289,8 @@ public function setContentLength(float $content_length) : self /** * Gets content_md5. + * + * @return null|string */ public function getContentMd5() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/SetAppointmentFulfillmentDataRequest.php b/src/AmazonPHP/SellingPartner/Model/Services/SetAppointmentFulfillmentDataRequest.php index 536a1d10d..33835c587 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/SetAppointmentFulfillmentDataRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/SetAppointmentFulfillmentDataRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets fulfillment_time. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\FulfillmentTime */ public function getFulfillmentTime() : ?FulfillmentTime { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/SetAppointmentResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/SetAppointmentResponse.php index dc58e8031..efe36c7ba 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/SetAppointmentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/SetAppointmentResponse.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets appointment_id. + * + * @return null|string */ public function getAppointmentId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/Technician.php b/src/AmazonPHP/SellingPartner/Model/Services/Technician.php index ac4432351..487024a73 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/Technician.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/Technician.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets technician_id. + * + * @return null|string */ public function getTechnicianId() : ?string { @@ -216,6 +208,8 @@ public function setTechnicianId(?string $technician_id) : self /** * Gets name. + * + * @return null|string */ public function getName() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationRecord.php b/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationRecord.php index 99221e932..91d8b21ca 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationRecord.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationRecord.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets reservation. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\Reservation */ public function getReservation() : ?Reservation { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationRequest.php b/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationRequest.php index 2954f192e..12da77f69 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets resource_id. + * + * @return string */ public function getResourceId() : string { @@ -218,6 +210,8 @@ public function setResourceId(string $resource_id) : self /** * Gets reservation. + * + * @return \AmazonPHP\SellingPartner\Model\Services\Reservation */ public function getReservation() : Reservation { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationResponse.php index ab2906097..29bf4782c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/UpdateReservationResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\UpdateReservationRecord */ public function getPayload() : ?UpdateReservationRecord { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleRecord.php b/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleRecord.php index 1c403fe6e..352df7ec9 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleRecord.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleRecord.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets availability. + * + * @return null|\AmazonPHP\SellingPartner\Model\Services\AvailabilityRecord */ public function getAvailability() : ?AvailabilityRecord { diff --git a/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleRequest.php b/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleRequest.php index 9bbb01636..307809f1d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleResponse.php b/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleResponse.php index b95a97aac..d80a09ddf 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/UpdateScheduleResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Services/Warning.php b/src/AmazonPHP/SellingPartner/Model/Services/Warning.php index 8e247c6d3..5b9734045 100644 --- a/src/AmazonPHP/SellingPartner/Model/Services/Warning.php +++ b/src/AmazonPHP/SellingPartner/Model/Services/Warning.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Address.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Address.php index fce90ff18..237bf42c6 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Address.php @@ -170,8 +170,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -180,8 +178,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -191,8 +187,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -201,8 +195,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -211,8 +203,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -224,7 +214,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -249,6 +239,8 @@ public function validate() : void /** * Gets name. + * + * @return null|string */ public function getName() : ?string { @@ -269,6 +261,8 @@ public function setName(?string $name) : self /** * Gets address_line1. + * + * @return null|string */ public function getAddressLine1() : ?string { @@ -289,6 +283,8 @@ public function setAddressLine1(?string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -309,6 +305,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -329,6 +327,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets city. + * + * @return null|string */ public function getCity() : ?string { @@ -349,6 +349,8 @@ public function setCity(?string $city) : self /** * Gets county. + * + * @return null|string */ public function getCounty() : ?string { @@ -369,6 +371,8 @@ public function setCounty(?string $county) : self /** * Gets district. + * + * @return null|string */ public function getDistrict() : ?string { @@ -389,6 +393,8 @@ public function setDistrict(?string $district) : self /** * Gets state_or_region. + * + * @return null|string */ public function getStateOrRegion() : ?string { @@ -409,6 +415,8 @@ public function setStateOrRegion(?string $state_or_region) : self /** * Gets postal_code. + * + * @return null|string */ public function getPostalCode() : ?string { @@ -429,6 +437,8 @@ public function setPostalCode(?string $postal_code) : self /** * Gets country_code. + * + * @return null|string */ public function getCountryCode() : ?string { @@ -449,6 +459,8 @@ public function setCountryCode(?string $country_code) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { @@ -469,6 +481,8 @@ public function setPhone(?string $phone) : self /** * Gets address_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\AddressTypeEnum */ public function getAddressType() : ?AddressTypeEnum { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/BuyerTaxInfo.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/BuyerTaxInfo.php index 3f6ef0b43..bfab332aa 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/BuyerTaxInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/BuyerTaxInfo.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets company_legal_name. + * + * @return null|string */ public function getCompanyLegalName() : ?string { @@ -215,6 +207,8 @@ public function setCompanyLegalName(?string $company_legal_name) : self /** * Gets taxing_region. + * + * @return null|string */ public function getTaxingRegion() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Error.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Error.php index 76c1660eb..5f39b593d 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/GetInvoiceStatusResponse.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/GetInvoiceStatusResponse.php index 7d584fa21..0474dcc33 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/GetInvoiceStatusResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/GetInvoiceStatusResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\ShipmentInvoiceStatusResponse */ public function getPayload() : ?ShipmentInvoiceStatusResponse { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/GetShipmentDetailsResponse.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/GetShipmentDetailsResponse.php index 0ae128f40..73ea064a3 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/GetShipmentDetailsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/GetShipmentDetailsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\ShipmentDetail */ public function getPayload() : ?ShipmentDetail { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/MarketplaceTaxInfo.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/MarketplaceTaxInfo.php index 240eb0946..84fabd9aa 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/MarketplaceTaxInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/MarketplaceTaxInfo.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets company_legal_name. + * + * @return null|string */ public function getCompanyLegalName() : ?string { @@ -215,6 +207,8 @@ public function setCompanyLegalName(?string $company_legal_name) : self /** * Gets taxing_region. + * + * @return null|string */ public function getTaxingRegion() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Money.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Money.php index 6df687177..9732a568a 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Money.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/Money.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return null|string */ public function getCurrencyCode() : ?string { @@ -209,6 +201,8 @@ public function setCurrencyCode(?string $currency_code) : self /** * Gets amount. + * + * @return null|string */ public function getAmount() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentDetail.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentDetail.php index 6cbd8ec63..22d7b7af7 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentDetail.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentDetail.php @@ -182,8 +182,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -192,8 +190,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -203,8 +199,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -213,8 +207,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -223,8 +215,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -236,7 +226,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -272,6 +262,8 @@ public function validate() : void /** * Gets warehouse_id. + * + * @return null|string */ public function getWarehouseId() : ?string { @@ -292,6 +284,8 @@ public function setWarehouseId(?string $warehouse_id) : self /** * Gets amazon_order_id. + * + * @return null|string */ public function getAmazonOrderId() : ?string { @@ -312,6 +306,8 @@ public function setAmazonOrderId(?string $amazon_order_id) : self /** * Gets amazon_shipment_id. + * + * @return null|string */ public function getAmazonShipmentId() : ?string { @@ -332,6 +328,8 @@ public function setAmazonShipmentId(?string $amazon_shipment_id) : self /** * Gets purchase_date. + * + * @return null|\DateTimeInterface */ public function getPurchaseDate() : ?\DateTimeInterface { @@ -352,6 +350,8 @@ public function setPurchaseDate(?\DateTimeInterface $purchase_date) : self /** * Gets shipping_address. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\Address */ public function getShippingAddress() : ?Address { @@ -394,6 +394,8 @@ public function setPaymentMethodDetails(?array $payment_method_details) : self /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -414,6 +416,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets seller_id. + * + * @return null|string */ public function getSellerId() : ?string { @@ -434,6 +438,8 @@ public function setSellerId(?string $seller_id) : self /** * Gets buyer_name. + * + * @return null|string */ public function getBuyerName() : ?string { @@ -454,6 +460,8 @@ public function setBuyerName(?string $buyer_name) : self /** * Gets buyer_county. + * + * @return null|string */ public function getBuyerCounty() : ?string { @@ -474,6 +482,8 @@ public function setBuyerCounty(?string $buyer_county) : self /** * Gets buyer_tax_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\BuyerTaxInfo */ public function getBuyerTaxInfo() : ?BuyerTaxInfo { @@ -494,6 +504,8 @@ public function setBuyerTaxInfo(?BuyerTaxInfo $buyer_tax_info) : self /** * Gets marketplace_tax_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\MarketplaceTaxInfo */ public function getMarketplaceTaxInfo() : ?MarketplaceTaxInfo { @@ -514,6 +526,8 @@ public function setMarketplaceTaxInfo(?MarketplaceTaxInfo $marketplace_tax_info) /** * Gets seller_display_name. + * + * @return null|string */ public function getSellerDisplayName() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentInvoiceStatusInfo.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentInvoiceStatusInfo.php index e99a7949c..463825251 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentInvoiceStatusInfo.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentInvoiceStatusInfo.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets amazon_shipment_id. + * + * @return null|string */ public function getAmazonShipmentId() : ?string { @@ -209,6 +201,8 @@ public function setAmazonShipmentId(?string $amazon_shipment_id) : self /** * Gets invoice_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\ShipmentInvoiceStatus */ public function getInvoiceStatus() : ?ShipmentInvoiceStatus { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentInvoiceStatusResponse.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentInvoiceStatusResponse.php index 305a62714..9c43eed5a 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentInvoiceStatusResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentInvoiceStatusResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets shipments. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\ShipmentInvoiceStatusInfo */ public function getShipments() : ?ShipmentInvoiceStatusInfo { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentItem.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentItem.php index 8201f4b16..95bb77396 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentItem.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/ShipmentItem.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -262,6 +252,8 @@ public function validate() : void /** * Gets asin. + * + * @return null|string */ public function getAsin() : ?string { @@ -282,6 +274,8 @@ public function setAsin(?string $asin) : self /** * Gets seller_sku. + * + * @return null|string */ public function getSellerSku() : ?string { @@ -302,6 +296,8 @@ public function setSellerSku(?string $seller_sku) : self /** * Gets order_item_id. + * + * @return null|string */ public function getOrderItemId() : ?string { @@ -322,6 +318,8 @@ public function setOrderItemId(?string $order_item_id) : self /** * Gets title. + * + * @return null|string */ public function getTitle() : ?string { @@ -342,6 +340,8 @@ public function setTitle(?string $title) : self /** * Gets quantity_ordered. + * + * @return null|float */ public function getQuantityOrdered() : ?float { @@ -362,6 +362,8 @@ public function setQuantityOrdered(?float $quantity_ordered) : self /** * Gets item_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\Money */ public function getItemPrice() : ?Money { @@ -382,6 +384,8 @@ public function setItemPrice(?Money $item_price) : self /** * Gets shipping_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\Money */ public function getShippingPrice() : ?Money { @@ -402,6 +406,8 @@ public function setShippingPrice(?Money $shipping_price) : self /** * Gets gift_wrap_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\Money */ public function getGiftWrapPrice() : ?Money { @@ -422,6 +428,8 @@ public function setGiftWrapPrice(?Money $gift_wrap_price) : self /** * Gets shipping_discount. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\Money */ public function getShippingDiscount() : ?Money { @@ -442,6 +450,8 @@ public function setShippingDiscount(?Money $shipping_discount) : self /** * Gets promotion_discount. + * + * @return null|\AmazonPHP\SellingPartner\Model\ShipmentInvoicing\Money */ public function getPromotionDiscount() : ?Money { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/SubmitInvoiceRequest.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/SubmitInvoiceRequest.php index e11a0929e..482423531 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/SubmitInvoiceRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/SubmitInvoiceRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets invoice_content. + * + * @return string */ public function getInvoiceContent() : string { @@ -222,6 +214,8 @@ public function setInvoiceContent(string $invoice_content) : self /** * Gets marketplace_id. + * + * @return null|string */ public function getMarketplaceId() : ?string { @@ -242,6 +236,8 @@ public function setMarketplaceId(?string $marketplace_id) : self /** * Gets content_md5_value. + * + * @return string */ public function getContentMd5Value() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/SubmitInvoiceResponse.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/SubmitInvoiceResponse.php index 29823b8db..ef75dc4ff 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/SubmitInvoiceResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/SubmitInvoiceResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/TaxClassification.php b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/TaxClassification.php index 742d02ff4..90b0d89d6 100644 --- a/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/TaxClassification.php +++ b/src/AmazonPHP/SellingPartner/Model/ShipmentInvoicing/TaxClassification.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets name. + * + * @return null|string */ public function getName() : ?string { @@ -209,6 +201,8 @@ public function setName(?string $name) : self /** * Gets value. + * + * @return null|string */ public function getValue() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/AcceptedRate.php b/src/AmazonPHP/SellingPartner/Model/Shipping/AcceptedRate.php index 270c1ecaf..e1bb037ac 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/AcceptedRate.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/AcceptedRate.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets total_charge. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\Currency */ public function getTotalCharge() : ?Currency { @@ -232,6 +224,8 @@ public function setTotalCharge(?Currency $total_charge) : self /** * Gets billed_weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\Weight */ public function getBilledWeight() : ?Weight { @@ -252,6 +246,8 @@ public function setBilledWeight(?Weight $billed_weight) : self /** * Gets service_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\ServiceType */ public function getServiceType() : ?ServiceType { @@ -272,6 +268,8 @@ public function setServiceType(?ServiceType $service_type) : self /** * Gets promise. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\ShippingPromiseSet */ public function getPromise() : ?ShippingPromiseSet { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Account.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Account.php index bcc94d272..a11182d68 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Account.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Account.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -190,6 +180,8 @@ public function validate() : void /** * Gets account_id. + * + * @return string */ public function getAccountId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Address.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Address.php index d89cf0c37..6353d1937 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Address.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -338,6 +328,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -358,6 +350,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -378,6 +372,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -398,6 +394,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -418,6 +416,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets state_or_region. + * + * @return string */ public function getStateOrRegion() : string { @@ -438,6 +438,8 @@ public function setStateOrRegion(string $state_or_region) : self /** * Gets city. + * + * @return string */ public function getCity() : string { @@ -458,6 +460,8 @@ public function setCity(string $city) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -478,6 +482,8 @@ public function setCountryCode(string $country_code) : self /** * Gets postal_code. + * + * @return string */ public function getPostalCode() : string { @@ -498,6 +504,8 @@ public function setPostalCode(string $postal_code) : self /** * Gets email. + * + * @return null|string */ public function getEmail() : ?string { @@ -540,6 +548,8 @@ public function setCopyEmails(?array $copy_emails) : self /** * Gets phone_number. + * + * @return null|string */ public function getPhoneNumber() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/CancelShipmentResponse.php b/src/AmazonPHP/SellingPartner/Model/Shipping/CancelShipmentResponse.php index 17034ce73..f517940d1 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/CancelShipmentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/CancelShipmentResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Container.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Container.php index f457ab475..2cecdd9bd 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Container.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Container.php @@ -136,8 +136,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -146,8 +144,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -157,8 +153,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -167,8 +161,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -177,8 +169,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -190,7 +180,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -268,6 +258,8 @@ public function validate() : void /** * Gets container_type. + * + * @return null|string */ public function getContainerType() : ?string { @@ -288,6 +280,8 @@ public function setContainerType(?string $container_type) : self /** * Gets container_reference_id. + * + * @return string */ public function getContainerReferenceId() : string { @@ -308,6 +302,8 @@ public function setContainerReferenceId(string $container_reference_id) : self /** * Gets value. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Currency */ public function getValue() : Currency { @@ -328,6 +324,8 @@ public function setValue(Currency $value) : self /** * Gets dimensions. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Dimensions */ public function getDimensions() : Dimensions { @@ -370,6 +368,8 @@ public function setItems(array $items) : self /** * Gets weight. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Weight */ public function getWeight() : Weight { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/ContainerItem.php b/src/AmazonPHP/SellingPartner/Model/Shipping/ContainerItem.php index ce69b25d1..4e55a913e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/ContainerItem.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/ContainerItem.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets quantity. + * + * @return float */ public function getQuantity() : float { @@ -244,6 +236,8 @@ public function setQuantity(float $quantity) : self /** * Gets unit_price. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Currency */ public function getUnitPrice() : Currency { @@ -264,6 +258,8 @@ public function setUnitPrice(Currency $unit_price) : self /** * Gets unit_weight. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Weight */ public function getUnitWeight() : Weight { @@ -284,6 +280,8 @@ public function setUnitWeight(Weight $unit_weight) : self /** * Gets title. + * + * @return string */ public function getTitle() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/ContainerSpecification.php b/src/AmazonPHP/SellingPartner/Model/Shipping/ContainerSpecification.php index dbd89e927..d554b1732 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/ContainerSpecification.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/ContainerSpecification.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets dimensions. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Dimensions */ public function getDimensions() : Dimensions { @@ -220,6 +212,8 @@ public function setDimensions(Dimensions $dimensions) : self /** * Gets weight. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Weight */ public function getWeight() : Weight { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentRequest.php b/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentRequest.php index ba373c7da..b6f994dc7 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentRequest.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets client_reference_id. + * + * @return string */ public function getClientReferenceId() : string { @@ -244,6 +236,8 @@ public function setClientReferenceId(string $client_reference_id) : self /** * Gets ship_to. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Address */ public function getShipTo() : Address { @@ -264,6 +258,8 @@ public function setShipTo(Address $ship_to) : self /** * Gets ship_from. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Address */ public function getShipFrom() : Address { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentResponse.php b/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentResponse.php index dcde7faf7..7007a4adc 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\CreateShipmentResult */ public function getPayload() : ?CreateShipmentResult { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentResult.php b/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentResult.php index fc9d0416a..86019ea49 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentResult.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/CreateShipmentResult.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets shipment_id. + * + * @return string */ public function getShipmentId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Currency.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Currency.php index e01c1f53a..d385f9249 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Currency.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Currency.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -204,6 +194,8 @@ public function validate() : void /** * Gets value. + * + * @return float */ public function getValue() : float { @@ -224,6 +216,8 @@ public function setValue(float $value) : self /** * Gets unit. + * + * @return string */ public function getUnit() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Dimensions.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Dimensions.php index 8c9f1e732..6889f57ad 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Dimensions.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Dimensions.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -245,6 +235,8 @@ public function validate() : void /** * Gets length. + * + * @return float */ public function getLength() : float { @@ -265,6 +257,8 @@ public function setLength(float $length) : self /** * Gets width. + * + * @return float */ public function getWidth() : float { @@ -285,6 +279,8 @@ public function setWidth(float $width) : self /** * Gets height. + * + * @return float */ public function getHeight() : float { @@ -305,6 +301,8 @@ public function setHeight(float $height) : self /** * Gets unit. + * + * @return string */ public function getUnit() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Error.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Error.php index 41c15dcd8..8e9144352 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Event.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Event.php index 5e55777c8..245d20c6d 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Event.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Event.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -214,6 +204,8 @@ public function validate() : void /** * Gets event_code. + * + * @return string */ public function getEventCode() : string { @@ -234,6 +226,8 @@ public function setEventCode(string $event_code) : self /** * Gets event_time. + * + * @return \DateTimeInterface */ public function getEventTime() : \DateTimeInterface { @@ -254,6 +248,8 @@ public function setEventTime(\DateTimeInterface $event_time) : self /** * Gets location. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\Location */ public function getLocation() : ?Location { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/GetAccountResponse.php b/src/AmazonPHP/SellingPartner/Model/Shipping/GetAccountResponse.php index e9232c726..b030a3000 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/GetAccountResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/GetAccountResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\Account */ public function getPayload() : ?Account { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesRequest.php b/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesRequest.php index fc84c6312..38b261102 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesRequest.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -226,6 +216,8 @@ public function validate() : void /** * Gets ship_to. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Address */ public function getShipTo() : Address { @@ -246,6 +238,8 @@ public function setShipTo(Address $ship_to) : self /** * Gets ship_from. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Address */ public function getShipFrom() : Address { @@ -288,6 +282,8 @@ public function setServiceTypes(array $service_types) : self /** * Gets ship_date. + * + * @return null|\DateTimeInterface */ public function getShipDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesResponse.php b/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesResponse.php index 1e26cf30d..8286d24e7 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\GetRatesResult */ public function getPayload() : ?GetRatesResult { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesResult.php b/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesResult.php index 5c7cbf705..f9cc4707a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesResult.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/GetRatesResult.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/GetShipmentResponse.php b/src/AmazonPHP/SellingPartner/Model/Shipping/GetShipmentResponse.php index 8889aacf8..010900b8c 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/GetShipmentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/GetShipmentResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\Shipment */ public function getPayload() : ?Shipment { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/GetTrackingInformationResponse.php b/src/AmazonPHP/SellingPartner/Model/Shipping/GetTrackingInformationResponse.php index d4338fe00..7a124fe17 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/GetTrackingInformationResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/GetTrackingInformationResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\TrackingInformation */ public function getPayload() : ?TrackingInformation { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Label.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Label.php index 7daa17af6..b9cd5ba02 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Label.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Label.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets label_stream. + * + * @return null|string */ public function getLabelStream() : ?string { @@ -212,6 +204,8 @@ public function setLabelStream(?string $label_stream) : self /** * Gets label_specification. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\LabelSpecification */ public function getLabelSpecification() : ?LabelSpecification { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/LabelResult.php b/src/AmazonPHP/SellingPartner/Model/Shipping/LabelResult.php index 023c1cc2b..66d8b847a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/LabelResult.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/LabelResult.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets container_reference_id. + * + * @return null|string */ public function getContainerReferenceId() : ?string { @@ -222,6 +214,8 @@ public function setContainerReferenceId(?string $container_reference_id) : self /** * Gets tracking_id. + * + * @return null|string */ public function getTrackingId() : ?string { @@ -242,6 +236,8 @@ public function setTrackingId(?string $tracking_id) : self /** * Gets label. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\Label */ public function getLabel() : ?Label { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/LabelSpecification.php b/src/AmazonPHP/SellingPartner/Model/Shipping/LabelSpecification.php index 73885af17..014644bfa 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/LabelSpecification.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/LabelSpecification.php @@ -114,8 +114,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -124,8 +122,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -135,8 +131,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -145,8 +139,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -155,8 +147,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -168,7 +158,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -248,6 +238,8 @@ public function validate() : void /** * Gets label_format. + * + * @return string */ public function getLabelFormat() : string { @@ -268,6 +260,8 @@ public function setLabelFormat(string $label_format) : self /** * Gets label_stock_size. + * + * @return string */ public function getLabelStockSize() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Location.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Location.php index 22569e647..06b27efdc 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Location.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Location.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets state_or_region. + * + * @return null|string */ public function getStateOrRegion() : ?string { @@ -244,6 +236,8 @@ public function setStateOrRegion(?string $state_or_region) : self /** * Gets city. + * + * @return null|string */ public function getCity() : ?string { @@ -264,6 +258,8 @@ public function setCity(?string $city) : self /** * Gets country_code. + * + * @return null|string */ public function getCountryCode() : ?string { @@ -284,6 +280,8 @@ public function setCountryCode(?string $country_code) : self /** * Gets postal_code. + * + * @return null|string */ public function getPostalCode() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Party.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Party.php index 0a28c2d37..c85c37241 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Party.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Party.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets account_id. + * + * @return null|string */ public function getAccountId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsRequest.php b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsRequest.php index e219b2026..b9616b037 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets rate_id. + * + * @return string */ public function getRateId() : string { @@ -218,6 +210,8 @@ public function setRateId(string $rate_id) : self /** * Gets label_specification. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\LabelSpecification */ public function getLabelSpecification() : LabelSpecification { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsResponse.php b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsResponse.php index 477297f44..cff3c9d96 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\PurchaseLabelsResult */ public function getPayload() : ?PurchaseLabelsResult { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsResult.php b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsResult.php index 8702c5e92..bc3525479 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsResult.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseLabelsResult.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function validate() : void /** * Gets shipment_id. + * + * @return string */ public function getShipmentId() : string { @@ -238,6 +230,8 @@ public function setShipmentId(string $shipment_id) : self /** * Gets client_reference_id. + * + * @return null|string */ public function getClientReferenceId() : ?string { @@ -258,6 +252,8 @@ public function setClientReferenceId(?string $client_reference_id) : self /** * Gets accepted_rate. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\AcceptedRate */ public function getAcceptedRate() : AcceptedRate { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentRequest.php b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentRequest.php index e2a7051c7..8b81148c8 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentRequest.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -252,6 +242,8 @@ public function validate() : void /** * Gets client_reference_id. + * + * @return string */ public function getClientReferenceId() : string { @@ -272,6 +264,8 @@ public function setClientReferenceId(string $client_reference_id) : self /** * Gets ship_to. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Address */ public function getShipTo() : Address { @@ -292,6 +286,8 @@ public function setShipTo(Address $ship_to) : self /** * Gets ship_from. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Address */ public function getShipFrom() : Address { @@ -312,6 +308,8 @@ public function setShipFrom(Address $ship_from) : self /** * Gets ship_date. + * + * @return null|\DateTimeInterface */ public function getShipDate() : ?\DateTimeInterface { @@ -332,6 +330,8 @@ public function setShipDate(?\DateTimeInterface $ship_date) : self /** * Gets service_type. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\ServiceType */ public function getServiceType() : ServiceType { @@ -374,6 +374,8 @@ public function setContainers(array $containers) : self /** * Gets label_specification. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\LabelSpecification */ public function getLabelSpecification() : LabelSpecification { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentResponse.php b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentResponse.php index 8ef7ed9b8..f5b2d5238 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\PurchaseShipmentResult */ public function getPayload() : ?PurchaseShipmentResult { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentResult.php b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentResult.php index 430d46f32..8fefcf616 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentResult.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/PurchaseShipmentResult.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets shipment_id. + * + * @return string */ public function getShipmentId() : string { @@ -228,6 +220,8 @@ public function setShipmentId(string $shipment_id) : self /** * Gets service_rate. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\ServiceRate */ public function getServiceRate() : ServiceRate { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Rate.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Rate.php index eeebac3f4..58b61c717 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Rate.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Rate.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -224,6 +214,8 @@ public function validate() : void /** * Gets rate_id. + * + * @return null|string */ public function getRateId() : ?string { @@ -244,6 +236,8 @@ public function setRateId(?string $rate_id) : self /** * Gets total_charge. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\Currency */ public function getTotalCharge() : ?Currency { @@ -264,6 +258,8 @@ public function setTotalCharge(?Currency $total_charge) : self /** * Gets billed_weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\Weight */ public function getBilledWeight() : ?Weight { @@ -284,6 +280,8 @@ public function setBilledWeight(?Weight $billed_weight) : self /** * Gets expiration_time. + * + * @return null|\DateTimeInterface */ public function getExpirationTime() : ?\DateTimeInterface { @@ -304,6 +302,8 @@ public function setExpirationTime(?\DateTimeInterface $expiration_time) : self /** * Gets service_type. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\ServiceType */ public function getServiceType() : ?ServiceType { @@ -324,6 +324,8 @@ public function setServiceType(?ServiceType $service_type) : self /** * Gets promise. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\ShippingPromiseSet */ public function getPromise() : ?ShippingPromiseSet { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelRequest.php b/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelRequest.php index ad4859f2b..d51483672 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,6 +178,8 @@ public function validate() : void /** * Gets label_specification. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\LabelSpecification */ public function getLabelSpecification() : LabelSpecification { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelResponse.php b/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelResponse.php index 49372847e..af78f2cee 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\RetrieveShippingLabelResult */ public function getPayload() : ?RetrieveShippingLabelResult { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelResult.php b/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelResult.php index 7222ea5ee..b4e6a97b1 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelResult.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/RetrieveShippingLabelResult.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets label_stream. + * + * @return string */ public function getLabelStream() : string { @@ -218,6 +210,8 @@ public function setLabelStream(string $label_stream) : self /** * Gets label_specification. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\LabelSpecification */ public function getLabelSpecification() : LabelSpecification { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/ServiceRate.php b/src/AmazonPHP/SellingPartner/Model/Shipping/ServiceRate.php index a1baa11df..6095f7d5e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/ServiceRate.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/ServiceRate.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -222,6 +212,8 @@ public function validate() : void /** * Gets total_charge. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Currency */ public function getTotalCharge() : Currency { @@ -242,6 +234,8 @@ public function setTotalCharge(Currency $total_charge) : self /** * Gets billable_weight. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Weight */ public function getBillableWeight() : Weight { @@ -262,6 +256,8 @@ public function setBillableWeight(Weight $billable_weight) : self /** * Gets service_type. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\ServiceType */ public function getServiceType() : ServiceType { @@ -282,6 +278,8 @@ public function setServiceType(ServiceType $service_type) : self /** * Gets promise. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\ShippingPromiseSet */ public function getPromise() : ShippingPromiseSet { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Shipment.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Shipment.php index e005d6c75..30775f46e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Shipment.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Shipment.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -254,6 +244,8 @@ public function validate() : void /** * Gets shipment_id. + * + * @return string */ public function getShipmentId() : string { @@ -274,6 +266,8 @@ public function setShipmentId(string $shipment_id) : self /** * Gets client_reference_id. + * + * @return string */ public function getClientReferenceId() : string { @@ -294,6 +288,8 @@ public function setClientReferenceId(string $client_reference_id) : self /** * Gets ship_from. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Address */ public function getShipFrom() : Address { @@ -314,6 +310,8 @@ public function setShipFrom(Address $ship_from) : self /** * Gets ship_to. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\Address */ public function getShipTo() : Address { @@ -334,6 +332,8 @@ public function setShipTo(Address $ship_to) : self /** * Gets accepted_rate. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\AcceptedRate */ public function getAcceptedRate() : ?AcceptedRate { @@ -354,6 +354,8 @@ public function setAcceptedRate(?AcceptedRate $accepted_rate) : self /** * Gets shipper. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\Party */ public function getShipper() : ?Party { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/ShippingPromiseSet.php b/src/AmazonPHP/SellingPartner/Model/Shipping/ShippingPromiseSet.php index fe540773b..b170dccb3 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/ShippingPromiseSet.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/ShippingPromiseSet.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets delivery_window. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\TimeRange */ public function getDeliveryWindow() : ?TimeRange { @@ -216,6 +208,8 @@ public function setDeliveryWindow(?TimeRange $delivery_window) : self /** * Gets receive_window. + * + * @return null|\AmazonPHP\SellingPartner\Model\Shipping\TimeRange */ public function getReceiveWindow() : ?TimeRange { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/TimeRange.php b/src/AmazonPHP/SellingPartner/Model/Shipping/TimeRange.php index 0cb49ddb8..e38cfbcbe 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/TimeRange.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/TimeRange.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets start. + * + * @return null|\DateTimeInterface */ public function getStart() : ?\DateTimeInterface { @@ -209,6 +201,8 @@ public function setStart(?\DateTimeInterface $start) : self /** * Gets end. + * + * @return null|\DateTimeInterface */ public function getEnd() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/TrackingInformation.php b/src/AmazonPHP/SellingPartner/Model/Shipping/TrackingInformation.php index a57a56533..eda73047e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/TrackingInformation.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/TrackingInformation.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -226,6 +216,8 @@ public function validate() : void /** * Gets tracking_id. + * + * @return string */ public function getTrackingId() : string { @@ -246,6 +238,8 @@ public function setTrackingId(string $tracking_id) : self /** * Gets summary. + * + * @return \AmazonPHP\SellingPartner\Model\Shipping\TrackingSummary */ public function getSummary() : TrackingSummary { @@ -266,6 +260,8 @@ public function setSummary(TrackingSummary $summary) : self /** * Gets promised_delivery_date. + * + * @return \DateTimeInterface */ public function getPromisedDeliveryDate() : \DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/TrackingSummary.php b/src/AmazonPHP/SellingPartner/Model/Shipping/TrackingSummary.php index 2d1b17ca9..bd749f55b 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/TrackingSummary.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/TrackingSummary.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -190,6 +180,8 @@ public function validate() : void /** * Gets status. + * + * @return null|string */ public function getStatus() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Shipping/Weight.php b/src/AmazonPHP/SellingPartner/Model/Shipping/Weight.php index cb839cf29..f7f84876a 100644 --- a/src/AmazonPHP/SellingPartner/Model/Shipping/Weight.php +++ b/src/AmazonPHP/SellingPartner/Model/Shipping/Weight.php @@ -118,8 +118,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -128,8 +126,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -139,8 +135,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -149,8 +143,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -159,8 +151,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -172,7 +162,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -231,6 +221,8 @@ public function validate() : void /** * Gets unit. + * + * @return string */ public function getUnit() : string { @@ -251,6 +243,8 @@ public function setUnit(string $unit) : self /** * Gets value. + * + * @return float */ public function getValue() : float { diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/CreateProductReviewAndSellerFeedbackSolicitationResponse.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/CreateProductReviewAndSellerFeedbackSolicitationResponse.php index 554fb51a6..5d030189f 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/CreateProductReviewAndSellerFeedbackSolicitationResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/CreateProductReviewAndSellerFeedbackSolicitationResponse.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/Error.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/Error.php index e204f859f..faee0a379 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSchemaResponse.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSchemaResponse.php index 4712854d4..6c2f1b664 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSchemaResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSchemaResponse.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets _links. + * + * @return null|\AmazonPHP\SellingPartner\Model\Solicitations\GetSchemaResponseLinks */ public function getLinks() : ?GetSchemaResponseLinks { diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSchemaResponseLinks.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSchemaResponseLinks.php index ba01e0813..4d752cc86 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSchemaResponseLinks.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSchemaResponseLinks.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -188,6 +178,8 @@ public function validate() : void /** * Gets self. + * + * @return \AmazonPHP\SellingPartner\Model\Solicitations\LinkObject */ public function getSelf() : LinkObject { diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponse.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponse.php index 56419eab3..258838bba 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponse.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -212,6 +202,8 @@ public function validate() : void /** * Gets _links. + * + * @return null|\AmazonPHP\SellingPartner\Model\Solicitations\GetSolicitationActionResponseLinks */ public function getLinks() : ?GetSolicitationActionResponseLinks { @@ -232,6 +224,8 @@ public function setLinks(?GetSolicitationActionResponseLinks $_links) : self /** * Gets _embedded. + * + * @return null|\AmazonPHP\SellingPartner\Model\Solicitations\GetSolicitationActionResponseEmbedded */ public function getEmbedded() : ?GetSolicitationActionResponseEmbedded { @@ -252,6 +246,8 @@ public function setEmbedded(?GetSolicitationActionResponseEmbedded $_embedded) : /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Solicitations\SolicitationsAction */ public function getPayload() : ?SolicitationsAction { diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponseEmbedded.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponseEmbedded.php index 3052736d7..06a2dd6b8 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponseEmbedded.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponseEmbedded.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets schema. + * + * @return null|\AmazonPHP\SellingPartner\Model\Solicitations\GetSchemaResponse */ public function getSchema() : ?GetSchemaResponse { diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponseLinks.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponseLinks.php index 9dcc23627..f66dfd684 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponseLinks.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionResponseLinks.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets self. + * + * @return \AmazonPHP\SellingPartner\Model\Solicitations\LinkObject */ public function getSelf() : LinkObject { @@ -220,6 +212,8 @@ public function setSelf(LinkObject $self) : self /** * Gets schema. + * + * @return \AmazonPHP\SellingPartner\Model\Solicitations\LinkObject */ public function getSchema() : LinkObject { diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponse.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponse.php index 3631ec20a..b4dad97af 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponse.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets _links. + * + * @return null|\AmazonPHP\SellingPartner\Model\Solicitations\GetSolicitationActionsForOrderResponseLinks */ public function getLinks() : ?GetSolicitationActionsForOrderResponseLinks { @@ -222,6 +214,8 @@ public function setLinks(?GetSolicitationActionsForOrderResponseLinks $_links) : /** * Gets _embedded. + * + * @return null|\AmazonPHP\SellingPartner\Model\Solicitations\GetSolicitationActionsForOrderResponseEmbedded */ public function getEmbedded() : ?GetSolicitationActionsForOrderResponseEmbedded { diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponseEmbedded.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponseEmbedded.php index dc3a6e922..56fd0d494 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponseEmbedded.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponseEmbedded.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponseLinks.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponseLinks.php index 1aff21183..865930b7e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponseLinks.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/GetSolicitationActionsForOrderResponseLinks.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets self. + * + * @return \AmazonPHP\SellingPartner\Model\Solicitations\LinkObject */ public function getSelf() : LinkObject { diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/LinkObject.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/LinkObject.php index 03023d43c..fa0859baa 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/LinkObject.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/LinkObject.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets href. + * + * @return string */ public function getHref() : string { @@ -212,6 +204,8 @@ public function setHref(string $href) : self /** * Gets name. + * + * @return null|string */ public function getName() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Solicitations/SolicitationsAction.php b/src/AmazonPHP/SellingPartner/Model/Solicitations/SolicitationsAction.php index 1f96a078e..7db471a99 100644 --- a/src/AmazonPHP/SellingPartner/Model/Solicitations/SolicitationsAction.php +++ b/src/AmazonPHP/SellingPartner/Model/Solicitations/SolicitationsAction.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Tokens/CreateRestrictedDataTokenRequest.php b/src/AmazonPHP/SellingPartner/Model/Tokens/CreateRestrictedDataTokenRequest.php index e5fcfdd5a..161e32767 100644 --- a/src/AmazonPHP/SellingPartner/Model/Tokens/CreateRestrictedDataTokenRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/Tokens/CreateRestrictedDataTokenRequest.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets target_application. + * + * @return null|string */ public function getTargetApplication() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Tokens/CreateRestrictedDataTokenResponse.php b/src/AmazonPHP/SellingPartner/Model/Tokens/CreateRestrictedDataTokenResponse.php index f19e7590c..8314a0847 100644 --- a/src/AmazonPHP/SellingPartner/Model/Tokens/CreateRestrictedDataTokenResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Tokens/CreateRestrictedDataTokenResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets restricted_data_token. + * + * @return null|string */ public function getRestrictedDataToken() : ?string { @@ -209,6 +201,8 @@ public function setRestrictedDataToken(?string $restricted_data_token) : self /** * Gets expires_in. + * + * @return null|int */ public function getExpiresIn() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/Tokens/Error.php b/src/AmazonPHP/SellingPartner/Model/Tokens/Error.php index 6381f7ca8..0ae6b384b 100644 --- a/src/AmazonPHP/SellingPartner/Model/Tokens/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Tokens/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Tokens/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/Tokens/ErrorList.php index 1c7bc4ffe..e9be0cf20 100644 --- a/src/AmazonPHP/SellingPartner/Model/Tokens/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/Tokens/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/Tokens/RestrictedResource.php b/src/AmazonPHP/SellingPartner/Model/Tokens/RestrictedResource.php index 8fa4149ca..4443b2a07 100644 --- a/src/AmazonPHP/SellingPartner/Model/Tokens/RestrictedResource.php +++ b/src/AmazonPHP/SellingPartner/Model/Tokens/RestrictedResource.php @@ -124,8 +124,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -134,8 +132,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -145,8 +141,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -155,8 +149,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -165,8 +157,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -178,7 +168,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -237,6 +227,8 @@ public function validate() : void /** * Gets method. + * + * @return string */ public function getMethod() : string { @@ -257,6 +249,8 @@ public function setMethod(string $method) : self /** * Gets path. + * + * @return string */ public function getPath() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/Uploads/CreateUploadDestinationResponse.php b/src/AmazonPHP/SellingPartner/Model/Uploads/CreateUploadDestinationResponse.php index 284802def..588f69034 100644 --- a/src/AmazonPHP/SellingPartner/Model/Uploads/CreateUploadDestinationResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/Uploads/CreateUploadDestinationResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\Uploads\UploadDestination */ public function getPayload() : ?UploadDestination { diff --git a/src/AmazonPHP/SellingPartner/Model/Uploads/Error.php b/src/AmazonPHP/SellingPartner/Model/Uploads/Error.php index e2ae2eb22..092844a1e 100644 --- a/src/AmazonPHP/SellingPartner/Model/Uploads/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/Uploads/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/Uploads/UploadDestination.php b/src/AmazonPHP/SellingPartner/Model/Uploads/UploadDestination.php index eba2cffc3..8505d8086 100644 --- a/src/AmazonPHP/SellingPartner/Model/Uploads/UploadDestination.php +++ b/src/AmazonPHP/SellingPartner/Model/Uploads/UploadDestination.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets upload_destination_id. + * + * @return null|string */ public function getUploadDestinationId() : ?string { @@ -215,6 +207,8 @@ public function setUploadDestinationId(?string $upload_destination_id) : self /** * Gets url. + * + * @return null|string */ public function getUrl() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/Error.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/Error.php index 0d5fb2649..21dff805e 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/InventoryUpdate.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/InventoryUpdate.php index d7a56432c..a9d6ed990 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/InventoryUpdate.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/InventoryUpdate.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -228,6 +220,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets is_full_update. + * + * @return bool */ public function getIsFullUpdate() : bool { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/ItemDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/ItemDetails.php index 80bae5ca8..88398fe15 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/ItemDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/ItemDetails.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets buyer_product_identifier. + * + * @return null|string */ public function getBuyerProductIdentifier() : ?string { @@ -226,6 +218,8 @@ public function setBuyerProductIdentifier(?string $buyer_product_identifier) : s /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -246,6 +240,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets available_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\ItemQuantity */ public function getAvailableQuantity() : ItemQuantity { @@ -266,6 +262,8 @@ public function setAvailableQuantity(ItemQuantity $available_quantity) : self /** * Gets is_obsolete. + * + * @return null|bool */ public function getIsObsolete() : ?bool { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/ItemQuantity.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/ItemQuantity.php index 5ca3cb1bf..f1af56d1c 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/ItemQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/ItemQuantity.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets amount. + * + * @return null|int */ public function getAmount() : ?int { @@ -212,6 +204,8 @@ public function setAmount(?int $amount) : self /** * Gets unit_of_measure. + * + * @return string */ public function getUnitOfMeasure() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/PartyIdentification.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/PartyIdentification.php index a73dd28fe..4b9ff2280 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/PartyIdentification.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/PartyIdentification.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets party_id. + * + * @return string */ public function getPartyId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/SubmitInventoryUpdateRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/SubmitInventoryUpdateRequest.php index 6af7f3725..44a4f66f6 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/SubmitInventoryUpdateRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/SubmitInventoryUpdateRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets inventory. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\InventoryUpdate */ public function getInventory() : ?InventoryUpdate { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/SubmitInventoryUpdateResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/SubmitInventoryUpdateResponse.php index 9da9913b5..cd1d43b91 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/SubmitInventoryUpdateResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/SubmitInventoryUpdateResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentInventory\TransactionReference */ public function getPayload() : ?TransactionReference { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/TransactionReference.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/TransactionReference.php index 87f5ef44a..a461c9f24 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/TransactionReference.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentInventory/TransactionReference.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets transaction_id. + * + * @return null|string */ public function getTransactionId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/AcknowledgementStatus.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/AcknowledgementStatus.php index 778d7d928..838320539 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/AcknowledgementStatus.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/AcknowledgementStatus.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets code. + * + * @return null|string */ public function getCode() : ?string { @@ -209,6 +201,8 @@ public function setCode(?string $code) : self /** * Gets description. + * + * @return null|string */ public function getDescription() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Address.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Address.php index d3acfb04c..a2f1736d1 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Address.php @@ -170,8 +170,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -180,8 +178,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -191,8 +187,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -201,8 +195,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -211,8 +203,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -224,7 +214,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -264,6 +254,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -284,6 +276,8 @@ public function setName(string $name) : self /** * Gets attention. + * + * @return null|string */ public function getAttention() : ?string { @@ -304,6 +298,8 @@ public function setAttention(?string $attention) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -324,6 +320,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -344,6 +342,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -364,6 +364,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets city. + * + * @return null|string */ public function getCity() : ?string { @@ -384,6 +386,8 @@ public function setCity(?string $city) : self /** * Gets county. + * + * @return null|string */ public function getCounty() : ?string { @@ -404,6 +408,8 @@ public function setCounty(?string $county) : self /** * Gets district. + * + * @return null|string */ public function getDistrict() : ?string { @@ -424,6 +430,8 @@ public function setDistrict(?string $district) : self /** * Gets state_or_region. + * + * @return string */ public function getStateOrRegion() : string { @@ -444,6 +452,8 @@ public function setStateOrRegion(string $state_or_region) : self /** * Gets postal_code. + * + * @return null|string */ public function getPostalCode() : ?string { @@ -464,6 +474,8 @@ public function setPostalCode(?string $postal_code) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -484,6 +496,8 @@ public function setCountryCode(string $country_code) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/BuyerCustomizedInfoDetail.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/BuyerCustomizedInfoDetail.php new file mode 100644 index 000000000..fffd85870 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/BuyerCustomizedInfoDetail.php @@ -0,0 +1,256 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class BuyerCustomizedInfoDetail implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'buyerCustomizedInfoDetail'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'customized_url' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'customized_url' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'customized_url' => 'customizedUrl', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'customized_url' => 'setCustomizedUrl', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'customized_url' => 'getCustomizedUrl', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['customized_url'] = $data['customized_url'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets customized_url. + * + * @return null|string + */ + public function getCustomizedUrl() : ?string + { + return $this->container['customized_url']; + } + + /** + * Sets customized_url. + * + * @param null|string $customized_url A [Base 64](https://datatracker.ietf.org/doc/html/rfc4648#section-4) encoded URL using the UTF-8 character set. The URL provides the location of the zip file that specifies the types of customizations or configurations allowed by the vendor, along with types and ranges for the attributes of their products. + */ + public function setCustomizedUrl(?string $customized_url) : self + { + $this->container['customized_url'] = $customized_url; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Error.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Error.php index 08fdbdc23..b50f01050 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ErrorList.php index c0e805ceb..755e448d4 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/GiftDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/GiftDetails.php index 7c140cccb..9292d3005 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/GiftDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/GiftDetails.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets gift_message. + * + * @return null|string */ public function getGiftMessage() : ?string { @@ -209,6 +201,8 @@ public function setGiftMessage(?string $gift_message) : self /** * Gets gift_wrap_id. + * + * @return null|string */ public function getGiftWrapId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ItemQuantity.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ItemQuantity.php index c8424c809..0cc54170d 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ItemQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ItemQuantity.php @@ -112,8 +112,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -122,8 +120,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -133,8 +129,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -143,8 +137,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -153,8 +145,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -166,7 +156,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -214,6 +204,8 @@ public function validate() : void /** * Gets amount. + * + * @return null|int */ public function getAmount() : ?int { @@ -234,6 +226,8 @@ public function setAmount(?int $amount) : self /** * Gets unit_of_measure. + * + * @return null|string */ public function getUnitOfMeasure() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Money.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Money.php index fe7204ca3..8566a3e48 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Money.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Money.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return null|string */ public function getCurrencyCode() : ?string { @@ -209,6 +201,8 @@ public function setCurrencyCode(?string $currency_code) : self /** * Gets amount. + * + * @return null|string */ public function getAmount() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Order.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Order.php index 9761be2a6..cc4c78f55 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Order.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Order.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -216,6 +208,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets order_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\OrderDetails */ public function getOrderDetails() : ?OrderDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderAcknowledgementItem.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderAcknowledgementItem.php index 0cafcb4a0..2ca194038 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderAcknowledgementItem.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderAcknowledgementItem.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -252,6 +242,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -272,6 +264,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets vendor_order_number. + * + * @return string */ public function getVendorOrderNumber() : string { @@ -292,6 +286,8 @@ public function setVendorOrderNumber(string $vendor_order_number) : self /** * Gets acknowledgement_date. + * + * @return \DateTimeInterface */ public function getAcknowledgementDate() : \DateTimeInterface { @@ -312,6 +308,8 @@ public function setAcknowledgementDate(\DateTimeInterface $acknowledgement_date) /** * Gets acknowledgement_status. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\AcknowledgementStatus */ public function getAcknowledgementStatus() : AcknowledgementStatus { @@ -332,6 +330,8 @@ public function setAcknowledgementStatus(AcknowledgementStatus $acknowledgement_ /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -352,6 +352,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets ship_from_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\PartyIdentification */ public function getShipFromParty() : PartyIdentification { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderDetails.php index 898a4b871..12f5667e2 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderDetails.php @@ -166,8 +166,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -176,8 +174,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -187,8 +183,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -197,8 +191,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -207,8 +199,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -220,7 +210,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -317,6 +307,8 @@ public function validate() : void /** * Gets customer_order_number. + * + * @return string */ public function getCustomerOrderNumber() : string { @@ -337,6 +329,8 @@ public function setCustomerOrderNumber(string $customer_order_number) : self /** * Gets order_date. + * + * @return \DateTimeInterface */ public function getOrderDate() : \DateTimeInterface { @@ -357,6 +351,8 @@ public function setOrderDate(\DateTimeInterface $order_date) : self /** * Gets order_status. + * + * @return null|string */ public function getOrderStatus() : ?string { @@ -377,6 +373,8 @@ public function setOrderStatus(?string $order_status) : self /** * Gets shipment_details. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\ShipmentDetails */ public function getShipmentDetails() : ShipmentDetails { @@ -397,6 +395,8 @@ public function setShipmentDetails(ShipmentDetails $shipment_details) : self /** * Gets tax_total. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\TaxItemDetails */ public function getTaxTotal() : ?TaxItemDetails { @@ -417,6 +417,8 @@ public function setTaxTotal(?TaxItemDetails $tax_total) : self /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -437,6 +439,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets ship_from_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\PartyIdentification */ public function getShipFromParty() : PartyIdentification { @@ -457,6 +461,8 @@ public function setShipFromParty(PartyIdentification $ship_from_party) : self /** * Gets ship_to_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Address */ public function getShipToParty() : Address { @@ -477,6 +483,8 @@ public function setShipToParty(Address $ship_to_party) : self /** * Gets bill_to_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\PartyIdentification */ public function getBillToParty() : PartyIdentification { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderItem.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderItem.php index 85df61e2f..3b3c73270 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderItem.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderItem.php @@ -50,6 +50,7 @@ class OrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelIn 'net_price' => '\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Money', 'tax_details' => '\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\TaxItemDetails', 'total_price' => '\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Money', + 'buyer_customized_info' => '\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\BuyerCustomizedInfoDetail', ]; /** @@ -72,6 +73,7 @@ class OrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelIn 'net_price' => null, 'tax_details' => null, 'total_price' => null, + 'buyer_customized_info' => null, ]; /** @@ -91,6 +93,7 @@ class OrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelIn 'net_price' => 'netPrice', 'tax_details' => 'taxDetails', 'total_price' => 'totalPrice', + 'buyer_customized_info' => 'buyerCustomizedInfo', ]; /** @@ -109,6 +112,7 @@ class OrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelIn 'net_price' => 'setNetPrice', 'tax_details' => 'setTaxDetails', 'total_price' => 'setTotalPrice', + 'buyer_customized_info' => 'setBuyerCustomizedInfo', ]; /** @@ -127,6 +131,7 @@ class OrderItem implements \ArrayAccess, \JsonSerializable, \Stringable, ModelIn 'net_price' => 'getNetPrice', 'tax_details' => 'getTaxDetails', 'total_price' => 'getTotalPrice', + 'buyer_customized_info' => 'getBuyerCustomizedInfo', ]; /** @@ -154,12 +159,11 @@ public function __construct(array $data = null) $this->container['net_price'] = $data['net_price'] ?? null; $this->container['tax_details'] = $data['tax_details'] ?? null; $this->container['total_price'] = $data['total_price'] ?? null; + $this->container['buyer_customized_info'] = $data['buyer_customized_info'] ?? null; } /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -264,10 +260,16 @@ public function validate() : void if ($this->container['total_price'] !== null) { $this->container['total_price']->validate(); } + + if ($this->container['buyer_customized_info'] !== null) { + $this->container['buyer_customized_info']->validate(); + } } /** * Gets item_sequence_number. + * + * @return string */ public function getItemSequenceNumber() : string { @@ -288,6 +290,8 @@ public function setItemSequenceNumber(string $item_sequence_number) : self /** * Gets buyer_product_identifier. + * + * @return null|string */ public function getBuyerProductIdentifier() : ?string { @@ -308,6 +312,8 @@ public function setBuyerProductIdentifier(?string $buyer_product_identifier) : s /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -328,6 +334,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets title. + * + * @return null|string */ public function getTitle() : ?string { @@ -348,6 +356,8 @@ public function setTitle(?string $title) : self /** * Gets ordered_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\ItemQuantity */ public function getOrderedQuantity() : ItemQuantity { @@ -368,6 +378,8 @@ public function setOrderedQuantity(ItemQuantity $ordered_quantity) : self /** * Gets scheduled_delivery_shipment. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\ScheduledDeliveryShipment */ public function getScheduledDeliveryShipment() : ?ScheduledDeliveryShipment { @@ -388,6 +400,8 @@ public function setScheduledDeliveryShipment(?ScheduledDeliveryShipment $schedul /** * Gets gift_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\GiftDetails */ public function getGiftDetails() : ?GiftDetails { @@ -408,6 +422,8 @@ public function setGiftDetails(?GiftDetails $gift_details) : self /** * Gets net_price. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Money */ public function getNetPrice() : Money { @@ -428,6 +444,8 @@ public function setNetPrice(Money $net_price) : self /** * Gets tax_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\TaxItemDetails */ public function getTaxDetails() : ?TaxItemDetails { @@ -448,6 +466,8 @@ public function setTaxDetails(?TaxItemDetails $tax_details) : self /** * Gets total_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Money */ public function getTotalPrice() : ?Money { @@ -466,6 +486,28 @@ public function setTotalPrice(?Money $total_price) : self return $this; } + /** + * Gets buyer_customized_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\BuyerCustomizedInfoDetail + */ + public function getBuyerCustomizedInfo() : ?BuyerCustomizedInfoDetail + { + return $this->container['buyer_customized_info']; + } + + /** + * Sets buyer_customized_info. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\BuyerCustomizedInfoDetail $buyer_customized_info buyer_customized_info + */ + public function setBuyerCustomizedInfo(?BuyerCustomizedInfoDetail $buyer_customized_info) : self + { + $this->container['buyer_customized_info'] = $buyer_customized_info; + + return $this; + } + /** * Returns true if offset exists. False otherwise. */ diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderItemAcknowledgement.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderItemAcknowledgement.php index b6d96c766..c8abd3c17 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderItemAcknowledgement.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderItemAcknowledgement.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -210,6 +200,8 @@ public function validate() : void /** * Gets item_sequence_number. + * + * @return string */ public function getItemSequenceNumber() : string { @@ -230,6 +222,8 @@ public function setItemSequenceNumber(string $item_sequence_number) : self /** * Gets buyer_product_identifier. + * + * @return null|string */ public function getBuyerProductIdentifier() : ?string { @@ -250,6 +244,8 @@ public function setBuyerProductIdentifier(?string $buyer_product_identifier) : s /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -270,6 +266,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets acknowledged_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\ItemQuantity */ public function getAcknowledgedQuantity() : ItemQuantity { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderList.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderList.php index 681bf30a7..082204c44 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderList.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/OrderList.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets pagination. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Pagination */ public function getPagination() : ?Pagination { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Pagination.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Pagination.php index 30e706589..dc7ee014a 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Pagination.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/Pagination.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/PartyIdentification.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/PartyIdentification.php index 3ece9163a..98485fa51 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/PartyIdentification.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/PartyIdentification.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets party_id. + * + * @return string */ public function getPartyId() : string { @@ -226,6 +218,8 @@ public function setPartyId(string $party_id) : self /** * Gets address. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Address */ public function getAddress() : ?Address { @@ -246,6 +240,8 @@ public function setAddress(?Address $address) : self /** * Gets tax_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\TaxRegistrationDetails */ public function getTaxInfo() : ?TaxRegistrationDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ScheduledDeliveryShipment.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ScheduledDeliveryShipment.php index 2ce4874e6..97ef9467e 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ScheduledDeliveryShipment.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ScheduledDeliveryShipment.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets scheduled_delivery_service_type. + * + * @return null|string */ public function getScheduledDeliveryServiceType() : ?string { @@ -215,6 +207,8 @@ public function setScheduledDeliveryServiceType(?string $scheduled_delivery_serv /** * Gets earliest_nominated_delivery_date. + * + * @return null|\DateTimeInterface */ public function getEarliestNominatedDeliveryDate() : ?\DateTimeInterface { @@ -235,6 +229,8 @@ public function setEarliestNominatedDeliveryDate(?\DateTimeInterface $earliest_n /** * Gets latest_nominated_delivery_date. + * + * @return null|\DateTimeInterface */ public function getLatestNominatedDeliveryDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ShipmentDates.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ShipmentDates.php index 54e34052c..e8afcba5d 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ShipmentDates.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ShipmentDates.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets required_ship_date. + * + * @return \DateTimeInterface */ public function getRequiredShipDate() : \DateTimeInterface { @@ -212,6 +204,8 @@ public function setRequiredShipDate(\DateTimeInterface $required_ship_date) : se /** * Gets promised_delivery_date. + * + * @return null|\DateTimeInterface */ public function getPromisedDeliveryDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ShipmentDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ShipmentDetails.php index bf7d802ec..46ed4d979 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ShipmentDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/ShipmentDetails.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets is_priority_shipment. + * + * @return bool */ public function getIsPriorityShipment() : bool { @@ -260,6 +252,8 @@ public function setIsPriorityShipment(bool $is_priority_shipment) : self /** * Gets is_scheduled_delivery_shipment. + * + * @return null|bool */ public function getIsScheduledDeliveryShipment() : ?bool { @@ -280,6 +274,8 @@ public function setIsScheduledDeliveryShipment(?bool $is_scheduled_delivery_ship /** * Gets is_pslip_required. + * + * @return bool */ public function getIsPslipRequired() : bool { @@ -300,6 +296,8 @@ public function setIsPslipRequired(bool $is_pslip_required) : self /** * Gets is_gift. + * + * @return null|bool */ public function getIsGift() : ?bool { @@ -320,6 +318,8 @@ public function setIsGift(?bool $is_gift) : self /** * Gets ship_method. + * + * @return string */ public function getShipMethod() : string { @@ -340,6 +340,8 @@ public function setShipMethod(string $ship_method) : self /** * Gets shipment_dates. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\ShipmentDates */ public function getShipmentDates() : ShipmentDates { @@ -360,6 +362,8 @@ public function setShipmentDates(ShipmentDates $shipment_dates) : self /** * Gets message_to_customer. + * + * @return string */ public function getMessageToCustomer() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/SubmitAcknowledgementRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/SubmitAcknowledgementRequest.php index 1cd37684e..6ad0c9050 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/SubmitAcknowledgementRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/SubmitAcknowledgementRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/SubmitAcknowledgementResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/SubmitAcknowledgementResponse.php index 055262f79..1e64426f4 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/SubmitAcknowledgementResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/SubmitAcknowledgementResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\TransactionId */ public function getPayload() : ?TransactionId { @@ -216,6 +208,8 @@ public function setPayload(?TransactionId $payload) : self /** * Gets errors. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\ErrorList */ public function getErrors() : ?ErrorList { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxDetails.php index 8d60ec1b8..7483bfa85 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxDetails.php @@ -136,8 +136,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -146,8 +144,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -157,8 +153,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -167,8 +161,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -177,8 +169,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -190,7 +180,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -254,6 +244,8 @@ public function validate() : void /** * Gets tax_rate. + * + * @return null|string */ public function getTaxRate() : ?string { @@ -274,6 +266,8 @@ public function setTaxRate(?string $tax_rate) : self /** * Gets tax_amount. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Money */ public function getTaxAmount() : Money { @@ -294,6 +288,8 @@ public function setTaxAmount(Money $tax_amount) : self /** * Gets taxable_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Money */ public function getTaxableAmount() : ?Money { @@ -314,6 +310,8 @@ public function setTaxableAmount(?Money $taxable_amount) : self /** * Gets type. + * + * @return null|string */ public function getType() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxItemDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxItemDetails.php index 384cd1738..080ff09c8 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxItemDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxItemDetails.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxRegistrationDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxRegistrationDetails.php index b830b7a98..3d1e3cb3c 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxRegistrationDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TaxRegistrationDetails.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -237,6 +227,8 @@ public function validate() : void /** * Gets tax_registration_type. + * + * @return null|string */ public function getTaxRegistrationType() : ?string { @@ -257,6 +249,8 @@ public function setTaxRegistrationType(?string $tax_registration_type) : self /** * Gets tax_registration_number. + * + * @return string */ public function getTaxRegistrationNumber() : string { @@ -277,6 +271,8 @@ public function setTaxRegistrationNumber(string $tax_registration_number) : self /** * Gets tax_registration_address. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentOrders\Address */ public function getTaxRegistrationAddress() : ?Address { @@ -297,6 +293,8 @@ public function setTaxRegistrationAddress(?Address $tax_registration_address) : /** * Gets tax_registration_messages. + * + * @return null|string */ public function getTaxRegistrationMessages() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TransactionId.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TransactionId.php index c8de7fd92..abcfdf4ec 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TransactionId.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentOrders/TransactionId.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets transaction_id. + * + * @return null|string */ public function getTransactionId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/AdditionalDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/AdditionalDetails.php index 5d781f74f..31fbc4ddb 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/AdditionalDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/AdditionalDetails.php @@ -120,8 +120,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -130,8 +128,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -141,8 +137,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -151,8 +145,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -161,8 +153,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -174,7 +164,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -231,6 +221,8 @@ public function validate() : void /** * Gets type. + * + * @return string */ public function getType() : string { @@ -251,6 +243,8 @@ public function setType(string $type) : self /** * Gets detail. + * + * @return string */ public function getDetail() : string { @@ -271,6 +265,8 @@ public function setDetail(string $detail) : self /** * Gets language_code. + * + * @return null|string */ public function getLanguageCode() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Address.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Address.php index c8be42dfe..e8daf9384 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Address.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -266,6 +256,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -286,6 +278,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -306,6 +300,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -326,6 +322,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -346,6 +344,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets city. + * + * @return string */ public function getCity() : string { @@ -366,6 +366,8 @@ public function setCity(string $city) : self /** * Gets county. + * + * @return null|string */ public function getCounty() : ?string { @@ -386,6 +388,8 @@ public function setCounty(?string $county) : self /** * Gets district. + * + * @return null|string */ public function getDistrict() : ?string { @@ -406,6 +410,8 @@ public function setDistrict(?string $district) : self /** * Gets state_or_region. + * + * @return string */ public function getStateOrRegion() : string { @@ -426,6 +432,8 @@ public function setStateOrRegion(string $state_or_region) : self /** * Gets postal_code. + * + * @return string */ public function getPostalCode() : string { @@ -446,6 +454,8 @@ public function setPostalCode(string $postal_code) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -466,6 +476,8 @@ public function setCountryCode(string $country_code) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/ChargeDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/ChargeDetails.php index 1508d6a90..dcf8a5c32 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/ChargeDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/ChargeDetails.php @@ -130,8 +130,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -140,8 +138,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -151,8 +147,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -161,8 +155,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -171,8 +163,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -184,7 +174,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -248,6 +238,8 @@ public function validate() : void /** * Gets type. + * + * @return string */ public function getType() : string { @@ -268,6 +260,8 @@ public function setType(string $type) : self /** * Gets charge_amount. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\Money */ public function getChargeAmount() : Money { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Error.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Error.php index 9a3e5773c..36a42747a 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/InvoiceDetail.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/InvoiceDetail.php index 4beeaf932..0d32a28f4 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/InvoiceDetail.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/InvoiceDetail.php @@ -176,8 +176,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -186,8 +184,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -197,8 +193,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -207,8 +201,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -217,8 +209,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -230,7 +220,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -288,6 +278,8 @@ public function validate() : void /** * Gets invoice_number. + * + * @return string */ public function getInvoiceNumber() : string { @@ -308,6 +300,8 @@ public function setInvoiceNumber(string $invoice_number) : self /** * Gets invoice_date. + * + * @return \DateTimeInterface */ public function getInvoiceDate() : \DateTimeInterface { @@ -328,6 +322,8 @@ public function setInvoiceDate(\DateTimeInterface $invoice_date) : self /** * Gets reference_number. + * + * @return null|string */ public function getReferenceNumber() : ?string { @@ -348,6 +344,8 @@ public function setReferenceNumber(?string $reference_number) : self /** * Gets remit_to_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\PartyIdentification */ public function getRemitToParty() : PartyIdentification { @@ -368,6 +366,8 @@ public function setRemitToParty(PartyIdentification $remit_to_party) : self /** * Gets ship_from_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\PartyIdentification */ public function getShipFromParty() : PartyIdentification { @@ -388,6 +388,8 @@ public function setShipFromParty(PartyIdentification $ship_from_party) : self /** * Gets bill_to_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\PartyIdentification */ public function getBillToParty() : ?PartyIdentification { @@ -408,6 +410,8 @@ public function setBillToParty(?PartyIdentification $bill_to_party) : self /** * Gets ship_to_country_code. + * + * @return null|string */ public function getShipToCountryCode() : ?string { @@ -428,6 +432,8 @@ public function setShipToCountryCode(?string $ship_to_country_code) : self /** * Gets payment_terms_code. + * + * @return null|string */ public function getPaymentTermsCode() : ?string { @@ -448,6 +454,8 @@ public function setPaymentTermsCode(?string $payment_terms_code) : self /** * Gets invoice_total. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\Money */ public function getInvoiceTotal() : Money { @@ -501,7 +509,7 @@ public function getAdditionalDetails() : ?array /** * Sets additional_details. * - * @param null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\AdditionalDetails[] $additional_details additional details provided by the selling party, for tax related or other purposes + * @param null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\AdditionalDetails[] $additional_details additional details provided by the selling party, for tax-related or other purposes */ public function setAdditionalDetails(?array $additional_details) : self { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/InvoiceItem.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/InvoiceItem.php index 778f7de89..7fe379c10 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/InvoiceItem.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/InvoiceItem.php @@ -158,8 +158,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -168,8 +166,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -179,8 +175,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -189,8 +183,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -199,8 +191,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -212,7 +202,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -256,6 +246,8 @@ public function validate() : void /** * Gets item_sequence_number. + * + * @return string */ public function getItemSequenceNumber() : string { @@ -276,6 +268,8 @@ public function setItemSequenceNumber(string $item_sequence_number) : self /** * Gets buyer_product_identifier. + * + * @return null|string */ public function getBuyerProductIdentifier() : ?string { @@ -296,6 +290,8 @@ public function setBuyerProductIdentifier(?string $buyer_product_identifier) : s /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -316,6 +312,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets invoiced_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\ItemQuantity */ public function getInvoicedQuantity() : ItemQuantity { @@ -336,6 +334,8 @@ public function setInvoicedQuantity(ItemQuantity $invoiced_quantity) : self /** * Gets net_cost. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\Money */ public function getNetCost() : Money { @@ -356,6 +356,8 @@ public function setNetCost(Money $net_cost) : self /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -376,6 +378,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets vendor_order_number. + * + * @return null|string */ public function getVendorOrderNumber() : ?string { @@ -396,6 +400,8 @@ public function setVendorOrderNumber(?string $vendor_order_number) : self /** * Gets hsn_code. + * + * @return null|string */ public function getHsnCode() : ?string { @@ -405,7 +411,7 @@ public function getHsnCode() : ?string /** * Sets hsn_code. * - * @param null|string $hsn_code HSN tax code. The HSN number cannot contain alphabets. + * @param null|string $hsn_code Harmonized System of Nomenclature (HSN) tax code. The HSN number cannot contain alphabets. */ public function setHsnCode(?string $hsn_code) : self { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/ItemQuantity.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/ItemQuantity.php index 1965c0c4a..07fb7e02a 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/ItemQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/ItemQuantity.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets amount. + * + * @return int */ public function getAmount() : int { @@ -216,6 +208,8 @@ public function setAmount(int $amount) : self /** * Gets unit_of_measure. + * + * @return string */ public function getUnitOfMeasure() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Money.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Money.php index e384938a7..9ea3aea54 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Money.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/Money.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return string */ public function getCurrencyCode() : string { @@ -216,6 +208,8 @@ public function setCurrencyCode(string $currency_code) : self /** * Gets amount. + * + * @return string */ public function getAmount() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/PartyIdentification.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/PartyIdentification.php index ef1edb57f..3fedfd3ea 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/PartyIdentification.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/PartyIdentification.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets party_id. + * + * @return string */ public function getPartyId() : string { @@ -222,6 +214,8 @@ public function setPartyId(string $party_id) : self /** * Gets address. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\Address */ public function getAddress() : ?Address { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/SubmitInvoiceRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/SubmitInvoiceRequest.php index deb41bd75..de8fa418f 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/SubmitInvoiceRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/SubmitInvoiceRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/SubmitInvoiceResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/SubmitInvoiceResponse.php index da8c12382..47531f919 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/SubmitInvoiceResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/SubmitInvoiceResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\TransactionReference */ public function getPayload() : ?TransactionReference { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TaxDetail.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TaxDetail.php index 19d2a4fc9..3b980bdaf 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TaxDetail.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TaxDetail.php @@ -150,8 +150,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -160,8 +158,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -171,8 +167,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -181,8 +175,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -191,8 +183,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -204,7 +194,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -279,6 +269,8 @@ public function validate() : void /** * Gets tax_type. + * + * @return string */ public function getTaxType() : string { @@ -299,6 +291,8 @@ public function setTaxType(string $tax_type) : self /** * Gets tax_rate. + * + * @return null|string */ public function getTaxRate() : ?string { @@ -319,6 +313,8 @@ public function setTaxRate(?string $tax_rate) : self /** * Gets tax_amount. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\Money */ public function getTaxAmount() : Money { @@ -339,6 +335,8 @@ public function setTaxAmount(Money $tax_amount) : self /** * Gets taxable_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\Money */ public function getTaxableAmount() : ?Money { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TaxRegistrationDetail.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TaxRegistrationDetail.php index dc9a25205..46b55924c 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TaxRegistrationDetail.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TaxRegistrationDetail.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -237,6 +227,8 @@ public function validate() : void /** * Gets tax_registration_type. + * + * @return null|string */ public function getTaxRegistrationType() : ?string { @@ -257,6 +249,8 @@ public function setTaxRegistrationType(?string $tax_registration_type) : self /** * Gets tax_registration_number. + * + * @return string */ public function getTaxRegistrationNumber() : string { @@ -277,6 +271,8 @@ public function setTaxRegistrationNumber(string $tax_registration_number) : self /** * Gets tax_registration_address. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentPayments\Address */ public function getTaxRegistrationAddress() : ?Address { @@ -297,6 +293,8 @@ public function setTaxRegistrationAddress(?Address $tax_registration_address) : /** * Gets tax_registration_message. + * + * @return null|string */ public function getTaxRegistrationMessage() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TransactionReference.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TransactionReference.php index be836bac1..ec743132d 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TransactionReference.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentPayments/TransactionReference.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets transaction_id. + * + * @return null|string */ public function getTransactionId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Address.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Address.php index 6ffc08c3c..d38973339 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Address.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -254,6 +244,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -274,6 +266,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -294,6 +288,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -314,6 +310,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -334,6 +332,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets city. + * + * @return null|string */ public function getCity() : ?string { @@ -354,6 +354,8 @@ public function setCity(?string $city) : self /** * Gets county. + * + * @return null|string */ public function getCounty() : ?string { @@ -374,6 +376,8 @@ public function setCounty(?string $county) : self /** * Gets district. + * + * @return null|string */ public function getDistrict() : ?string { @@ -394,6 +398,8 @@ public function setDistrict(?string $district) : self /** * Gets state_or_region. + * + * @return null|string */ public function getStateOrRegion() : ?string { @@ -414,6 +420,8 @@ public function setStateOrRegion(?string $state_or_region) : self /** * Gets postal_code. + * + * @return null|string */ public function getPostalCode() : ?string { @@ -434,6 +442,8 @@ public function setPostalCode(?string $postal_code) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -454,6 +464,8 @@ public function setCountryCode(string $country_code) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Container.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Container.php index 53e067a18..0242cb99d 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Container.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Container.php @@ -174,8 +174,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -184,8 +182,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -195,8 +191,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -205,8 +199,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -215,8 +207,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -228,7 +218,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -297,6 +287,8 @@ public function validate() : void /** * Gets container_type. + * + * @return string */ public function getContainerType() : string { @@ -317,6 +309,8 @@ public function setContainerType(string $container_type) : self /** * Gets container_identifier. + * + * @return string */ public function getContainerIdentifier() : string { @@ -337,6 +331,8 @@ public function setContainerIdentifier(string $container_identifier) : self /** * Gets tracking_number. + * + * @return null|string */ public function getTrackingNumber() : ?string { @@ -357,6 +353,8 @@ public function setTrackingNumber(?string $tracking_number) : self /** * Gets manifest_id. + * + * @return null|string */ public function getManifestId() : ?string { @@ -377,6 +375,8 @@ public function setManifestId(?string $manifest_id) : self /** * Gets manifest_date. + * + * @return null|string */ public function getManifestDate() : ?string { @@ -397,6 +397,8 @@ public function setManifestDate(?string $manifest_date) : self /** * Gets ship_method. + * + * @return null|string */ public function getShipMethod() : ?string { @@ -417,6 +419,8 @@ public function setShipMethod(?string $ship_method) : self /** * Gets scac_code. + * + * @return null|string */ public function getScacCode() : ?string { @@ -437,6 +441,8 @@ public function setScacCode(?string $scac_code) : self /** * Gets carrier. + * + * @return null|string */ public function getCarrier() : ?string { @@ -457,6 +463,8 @@ public function setCarrier(?string $carrier) : self /** * Gets container_sequence_number. + * + * @return null|int */ public function getContainerSequenceNumber() : ?int { @@ -477,6 +485,8 @@ public function setContainerSequenceNumber(?int $container_sequence_number) : se /** * Gets dimensions. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\Dimensions */ public function getDimensions() : ?Dimensions { @@ -497,6 +507,8 @@ public function setDimensions(?Dimensions $dimensions) : self /** * Gets weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\Weight */ public function getWeight() : ?Weight { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CreateShippingLabelsRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CreateShippingLabelsRequest.php index c5a93b8fd..65c1a4d7c 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CreateShippingLabelsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CreateShippingLabelsRequest.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -226,6 +218,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets ship_from_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PartyIdentification */ public function getShipFromParty() : PartyIdentification { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CustomerInvoice.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CustomerInvoice.php index 7d08936fb..c2e20c110 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CustomerInvoice.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CustomerInvoice.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -200,6 +190,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -220,6 +212,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets content. + * + * @return string */ public function getContent() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CustomerInvoiceList.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CustomerInvoiceList.php index 9cf0b301a..00f01e2b5 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CustomerInvoiceList.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/CustomerInvoiceList.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets pagination. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\Pagination */ public function getPagination() : ?Pagination { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Dimensions.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Dimensions.php index 609670f51..44afaade3 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Dimensions.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Dimensions.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -245,6 +235,8 @@ public function validate() : void /** * Gets length. + * + * @return string */ public function getLength() : string { @@ -265,6 +257,8 @@ public function setLength(string $length) : self /** * Gets width. + * + * @return string */ public function getWidth() : string { @@ -285,6 +279,8 @@ public function setWidth(string $width) : self /** * Gets height. + * + * @return string */ public function getHeight() : string { @@ -305,6 +301,8 @@ public function setHeight(string $height) : self /** * Gets unit_of_measure. + * + * @return string */ public function getUnitOfMeasure() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Error.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Error.php index 00fee03da..25cd7acb0 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ErrorList.php index 32ba1999a..673fccf8c 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Item.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Item.php index ba74a8cec..d6b40b7f6 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Item.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Item.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -210,6 +200,8 @@ public function validate() : void /** * Gets item_sequence_number. + * + * @return int */ public function getItemSequenceNumber() : int { @@ -230,6 +222,8 @@ public function setItemSequenceNumber(int $item_sequence_number) : self /** * Gets buyer_product_identifier. + * + * @return null|string */ public function getBuyerProductIdentifier() : ?string { @@ -250,6 +244,8 @@ public function setBuyerProductIdentifier(?string $buyer_product_identifier) : s /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -270,6 +266,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets shipped_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ItemQuantity */ public function getShippedQuantity() : ItemQuantity { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ItemQuantity.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ItemQuantity.php index 387938f1a..e6613df10 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ItemQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ItemQuantity.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets amount. + * + * @return int */ public function getAmount() : int { @@ -216,6 +208,8 @@ public function setAmount(int $amount) : self /** * Gets unit_of_measure. + * + * @return string */ public function getUnitOfMeasure() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/LabelData.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/LabelData.php index a94409323..8b3c8e6fb 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/LabelData.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/LabelData.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -210,6 +200,8 @@ public function validate() : void /** * Gets package_identifier. + * + * @return null|string */ public function getPackageIdentifier() : ?string { @@ -230,6 +222,8 @@ public function setPackageIdentifier(?string $package_identifier) : self /** * Gets tracking_number. + * + * @return null|string */ public function getTrackingNumber() : ?string { @@ -250,6 +244,8 @@ public function setTrackingNumber(?string $tracking_number) : self /** * Gets ship_method. + * + * @return null|string */ public function getShipMethod() : ?string { @@ -270,6 +266,8 @@ public function setShipMethod(?string $ship_method) : self /** * Gets ship_method_name. + * + * @return null|string */ public function getShipMethodName() : ?string { @@ -290,6 +288,8 @@ public function setShipMethodName(?string $ship_method_name) : self /** * Gets content. + * + * @return string */ public function getContent() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackedItem.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackedItem.php index 881b9eb7b..8076407fe 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackedItem.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackedItem.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -216,6 +206,8 @@ public function validate() : void /** * Gets item_sequence_number. + * + * @return int */ public function getItemSequenceNumber() : int { @@ -236,6 +228,8 @@ public function setItemSequenceNumber(int $item_sequence_number) : self /** * Gets buyer_product_identifier. + * + * @return null|string */ public function getBuyerProductIdentifier() : ?string { @@ -256,6 +250,8 @@ public function setBuyerProductIdentifier(?string $buyer_product_identifier) : s /** * Gets piece_number. + * + * @return null|int */ public function getPieceNumber() : ?int { @@ -276,6 +272,8 @@ public function setPieceNumber(?int $piece_number) : self /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -296,6 +294,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets packed_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ItemQuantity */ public function getPackedQuantity() : ItemQuantity { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackingSlip.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackingSlip.php index ab52870cb..49e8eb902 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackingSlip.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackingSlip.php @@ -118,8 +118,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -128,8 +126,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -139,8 +135,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -149,8 +143,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -159,8 +151,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -172,7 +162,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -232,6 +222,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -252,6 +244,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets content. + * + * @return string */ public function getContent() : string { @@ -272,6 +266,8 @@ public function setContent(string $content) : self /** * Gets content_type. + * + * @return null|string */ public function getContentType() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackingSlipList.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackingSlipList.php index 5418add31..5a1e38e3e 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackingSlipList.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PackingSlipList.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets pagination. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\Pagination */ public function getPagination() : ?Pagination { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Pagination.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Pagination.php index 21e543282..659b68a0a 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Pagination.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Pagination.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PartyIdentification.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PartyIdentification.php index 21a1669ad..408f82a7e 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PartyIdentification.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/PartyIdentification.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets party_id. + * + * @return string */ public function getPartyId() : string { @@ -222,6 +214,8 @@ public function setPartyId(string $party_id) : self /** * Gets address. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\Address */ public function getAddress() : ?Address { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentConfirmation.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentConfirmation.php index abab793c6..bfd44df97 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentConfirmation.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentConfirmation.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -242,6 +232,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -262,6 +254,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets shipment_details. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShipmentDetails */ public function getShipmentDetails() : ShipmentDetails { @@ -282,6 +276,8 @@ public function setShipmentDetails(ShipmentDetails $shipment_details) : self /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -302,6 +298,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets ship_from_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PartyIdentification */ public function getShipFromParty() : PartyIdentification { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentDetails.php index 45df54971..b3cda0028 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentDetails.php @@ -132,8 +132,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -142,8 +140,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -153,8 +149,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -163,8 +157,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -173,8 +165,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -186,7 +176,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -243,6 +233,8 @@ public function validate() : void /** * Gets shipped_date. + * + * @return \DateTimeInterface */ public function getShippedDate() : \DateTimeInterface { @@ -263,6 +255,8 @@ public function setShippedDate(\DateTimeInterface $shipped_date) : self /** * Gets shipment_status. + * + * @return string */ public function getShipmentStatus() : string { @@ -283,6 +277,8 @@ public function setShipmentStatus(string $shipment_status) : self /** * Gets is_priority_shipment. + * + * @return null|bool */ public function getIsPriorityShipment() : ?bool { @@ -303,6 +299,8 @@ public function setIsPriorityShipment(?bool $is_priority_shipment) : self /** * Gets vendor_order_number. + * + * @return null|string */ public function getVendorOrderNumber() : ?string { @@ -323,6 +321,8 @@ public function setVendorOrderNumber(?string $vendor_order_number) : self /** * Gets estimated_delivery_date. + * + * @return null|\DateTimeInterface */ public function getEstimatedDeliveryDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentSchedule.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentSchedule.php index 4727108bc..32aa42680 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentSchedule.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentSchedule.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets estimated_delivery_date_time. + * + * @return null|\DateTimeInterface */ public function getEstimatedDeliveryDateTime() : ?\DateTimeInterface { @@ -215,6 +207,8 @@ public function setEstimatedDeliveryDateTime(?\DateTimeInterface $estimated_deli /** * Gets appt_window_start_date_time. + * + * @return null|\DateTimeInterface */ public function getApptWindowStartDateTime() : ?\DateTimeInterface { @@ -235,6 +229,8 @@ public function setApptWindowStartDateTime(?\DateTimeInterface $appt_window_star /** * Gets appt_window_end_date_time. + * + * @return null|\DateTimeInterface */ public function getApptWindowEndDateTime() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentStatusUpdate.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentStatusUpdate.php index ffcebc2d3..0aec9cbe0 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentStatusUpdate.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShipmentStatusUpdate.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -226,6 +216,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -246,6 +238,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -266,6 +260,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets ship_from_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PartyIdentification */ public function getShipFromParty() : PartyIdentification { @@ -286,6 +282,8 @@ public function setShipFromParty(PartyIdentification $ship_from_party) : self /** * Gets status_update_details. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\StatusUpdateDetails */ public function getStatusUpdateDetails() : StatusUpdateDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabel.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabel.php index de67a33b2..34fc5ec40 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabel.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabel.php @@ -132,8 +132,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -142,8 +140,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -153,8 +149,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -163,8 +157,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -173,8 +165,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -186,7 +176,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -263,6 +253,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -283,6 +275,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -303,6 +297,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets ship_from_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PartyIdentification */ public function getShipFromParty() : PartyIdentification { @@ -323,6 +319,8 @@ public function setShipFromParty(PartyIdentification $ship_from_party) : self /** * Gets label_format. + * + * @return string */ public function getLabelFormat() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabelList.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabelList.php index 7bc549e76..dfbdfb7a4 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabelList.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabelList.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets pagination. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\Pagination */ public function getPagination() : ?Pagination { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabelRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabelRequest.php index 4808be61b..fcb5ec0ab 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabelRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/ShippingLabelRequest.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -220,6 +210,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -240,6 +232,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -260,6 +254,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets ship_from_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\PartyIdentification */ public function getShipFromParty() : PartyIdentification { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/StatusUpdateDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/StatusUpdateDetails.php index 64c217035..ca14ffad7 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/StatusUpdateDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/StatusUpdateDetails.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -238,6 +228,8 @@ public function validate() : void /** * Gets tracking_number. + * + * @return string */ public function getTrackingNumber() : string { @@ -258,6 +250,8 @@ public function setTrackingNumber(string $tracking_number) : self /** * Gets status_code. + * + * @return string */ public function getStatusCode() : string { @@ -278,6 +272,8 @@ public function setStatusCode(string $status_code) : self /** * Gets reason_code. + * + * @return string */ public function getReasonCode() : string { @@ -298,6 +294,8 @@ public function setReasonCode(string $reason_code) : self /** * Gets status_date_time. + * + * @return \DateTimeInterface */ public function getStatusDateTime() : \DateTimeInterface { @@ -318,6 +316,8 @@ public function setStatusDateTime(\DateTimeInterface $status_date_time) : self /** * Gets status_location_address. + * + * @return \AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\Address */ public function getStatusLocationAddress() : Address { @@ -338,6 +338,8 @@ public function setStatusLocationAddress(Address $status_location_address) : sel /** * Gets shipment_schedule. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\ShipmentSchedule */ public function getShipmentSchedule() : ?ShipmentSchedule { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShipmentConfirmationsRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShipmentConfirmationsRequest.php index 61bed30f6..2fb921785 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShipmentConfirmationsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShipmentConfirmationsRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShipmentStatusUpdatesRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShipmentStatusUpdatesRequest.php index 9c4c2affe..3b3ca277e 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShipmentStatusUpdatesRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShipmentStatusUpdatesRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShippingLabelsRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShippingLabelsRequest.php index 1787280f0..02ab6b98f 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShippingLabelsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/SubmitShippingLabelsRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/TaxRegistrationDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/TaxRegistrationDetails.php index 6368e241f..594b0ff8d 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/TaxRegistrationDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/TaxRegistrationDetails.php @@ -126,8 +126,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -136,8 +134,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -147,8 +143,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -157,8 +151,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -167,8 +159,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -180,7 +170,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -237,6 +227,8 @@ public function validate() : void /** * Gets tax_registration_type. + * + * @return null|string */ public function getTaxRegistrationType() : ?string { @@ -257,6 +249,8 @@ public function setTaxRegistrationType(?string $tax_registration_type) : self /** * Gets tax_registration_number. + * + * @return string */ public function getTaxRegistrationNumber() : string { @@ -277,6 +271,8 @@ public function setTaxRegistrationNumber(string $tax_registration_number) : self /** * Gets tax_registration_address. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentShipping\Address */ public function getTaxRegistrationAddress() : ?Address { @@ -297,6 +293,8 @@ public function setTaxRegistrationAddress(?Address $tax_registration_address) : /** * Gets tax_registration_messages. + * + * @return null|string */ public function getTaxRegistrationMessages() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/TransactionReference.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/TransactionReference.php index 5740d70fe..e4a2f99fb 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/TransactionReference.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/TransactionReference.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets transaction_id. + * + * @return null|string */ public function getTransactionId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Weight.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Weight.php index 35b6c9dda..c87fa2a45 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Weight.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentShipping/Weight.php @@ -114,8 +114,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -124,8 +122,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -135,8 +131,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -145,8 +139,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -155,8 +147,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -168,7 +158,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -225,6 +215,8 @@ public function validate() : void /** * Gets unit_of_measure. + * + * @return string */ public function getUnitOfMeasure() : string { @@ -245,6 +237,8 @@ public function setUnitOfMeasure(string $unit_of_measure) : self /** * Gets value. + * + * @return string */ public function getValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/Error.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/Error.php index ed7c2217c..17706cf44 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/ErrorList.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/ErrorList.php index b5cb8c8e9..18ca6c10d 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/ErrorList.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/ErrorList.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/Transaction.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/Transaction.php index 8b46087bf..33e459667 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/Transaction.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/Transaction.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -238,6 +228,8 @@ public function validate() : void /** * Gets transaction_id. + * + * @return string */ public function getTransactionId() : string { @@ -258,6 +250,8 @@ public function setTransactionId(string $transaction_id) : self /** * Gets status. + * + * @return string */ public function getStatus() : string { @@ -278,6 +272,8 @@ public function setStatus(string $status) : self /** * Gets errors. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentTransactions\ErrorList */ public function getErrors() : ?ErrorList { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/TransactionStatus.php b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/TransactionStatus.php index a7879a34d..24296918a 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/TransactionStatus.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorDirectFulfillmentTransactions/TransactionStatus.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets transaction_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorDirectFulfillmentTransactions\Transaction */ public function getTransactionStatus() : ?Transaction { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/AdditionalDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/AdditionalDetails.php index c27eb68e9..464f798a4 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/AdditionalDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/AdditionalDetails.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -234,6 +224,8 @@ public function validate() : void /** * Gets type. + * + * @return string */ public function getType() : string { @@ -254,6 +246,8 @@ public function setType(string $type) : self /** * Gets detail. + * + * @return string */ public function getDetail() : string { @@ -274,6 +268,8 @@ public function setDetail(string $detail) : self /** * Gets language_code. + * + * @return null|string */ public function getLanguageCode() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Address.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Address.php index b236624b0..86814bd2d 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Address.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -258,6 +248,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -278,6 +270,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -298,6 +292,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -318,6 +314,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -338,6 +336,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets city. + * + * @return null|string */ public function getCity() : ?string { @@ -358,6 +358,8 @@ public function setCity(?string $city) : self /** * Gets county. + * + * @return null|string */ public function getCounty() : ?string { @@ -378,6 +380,8 @@ public function setCounty(?string $county) : self /** * Gets district. + * + * @return null|string */ public function getDistrict() : ?string { @@ -398,6 +402,8 @@ public function setDistrict(?string $district) : self /** * Gets state_or_region. + * + * @return null|string */ public function getStateOrRegion() : ?string { @@ -418,6 +424,8 @@ public function setStateOrRegion(?string $state_or_region) : self /** * Gets postal_or_zip_code. + * + * @return null|string */ public function getPostalOrZipCode() : ?string { @@ -438,6 +446,8 @@ public function setPostalOrZipCode(?string $postal_or_zip_code) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -458,6 +468,8 @@ public function setCountryCode(string $country_code) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/AllowanceDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/AllowanceDetails.php index cf31bfa12..1647d7983 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/AllowanceDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/AllowanceDetails.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -251,6 +241,8 @@ public function validate() : void /** * Gets type. + * + * @return string */ public function getType() : string { @@ -271,6 +263,8 @@ public function setType(string $type) : self /** * Gets description. + * + * @return null|string */ public function getDescription() : ?string { @@ -291,6 +285,8 @@ public function setDescription(?string $description) : self /** * Gets allowance_amount. + * + * @return \AmazonPHP\SellingPartner\Model\VendorInvoices\Money */ public function getAllowanceAmount() : Money { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/ChargeDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/ChargeDetails.php index e675a0e02..583cded3a 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/ChargeDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/ChargeDetails.php @@ -144,8 +144,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -154,8 +152,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -165,8 +161,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -175,8 +169,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -185,8 +177,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -198,7 +188,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -266,6 +256,8 @@ public function validate() : void /** * Gets type. + * + * @return string */ public function getType() : string { @@ -286,6 +278,8 @@ public function setType(string $type) : self /** * Gets description. + * + * @return null|string */ public function getDescription() : ?string { @@ -306,6 +300,8 @@ public function setDescription(?string $description) : self /** * Gets charge_amount. + * + * @return \AmazonPHP\SellingPartner\Model\VendorInvoices\Money */ public function getChargeAmount() : Money { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/CreditNoteDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/CreditNoteDetails.php index 73c7d9611..0ca620524 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/CreditNoteDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/CreditNoteDetails.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -219,6 +209,8 @@ public function validate() : void /** * Gets reference_invoice_number. + * + * @return null|string */ public function getReferenceInvoiceNumber() : ?string { @@ -239,6 +231,8 @@ public function setReferenceInvoiceNumber(?string $reference_invoice_number) : s /** * Gets debit_note_number. + * + * @return null|string */ public function getDebitNoteNumber() : ?string { @@ -259,6 +253,8 @@ public function setDebitNoteNumber(?string $debit_note_number) : self /** * Gets returns_reference_number. + * + * @return null|string */ public function getReturnsReferenceNumber() : ?string { @@ -279,6 +275,8 @@ public function setReturnsReferenceNumber(?string $returns_reference_number) : s /** * Gets goods_return_date. + * + * @return null|\DateTimeInterface */ public function getGoodsReturnDate() : ?\DateTimeInterface { @@ -299,6 +297,8 @@ public function setGoodsReturnDate(?\DateTimeInterface $goods_return_date) : sel /** * Gets rma_id. + * + * @return null|string */ public function getRmaId() : ?string { @@ -319,6 +319,8 @@ public function setRmaId(?string $rma_id) : self /** * Gets coop_reference_number. + * + * @return null|string */ public function getCoopReferenceNumber() : ?string { @@ -339,6 +341,8 @@ public function setCoopReferenceNumber(?string $coop_reference_number) : self /** * Gets consignors_reference_number. + * + * @return null|string */ public function getConsignorsReferenceNumber() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Error.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Error.php index 454bc7950..1273a1c87 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Invoice.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Invoice.php index 99844d225..e30db36d9 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Invoice.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Invoice.php @@ -192,8 +192,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -202,8 +200,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -213,8 +209,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -223,8 +217,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -233,8 +225,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -246,7 +236,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -335,6 +325,8 @@ public function validate() : void /** * Gets invoice_type. + * + * @return string */ public function getInvoiceType() : string { @@ -355,6 +347,8 @@ public function setInvoiceType(string $invoice_type) : self /** * Gets id. + * + * @return string */ public function getId() : string { @@ -375,6 +369,8 @@ public function setId(string $id) : self /** * Gets reference_number. + * + * @return null|string */ public function getReferenceNumber() : ?string { @@ -395,6 +391,8 @@ public function setReferenceNumber(?string $reference_number) : self /** * Gets date. + * + * @return \DateTimeInterface */ public function getDate() : \DateTimeInterface { @@ -415,6 +413,8 @@ public function setDate(\DateTimeInterface $date) : self /** * Gets remit_to_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorInvoices\PartyIdentification */ public function getRemitToParty() : PartyIdentification { @@ -435,6 +435,8 @@ public function setRemitToParty(PartyIdentification $remit_to_party) : self /** * Gets ship_to_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorInvoices\PartyIdentification */ public function getShipToParty() : ?PartyIdentification { @@ -455,6 +457,8 @@ public function setShipToParty(?PartyIdentification $ship_to_party) : self /** * Gets ship_from_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorInvoices\PartyIdentification */ public function getShipFromParty() : ?PartyIdentification { @@ -475,6 +479,8 @@ public function setShipFromParty(?PartyIdentification $ship_from_party) : self /** * Gets bill_to_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorInvoices\PartyIdentification */ public function getBillToParty() : ?PartyIdentification { @@ -495,6 +501,8 @@ public function setBillToParty(?PartyIdentification $bill_to_party) : self /** * Gets payment_terms. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorInvoices\PaymentTerms */ public function getPaymentTerms() : ?PaymentTerms { @@ -515,6 +523,8 @@ public function setPaymentTerms(?PaymentTerms $payment_terms) : self /** * Gets invoice_total. + * + * @return \AmazonPHP\SellingPartner\Model\VendorInvoices\Money */ public function getInvoiceTotal() : Money { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/InvoiceItem.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/InvoiceItem.php index 900cc02e4..f193d25f3 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/InvoiceItem.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/InvoiceItem.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -262,6 +252,8 @@ public function validate() : void /** * Gets item_sequence_number. + * + * @return int */ public function getItemSequenceNumber() : int { @@ -282,6 +274,8 @@ public function setItemSequenceNumber(int $item_sequence_number) : self /** * Gets amazon_product_identifier. + * + * @return null|string */ public function getAmazonProductIdentifier() : ?string { @@ -302,6 +296,8 @@ public function setAmazonProductIdentifier(?string $amazon_product_identifier) : /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -322,6 +318,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets invoiced_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorInvoices\ItemQuantity */ public function getInvoicedQuantity() : ItemQuantity { @@ -342,6 +340,8 @@ public function setInvoicedQuantity(ItemQuantity $invoiced_quantity) : self /** * Gets net_cost. + * + * @return \AmazonPHP\SellingPartner\Model\VendorInvoices\Money */ public function getNetCost() : Money { @@ -362,6 +362,8 @@ public function setNetCost(Money $net_cost) : self /** * Gets purchase_order_number. + * + * @return null|string */ public function getPurchaseOrderNumber() : ?string { @@ -382,6 +384,8 @@ public function setPurchaseOrderNumber(?string $purchase_order_number) : self /** * Gets hsn_code. + * + * @return null|string */ public function getHsnCode() : ?string { @@ -402,6 +406,8 @@ public function setHsnCode(?string $hsn_code) : self /** * Gets credit_note_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorInvoices\CreditNoteDetails */ public function getCreditNoteDetails() : ?CreditNoteDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/ItemQuantity.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/ItemQuantity.php index 25670bf0f..9ec09f9c0 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/ItemQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/ItemQuantity.php @@ -120,8 +120,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -130,8 +128,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -141,8 +137,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -151,8 +145,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -161,8 +153,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -174,7 +164,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -231,6 +221,8 @@ public function validate() : void /** * Gets amount. + * + * @return int */ public function getAmount() : int { @@ -251,6 +243,8 @@ public function setAmount(int $amount) : self /** * Gets unit_of_measure. + * + * @return string */ public function getUnitOfMeasure() : string { @@ -271,6 +265,8 @@ public function setUnitOfMeasure(string $unit_of_measure) : self /** * Gets unit_size. + * + * @return null|int */ public function getUnitSize() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Money.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Money.php index ed5df182e..4b7409bb3 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Money.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/Money.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -189,6 +179,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return null|string */ public function getCurrencyCode() : ?string { @@ -209,6 +201,8 @@ public function setCurrencyCode(?string $currency_code) : self /** * Gets amount. + * + * @return null|string */ public function getAmount() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/PartyIdentification.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/PartyIdentification.php index 180d2e966..1c5df1f46 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/PartyIdentification.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/PartyIdentification.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets party_id. + * + * @return string */ public function getPartyId() : string { @@ -222,6 +214,8 @@ public function setPartyId(string $party_id) : self /** * Gets address. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorInvoices\Address */ public function getAddress() : ?Address { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/PaymentTerms.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/PaymentTerms.php index ad1758244..fd0f40773 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/PaymentTerms.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/PaymentTerms.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -241,6 +231,8 @@ public function validate() : void /** * Gets type. + * + * @return null|string */ public function getType() : ?string { @@ -261,6 +253,8 @@ public function setType(?string $type) : self /** * Gets discount_percent. + * + * @return null|string */ public function getDiscountPercent() : ?string { @@ -281,6 +275,8 @@ public function setDiscountPercent(?string $discount_percent) : self /** * Gets discount_due_days. + * + * @return null|float */ public function getDiscountDueDays() : ?float { @@ -301,6 +297,8 @@ public function setDiscountDueDays(?float $discount_due_days) : self /** * Gets net_due_days. + * + * @return null|float */ public function getNetDueDays() : ?float { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/SubmitInvoicesRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/SubmitInvoicesRequest.php index b99fc664a..405ab3cba 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/SubmitInvoicesRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/SubmitInvoicesRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/SubmitInvoicesResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/SubmitInvoicesResponse.php index 9d14e19fb..649ccd6af 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/SubmitInvoicesResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/SubmitInvoicesResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorInvoices\TransactionId */ public function getPayload() : ?TransactionId { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TaxDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TaxDetails.php index c22e36eb6..aa0010c2e 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TaxDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TaxDetails.php @@ -150,8 +150,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -160,8 +158,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -171,8 +167,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -181,8 +175,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -191,8 +183,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -204,7 +194,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -279,6 +269,8 @@ public function validate() : void /** * Gets tax_type. + * + * @return string */ public function getTaxType() : string { @@ -299,6 +291,8 @@ public function setTaxType(string $tax_type) : self /** * Gets tax_rate. + * + * @return null|string */ public function getTaxRate() : ?string { @@ -319,6 +313,8 @@ public function setTaxRate(?string $tax_rate) : self /** * Gets tax_amount. + * + * @return \AmazonPHP\SellingPartner\Model\VendorInvoices\Money */ public function getTaxAmount() : Money { @@ -339,6 +335,8 @@ public function setTaxAmount(Money $tax_amount) : self /** * Gets taxable_amount. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorInvoices\Money */ public function getTaxableAmount() : ?Money { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TaxRegistrationDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TaxRegistrationDetails.php index ae6be3c65..7c0f8be17 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TaxRegistrationDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TaxRegistrationDetails.php @@ -114,8 +114,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -124,8 +122,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -135,8 +131,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -145,8 +139,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -155,8 +147,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -168,7 +158,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -225,6 +215,8 @@ public function validate() : void /** * Gets tax_registration_type. + * + * @return string */ public function getTaxRegistrationType() : string { @@ -245,6 +237,8 @@ public function setTaxRegistrationType(string $tax_registration_type) : self /** * Gets tax_registration_number. + * + * @return string */ public function getTaxRegistrationNumber() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TransactionId.php b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TransactionId.php index a4d9925fd..a7807c545 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TransactionId.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorInvoices/TransactionId.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets transaction_id. + * + * @return null|string */ public function getTransactionId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/AcknowledgementStatusDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/AcknowledgementStatusDetails.php index bfab1caf2..40b037e5c 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/AcknowledgementStatusDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/AcknowledgementStatusDetails.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets acknowledgement_date. + * + * @return null|\DateTimeInterface */ public function getAcknowledgementDate() : ?\DateTimeInterface { @@ -222,6 +214,8 @@ public function setAcknowledgementDate(?\DateTimeInterface $acknowledgement_date /** * Gets accepted_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getAcceptedQuantity() : ?ItemQuantity { @@ -242,6 +236,8 @@ public function setAcceptedQuantity(?ItemQuantity $accepted_quantity) : self /** * Gets rejected_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getRejectedQuantity() : ?ItemQuantity { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/Address.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/Address.php index 2ddd50581..03b134858 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/Address.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -258,6 +248,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -278,6 +270,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -298,6 +292,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -318,6 +314,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -338,6 +336,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets city. + * + * @return null|string */ public function getCity() : ?string { @@ -358,6 +358,8 @@ public function setCity(?string $city) : self /** * Gets county. + * + * @return null|string */ public function getCounty() : ?string { @@ -378,6 +380,8 @@ public function setCounty(?string $county) : self /** * Gets district. + * + * @return null|string */ public function getDistrict() : ?string { @@ -398,6 +402,8 @@ public function setDistrict(?string $district) : self /** * Gets state_or_region. + * + * @return null|string */ public function getStateOrRegion() : ?string { @@ -418,6 +424,8 @@ public function setStateOrRegion(?string $state_or_region) : self /** * Gets postal_code. + * + * @return null|string */ public function getPostalCode() : ?string { @@ -438,6 +446,8 @@ public function setPostalCode(?string $postal_code) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -458,6 +468,8 @@ public function setCountryCode(string $country_code) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/Error.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/Error.php index 5f53f6e72..66d92ae8d 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrderResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrderResponse.php index 078ba53fc..96242da63 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrderResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrderResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\Order */ public function getPayload() : ?Order { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrdersResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrdersResponse.php index 2648a033e..8dd22e930 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrdersResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrdersResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\OrderList */ public function getPayload() : ?OrderList { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrdersStatusResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrdersStatusResponse.php index cc5e90a5b..2da7be91e 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrdersStatusResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/GetPurchaseOrdersStatusResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\OrderListStatus */ public function getPayload() : ?OrderListStatus { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/ImportDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/ImportDetails.php index c05d56aba..85a33c22c 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/ImportDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/ImportDetails.php @@ -162,8 +162,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -172,8 +170,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -183,8 +179,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -193,8 +187,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -203,8 +195,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -216,7 +206,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -311,6 +301,8 @@ public function validate() : void /** * Gets method_of_payment. + * + * @return null|string */ public function getMethodOfPayment() : ?string { @@ -331,6 +323,8 @@ public function setMethodOfPayment(?string $method_of_payment) : self /** * Gets international_commercial_terms. + * + * @return null|string */ public function getInternationalCommercialTerms() : ?string { @@ -351,6 +345,8 @@ public function setInternationalCommercialTerms(?string $international_commercia /** * Gets port_of_delivery. + * + * @return null|string */ public function getPortOfDelivery() : ?string { @@ -371,6 +367,8 @@ public function setPortOfDelivery(?string $port_of_delivery) : self /** * Gets import_containers. + * + * @return null|string */ public function getImportContainers() : ?string { @@ -391,6 +389,8 @@ public function setImportContainers(?string $import_containers) : self /** * Gets shipping_instructions. + * + * @return null|string */ public function getShippingInstructions() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/ItemQuantity.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/ItemQuantity.php index 0419f4368..043f51dba 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/ItemQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/ItemQuantity.php @@ -120,8 +120,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -130,8 +128,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -141,8 +137,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -151,8 +145,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -161,8 +153,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -174,7 +164,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -223,6 +213,8 @@ public function validate() : void /** * Gets amount. + * + * @return null|int */ public function getAmount() : ?int { @@ -243,6 +235,8 @@ public function setAmount(?int $amount) : self /** * Gets unit_of_measure. + * + * @return null|string */ public function getUnitOfMeasure() : ?string { @@ -263,6 +257,8 @@ public function setUnitOfMeasure(?string $unit_of_measure) : self /** * Gets unit_size. + * + * @return null|int */ public function getUnitSize() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/Money.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/Money.php index a5201e209..9211da7d4 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/Money.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/Money.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return null|string */ public function getCurrencyCode() : ?string { @@ -212,6 +204,8 @@ public function setCurrencyCode(?string $currency_code) : self /** * Gets amount. + * + * @return null|string */ public function getAmount() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/Order.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/Order.php index 09b508ade..4bc4483b0 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/Order.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/Order.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -238,6 +228,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -258,6 +250,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets purchase_order_state. + * + * @return string */ public function getPurchaseOrderState() : string { @@ -278,6 +272,8 @@ public function setPurchaseOrderState(string $purchase_order_state) : self /** * Gets order_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\OrderDetails */ public function getOrderDetails() : ?OrderDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderAcknowledgement.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderAcknowledgement.php index e26a9e48a..0d8495a88 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderAcknowledgement.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderAcknowledgement.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -218,6 +208,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -238,6 +230,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorOrders\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -258,6 +252,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets acknowledgement_date. + * + * @return \DateTimeInterface */ public function getAcknowledgementDate() : \DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderAcknowledgementItem.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderAcknowledgementItem.php index 5d61e7d3c..ef9ffe363 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderAcknowledgementItem.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderAcknowledgementItem.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -242,6 +232,8 @@ public function validate() : void /** * Gets item_sequence_number. + * + * @return null|string */ public function getItemSequenceNumber() : ?string { @@ -262,6 +254,8 @@ public function setItemSequenceNumber(?string $item_sequence_number) : self /** * Gets amazon_product_identifier. + * + * @return null|string */ public function getAmazonProductIdentifier() : ?string { @@ -282,6 +276,8 @@ public function setAmazonProductIdentifier(?string $amazon_product_identifier) : /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -302,6 +298,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets ordered_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getOrderedQuantity() : ItemQuantity { @@ -322,6 +320,8 @@ public function setOrderedQuantity(ItemQuantity $ordered_quantity) : self /** * Gets net_cost. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\Money */ public function getNetCost() : ?Money { @@ -342,6 +342,8 @@ public function setNetCost(?Money $net_cost) : self /** * Gets list_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\Money */ public function getListPrice() : ?Money { @@ -362,6 +364,8 @@ public function setListPrice(?Money $list_price) : self /** * Gets discount_multiplier. + * + * @return null|string */ public function getDiscountMultiplier() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderDetails.php index c82c6ee62..427544e11 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderDetails.php @@ -198,8 +198,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -208,8 +206,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -219,8 +215,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -229,8 +223,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -239,8 +231,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -252,7 +242,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -362,6 +352,8 @@ public function validate() : void /** * Gets purchase_order_date. + * + * @return \DateTimeInterface */ public function getPurchaseOrderDate() : \DateTimeInterface { @@ -382,6 +374,8 @@ public function setPurchaseOrderDate(\DateTimeInterface $purchase_order_date) : /** * Gets purchase_order_changed_date. + * + * @return null|\DateTimeInterface */ public function getPurchaseOrderChangedDate() : ?\DateTimeInterface { @@ -402,6 +396,8 @@ public function setPurchaseOrderChangedDate(?\DateTimeInterface $purchase_order_ /** * Gets purchase_order_state_changed_date. + * + * @return \DateTimeInterface */ public function getPurchaseOrderStateChangedDate() : \DateTimeInterface { @@ -422,6 +418,8 @@ public function setPurchaseOrderStateChangedDate(\DateTimeInterface $purchase_or /** * Gets purchase_order_type. + * + * @return null|string */ public function getPurchaseOrderType() : ?string { @@ -442,6 +440,8 @@ public function setPurchaseOrderType(?string $purchase_order_type) : self /** * Gets import_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\ImportDetails */ public function getImportDetails() : ?ImportDetails { @@ -462,6 +462,8 @@ public function setImportDetails(?ImportDetails $import_details) : self /** * Gets deal_code. + * + * @return null|string */ public function getDealCode() : ?string { @@ -482,6 +484,8 @@ public function setDealCode(?string $deal_code) : self /** * Gets payment_method. + * + * @return null|string */ public function getPaymentMethod() : ?string { @@ -502,6 +506,8 @@ public function setPaymentMethod(?string $payment_method) : self /** * Gets buying_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\PartyIdentification */ public function getBuyingParty() : ?PartyIdentification { @@ -522,6 +528,8 @@ public function setBuyingParty(?PartyIdentification $buying_party) : self /** * Gets selling_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\PartyIdentification */ public function getSellingParty() : ?PartyIdentification { @@ -542,6 +550,8 @@ public function setSellingParty(?PartyIdentification $selling_party) : self /** * Gets ship_to_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\PartyIdentification */ public function getShipToParty() : ?PartyIdentification { @@ -562,6 +572,8 @@ public function setShipToParty(?PartyIdentification $ship_to_party) : self /** * Gets bill_to_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\PartyIdentification */ public function getBillToParty() : ?PartyIdentification { @@ -582,6 +594,8 @@ public function setBillToParty(?PartyIdentification $bill_to_party) : self /** * Gets ship_window. + * + * @return null|string */ public function getShipWindow() : ?string { @@ -602,6 +616,8 @@ public function setShipWindow(?string $ship_window) : self /** * Gets delivery_window. + * + * @return null|string */ public function getDeliveryWindow() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItem.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItem.php index 4fd18680b..950704711 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItem.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItem.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets item_sequence_number. + * + * @return string */ public function getItemSequenceNumber() : string { @@ -260,6 +252,8 @@ public function setItemSequenceNumber(string $item_sequence_number) : self /** * Gets amazon_product_identifier. + * + * @return null|string */ public function getAmazonProductIdentifier() : ?string { @@ -280,6 +274,8 @@ public function setAmazonProductIdentifier(?string $amazon_product_identifier) : /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -300,6 +296,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets ordered_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getOrderedQuantity() : ItemQuantity { @@ -320,6 +318,8 @@ public function setOrderedQuantity(ItemQuantity $ordered_quantity) : self /** * Gets is_back_order_allowed. + * + * @return bool */ public function getIsBackOrderAllowed() : bool { @@ -340,6 +340,8 @@ public function setIsBackOrderAllowed(bool $is_back_order_allowed) : self /** * Gets net_cost. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\Money */ public function getNetCost() : ?Money { @@ -360,6 +362,8 @@ public function setNetCost(?Money $net_cost) : self /** * Gets list_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\Money */ public function getListPrice() : ?Money { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemAcknowledgement.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemAcknowledgement.php index 9b5fb6f23..d4951b60b 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemAcknowledgement.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemAcknowledgement.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -280,6 +270,8 @@ public function validate() : void /** * Gets acknowledgement_code. + * + * @return string */ public function getAcknowledgementCode() : string { @@ -300,6 +292,8 @@ public function setAcknowledgementCode(string $acknowledgement_code) : self /** * Gets acknowledged_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getAcknowledgedQuantity() : ItemQuantity { @@ -320,6 +314,8 @@ public function setAcknowledgedQuantity(ItemQuantity $acknowledged_quantity) : s /** * Gets scheduled_ship_date. + * + * @return null|\DateTimeInterface */ public function getScheduledShipDate() : ?\DateTimeInterface { @@ -340,6 +336,8 @@ public function setScheduledShipDate(?\DateTimeInterface $scheduled_ship_date) : /** * Gets scheduled_delivery_date. + * + * @return null|\DateTimeInterface */ public function getScheduledDeliveryDate() : ?\DateTimeInterface { @@ -360,6 +358,8 @@ public function setScheduledDeliveryDate(?\DateTimeInterface $scheduled_delivery /** * Gets rejection_reason. + * + * @return null|string */ public function getRejectionReason() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatus.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatus.php index fbbff3554..1039dfd5e 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatus.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatus.php @@ -146,8 +146,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +154,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +163,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +171,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +179,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +190,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -248,6 +238,8 @@ public function validate() : void /** * Gets item_sequence_number. + * + * @return string */ public function getItemSequenceNumber() : string { @@ -268,6 +260,8 @@ public function setItemSequenceNumber(string $item_sequence_number) : self /** * Gets buyer_product_identifier. + * + * @return null|string */ public function getBuyerProductIdentifier() : ?string { @@ -288,6 +282,8 @@ public function setBuyerProductIdentifier(?string $buyer_product_identifier) : s /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -308,6 +304,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets net_cost. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\Money */ public function getNetCost() : ?Money { @@ -328,6 +326,8 @@ public function setNetCost(?Money $net_cost) : self /** * Gets list_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\Money */ public function getListPrice() : ?Money { @@ -348,6 +348,8 @@ public function setListPrice(?Money $list_price) : self /** * Gets ordered_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\OrderItemStatusOrderedQuantity */ public function getOrderedQuantity() : ?OrderItemStatusOrderedQuantity { @@ -368,6 +370,8 @@ public function setOrderedQuantity(?OrderItemStatusOrderedQuantity $ordered_quan /** * Gets acknowledgement_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\OrderItemStatusAcknowledgementStatus */ public function getAcknowledgementStatus() : ?OrderItemStatusAcknowledgementStatus { @@ -388,6 +392,8 @@ public function setAcknowledgementStatus(?OrderItemStatusAcknowledgementStatus $ /** * Gets receiving_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\OrderItemStatusReceivingStatus */ public function getReceivingStatus() : ?OrderItemStatusReceivingStatus { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusAcknowledgementStatus.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusAcknowledgementStatus.php index 83e1cf13c..a13324cd8 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusAcknowledgementStatus.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusAcknowledgementStatus.php @@ -130,8 +130,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -140,8 +138,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -151,8 +147,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -161,8 +155,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -171,8 +163,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -184,7 +174,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -243,6 +233,8 @@ public function validate() : void /** * Gets confirmation_status. + * + * @return null|string */ public function getConfirmationStatus() : ?string { @@ -263,6 +255,8 @@ public function setConfirmationStatus(?string $confirmation_status) : self /** * Gets accepted_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getAcceptedQuantity() : ?ItemQuantity { @@ -283,6 +277,8 @@ public function setAcceptedQuantity(?ItemQuantity $accepted_quantity) : self /** * Gets rejected_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getRejectedQuantity() : ?ItemQuantity { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusOrderedQuantity.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusOrderedQuantity.php index bf56df6ec..5d5501e79 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusOrderedQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusOrderedQuantity.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets ordered_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getOrderedQuantity() : ?ItemQuantity { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusReceivingStatus.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusReceivingStatus.php index 574c28ebe..e0947b159 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusReceivingStatus.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderItemStatusReceivingStatus.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -230,6 +220,8 @@ public function validate() : void /** * Gets receive_status. + * + * @return null|string */ public function getReceiveStatus() : ?string { @@ -250,6 +242,8 @@ public function setReceiveStatus(?string $receive_status) : self /** * Gets received_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getReceivedQuantity() : ?ItemQuantity { @@ -270,6 +264,8 @@ public function setReceivedQuantity(?ItemQuantity $received_quantity) : self /** * Gets last_receive_date. + * + * @return null|\DateTimeInterface */ public function getLastReceiveDate() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderList.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderList.php index f01bdadd3..24f510b91 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderList.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderList.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets pagination. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\Pagination */ public function getPagination() : ?Pagination { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderListStatus.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderListStatus.php index c99f2a6ba..54040eb85 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderListStatus.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderListStatus.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets pagination. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\Pagination */ public function getPagination() : ?Pagination { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderStatus.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderStatus.php index 1c86a91b9..d39974467 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderStatus.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderStatus.php @@ -144,8 +144,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -154,8 +152,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -165,8 +161,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -175,8 +169,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -185,8 +177,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -198,7 +188,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -275,6 +265,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return string */ public function getPurchaseOrderNumber() : string { @@ -295,6 +287,8 @@ public function setPurchaseOrderNumber(string $purchase_order_number) : self /** * Gets purchase_order_status. + * + * @return string */ public function getPurchaseOrderStatus() : string { @@ -315,6 +309,8 @@ public function setPurchaseOrderStatus(string $purchase_order_status) : self /** * Gets purchase_order_date. + * + * @return \DateTimeInterface */ public function getPurchaseOrderDate() : \DateTimeInterface { @@ -335,6 +331,8 @@ public function setPurchaseOrderDate(\DateTimeInterface $purchase_order_date) : /** * Gets last_updated_date. + * + * @return null|\DateTimeInterface */ public function getLastUpdatedDate() : ?\DateTimeInterface { @@ -355,6 +353,8 @@ public function setLastUpdatedDate(?\DateTimeInterface $last_updated_date) : sel /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorOrders\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -375,6 +375,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets ship_to_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorOrders\PartyIdentification */ public function getShipToParty() : PartyIdentification { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderedQuantityDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderedQuantityDetails.php index eadbea7d1..f0beac111 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderedQuantityDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/OrderedQuantityDetails.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets updated_date. + * + * @return null|\DateTimeInterface */ public function getUpdatedDate() : ?\DateTimeInterface { @@ -222,6 +214,8 @@ public function setUpdatedDate(?\DateTimeInterface $updated_date) : self /** * Gets ordered_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getOrderedQuantity() : ?ItemQuantity { @@ -242,6 +236,8 @@ public function setOrderedQuantity(?ItemQuantity $ordered_quantity) : self /** * Gets cancelled_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\ItemQuantity */ public function getCancelledQuantity() : ?ItemQuantity { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/Pagination.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/Pagination.php index da164bd07..098143c35 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/Pagination.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/Pagination.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets next_token. + * + * @return null|string */ public function getNextToken() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/PartyIdentification.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/PartyIdentification.php index 7711bc78c..5adfe6917 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/PartyIdentification.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/PartyIdentification.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -206,6 +196,8 @@ public function validate() : void /** * Gets party_id. + * + * @return string */ public function getPartyId() : string { @@ -226,6 +218,8 @@ public function setPartyId(string $party_id) : self /** * Gets address. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\Address */ public function getAddress() : ?Address { @@ -246,6 +240,8 @@ public function setAddress(?Address $address) : self /** * Gets tax_info. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\TaxRegistrationDetails */ public function getTaxInfo() : ?TaxRegistrationDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/SubmitAcknowledgementRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/SubmitAcknowledgementRequest.php index e6e3e1618..32c27d665 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/SubmitAcknowledgementRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/SubmitAcknowledgementRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/SubmitAcknowledgementResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/SubmitAcknowledgementResponse.php index 1f036e2bb..90da4c739 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/SubmitAcknowledgementResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/SubmitAcknowledgementResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorOrders\TransactionId */ public function getPayload() : ?TransactionId { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/TaxRegistrationDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/TaxRegistrationDetails.php index 0a2326d82..771115117 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/TaxRegistrationDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/TaxRegistrationDetails.php @@ -114,8 +114,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -124,8 +122,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -135,8 +131,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -145,8 +139,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -155,8 +147,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -168,7 +158,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -225,6 +215,8 @@ public function validate() : void /** * Gets tax_registration_type. + * + * @return string */ public function getTaxRegistrationType() : string { @@ -245,6 +237,8 @@ public function setTaxRegistrationType(string $tax_registration_type) : self /** * Gets tax_registration_number. + * + * @return string */ public function getTaxRegistrationNumber() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorOrders/TransactionId.php b/src/AmazonPHP/SellingPartner/Model/VendorOrders/TransactionId.php index 5a172bbb3..f5792916e 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorOrders/TransactionId.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorOrders/TransactionId.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets transaction_id. + * + * @return null|string */ public function getTransactionId() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Address.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Address.php index 7b541543d..96e31460a 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Address.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Address.php @@ -164,8 +164,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -174,8 +172,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -185,8 +181,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -195,8 +189,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -205,8 +197,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -218,7 +208,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -254,6 +244,8 @@ public function validate() : void /** * Gets name. + * + * @return string */ public function getName() : string { @@ -274,6 +266,8 @@ public function setName(string $name) : self /** * Gets address_line1. + * + * @return string */ public function getAddressLine1() : string { @@ -294,6 +288,8 @@ public function setAddressLine1(string $address_line1) : self /** * Gets address_line2. + * + * @return null|string */ public function getAddressLine2() : ?string { @@ -314,6 +310,8 @@ public function setAddressLine2(?string $address_line2) : self /** * Gets address_line3. + * + * @return null|string */ public function getAddressLine3() : ?string { @@ -334,6 +332,8 @@ public function setAddressLine3(?string $address_line3) : self /** * Gets city. + * + * @return null|string */ public function getCity() : ?string { @@ -354,6 +354,8 @@ public function setCity(?string $city) : self /** * Gets county. + * + * @return null|string */ public function getCounty() : ?string { @@ -374,6 +376,8 @@ public function setCounty(?string $county) : self /** * Gets district. + * + * @return null|string */ public function getDistrict() : ?string { @@ -394,6 +398,8 @@ public function setDistrict(?string $district) : self /** * Gets state_or_region. + * + * @return null|string */ public function getStateOrRegion() : ?string { @@ -414,6 +420,8 @@ public function setStateOrRegion(?string $state_or_region) : self /** * Gets postal_code. + * + * @return null|string */ public function getPostalCode() : ?string { @@ -434,6 +442,8 @@ public function setPostalCode(?string $postal_code) : self /** * Gets country_code. + * + * @return string */ public function getCountryCode() : string { @@ -454,6 +464,8 @@ public function setCountryCode(string $country_code) : self /** * Gets phone. + * + * @return null|string */ public function getPhone() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/CarrierDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/CarrierDetails.php new file mode 100644 index 000000000..8fbbf7edd --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/CarrierDetails.php @@ -0,0 +1,368 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class CarrierDetails implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'CarrierDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'name' => 'string', + 'code' => 'string', + 'phone' => 'string', + 'email' => 'string', + 'shipment_reference_number' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'name' => null, + 'code' => null, + 'phone' => null, + 'email' => null, + 'shipment_reference_number' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'name' => 'name', + 'code' => 'code', + 'phone' => 'phone', + 'email' => 'email', + 'shipment_reference_number' => 'shipmentReferenceNumber', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'name' => 'setName', + 'code' => 'setCode', + 'phone' => 'setPhone', + 'email' => 'setEmail', + 'shipment_reference_number' => 'setShipmentReferenceNumber', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'name' => 'getName', + 'code' => 'getCode', + 'phone' => 'getPhone', + 'email' => 'getEmail', + 'shipment_reference_number' => 'getShipmentReferenceNumber', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = $data['name'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['phone'] = $data['phone'] ?? null; + $this->container['email'] = $data['email'] ?? null; + $this->container['shipment_reference_number'] = $data['shipment_reference_number'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets name. + * + * @return null|string + */ + public function getName() : ?string + { + return $this->container['name']; + } + + /** + * Sets name. + * + * @param null|string $name the field is used to represent the carrier used for performing the shipment + */ + public function setName(?string $name) : self + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets code. + * + * @return null|string + */ + public function getCode() : ?string + { + return $this->container['code']; + } + + /** + * Sets code. + * + * @param null|string $code Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association). + */ + public function setCode(?string $code) : self + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets phone. + * + * @return null|string + */ + public function getPhone() : ?string + { + return $this->container['phone']; + } + + /** + * Sets phone. + * + * @param null|string $phone the field is used to represent the Carrier contact number + */ + public function setPhone(?string $phone) : self + { + $this->container['phone'] = $phone; + + return $this; + } + + /** + * Gets email. + * + * @return null|string + */ + public function getEmail() : ?string + { + return $this->container['email']; + } + + /** + * Sets email. + * + * @param null|string $email the field is used to represent the carrier Email id + */ + public function setEmail(?string $email) : self + { + $this->container['email'] = $email; + + return $this; + } + + /** + * Gets shipment_reference_number. + * + * @return null|string + */ + public function getShipmentReferenceNumber() : ?string + { + return $this->container['shipment_reference_number']; + } + + /** + * Sets shipment_reference_number. + * + * @param null|string $shipment_reference_number The field is also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for US, CA, MX shipment confirmations. + */ + public function setShipmentReferenceNumber(?string $shipment_reference_number) : self + { + $this->container['shipment_reference_number'] = $shipment_reference_number; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Carton.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Carton.php index aaebf2cb0..47b9ea51a 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Carton.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Carton.php @@ -134,8 +134,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -144,8 +142,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -155,8 +151,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -165,8 +159,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -175,8 +167,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -188,7 +178,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -250,6 +240,8 @@ public function setCartonIdentifiers(?array $carton_identifiers) : self /** * Gets carton_sequence_number. + * + * @return string */ public function getCartonSequenceNumber() : string { @@ -270,6 +262,8 @@ public function setCartonSequenceNumber(string $carton_sequence_number) : self /** * Gets dimensions. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Dimensions */ public function getDimensions() : ?Dimensions { @@ -290,6 +284,8 @@ public function setDimensions(?Dimensions $dimensions) : self /** * Gets weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Weight */ public function getWeight() : ?Weight { @@ -310,6 +306,8 @@ public function setWeight(?Weight $weight) : self /** * Gets tracking_number. + * + * @return null|string */ public function getTrackingNumber() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/CartonReferenceDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/CartonReferenceDetails.php index a74f62fa3..4f1a219ff 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/CartonReferenceDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/CartonReferenceDetails.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets carton_count. + * + * @return null|int */ public function getCartonCount() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/CollectFreightPickupDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/CollectFreightPickupDetails.php new file mode 100644 index 000000000..8a013caac --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/CollectFreightPickupDetails.php @@ -0,0 +1,312 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class CollectFreightPickupDetails implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'collectFreightPickupDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'requested_pick_up' => '\DateTimeInterface', + 'scheduled_pick_up' => '\DateTimeInterface', + 'carrier_assignment_date' => '\DateTimeInterface', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'requested_pick_up' => 'date-time', + 'scheduled_pick_up' => 'date-time', + 'carrier_assignment_date' => 'date-time', + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'requested_pick_up' => 'requestedPickUp', + 'scheduled_pick_up' => 'scheduledPickUp', + 'carrier_assignment_date' => 'carrierAssignmentDate', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'requested_pick_up' => 'setRequestedPickUp', + 'scheduled_pick_up' => 'setScheduledPickUp', + 'carrier_assignment_date' => 'setCarrierAssignmentDate', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'requested_pick_up' => 'getRequestedPickUp', + 'scheduled_pick_up' => 'getScheduledPickUp', + 'carrier_assignment_date' => 'getCarrierAssignmentDate', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['requested_pick_up'] = $data['requested_pick_up'] ?? null; + $this->container['scheduled_pick_up'] = $data['scheduled_pick_up'] ?? null; + $this->container['carrier_assignment_date'] = $data['carrier_assignment_date'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets requested_pick_up. + * + * @return null|\DateTimeInterface + */ + public function getRequestedPickUp() : ?\DateTimeInterface + { + return $this->container['requested_pick_up']; + } + + /** + * Sets requested_pick_up. + * + * @param null|\DateTimeInterface $requested_pick_up date on which the items can be picked up from vendor warehouse by Buyer used for WePay/Collect vendors + */ + public function setRequestedPickUp(?\DateTimeInterface $requested_pick_up) : self + { + $this->container['requested_pick_up'] = $requested_pick_up; + + return $this; + } + + /** + * Gets scheduled_pick_up. + * + * @return null|\DateTimeInterface + */ + public function getScheduledPickUp() : ?\DateTimeInterface + { + return $this->container['scheduled_pick_up']; + } + + /** + * Sets scheduled_pick_up. + * + * @param null|\DateTimeInterface $scheduled_pick_up date on which the items are scheduled to be picked from vendor warehouse by Buyer used for WePay/Collect vendors + */ + public function setScheduledPickUp(?\DateTimeInterface $scheduled_pick_up) : self + { + $this->container['scheduled_pick_up'] = $scheduled_pick_up; + + return $this; + } + + /** + * Gets carrier_assignment_date. + * + * @return null|\DateTimeInterface + */ + public function getCarrierAssignmentDate() : ?\DateTimeInterface + { + return $this->container['carrier_assignment_date']; + } + + /** + * Sets carrier_assignment_date. + * + * @param null|\DateTimeInterface $carrier_assignment_date date on which the carrier is being scheduled to pickup items from vendor warehouse by Byer used for WePay/Collect vendors + */ + public function setCarrierAssignmentDate(?\DateTimeInterface $carrier_assignment_date) : self + { + $this->container['carrier_assignment_date'] = $carrier_assignment_date; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerIdentification.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerIdentification.php index 86b13a4c3..c43dd1012 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerIdentification.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerIdentification.php @@ -120,8 +120,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -130,8 +128,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -141,8 +137,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -151,8 +145,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -161,8 +153,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -174,7 +164,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -234,6 +224,8 @@ public function validate() : void /** * Gets container_identification_type. + * + * @return string */ public function getContainerIdentificationType() : string { @@ -254,6 +246,8 @@ public function setContainerIdentificationType(string $container_identification_ /** * Gets container_identification_number. + * + * @return string */ public function getContainerIdentificationNumber() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerItem.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerItem.php index 90be57057..61a1f7d05 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerItem.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerItem.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets item_reference. + * + * @return string */ public function getItemReference() : string { @@ -228,6 +220,8 @@ public function setItemReference(string $item_reference) : self /** * Gets shipped_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\ItemQuantity */ public function getShippedQuantity() : ItemQuantity { @@ -248,6 +242,8 @@ public function setShippedQuantity(ItemQuantity $shipped_quantity) : self /** * Gets item_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\ItemDetails */ public function getItemDetails() : ?ItemDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerSequenceNumbers.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerSequenceNumbers.php new file mode 100644 index 000000000..e8a6a226b --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ContainerSequenceNumbers.php @@ -0,0 +1,256 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ContainerSequenceNumbers implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ContainerSequenceNumbers'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'container_sequence_number' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'container_sequence_number' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'container_sequence_number' => 'containerSequenceNumber', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'container_sequence_number' => 'setContainerSequenceNumber', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'container_sequence_number' => 'getContainerSequenceNumber', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['container_sequence_number'] = $data['container_sequence_number'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets container_sequence_number. + * + * @return null|string + */ + public function getContainerSequenceNumber() : ?string + { + return $this->container['container_sequence_number']; + } + + /** + * Sets container_sequence_number. + * + * @param null|string $container_sequence_number A list of containers shipped + */ + public function setContainerSequenceNumber(?string $container_sequence_number) : self + { + $this->container['container_sequence_number'] = $container_sequence_number; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Containers.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Containers.php new file mode 100644 index 000000000..f926468ae --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Containers.php @@ -0,0 +1,556 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class Containers implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const CONTAINER_TYPE_CARTON = 'carton'; + + final public const CONTAINER_TYPE_PALLET = 'pallet'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'containers'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'container_type' => 'string', + 'container_sequence_number' => 'string', + 'container_identifiers' => '\AmazonPHP\SellingPartner\Model\VendorShipments\ContainerIdentification[]', + 'tracking_number' => 'string', + 'dimensions' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Dimensions', + 'weight' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Weight', + 'tier' => 'int', + 'block' => 'int', + 'inner_containers_details' => '\AmazonPHP\SellingPartner\Model\VendorShipments\InnerContainersDetails', + 'packed_items' => '\AmazonPHP\SellingPartner\Model\VendorShipments\PackedItems[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'container_type' => null, + 'container_sequence_number' => null, + 'container_identifiers' => null, + 'tracking_number' => null, + 'dimensions' => null, + 'weight' => null, + 'tier' => null, + 'block' => null, + 'inner_containers_details' => null, + 'packed_items' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'container_type' => 'containerType', + 'container_sequence_number' => 'containerSequenceNumber', + 'container_identifiers' => 'containerIdentifiers', + 'tracking_number' => 'trackingNumber', + 'dimensions' => 'dimensions', + 'weight' => 'weight', + 'tier' => 'tier', + 'block' => 'block', + 'inner_containers_details' => 'innerContainersDetails', + 'packed_items' => 'packedItems', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'container_type' => 'setContainerType', + 'container_sequence_number' => 'setContainerSequenceNumber', + 'container_identifiers' => 'setContainerIdentifiers', + 'tracking_number' => 'setTrackingNumber', + 'dimensions' => 'setDimensions', + 'weight' => 'setWeight', + 'tier' => 'setTier', + 'block' => 'setBlock', + 'inner_containers_details' => 'setInnerContainersDetails', + 'packed_items' => 'setPackedItems', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'container_type' => 'getContainerType', + 'container_sequence_number' => 'getContainerSequenceNumber', + 'container_identifiers' => 'getContainerIdentifiers', + 'tracking_number' => 'getTrackingNumber', + 'dimensions' => 'getDimensions', + 'weight' => 'getWeight', + 'tier' => 'getTier', + 'block' => 'getBlock', + 'inner_containers_details' => 'getInnerContainersDetails', + 'packed_items' => 'getPackedItems', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['container_type'] = $data['container_type'] ?? null; + $this->container['container_sequence_number'] = $data['container_sequence_number'] ?? null; + $this->container['container_identifiers'] = $data['container_identifiers'] ?? null; + $this->container['tracking_number'] = $data['tracking_number'] ?? null; + $this->container['dimensions'] = $data['dimensions'] ?? null; + $this->container['weight'] = $data['weight'] ?? null; + $this->container['tier'] = $data['tier'] ?? null; + $this->container['block'] = $data['block'] ?? null; + $this->container['inner_containers_details'] = $data['inner_containers_details'] ?? null; + $this->container['packed_items'] = $data['packed_items'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getContainerTypeAllowableValues() : array + { + return [ + self::CONTAINER_TYPE_CARTON, + self::CONTAINER_TYPE_PALLET, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['container_type'] === null) { + throw new AssertionException("'container_type' can't be null"); + } + + $allowedValues = $this->getContainerTypeAllowableValues(); + + if (null !== $this->container['container_type'] && !\in_array($this->container['container_type'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'container_type', must be one of '%s'", + $this->container['container_type'], + \implode("', '", $allowedValues) + ) + ); + } + + if ($this->container['container_identifiers'] === null) { + throw new AssertionException("'container_identifiers' can't be null"); + } + + if ($this->container['dimensions'] !== null) { + $this->container['dimensions']->validate(); + } + + if ($this->container['weight'] !== null) { + $this->container['weight']->validate(); + } + + if ($this->container['inner_containers_details'] !== null) { + $this->container['inner_containers_details']->validate(); + } + } + + /** + * Gets container_type. + * + * @return string + */ + public function getContainerType() : string + { + return $this->container['container_type']; + } + + /** + * Sets container_type. + * + * @param string $container_type the type of container + */ + public function setContainerType(string $container_type) : self + { + $this->container['container_type'] = $container_type; + + return $this; + } + + /** + * Gets container_sequence_number. + * + * @return null|string + */ + public function getContainerSequenceNumber() : ?string + { + return $this->container['container_sequence_number']; + } + + /** + * Sets container_sequence_number. + * + * @param null|string $container_sequence_number an integer that must be submitted for multi-box shipments only, where one item may come in separate packages + */ + public function setContainerSequenceNumber(?string $container_sequence_number) : self + { + $this->container['container_sequence_number'] = $container_sequence_number; + + return $this; + } + + /** + * Gets container_identifiers. + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\ContainerIdentification[] + */ + public function getContainerIdentifiers() : array + { + return $this->container['container_identifiers']; + } + + /** + * Sets container_identifiers. + * + * @param \AmazonPHP\SellingPartner\Model\VendorShipments\ContainerIdentification[] $container_identifiers a list of carton identifiers + */ + public function setContainerIdentifiers(array $container_identifiers) : self + { + $this->container['container_identifiers'] = $container_identifiers; + + return $this; + } + + /** + * Gets tracking_number. + * + * @return null|string + */ + public function getTrackingNumber() : ?string + { + return $this->container['tracking_number']; + } + + /** + * Sets tracking_number. + * + * @param null|string $tracking_number the tracking number used for identifying the shipment + */ + public function setTrackingNumber(?string $tracking_number) : self + { + $this->container['tracking_number'] = $tracking_number; + + return $this; + } + + /** + * Gets dimensions. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Dimensions + */ + public function getDimensions() : ?Dimensions + { + return $this->container['dimensions']; + } + + /** + * Sets dimensions. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Dimensions $dimensions dimensions + */ + public function setDimensions(?Dimensions $dimensions) : self + { + $this->container['dimensions'] = $dimensions; + + return $this; + } + + /** + * Gets weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Weight + */ + public function getWeight() : ?Weight + { + return $this->container['weight']; + } + + /** + * Sets weight. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Weight $weight weight + */ + public function setWeight(?Weight $weight) : self + { + $this->container['weight'] = $weight; + + return $this; + } + + /** + * Gets tier. + * + * @return null|int + */ + public function getTier() : ?int + { + return $this->container['tier']; + } + + /** + * Sets tier. + * + * @param null|int $tier number of layers per pallet + */ + public function setTier(?int $tier) : self + { + $this->container['tier'] = $tier; + + return $this; + } + + /** + * Gets block. + * + * @return null|int + */ + public function getBlock() : ?int + { + return $this->container['block']; + } + + /** + * Sets block. + * + * @param null|int $block number of cartons per layer on the pallet + */ + public function setBlock(?int $block) : self + { + $this->container['block'] = $block; + + return $this; + } + + /** + * Gets inner_containers_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\InnerContainersDetails + */ + public function getInnerContainersDetails() : ?InnerContainersDetails + { + return $this->container['inner_containers_details']; + } + + /** + * Sets inner_containers_details. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\InnerContainersDetails $inner_containers_details inner_containers_details + */ + public function setInnerContainersDetails(?InnerContainersDetails $inner_containers_details) : self + { + $this->container['inner_containers_details'] = $inner_containers_details; + + return $this; + } + + /** + * Gets packed_items. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\PackedItems[] + */ + public function getPackedItems() : ?array + { + return $this->container['packed_items']; + } + + /** + * Sets packed_items. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\PackedItems[] $packed_items a list of packed items + */ + public function setPackedItems(?array $packed_items) : self + { + $this->container['packed_items'] = $packed_items; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Dimensions.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Dimensions.php index a64dee74a..9f929a4f8 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Dimensions.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Dimensions.php @@ -130,8 +130,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -140,8 +138,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -151,8 +147,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -161,8 +155,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -171,8 +163,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -184,7 +174,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -251,6 +241,8 @@ public function validate() : void /** * Gets length. + * + * @return string */ public function getLength() : string { @@ -271,6 +263,8 @@ public function setLength(string $length) : self /** * Gets width. + * + * @return string */ public function getWidth() : string { @@ -291,6 +285,8 @@ public function setWidth(string $width) : self /** * Gets height. + * + * @return string */ public function getHeight() : string { @@ -311,6 +307,8 @@ public function setHeight(string $height) : self /** * Gets unit_of_measure. + * + * @return string */ public function getUnitOfMeasure() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Duration.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Duration.php index bebefa4d9..9e4de6ef0 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Duration.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Duration.php @@ -114,8 +114,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -124,8 +122,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -135,8 +131,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -145,8 +139,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -155,8 +147,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -168,7 +158,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -225,6 +215,8 @@ public function validate() : void /** * Gets duration_unit. + * + * @return string */ public function getDurationUnit() : string { @@ -245,6 +237,8 @@ public function setDurationUnit(string $duration_unit) : self /** * Gets duration_value. + * + * @return int */ public function getDurationValue() : int { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Error.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Error.php index ec07b6451..f9ff746b6 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Expiry.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Expiry.php index 121f3725e..e71222df0 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Expiry.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Expiry.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -198,6 +188,8 @@ public function validate() : void /** * Gets manufacturer_date. + * + * @return null|\DateTimeInterface */ public function getManufacturerDate() : ?\DateTimeInterface { @@ -218,6 +210,8 @@ public function setManufacturerDate(?\DateTimeInterface $manufacturer_date) : se /** * Gets expiry_date. + * + * @return null|\DateTimeInterface */ public function getExpiryDate() : ?\DateTimeInterface { @@ -238,6 +232,8 @@ public function setExpiryDate(?\DateTimeInterface $expiry_date) : self /** * Gets expiry_after_duration. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Duration */ public function getExpiryAfterDuration() : ?Duration { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/GetShipmentDetailsResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/GetShipmentDetailsResponse.php new file mode 100644 index 000000000..0074a59e3 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/GetShipmentDetailsResponse.php @@ -0,0 +1,287 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class GetShipmentDetailsResponse implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'GetShipmentDetailsResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'payload' => '\AmazonPHP\SellingPartner\Model\VendorShipments\ShipmentDetails', + 'errors' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Error[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'payload' => null, + 'errors' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'payload' => 'payload', + 'errors' => 'errors', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'payload' => 'setPayload', + 'errors' => 'setErrors', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'payload' => 'getPayload', + 'errors' => 'getErrors', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['payload'] = $data['payload'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['payload'] !== null) { + $this->container['payload']->validate(); + } + } + + /** + * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\ShipmentDetails + */ + public function getPayload() : ?ShipmentDetails + { + return $this->container['payload']; + } + + /** + * Sets payload. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\ShipmentDetails $payload payload + */ + public function setPayload(?ShipmentDetails $payload) : self + { + $this->container['payload'] = $payload; + + return $this; + } + + /** + * Gets errors. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Error[] + */ + public function getErrors() : ?array + { + return $this->container['errors']; + } + + /** + * Sets errors. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Error[] $errors a list of error responses returned when a request is unsuccessful + */ + public function setErrors(?array $errors) : self + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/GetShipmentLabels.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/GetShipmentLabels.php new file mode 100644 index 000000000..2c2d8e113 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/GetShipmentLabels.php @@ -0,0 +1,287 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class GetShipmentLabels implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'GetShipmentLabels'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'payload' => '\AmazonPHP\SellingPartner\Model\VendorShipments\TransportationLabels', + 'errors' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Error[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'payload' => null, + 'errors' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'payload' => 'payload', + 'errors' => 'errors', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'payload' => 'setPayload', + 'errors' => 'setErrors', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'payload' => 'getPayload', + 'errors' => 'getErrors', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['payload'] = $data['payload'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['payload'] !== null) { + $this->container['payload']->validate(); + } + } + + /** + * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\TransportationLabels + */ + public function getPayload() : ?TransportationLabels + { + return $this->container['payload']; + } + + /** + * Sets payload. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\TransportationLabels $payload payload + */ + public function setPayload(?TransportationLabels $payload) : self + { + $this->container['payload'] = $payload; + + return $this; + } + + /** + * Gets errors. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Error[] + */ + public function getErrors() : ?array + { + return $this->container['errors']; + } + + /** + * Sets errors. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Error[] $errors a list of error responses returned when a request is unsuccessful + */ + public function setErrors(?array $errors) : self + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ImportDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ImportDetails.php index 843980137..c62191095 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ImportDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ImportDetails.php @@ -39,6 +39,14 @@ class ImportDetails implements \ArrayAccess, \JsonSerializable, \Stringable, Mod final public const METHOD_OF_PAYMENT_PAID_BY_SELLER = 'PaidBySeller'; + final public const HANDLING_INSTRUCTIONS_OVERSIZED = 'Oversized'; + + final public const HANDLING_INSTRUCTIONS_FRAGILE = 'Fragile'; + + final public const HANDLING_INSTRUCTIONS_FOOD = 'Food'; + + final public const HANDLING_INSTRUCTIONS_HANDLE_WITH_CARE = 'HandleWithCare'; + /** * The original name of the model. * @@ -58,6 +66,7 @@ class ImportDetails implements \ArrayAccess, \JsonSerializable, \Stringable, Mod 'import_containers' => 'string', 'billable_weight' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Weight', 'estimated_ship_by_date' => '\DateTimeInterface', + 'handling_instructions' => 'string', ]; /** @@ -76,6 +85,7 @@ class ImportDetails implements \ArrayAccess, \JsonSerializable, \Stringable, Mod 'import_containers' => null, 'billable_weight' => null, 'estimated_ship_by_date' => 'date-time', + 'handling_instructions' => null, ]; /** @@ -91,6 +101,7 @@ class ImportDetails implements \ArrayAccess, \JsonSerializable, \Stringable, Mod 'import_containers' => 'importContainers', 'billable_weight' => 'billableWeight', 'estimated_ship_by_date' => 'estimatedShipByDate', + 'handling_instructions' => 'handlingInstructions', ]; /** @@ -105,6 +116,7 @@ class ImportDetails implements \ArrayAccess, \JsonSerializable, \Stringable, Mod 'import_containers' => 'setImportContainers', 'billable_weight' => 'setBillableWeight', 'estimated_ship_by_date' => 'setEstimatedShipByDate', + 'handling_instructions' => 'setHandlingInstructions', ]; /** @@ -119,6 +131,7 @@ class ImportDetails implements \ArrayAccess, \JsonSerializable, \Stringable, Mod 'import_containers' => 'getImportContainers', 'billable_weight' => 'getBillableWeight', 'estimated_ship_by_date' => 'getEstimatedShipByDate', + 'handling_instructions' => 'getHandlingInstructions', ]; /** @@ -142,12 +155,11 @@ public function __construct(array $data = null) $this->container['import_containers'] = $data['import_containers'] ?? null; $this->container['billable_weight'] = $data['billable_weight'] ?? null; $this->container['estimated_ship_by_date'] = $data['estimated_ship_by_date'] ?? null; + $this->container['handling_instructions'] = $data['handling_instructions'] ?? null; } /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -156,8 +168,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -167,8 +177,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -177,8 +185,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -187,8 +193,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -200,7 +204,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -231,6 +235,21 @@ public function getMethodOfPaymentAllowableValues() : array ]; } + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getHandlingInstructionsAllowableValues() : array + { + return [ + self::HANDLING_INSTRUCTIONS_OVERSIZED, + self::HANDLING_INSTRUCTIONS_FRAGILE, + self::HANDLING_INSTRUCTIONS_FOOD, + self::HANDLING_INSTRUCTIONS_HANDLE_WITH_CARE, + ]; + } + /** * Validate all properties. * @@ -261,10 +280,24 @@ public function validate() : void if ($this->container['billable_weight'] !== null) { $this->container['billable_weight']->validate(); } + + $allowedValues = $this->getHandlingInstructionsAllowableValues(); + + if (null !== $this->container['handling_instructions'] && !\in_array($this->container['handling_instructions'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'handling_instructions', must be one of '%s'", + $this->container['handling_instructions'], + \implode("', '", $allowedValues) + ) + ); + } } /** * Gets method_of_payment. + * + * @return null|string */ public function getMethodOfPayment() : ?string { @@ -285,6 +318,8 @@ public function setMethodOfPayment(?string $method_of_payment) : self /** * Gets seal_number. + * + * @return null|string */ public function getSealNumber() : ?string { @@ -305,6 +340,8 @@ public function setSealNumber(?string $seal_number) : self /** * Gets route. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Route */ public function getRoute() : ?Route { @@ -325,6 +362,8 @@ public function setRoute(?Route $route) : self /** * Gets import_containers. + * + * @return null|string */ public function getImportContainers() : ?string { @@ -345,6 +384,8 @@ public function setImportContainers(?string $import_containers) : self /** * Gets billable_weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Weight */ public function getBillableWeight() : ?Weight { @@ -365,6 +406,8 @@ public function setBillableWeight(?Weight $billable_weight) : self /** * Gets estimated_ship_by_date. + * + * @return null|\DateTimeInterface */ public function getEstimatedShipByDate() : ?\DateTimeInterface { @@ -383,6 +426,28 @@ public function setEstimatedShipByDate(?\DateTimeInterface $estimated_ship_by_da return $this; } + /** + * Gets handling_instructions. + * + * @return null|string + */ + public function getHandlingInstructions() : ?string + { + return $this->container['handling_instructions']; + } + + /** + * Sets handling_instructions. + * + * @param null|string $handling_instructions identification of the instructions on how specified item/carton/pallet should be handled + */ + public function setHandlingInstructions(?string $handling_instructions) : self + { + $this->container['handling_instructions'] = $handling_instructions; + + return $this; + } + /** * Returns true if offset exists. False otherwise. */ diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/InnerContainersDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/InnerContainersDetails.php new file mode 100644 index 000000000..bc558849e --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/InnerContainersDetails.php @@ -0,0 +1,284 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class InnerContainersDetails implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'InnerContainersDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'container_count' => 'int', + 'container_sequence_numbers' => '\AmazonPHP\SellingPartner\Model\VendorShipments\ContainerSequenceNumbers[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'container_count' => null, + 'container_sequence_numbers' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'container_count' => 'containerCount', + 'container_sequence_numbers' => 'containerSequenceNumbers', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'container_count' => 'setContainerCount', + 'container_sequence_numbers' => 'setContainerSequenceNumbers', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'container_count' => 'getContainerCount', + 'container_sequence_numbers' => 'getContainerSequenceNumbers', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['container_count'] = $data['container_count'] ?? null; + $this->container['container_sequence_numbers'] = $data['container_sequence_numbers'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets container_count. + * + * @return null|int + */ + public function getContainerCount() : ?int + { + return $this->container['container_count']; + } + + /** + * Sets container_count. + * + * @param null|int $container_count Total containers as part of the shipment + */ + public function setContainerCount(?int $container_count) : self + { + $this->container['container_count'] = $container_count; + + return $this; + } + + /** + * Gets container_sequence_numbers. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\ContainerSequenceNumbers[] + */ + public function getContainerSequenceNumbers() : ?array + { + return $this->container['container_sequence_numbers']; + } + + /** + * Sets container_sequence_numbers. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\ContainerSequenceNumbers[] $container_sequence_numbers container sequence numbers that are involved in this shipment + */ + public function setContainerSequenceNumbers(?array $container_sequence_numbers) : self + { + $this->container['container_sequence_numbers'] = $container_sequence_numbers; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Item.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Item.php index c35fa3b15..fd97cb2e1 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Item.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Item.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -220,6 +210,8 @@ public function validate() : void /** * Gets item_sequence_number. + * + * @return string */ public function getItemSequenceNumber() : string { @@ -240,6 +232,8 @@ public function setItemSequenceNumber(string $item_sequence_number) : self /** * Gets amazon_product_identifier. + * + * @return null|string */ public function getAmazonProductIdentifier() : ?string { @@ -249,7 +243,7 @@ public function getAmazonProductIdentifier() : ?string /** * Sets amazon_product_identifier. * - * @param null|string $amazon_product_identifier amazon Standard Identification Number (ASIN) of an item + * @param null|string $amazon_product_identifier buyer Standard Identification Number (ASIN) of an item */ public function setAmazonProductIdentifier(?string $amazon_product_identifier) : self { @@ -260,6 +254,8 @@ public function setAmazonProductIdentifier(?string $amazon_product_identifier) : /** * Gets vendor_product_identifier. + * + * @return null|string */ public function getVendorProductIdentifier() : ?string { @@ -280,6 +276,8 @@ public function setVendorProductIdentifier(?string $vendor_product_identifier) : /** * Gets shipped_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\ItemQuantity */ public function getShippedQuantity() : ItemQuantity { @@ -300,6 +298,8 @@ public function setShippedQuantity(ItemQuantity $shipped_quantity) : self /** * Gets item_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\ItemDetails */ public function getItemDetails() : ?ItemDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ItemDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ItemDetails.php index 7bf1cda0d..384c169d5 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ItemDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ItemDetails.php @@ -136,8 +136,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -146,8 +144,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -157,8 +153,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -167,8 +161,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -177,8 +169,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -190,7 +180,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -249,6 +239,8 @@ public function validate() : void /** * Gets purchase_order_number. + * + * @return null|string */ public function getPurchaseOrderNumber() : ?string { @@ -258,7 +250,7 @@ public function getPurchaseOrderNumber() : ?string /** * Sets purchase_order_number. * - * @param null|string $purchase_order_number The Amazon purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. + * @param null|string $purchase_order_number The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. */ public function setPurchaseOrderNumber(?string $purchase_order_number) : self { @@ -269,6 +261,8 @@ public function setPurchaseOrderNumber(?string $purchase_order_number) : self /** * Gets lot_number. + * + * @return null|string */ public function getLotNumber() : ?string { @@ -289,6 +283,8 @@ public function setLotNumber(?string $lot_number) : self /** * Gets expiry. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Expiry */ public function getExpiry() : ?Expiry { @@ -309,6 +305,8 @@ public function setExpiry(?Expiry $expiry) : self /** * Gets maximum_retail_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Money */ public function getMaximumRetailPrice() : ?Money { @@ -329,6 +327,8 @@ public function setMaximumRetailPrice(?Money $maximum_retail_price) : self /** * Gets handling_code. + * + * @return null|string */ public function getHandlingCode() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ItemQuantity.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ItemQuantity.php index 78c50e7bf..111251ec0 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ItemQuantity.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ItemQuantity.php @@ -120,8 +120,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -130,8 +128,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -141,8 +137,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -151,8 +145,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -161,8 +153,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -174,7 +164,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -231,6 +221,8 @@ public function validate() : void /** * Gets amount. + * + * @return int */ public function getAmount() : int { @@ -251,6 +243,8 @@ public function setAmount(int $amount) : self /** * Gets unit_of_measure. + * + * @return string */ public function getUnitOfMeasure() : string { @@ -271,6 +265,8 @@ public function setUnitOfMeasure(string $unit_of_measure) : self /** * Gets unit_size. + * + * @return null|int */ public function getUnitSize() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/LabelData.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/LabelData.php new file mode 100644 index 000000000..4244a1ca8 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/LabelData.php @@ -0,0 +1,393 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class LabelData implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const LABEL_FORMAT_PDF = 'PDF'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'LabelData'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'label_sequence_number' => 'int', + 'label_format' => 'string', + 'carrier_code' => 'string', + 'tracking_id' => 'string', + 'label' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'label_sequence_number' => null, + 'label_format' => null, + 'carrier_code' => null, + 'tracking_id' => null, + 'label' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'label_sequence_number' => 'labelSequenceNumber', + 'label_format' => 'labelFormat', + 'carrier_code' => 'carrierCode', + 'tracking_id' => 'trackingId', + 'label' => 'label', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'label_sequence_number' => 'setLabelSequenceNumber', + 'label_format' => 'setLabelFormat', + 'carrier_code' => 'setCarrierCode', + 'tracking_id' => 'setTrackingId', + 'label' => 'setLabel', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'label_sequence_number' => 'getLabelSequenceNumber', + 'label_format' => 'getLabelFormat', + 'carrier_code' => 'getCarrierCode', + 'tracking_id' => 'getTrackingId', + 'label' => 'getLabel', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['label_sequence_number'] = $data['label_sequence_number'] ?? null; + $this->container['label_format'] = $data['label_format'] ?? null; + $this->container['carrier_code'] = $data['carrier_code'] ?? null; + $this->container['tracking_id'] = $data['tracking_id'] ?? null; + $this->container['label'] = $data['label'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getLabelFormatAllowableValues() : array + { + return [ + self::LABEL_FORMAT_PDF, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + $allowedValues = $this->getLabelFormatAllowableValues(); + + if (null !== $this->container['label_format'] && !\in_array($this->container['label_format'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'label_format', must be one of '%s'", + $this->container['label_format'], + \implode("', '", $allowedValues) + ) + ); + } + } + + /** + * Gets label_sequence_number. + * + * @return null|int + */ + public function getLabelSequenceNumber() : ?int + { + return $this->container['label_sequence_number']; + } + + /** + * Sets label_sequence_number. + * + * @param null|int $label_sequence_number Label list sequence number + */ + public function setLabelSequenceNumber(?int $label_sequence_number) : self + { + $this->container['label_sequence_number'] = $label_sequence_number; + + return $this; + } + + /** + * Gets label_format. + * + * @return null|string + */ + public function getLabelFormat() : ?string + { + return $this->container['label_format']; + } + + /** + * Sets label_format. + * + * @param null|string $label_format Type of the label format like PDF + */ + public function setLabelFormat(?string $label_format) : self + { + $this->container['label_format'] = $label_format; + + return $this; + } + + /** + * Gets carrier_code. + * + * @return null|string + */ + public function getCarrierCode() : ?string + { + return $this->container['carrier_code']; + } + + /** + * Sets carrier_code. + * + * @param null|string $carrier_code Unique identification for the carrier like UPS,DHL,USPS..etc + */ + public function setCarrierCode(?string $carrier_code) : self + { + $this->container['carrier_code'] = $carrier_code; + + return $this; + } + + /** + * Gets tracking_id. + * + * @return null|string + */ + public function getTrackingId() : ?string + { + return $this->container['tracking_id']; + } + + /** + * Sets tracking_id. + * + * @param null|string $tracking_id tracking Id for the transportation + */ + public function setTrackingId(?string $tracking_id) : self + { + $this->container['tracking_id'] = $tracking_id; + + return $this; + } + + /** + * Gets label. + * + * @return null|string + */ + public function getLabel() : ?string + { + return $this->container['label']; + } + + /** + * Sets label. + * + * @param null|string $label Label created as part of the transportation and it is base64 encoded + */ + public function setLabel(?string $label) : self + { + $this->container['label'] = $label; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Location.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Location.php index 16e8d8b81..bae9f2d8b 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Location.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Location.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -195,6 +185,8 @@ public function validate() : void /** * Gets type. + * + * @return null|string */ public function getType() : ?string { @@ -215,6 +207,8 @@ public function setType(?string $type) : self /** * Gets location_code. + * + * @return null|string */ public function getLocationCode() : ?string { @@ -235,6 +229,8 @@ public function setLocationCode(?string $location_code) : self /** * Gets country_code. + * + * @return null|string */ public function getCountryCode() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Money.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Money.php index 86cb5e63b..ce468bd78 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Money.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Money.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +186,8 @@ public function validate() : void /** * Gets currency_code. + * + * @return string */ public function getCurrencyCode() : string { @@ -216,6 +208,8 @@ public function setCurrencyCode(string $currency_code) : self /** * Gets amount. + * + * @return string */ public function getAmount() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/PackageItemDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PackageItemDetails.php new file mode 100644 index 000000000..f2a309e86 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PackageItemDetails.php @@ -0,0 +1,315 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class PackageItemDetails implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'PackageItemDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'purchase_order_number' => 'string', + 'lot_number' => 'string', + 'expiry' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Expiry', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'purchase_order_number' => null, + 'lot_number' => null, + 'expiry' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'purchase_order_number' => 'purchaseOrderNumber', + 'lot_number' => 'lotNumber', + 'expiry' => 'expiry', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'purchase_order_number' => 'setPurchaseOrderNumber', + 'lot_number' => 'setLotNumber', + 'expiry' => 'setExpiry', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'purchase_order_number' => 'getPurchaseOrderNumber', + 'lot_number' => 'getLotNumber', + 'expiry' => 'getExpiry', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; + $this->container['lot_number'] = $data['lot_number'] ?? null; + $this->container['expiry'] = $data['expiry'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['expiry'] !== null) { + $this->container['expiry']->validate(); + } + } + + /** + * Gets purchase_order_number. + * + * @return null|string + */ + public function getPurchaseOrderNumber() : ?string + { + return $this->container['purchase_order_number']; + } + + /** + * Sets purchase_order_number. + * + * @param null|string $purchase_order_number The purchase order number for the shipment being confirmed. If the items in this shipment belong to multiple purchase order numbers that are in particular carton or pallet within the shipment, then provide the purchaseOrderNumber at the appropriate carton or pallet level. Formatting Notes: 8-character alpha-numeric code. + */ + public function setPurchaseOrderNumber(?string $purchase_order_number) : self + { + $this->container['purchase_order_number'] = $purchase_order_number; + + return $this; + } + + /** + * Gets lot_number. + * + * @return null|string + */ + public function getLotNumber() : ?string + { + return $this->container['lot_number']; + } + + /** + * Sets lot_number. + * + * @param null|string $lot_number The batch or lot number associates an item with information the manufacturer considers relevant for traceability of the trade item to which the Element String is applied. The data may refer to the trade item itself or to items contained. This field is mandatory for all perishable items. + */ + public function setLotNumber(?string $lot_number) : self + { + $this->container['lot_number'] = $lot_number; + + return $this; + } + + /** + * Gets expiry. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Expiry + */ + public function getExpiry() : ?Expiry + { + return $this->container['expiry']; + } + + /** + * Sets expiry. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Expiry $expiry expiry + */ + public function setExpiry(?Expiry $expiry) : self + { + $this->container['expiry'] = $expiry; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/PackedItems.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PackedItems.php new file mode 100644 index 000000000..f7c681967 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PackedItems.php @@ -0,0 +1,375 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class PackedItems implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'PackedItems'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'item_sequence_number' => 'string', + 'buyer_product_identifier' => 'string', + 'vendor_product_identifier' => 'string', + 'packed_quantity' => '\AmazonPHP\SellingPartner\Model\VendorShipments\ItemQuantity', + 'item_details' => '\AmazonPHP\SellingPartner\Model\VendorShipments\PackageItemDetails', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'item_sequence_number' => null, + 'buyer_product_identifier' => null, + 'vendor_product_identifier' => null, + 'packed_quantity' => null, + 'item_details' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'item_sequence_number' => 'itemSequenceNumber', + 'buyer_product_identifier' => 'buyerProductIdentifier', + 'vendor_product_identifier' => 'vendorProductIdentifier', + 'packed_quantity' => 'packedQuantity', + 'item_details' => 'itemDetails', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'item_sequence_number' => 'setItemSequenceNumber', + 'buyer_product_identifier' => 'setBuyerProductIdentifier', + 'vendor_product_identifier' => 'setVendorProductIdentifier', + 'packed_quantity' => 'setPackedQuantity', + 'item_details' => 'setItemDetails', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'item_sequence_number' => 'getItemSequenceNumber', + 'buyer_product_identifier' => 'getBuyerProductIdentifier', + 'vendor_product_identifier' => 'getVendorProductIdentifier', + 'packed_quantity' => 'getPackedQuantity', + 'item_details' => 'getItemDetails', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; + $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; + $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; + $this->container['packed_quantity'] = $data['packed_quantity'] ?? null; + $this->container['item_details'] = $data['item_details'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['packed_quantity'] !== null) { + $this->container['packed_quantity']->validate(); + } + + if ($this->container['item_details'] !== null) { + $this->container['item_details']->validate(); + } + } + + /** + * Gets item_sequence_number. + * + * @return null|string + */ + public function getItemSequenceNumber() : ?string + { + return $this->container['item_sequence_number']; + } + + /** + * Sets item_sequence_number. + * + * @param null|string $item_sequence_number Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. + */ + public function setItemSequenceNumber(?string $item_sequence_number) : self + { + $this->container['item_sequence_number'] = $item_sequence_number; + + return $this; + } + + /** + * Gets buyer_product_identifier. + * + * @return null|string + */ + public function getBuyerProductIdentifier() : ?string + { + return $this->container['buyer_product_identifier']; + } + + /** + * Sets buyer_product_identifier. + * + * @param null|string $buyer_product_identifier buyer Standard Identification Number (ASIN) of an item + */ + public function setBuyerProductIdentifier(?string $buyer_product_identifier) : self + { + $this->container['buyer_product_identifier'] = $buyer_product_identifier; + + return $this; + } + + /** + * Gets vendor_product_identifier. + * + * @return null|string + */ + public function getVendorProductIdentifier() : ?string + { + return $this->container['vendor_product_identifier']; + } + + /** + * Sets vendor_product_identifier. + * + * @param null|string $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was sent in the purchase order. + */ + public function setVendorProductIdentifier(?string $vendor_product_identifier) : self + { + $this->container['vendor_product_identifier'] = $vendor_product_identifier; + + return $this; + } + + /** + * Gets packed_quantity. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\ItemQuantity + */ + public function getPackedQuantity() : ?ItemQuantity + { + return $this->container['packed_quantity']; + } + + /** + * Sets packed_quantity. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\ItemQuantity $packed_quantity packed_quantity + */ + public function setPackedQuantity(?ItemQuantity $packed_quantity) : self + { + $this->container['packed_quantity'] = $packed_quantity; + + return $this; + } + + /** + * Gets item_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\PackageItemDetails + */ + public function getItemDetails() : ?PackageItemDetails + { + return $this->container['item_details']; + } + + /** + * Sets item_details. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\PackageItemDetails $item_details item_details + */ + public function setItemDetails(?PackageItemDetails $item_details) : self + { + $this->container['item_details'] = $item_details; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/PackedQuantity.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PackedQuantity.php new file mode 100644 index 000000000..e2ba41e12 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PackedQuantity.php @@ -0,0 +1,348 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class PackedQuantity implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const UNIT_OF_MEASURE_CASES = 'Cases'; + + final public const UNIT_OF_MEASURE_EACHES = 'Eaches'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'packedQuantity'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'amount' => 'int', + 'unit_of_measure' => 'string', + 'unit_size' => 'int', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'amount' => null, + 'unit_of_measure' => null, + 'unit_size' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'amount' => 'amount', + 'unit_of_measure' => 'unitOfMeasure', + 'unit_size' => 'unitSize', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'amount' => 'setAmount', + 'unit_of_measure' => 'setUnitOfMeasure', + 'unit_size' => 'setUnitSize', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'amount' => 'getAmount', + 'unit_of_measure' => 'getUnitOfMeasure', + 'unit_size' => 'getUnitSize', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['amount'] = $data['amount'] ?? null; + $this->container['unit_of_measure'] = $data['unit_of_measure'] ?? null; + $this->container['unit_size'] = $data['unit_size'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getUnitOfMeasureAllowableValues() : array + { + return [ + self::UNIT_OF_MEASURE_CASES, + self::UNIT_OF_MEASURE_EACHES, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['amount'] === null) { + throw new AssertionException("'amount' can't be null"); + } + + if ($this->container['unit_of_measure'] === null) { + throw new AssertionException("'unit_of_measure' can't be null"); + } + + $allowedValues = $this->getUnitOfMeasureAllowableValues(); + + if (null !== $this->container['unit_of_measure'] && !\in_array($this->container['unit_of_measure'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'unit_of_measure', must be one of '%s'", + $this->container['unit_of_measure'], + \implode("', '", $allowedValues) + ) + ); + } + } + + /** + * Gets amount. + * + * @return int + */ + public function getAmount() : int + { + return $this->container['amount']; + } + + /** + * Sets amount. + * + * @param int $amount Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level. + */ + public function setAmount(int $amount) : self + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets unit_of_measure. + * + * @return string + */ + public function getUnitOfMeasure() : string + { + return $this->container['unit_of_measure']; + } + + /** + * Sets unit_of_measure. + * + * @param string $unit_of_measure unit of measure for the shipped quantity + */ + public function setUnitOfMeasure(string $unit_of_measure) : self + { + $this->container['unit_of_measure'] = $unit_of_measure; + + return $this; + } + + /** + * Gets unit_size. + * + * @return null|int + */ + public function getUnitSize() : ?int + { + return $this->container['unit_size']; + } + + /** + * Sets unit_size. + * + * @param null|int $unit_size The case size, in the event that we ordered using cases. Otherwise, 1. + */ + public function setUnitSize(?int $unit_size) : self + { + $this->container['unit_size'] = $unit_size; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Pagination.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Pagination.php new file mode 100644 index 000000000..27c9c1a56 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Pagination.php @@ -0,0 +1,256 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class Pagination implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'Pagination'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'next_token' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'next_token' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'next_token' => 'nextToken', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'next_token' => 'setNextToken', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'next_token' => 'getNextToken', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = $data['next_token'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets next_token. + * + * @return null|string + */ + public function getNextToken() : ?string + { + return $this->container['next_token']; + } + + /** + * Sets next_token. + * + * @param null|string $next_token A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more order items to return. + */ + public function setNextToken(?string $next_token) : self + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Pallet.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Pallet.php index e6bc8e003..6b7bdb25b 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Pallet.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Pallet.php @@ -140,8 +140,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -150,8 +148,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -161,8 +157,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -171,8 +165,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -181,8 +173,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -194,7 +184,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -256,6 +246,8 @@ public function setPalletIdentifiers(array $pallet_identifiers) : self /** * Gets tier. + * + * @return null|int */ public function getTier() : ?int { @@ -265,7 +257,7 @@ public function getTier() : ?int /** * Sets tier. * - * @param null|int $tier number of layers per pallet + * @param null|int $tier Number of layers per pallet. Only applicable to container type Pallet. */ public function setTier(?int $tier) : self { @@ -276,6 +268,8 @@ public function setTier(?int $tier) : self /** * Gets block. + * + * @return null|int */ public function getBlock() : ?int { @@ -285,7 +279,7 @@ public function getBlock() : ?int /** * Sets block. * - * @param null|int $block number of cartons per layer on the pallet + * @param null|int $block Number of cartons per layer on the pallet. Only applicable to container type Pallet. */ public function setBlock(?int $block) : self { @@ -296,6 +290,8 @@ public function setBlock(?int $block) : self /** * Gets dimensions. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Dimensions */ public function getDimensions() : ?Dimensions { @@ -316,6 +312,8 @@ public function setDimensions(?Dimensions $dimensions) : self /** * Gets weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Weight */ public function getWeight() : ?Weight { @@ -336,6 +334,8 @@ public function setWeight(?Weight $weight) : self /** * Gets carton_reference_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\CartonReferenceDetails */ public function getCartonReferenceDetails() : ?CartonReferenceDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/PartyIdentification.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PartyIdentification.php index 34fbf0a64..33ea92b1c 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/PartyIdentification.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PartyIdentification.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets address. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Address */ public function getAddress() : ?Address { @@ -222,6 +214,8 @@ public function setAddress(?Address $address) : self /** * Gets party_id. + * + * @return string */ public function getPartyId() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrderItemDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrderItemDetails.php new file mode 100644 index 000000000..ebb71278f --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrderItemDetails.php @@ -0,0 +1,259 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class PurchaseOrderItemDetails implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'PurchaseOrderItemDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'maximum_retail_price' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Money', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'maximum_retail_price' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'maximum_retail_price' => 'maximumRetailPrice', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'maximum_retail_price' => 'setMaximumRetailPrice', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'maximum_retail_price' => 'getMaximumRetailPrice', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['maximum_retail_price'] = $data['maximum_retail_price'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['maximum_retail_price'] !== null) { + $this->container['maximum_retail_price']->validate(); + } + } + + /** + * Gets maximum_retail_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Money + */ + public function getMaximumRetailPrice() : ?Money + { + return $this->container['maximum_retail_price']; + } + + /** + * Sets maximum_retail_price. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Money $maximum_retail_price maximum_retail_price + */ + public function setMaximumRetailPrice(?Money $maximum_retail_price) : self + { + $this->container['maximum_retail_price'] = $maximum_retail_price; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrderItems.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrderItems.php new file mode 100644 index 000000000..187e0b5fb --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrderItems.php @@ -0,0 +1,381 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class PurchaseOrderItems implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'PurchaseOrderItems'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'item_sequence_number' => 'string', + 'buyer_product_identifier' => 'string', + 'vendor_product_identifier' => 'string', + 'shipped_quantity' => '\AmazonPHP\SellingPartner\Model\VendorShipments\ItemQuantity', + 'maximum_retail_price' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Money', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'item_sequence_number' => null, + 'buyer_product_identifier' => null, + 'vendor_product_identifier' => null, + 'shipped_quantity' => null, + 'maximum_retail_price' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'item_sequence_number' => 'itemSequenceNumber', + 'buyer_product_identifier' => 'buyerProductIdentifier', + 'vendor_product_identifier' => 'vendorProductIdentifier', + 'shipped_quantity' => 'shippedQuantity', + 'maximum_retail_price' => 'maximumRetailPrice', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'item_sequence_number' => 'setItemSequenceNumber', + 'buyer_product_identifier' => 'setBuyerProductIdentifier', + 'vendor_product_identifier' => 'setVendorProductIdentifier', + 'shipped_quantity' => 'setShippedQuantity', + 'maximum_retail_price' => 'setMaximumRetailPrice', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'item_sequence_number' => 'getItemSequenceNumber', + 'buyer_product_identifier' => 'getBuyerProductIdentifier', + 'vendor_product_identifier' => 'getVendorProductIdentifier', + 'shipped_quantity' => 'getShippedQuantity', + 'maximum_retail_price' => 'getMaximumRetailPrice', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['item_sequence_number'] = $data['item_sequence_number'] ?? null; + $this->container['buyer_product_identifier'] = $data['buyer_product_identifier'] ?? null; + $this->container['vendor_product_identifier'] = $data['vendor_product_identifier'] ?? null; + $this->container['shipped_quantity'] = $data['shipped_quantity'] ?? null; + $this->container['maximum_retail_price'] = $data['maximum_retail_price'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['item_sequence_number'] === null) { + throw new AssertionException("'item_sequence_number' can't be null"); + } + + if ($this->container['shipped_quantity'] === null) { + throw new AssertionException("'shipped_quantity' can't be null"); + } + + $this->container['shipped_quantity']->validate(); + + if ($this->container['maximum_retail_price'] !== null) { + $this->container['maximum_retail_price']->validate(); + } + } + + /** + * Gets item_sequence_number. + * + * @return string + */ + public function getItemSequenceNumber() : string + { + return $this->container['item_sequence_number']; + } + + /** + * Sets item_sequence_number. + * + * @param string $item_sequence_number Item sequence number for the item. The first item will be 001, the second 002, and so on. This number is used as a reference to refer to this item from the carton or pallet level. + */ + public function setItemSequenceNumber(string $item_sequence_number) : self + { + $this->container['item_sequence_number'] = $item_sequence_number; + + return $this; + } + + /** + * Gets buyer_product_identifier. + * + * @return null|string + */ + public function getBuyerProductIdentifier() : ?string + { + return $this->container['buyer_product_identifier']; + } + + /** + * Sets buyer_product_identifier. + * + * @param null|string $buyer_product_identifier Amazon Standard Identification Number (ASIN) for a SKU + */ + public function setBuyerProductIdentifier(?string $buyer_product_identifier) : self + { + $this->container['buyer_product_identifier'] = $buyer_product_identifier; + + return $this; + } + + /** + * Gets vendor_product_identifier. + * + * @return null|string + */ + public function getVendorProductIdentifier() : ?string + { + return $this->container['vendor_product_identifier']; + } + + /** + * Sets vendor_product_identifier. + * + * @param null|string $vendor_product_identifier The vendor selected product identification of the item. Should be the same as was sent in the purchase order. + */ + public function setVendorProductIdentifier(?string $vendor_product_identifier) : self + { + $this->container['vendor_product_identifier'] = $vendor_product_identifier; + + return $this; + } + + /** + * Gets shipped_quantity. + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\ItemQuantity + */ + public function getShippedQuantity() : ItemQuantity + { + return $this->container['shipped_quantity']; + } + + /** + * Sets shipped_quantity. + * + * @param \AmazonPHP\SellingPartner\Model\VendorShipments\ItemQuantity $shipped_quantity shipped_quantity + */ + public function setShippedQuantity(ItemQuantity $shipped_quantity) : self + { + $this->container['shipped_quantity'] = $shipped_quantity; + + return $this; + } + + /** + * Gets maximum_retail_price. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Money + */ + public function getMaximumRetailPrice() : ?Money + { + return $this->container['maximum_retail_price']; + } + + /** + * Sets maximum_retail_price. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Money $maximum_retail_price maximum_retail_price + */ + public function setMaximumRetailPrice(?Money $maximum_retail_price) : self + { + $this->container['maximum_retail_price'] = $maximum_retail_price; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrders.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrders.php new file mode 100644 index 000000000..dbdae0fb2 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/PurchaseOrders.php @@ -0,0 +1,340 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class PurchaseOrders implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'purchaseOrders'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'purchase_order_number' => 'string', + 'purchase_order_date' => '\DateTimeInterface', + 'ship_window' => 'string', + 'items' => '\AmazonPHP\SellingPartner\Model\VendorShipments\PurchaseOrderItems[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'purchase_order_number' => null, + 'purchase_order_date' => 'date-time', + 'ship_window' => null, + 'items' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'purchase_order_number' => 'purchaseOrderNumber', + 'purchase_order_date' => 'purchaseOrderDate', + 'ship_window' => 'shipWindow', + 'items' => 'items', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'purchase_order_number' => 'setPurchaseOrderNumber', + 'purchase_order_date' => 'setPurchaseOrderDate', + 'ship_window' => 'setShipWindow', + 'items' => 'setItems', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'purchase_order_number' => 'getPurchaseOrderNumber', + 'purchase_order_date' => 'getPurchaseOrderDate', + 'ship_window' => 'getShipWindow', + 'items' => 'getItems', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['purchase_order_number'] = $data['purchase_order_number'] ?? null; + $this->container['purchase_order_date'] = $data['purchase_order_date'] ?? null; + $this->container['ship_window'] = $data['ship_window'] ?? null; + $this->container['items'] = $data['items'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets purchase_order_number. + * + * @return null|string + */ + public function getPurchaseOrderNumber() : ?string + { + return $this->container['purchase_order_number']; + } + + /** + * Sets purchase_order_number. + * + * @param null|string $purchase_order_number purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment + */ + public function setPurchaseOrderNumber(?string $purchase_order_number) : self + { + $this->container['purchase_order_number'] = $purchase_order_number; + + return $this; + } + + /** + * Gets purchase_order_date. + * + * @return null|\DateTimeInterface + */ + public function getPurchaseOrderDate() : ?\DateTimeInterface + { + return $this->container['purchase_order_date']; + } + + /** + * Sets purchase_order_date. + * + * @param null|\DateTimeInterface $purchase_order_date purchase order numbers involved in this shipment, list all the PO that are involved as part of this shipment + */ + public function setPurchaseOrderDate(?\DateTimeInterface $purchase_order_date) : self + { + $this->container['purchase_order_date'] = $purchase_order_date; + + return $this; + } + + /** + * Gets ship_window. + * + * @return null|string + */ + public function getShipWindow() : ?string + { + return $this->container['ship_window']; + } + + /** + * Sets ship_window. + * + * @param null|string $ship_window date range in which shipment is expected for these purchase orders + */ + public function setShipWindow(?string $ship_window) : self + { + $this->container['ship_window'] = $ship_window; + + return $this; + } + + /** + * Gets items. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\PurchaseOrderItems[] + */ + public function getItems() : ?array + { + return $this->container['items']; + } + + /** + * Sets items. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\PurchaseOrderItems[] $items a list of the items that are associated to the PO in this transport and their associated details + */ + public function setItems(?array $items) : self + { + $this->container['items'] = $items; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Route.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Route.php index b3a86507b..a3468c6d6 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Route.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Route.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Shipment.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Shipment.php new file mode 100644 index 000000000..c65a7fcf3 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Shipment.php @@ -0,0 +1,926 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class Shipment implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const TRANSACTION_TYPE__NEW = 'New'; + + final public const TRANSACTION_TYPE_CANCEL = 'Cancel'; + + final public const CURRENT_SHIPMENT_STATUS_CREATED = 'Created'; + + final public const CURRENT_SHIPMENT_STATUS_TRANSPORTATION_REQUESTED = 'TransportationRequested'; + + final public const CURRENT_SHIPMENT_STATUS_CARRIER_ASSIGNED = 'CarrierAssigned'; + + final public const CURRENT_SHIPMENT_STATUS_SHIPPED = 'Shipped'; + + final public const SHIPMENT_FREIGHT_TERM_COLLECT = 'Collect'; + + final public const SHIPMENT_FREIGHT_TERM_PREPAID = 'Prepaid'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'Shipment'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'vendor_shipment_identifier' => 'string', + 'transaction_type' => 'string', + 'buyer_reference_number' => 'string', + 'transaction_date' => '\DateTimeInterface', + 'current_shipment_status' => 'string', + 'currentshipment_status_date' => '\DateTimeInterface', + 'shipment_status_details' => '\AmazonPHP\SellingPartner\Model\VendorShipments\ShipmentStatusDetails[]', + 'shipment_create_date' => '\DateTimeInterface', + 'shipment_confirm_date' => '\DateTimeInterface', + 'package_label_create_date' => '\DateTimeInterface', + 'shipment_freight_term' => 'string', + 'selling_party' => '\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification', + 'ship_from_party' => '\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification', + 'ship_to_party' => '\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification', + 'shipment_measurements' => '\AmazonPHP\SellingPartner\Model\VendorShipments\TransportShipmentMeasurements', + 'collect_freight_pickup_details' => '\AmazonPHP\SellingPartner\Model\VendorShipments\CollectFreightPickupDetails', + 'purchase_orders' => '\AmazonPHP\SellingPartner\Model\VendorShipments\PurchaseOrders[]', + 'import_details' => '\AmazonPHP\SellingPartner\Model\VendorShipments\ImportDetails', + 'containers' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Containers[]', + 'transportation_details' => '\AmazonPHP\SellingPartner\Model\VendorShipments\TransportationDetails', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'vendor_shipment_identifier' => null, + 'transaction_type' => null, + 'buyer_reference_number' => null, + 'transaction_date' => 'date-time', + 'current_shipment_status' => null, + 'currentshipment_status_date' => 'date-time', + 'shipment_status_details' => null, + 'shipment_create_date' => 'date-time', + 'shipment_confirm_date' => 'date-time', + 'package_label_create_date' => 'date-time', + 'shipment_freight_term' => null, + 'selling_party' => null, + 'ship_from_party' => null, + 'ship_to_party' => null, + 'shipment_measurements' => null, + 'collect_freight_pickup_details' => null, + 'purchase_orders' => null, + 'import_details' => null, + 'containers' => null, + 'transportation_details' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'vendor_shipment_identifier' => 'vendorShipmentIdentifier', + 'transaction_type' => 'transactionType', + 'buyer_reference_number' => 'buyerReferenceNumber', + 'transaction_date' => 'transactionDate', + 'current_shipment_status' => 'currentShipmentStatus', + 'currentshipment_status_date' => 'currentshipmentStatusDate', + 'shipment_status_details' => 'shipmentStatusDetails', + 'shipment_create_date' => 'shipmentCreateDate', + 'shipment_confirm_date' => 'shipmentConfirmDate', + 'package_label_create_date' => 'packageLabelCreateDate', + 'shipment_freight_term' => 'shipmentFreightTerm', + 'selling_party' => 'sellingParty', + 'ship_from_party' => 'shipFromParty', + 'ship_to_party' => 'shipToParty', + 'shipment_measurements' => 'shipmentMeasurements', + 'collect_freight_pickup_details' => 'collectFreightPickupDetails', + 'purchase_orders' => 'purchaseOrders', + 'import_details' => 'importDetails', + 'containers' => 'containers', + 'transportation_details' => 'transportationDetails', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'vendor_shipment_identifier' => 'setVendorShipmentIdentifier', + 'transaction_type' => 'setTransactionType', + 'buyer_reference_number' => 'setBuyerReferenceNumber', + 'transaction_date' => 'setTransactionDate', + 'current_shipment_status' => 'setCurrentShipmentStatus', + 'currentshipment_status_date' => 'setCurrentshipmentStatusDate', + 'shipment_status_details' => 'setShipmentStatusDetails', + 'shipment_create_date' => 'setShipmentCreateDate', + 'shipment_confirm_date' => 'setShipmentConfirmDate', + 'package_label_create_date' => 'setPackageLabelCreateDate', + 'shipment_freight_term' => 'setShipmentFreightTerm', + 'selling_party' => 'setSellingParty', + 'ship_from_party' => 'setShipFromParty', + 'ship_to_party' => 'setShipToParty', + 'shipment_measurements' => 'setShipmentMeasurements', + 'collect_freight_pickup_details' => 'setCollectFreightPickupDetails', + 'purchase_orders' => 'setPurchaseOrders', + 'import_details' => 'setImportDetails', + 'containers' => 'setContainers', + 'transportation_details' => 'setTransportationDetails', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'vendor_shipment_identifier' => 'getVendorShipmentIdentifier', + 'transaction_type' => 'getTransactionType', + 'buyer_reference_number' => 'getBuyerReferenceNumber', + 'transaction_date' => 'getTransactionDate', + 'current_shipment_status' => 'getCurrentShipmentStatus', + 'currentshipment_status_date' => 'getCurrentshipmentStatusDate', + 'shipment_status_details' => 'getShipmentStatusDetails', + 'shipment_create_date' => 'getShipmentCreateDate', + 'shipment_confirm_date' => 'getShipmentConfirmDate', + 'package_label_create_date' => 'getPackageLabelCreateDate', + 'shipment_freight_term' => 'getShipmentFreightTerm', + 'selling_party' => 'getSellingParty', + 'ship_from_party' => 'getShipFromParty', + 'ship_to_party' => 'getShipToParty', + 'shipment_measurements' => 'getShipmentMeasurements', + 'collect_freight_pickup_details' => 'getCollectFreightPickupDetails', + 'purchase_orders' => 'getPurchaseOrders', + 'import_details' => 'getImportDetails', + 'containers' => 'getContainers', + 'transportation_details' => 'getTransportationDetails', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['vendor_shipment_identifier'] = $data['vendor_shipment_identifier'] ?? null; + $this->container['transaction_type'] = $data['transaction_type'] ?? null; + $this->container['buyer_reference_number'] = $data['buyer_reference_number'] ?? null; + $this->container['transaction_date'] = $data['transaction_date'] ?? null; + $this->container['current_shipment_status'] = $data['current_shipment_status'] ?? null; + $this->container['currentshipment_status_date'] = $data['currentshipment_status_date'] ?? null; + $this->container['shipment_status_details'] = $data['shipment_status_details'] ?? null; + $this->container['shipment_create_date'] = $data['shipment_create_date'] ?? null; + $this->container['shipment_confirm_date'] = $data['shipment_confirm_date'] ?? null; + $this->container['package_label_create_date'] = $data['package_label_create_date'] ?? null; + $this->container['shipment_freight_term'] = $data['shipment_freight_term'] ?? null; + $this->container['selling_party'] = $data['selling_party'] ?? null; + $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; + $this->container['ship_to_party'] = $data['ship_to_party'] ?? null; + $this->container['shipment_measurements'] = $data['shipment_measurements'] ?? null; + $this->container['collect_freight_pickup_details'] = $data['collect_freight_pickup_details'] ?? null; + $this->container['purchase_orders'] = $data['purchase_orders'] ?? null; + $this->container['import_details'] = $data['import_details'] ?? null; + $this->container['containers'] = $data['containers'] ?? null; + $this->container['transportation_details'] = $data['transportation_details'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getTransactionTypeAllowableValues() : array + { + return [ + self::TRANSACTION_TYPE__NEW, + self::TRANSACTION_TYPE_CANCEL, + ]; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getCurrentShipmentStatusAllowableValues() : array + { + return [ + self::CURRENT_SHIPMENT_STATUS_CREATED, + self::CURRENT_SHIPMENT_STATUS_TRANSPORTATION_REQUESTED, + self::CURRENT_SHIPMENT_STATUS_CARRIER_ASSIGNED, + self::CURRENT_SHIPMENT_STATUS_SHIPPED, + ]; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getShipmentFreightTermAllowableValues() : array + { + return [ + self::SHIPMENT_FREIGHT_TERM_COLLECT, + self::SHIPMENT_FREIGHT_TERM_PREPAID, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['vendor_shipment_identifier'] === null) { + throw new AssertionException("'vendor_shipment_identifier' can't be null"); + } + + if ($this->container['transaction_type'] === null) { + throw new AssertionException("'transaction_type' can't be null"); + } + + $allowedValues = $this->getTransactionTypeAllowableValues(); + + if (null !== $this->container['transaction_type'] && !\in_array($this->container['transaction_type'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'transaction_type', must be one of '%s'", + $this->container['transaction_type'], + \implode("', '", $allowedValues) + ) + ); + } + + if ($this->container['transaction_date'] === null) { + throw new AssertionException("'transaction_date' can't be null"); + } + + $allowedValues = $this->getCurrentShipmentStatusAllowableValues(); + + if (null !== $this->container['current_shipment_status'] && !\in_array($this->container['current_shipment_status'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'current_shipment_status', must be one of '%s'", + $this->container['current_shipment_status'], + \implode("', '", $allowedValues) + ) + ); + } + + $allowedValues = $this->getShipmentFreightTermAllowableValues(); + + if (null !== $this->container['shipment_freight_term'] && !\in_array($this->container['shipment_freight_term'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'shipment_freight_term', must be one of '%s'", + $this->container['shipment_freight_term'], + \implode("', '", $allowedValues) + ) + ); + } + + if ($this->container['selling_party'] === null) { + throw new AssertionException("'selling_party' can't be null"); + } + + $this->container['selling_party']->validate(); + + if ($this->container['ship_from_party'] === null) { + throw new AssertionException("'ship_from_party' can't be null"); + } + + $this->container['ship_from_party']->validate(); + + if ($this->container['ship_to_party'] === null) { + throw new AssertionException("'ship_to_party' can't be null"); + } + + $this->container['ship_to_party']->validate(); + + if ($this->container['shipment_measurements'] !== null) { + $this->container['shipment_measurements']->validate(); + } + + if ($this->container['collect_freight_pickup_details'] !== null) { + $this->container['collect_freight_pickup_details']->validate(); + } + + if ($this->container['import_details'] !== null) { + $this->container['import_details']->validate(); + } + + if ($this->container['transportation_details'] !== null) { + $this->container['transportation_details']->validate(); + } + } + + /** + * Gets vendor_shipment_identifier. + * + * @return string + */ + public function getVendorShipmentIdentifier() : string + { + return $this->container['vendor_shipment_identifier']; + } + + /** + * Sets vendor_shipment_identifier. + * + * @param string $vendor_shipment_identifier unique Transportation ID created by Vendor (Should not be used over the last 365 days) + */ + public function setVendorShipmentIdentifier(string $vendor_shipment_identifier) : self + { + $this->container['vendor_shipment_identifier'] = $vendor_shipment_identifier; + + return $this; + } + + /** + * Gets transaction_type. + * + * @return string + */ + public function getTransactionType() : string + { + return $this->container['transaction_type']; + } + + /** + * Sets transaction_type. + * + * @param string $transaction_type Indicates the type of transportation request such as (New,Cancel,Confirm and PackageLabelRequest). Each transactiontype has a unique set of operation and there are corresponding details to be populated for each operation. + */ + public function setTransactionType(string $transaction_type) : self + { + $this->container['transaction_type'] = $transaction_type; + + return $this; + } + + /** + * Gets buyer_reference_number. + * + * @return null|string + */ + public function getBuyerReferenceNumber() : ?string + { + return $this->container['buyer_reference_number']; + } + + /** + * Sets buyer_reference_number. + * + * @param null|string $buyer_reference_number The buyer Reference Number is a unique identifier generated by buyer for all Collect/WePay shipments when you submit a transportation request. This field is mandatory for Collect/WePay shipments. + */ + public function setBuyerReferenceNumber(?string $buyer_reference_number) : self + { + $this->container['buyer_reference_number'] = $buyer_reference_number; + + return $this; + } + + /** + * Gets transaction_date. + * + * @return \DateTimeInterface + */ + public function getTransactionDate() : \DateTimeInterface + { + return $this->container['transaction_date']; + } + + /** + * Sets transaction_date. + * + * @param \DateTimeInterface $transaction_date date on which the transportation request was submitted + */ + public function setTransactionDate(\DateTimeInterface $transaction_date) : self + { + $this->container['transaction_date'] = $transaction_date; + + return $this; + } + + /** + * Gets current_shipment_status. + * + * @return null|string + */ + public function getCurrentShipmentStatus() : ?string + { + return $this->container['current_shipment_status']; + } + + /** + * Sets current_shipment_status. + * + * @param null|string $current_shipment_status indicates the current shipment status + */ + public function setCurrentShipmentStatus(?string $current_shipment_status) : self + { + $this->container['current_shipment_status'] = $current_shipment_status; + + return $this; + } + + /** + * Gets currentshipment_status_date. + * + * @return null|\DateTimeInterface + */ + public function getCurrentshipmentStatusDate() : ?\DateTimeInterface + { + return $this->container['currentshipment_status_date']; + } + + /** + * Sets currentshipment_status_date. + * + * @param null|\DateTimeInterface $currentshipment_status_date date and time when the last status was updated + */ + public function setCurrentshipmentStatusDate(?\DateTimeInterface $currentshipment_status_date) : self + { + $this->container['currentshipment_status_date'] = $currentshipment_status_date; + + return $this; + } + + /** + * Gets shipment_status_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\ShipmentStatusDetails[] + */ + public function getShipmentStatusDetails() : ?array + { + return $this->container['shipment_status_details']; + } + + /** + * Sets shipment_status_details. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\ShipmentStatusDetails[] $shipment_status_details indicates the list of current shipment status details and when the last update was received from carrier this is available on shipment Details response + */ + public function setShipmentStatusDetails(?array $shipment_status_details) : self + { + $this->container['shipment_status_details'] = $shipment_status_details; + + return $this; + } + + /** + * Gets shipment_create_date. + * + * @return null|\DateTimeInterface + */ + public function getShipmentCreateDate() : ?\DateTimeInterface + { + return $this->container['shipment_create_date']; + } + + /** + * Sets shipment_create_date. + * + * @param null|\DateTimeInterface $shipment_create_date the date and time of the shipment request created by vendor + */ + public function setShipmentCreateDate(?\DateTimeInterface $shipment_create_date) : self + { + $this->container['shipment_create_date'] = $shipment_create_date; + + return $this; + } + + /** + * Gets shipment_confirm_date. + * + * @return null|\DateTimeInterface + */ + public function getShipmentConfirmDate() : ?\DateTimeInterface + { + return $this->container['shipment_confirm_date']; + } + + /** + * Sets shipment_confirm_date. + * + * @param null|\DateTimeInterface $shipment_confirm_date The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. + */ + public function setShipmentConfirmDate(?\DateTimeInterface $shipment_confirm_date) : self + { + $this->container['shipment_confirm_date'] = $shipment_confirm_date; + + return $this; + } + + /** + * Gets package_label_create_date. + * + * @return null|\DateTimeInterface + */ + public function getPackageLabelCreateDate() : ?\DateTimeInterface + { + return $this->container['package_label_create_date']; + } + + /** + * Sets package_label_create_date. + * + * @param null|\DateTimeInterface $package_label_create_date the date and time of the package label created for the shipment by buyer + */ + public function setPackageLabelCreateDate(?\DateTimeInterface $package_label_create_date) : self + { + $this->container['package_label_create_date'] = $package_label_create_date; + + return $this; + } + + /** + * Gets shipment_freight_term. + * + * @return null|string + */ + public function getShipmentFreightTerm() : ?string + { + return $this->container['shipment_freight_term']; + } + + /** + * Sets shipment_freight_term. + * + * @param null|string $shipment_freight_term Indicates if this transportation request is WePay/Collect or TheyPay/Prepaid. This is a mandatory information. + */ + public function setShipmentFreightTerm(?string $shipment_freight_term) : self + { + $this->container['shipment_freight_term'] = $shipment_freight_term; + + return $this; + } + + /** + * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification + */ + public function getSellingParty() : PartyIdentification + { + return $this->container['selling_party']; + } + + /** + * Sets selling_party. + * + * @param \AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification $selling_party selling_party + */ + public function setSellingParty(PartyIdentification $selling_party) : self + { + $this->container['selling_party'] = $selling_party; + + return $this; + } + + /** + * Gets ship_from_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification + */ + public function getShipFromParty() : PartyIdentification + { + return $this->container['ship_from_party']; + } + + /** + * Sets ship_from_party. + * + * @param \AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification $ship_from_party ship_from_party + */ + public function setShipFromParty(PartyIdentification $ship_from_party) : self + { + $this->container['ship_from_party'] = $ship_from_party; + + return $this; + } + + /** + * Gets ship_to_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification + */ + public function getShipToParty() : PartyIdentification + { + return $this->container['ship_to_party']; + } + + /** + * Sets ship_to_party. + * + * @param \AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification $ship_to_party ship_to_party + */ + public function setShipToParty(PartyIdentification $ship_to_party) : self + { + $this->container['ship_to_party'] = $ship_to_party; + + return $this; + } + + /** + * Gets shipment_measurements. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\TransportShipmentMeasurements + */ + public function getShipmentMeasurements() : ?TransportShipmentMeasurements + { + return $this->container['shipment_measurements']; + } + + /** + * Sets shipment_measurements. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\TransportShipmentMeasurements $shipment_measurements shipment_measurements + */ + public function setShipmentMeasurements(?TransportShipmentMeasurements $shipment_measurements) : self + { + $this->container['shipment_measurements'] = $shipment_measurements; + + return $this; + } + + /** + * Gets collect_freight_pickup_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\CollectFreightPickupDetails + */ + public function getCollectFreightPickupDetails() : ?CollectFreightPickupDetails + { + return $this->container['collect_freight_pickup_details']; + } + + /** + * Sets collect_freight_pickup_details. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\CollectFreightPickupDetails $collect_freight_pickup_details collect_freight_pickup_details + */ + public function setCollectFreightPickupDetails(?CollectFreightPickupDetails $collect_freight_pickup_details) : self + { + $this->container['collect_freight_pickup_details'] = $collect_freight_pickup_details; + + return $this; + } + + /** + * Gets purchase_orders. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\PurchaseOrders[] + */ + public function getPurchaseOrders() : ?array + { + return $this->container['purchase_orders']; + } + + /** + * Sets purchase_orders. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\PurchaseOrders[] $purchase_orders Indicates the purchase orders involved for the transportation request. This group is an array create 1 for each PO and list their corresponding items. This information is used for deciding the route,truck allocation and storage efficiently. This is a mandatory information for Buyer performing transportation from vendor warehouse (WePay/Collect) + */ + public function setPurchaseOrders(?array $purchase_orders) : self + { + $this->container['purchase_orders'] = $purchase_orders; + + return $this; + } + + /** + * Gets import_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\ImportDetails + */ + public function getImportDetails() : ?ImportDetails + { + return $this->container['import_details']; + } + + /** + * Sets import_details. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\ImportDetails $import_details import_details + */ + public function setImportDetails(?ImportDetails $import_details) : self + { + $this->container['import_details'] = $import_details; + + return $this; + } + + /** + * Gets containers. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Containers[] + */ + public function getContainers() : ?array + { + return $this->container['containers']; + } + + /** + * Sets containers. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Containers[] $containers A list of the items in this transportation and their associated inner container details. If any of the item detail fields are common at a carton or a pallet level, provide them at the corresponding carton or pallet level. + */ + public function setContainers(?array $containers) : self + { + $this->container['containers'] = $containers; + + return $this; + } + + /** + * Gets transportation_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\TransportationDetails + */ + public function getTransportationDetails() : ?TransportationDetails + { + return $this->container['transportation_details']; + } + + /** + * Sets transportation_details. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\TransportationDetails $transportation_details transportation_details + */ + public function setTransportationDetails(?TransportationDetails $transportation_details) : self + { + $this->container['transportation_details'] = $transportation_details; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentConfirmation.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentConfirmation.php index 052381b99..14093a1ee 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentConfirmation.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentConfirmation.php @@ -224,8 +224,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -234,8 +232,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -245,8 +241,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -255,8 +249,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -265,8 +257,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -278,7 +268,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -429,6 +419,8 @@ public function validate() : void /** * Gets shipment_identifier. + * + * @return string */ public function getShipmentIdentifier() : string { @@ -449,6 +441,8 @@ public function setShipmentIdentifier(string $shipment_identifier) : self /** * Gets shipment_confirmation_type. + * + * @return string */ public function getShipmentConfirmationType() : string { @@ -469,6 +463,8 @@ public function setShipmentConfirmationType(string $shipment_confirmation_type) /** * Gets shipment_type. + * + * @return null|string */ public function getShipmentType() : ?string { @@ -489,6 +485,8 @@ public function setShipmentType(?string $shipment_type) : self /** * Gets shipment_structure. + * + * @return null|string */ public function getShipmentStructure() : ?string { @@ -509,6 +507,8 @@ public function setShipmentStructure(?string $shipment_structure) : self /** * Gets transportation_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\TransportationDetails */ public function getTransportationDetails() : ?TransportationDetails { @@ -529,6 +529,8 @@ public function setTransportationDetails(?TransportationDetails $transportation_ /** * Gets amazon_reference_number. + * + * @return null|string */ public function getAmazonReferenceNumber() : ?string { @@ -549,6 +551,8 @@ public function setAmazonReferenceNumber(?string $amazon_reference_number) : sel /** * Gets shipment_confirmation_date. + * + * @return \DateTimeInterface */ public function getShipmentConfirmationDate() : \DateTimeInterface { @@ -569,6 +573,8 @@ public function setShipmentConfirmationDate(\DateTimeInterface $shipment_confirm /** * Gets shipped_date. + * + * @return null|\DateTimeInterface */ public function getShippedDate() : ?\DateTimeInterface { @@ -578,7 +584,7 @@ public function getShippedDate() : ?\DateTimeInterface /** * Sets shipped_date. * - * @param null|\DateTimeInterface $shipped_date The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the Amazon destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. + * @param null|\DateTimeInterface $shipped_date The date and time of the departure of the shipment from the vendor's location. Vendors are requested to send ASNs within 30 minutes of departure from their warehouse/distribution center or at least 6 hours prior to the appointment time at the buyer destination warehouse, whichever is sooner. Shipped date mentioned in the shipment confirmation should not be in the future. */ public function setShippedDate(?\DateTimeInterface $shipped_date) : self { @@ -589,6 +595,8 @@ public function setShippedDate(?\DateTimeInterface $shipped_date) : self /** * Gets estimated_delivery_date. + * + * @return null|\DateTimeInterface */ public function getEstimatedDeliveryDate() : ?\DateTimeInterface { @@ -598,7 +606,7 @@ public function getEstimatedDeliveryDate() : ?\DateTimeInterface /** * Sets estimated_delivery_date. * - * @param null|\DateTimeInterface $estimated_delivery_date The date and time on which the shipment is expected to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation. + * @param null|\DateTimeInterface $estimated_delivery_date The date and time on which the shipment is estimated to reach buyer's warehouse. It needs to be an estimate based on the average transit time between ship from location and the destination. The exact appointment time will be provided by the buyer and is potentially not known when creating the shipment confirmation. */ public function setEstimatedDeliveryDate(?\DateTimeInterface $estimated_delivery_date) : self { @@ -609,6 +617,8 @@ public function setEstimatedDeliveryDate(?\DateTimeInterface $estimated_delivery /** * Gets selling_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification */ public function getSellingParty() : PartyIdentification { @@ -629,6 +639,8 @@ public function setSellingParty(PartyIdentification $selling_party) : self /** * Gets ship_from_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification */ public function getShipFromParty() : PartyIdentification { @@ -649,6 +661,8 @@ public function setShipFromParty(PartyIdentification $ship_from_party) : self /** * Gets ship_to_party. + * + * @return \AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification */ public function getShipToParty() : PartyIdentification { @@ -669,6 +683,8 @@ public function setShipToParty(PartyIdentification $ship_to_party) : self /** * Gets shipment_measurements. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\ShipmentMeasurements */ public function getShipmentMeasurements() : ?ShipmentMeasurements { @@ -689,6 +705,8 @@ public function setShipmentMeasurements(?ShipmentMeasurements $shipment_measurem /** * Gets import_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\ImportDetails */ public function getImportDetails() : ?ImportDetails { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentDetails.php new file mode 100644 index 000000000..e56a19c19 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentDetails.php @@ -0,0 +1,287 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ShipmentDetails implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ShipmentDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'pagination' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Pagination', + 'shipments' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Shipment[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'pagination' => null, + 'shipments' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'pagination' => 'pagination', + 'shipments' => 'shipments', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'pagination' => 'setPagination', + 'shipments' => 'setShipments', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'pagination' => 'getPagination', + 'shipments' => 'getShipments', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['pagination'] = $data['pagination'] ?? null; + $this->container['shipments'] = $data['shipments'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['pagination'] !== null) { + $this->container['pagination']->validate(); + } + } + + /** + * Gets pagination. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Pagination + */ + public function getPagination() : ?Pagination + { + return $this->container['pagination']; + } + + /** + * Sets pagination. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Pagination $pagination pagination + */ + public function setPagination(?Pagination $pagination) : self + { + $this->container['pagination'] = $pagination; + + return $this; + } + + /** + * Gets shipments. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Shipment[] + */ + public function getShipments() : ?array + { + return $this->container['shipments']; + } + + /** + * Sets shipments. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Shipment[] $shipments shipments + */ + public function setShipments(?array $shipments) : self + { + $this->container['shipments'] = $shipments; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentInformation.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentInformation.php new file mode 100644 index 000000000..261cacfa9 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentInformation.php @@ -0,0 +1,492 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ShipmentInformation implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const SHIP_MODE_SMALL_PARCEL = 'SmallParcel'; + + final public const SHIP_MODE_LTL = 'LTL'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ShipmentInformation'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'vendor_details' => '\AmazonPHP\SellingPartner\Model\VendorShipments\VendorDetails', + 'buyer_reference_number' => 'string', + 'ship_to_party' => '\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification', + 'ship_from_party' => '\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification', + 'warehouse_id' => 'string', + 'master_tracking_id' => 'string', + 'total_label_count' => 'int', + 'ship_mode' => 'string', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'vendor_details' => null, + 'buyer_reference_number' => null, + 'ship_to_party' => null, + 'ship_from_party' => null, + 'warehouse_id' => null, + 'master_tracking_id' => null, + 'total_label_count' => null, + 'ship_mode' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'vendor_details' => 'vendorDetails', + 'buyer_reference_number' => 'buyerReferenceNumber', + 'ship_to_party' => 'shipToParty', + 'ship_from_party' => 'shipFromParty', + 'warehouse_id' => 'warehouseId', + 'master_tracking_id' => 'masterTrackingId', + 'total_label_count' => 'totalLabelCount', + 'ship_mode' => 'shipMode', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'vendor_details' => 'setVendorDetails', + 'buyer_reference_number' => 'setBuyerReferenceNumber', + 'ship_to_party' => 'setShipToParty', + 'ship_from_party' => 'setShipFromParty', + 'warehouse_id' => 'setWarehouseId', + 'master_tracking_id' => 'setMasterTrackingId', + 'total_label_count' => 'setTotalLabelCount', + 'ship_mode' => 'setShipMode', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'vendor_details' => 'getVendorDetails', + 'buyer_reference_number' => 'getBuyerReferenceNumber', + 'ship_to_party' => 'getShipToParty', + 'ship_from_party' => 'getShipFromParty', + 'warehouse_id' => 'getWarehouseId', + 'master_tracking_id' => 'getMasterTrackingId', + 'total_label_count' => 'getTotalLabelCount', + 'ship_mode' => 'getShipMode', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['vendor_details'] = $data['vendor_details'] ?? null; + $this->container['buyer_reference_number'] = $data['buyer_reference_number'] ?? null; + $this->container['ship_to_party'] = $data['ship_to_party'] ?? null; + $this->container['ship_from_party'] = $data['ship_from_party'] ?? null; + $this->container['warehouse_id'] = $data['warehouse_id'] ?? null; + $this->container['master_tracking_id'] = $data['master_tracking_id'] ?? null; + $this->container['total_label_count'] = $data['total_label_count'] ?? null; + $this->container['ship_mode'] = $data['ship_mode'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getShipModeAllowableValues() : array + { + return [ + self::SHIP_MODE_SMALL_PARCEL, + self::SHIP_MODE_LTL, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['vendor_details'] !== null) { + $this->container['vendor_details']->validate(); + } + + if ($this->container['ship_to_party'] !== null) { + $this->container['ship_to_party']->validate(); + } + + if ($this->container['ship_from_party'] !== null) { + $this->container['ship_from_party']->validate(); + } + + $allowedValues = $this->getShipModeAllowableValues(); + + if (null !== $this->container['ship_mode'] && !\in_array($this->container['ship_mode'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'ship_mode', must be one of '%s'", + $this->container['ship_mode'], + \implode("', '", $allowedValues) + ) + ); + } + } + + /** + * Gets vendor_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\VendorDetails + */ + public function getVendorDetails() : ?VendorDetails + { + return $this->container['vendor_details']; + } + + /** + * Sets vendor_details. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\VendorDetails $vendor_details vendor_details + */ + public function setVendorDetails(?VendorDetails $vendor_details) : self + { + $this->container['vendor_details'] = $vendor_details; + + return $this; + } + + /** + * Gets buyer_reference_number. + * + * @return null|string + */ + public function getBuyerReferenceNumber() : ?string + { + return $this->container['buyer_reference_number']; + } + + /** + * Sets buyer_reference_number. + * + * @param null|string $buyer_reference_number buyer Reference number which is a unique number + */ + public function setBuyerReferenceNumber(?string $buyer_reference_number) : self + { + $this->container['buyer_reference_number'] = $buyer_reference_number; + + return $this; + } + + /** + * Gets ship_to_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification + */ + public function getShipToParty() : ?PartyIdentification + { + return $this->container['ship_to_party']; + } + + /** + * Sets ship_to_party. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification $ship_to_party ship_to_party + */ + public function setShipToParty(?PartyIdentification $ship_to_party) : self + { + $this->container['ship_to_party'] = $ship_to_party; + + return $this; + } + + /** + * Gets ship_from_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification + */ + public function getShipFromParty() : ?PartyIdentification + { + return $this->container['ship_from_party']; + } + + /** + * Sets ship_from_party. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification $ship_from_party ship_from_party + */ + public function setShipFromParty(?PartyIdentification $ship_from_party) : self + { + $this->container['ship_from_party'] = $ship_from_party; + + return $this; + } + + /** + * Gets warehouse_id. + * + * @return null|string + */ + public function getWarehouseId() : ?string + { + return $this->container['warehouse_id']; + } + + /** + * Sets warehouse_id. + * + * @param null|string $warehouse_id vendor Warehouse ID from where the shipment is scheduled to be picked up by buyer / Carrier + */ + public function setWarehouseId(?string $warehouse_id) : self + { + $this->container['warehouse_id'] = $warehouse_id; + + return $this; + } + + /** + * Gets master_tracking_id. + * + * @return null|string + */ + public function getMasterTrackingId() : ?string + { + return $this->container['master_tracking_id']; + } + + /** + * Sets master_tracking_id. + * + * @param null|string $master_tracking_id unique Id with which the shipment can be tracked for Small Parcels + */ + public function setMasterTrackingId(?string $master_tracking_id) : self + { + $this->container['master_tracking_id'] = $master_tracking_id; + + return $this; + } + + /** + * Gets total_label_count. + * + * @return null|int + */ + public function getTotalLabelCount() : ?int + { + return $this->container['total_label_count']; + } + + /** + * Sets total_label_count. + * + * @param null|int $total_label_count number of Labels that are created as part of this shipment + */ + public function setTotalLabelCount(?int $total_label_count) : self + { + $this->container['total_label_count'] = $total_label_count; + + return $this; + } + + /** + * Gets ship_mode. + * + * @return null|string + */ + public function getShipMode() : ?string + { + return $this->container['ship_mode']; + } + + /** + * Sets ship_mode. + * + * @param null|string $ship_mode Type of shipment whether it is Small Parcel + */ + public function setShipMode(?string $ship_mode) : self + { + $this->container['ship_mode'] = $ship_mode; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentMeasurements.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentMeasurements.php index 8839105b3..efdf91a10 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentMeasurements.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentMeasurements.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -208,6 +198,8 @@ public function validate() : void /** * Gets gross_shipment_weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Weight */ public function getGrossShipmentWeight() : ?Weight { @@ -228,6 +220,8 @@ public function setGrossShipmentWeight(?Weight $gross_shipment_weight) : self /** * Gets shipment_volume. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Volume */ public function getShipmentVolume() : ?Volume { @@ -248,6 +242,8 @@ public function setShipmentVolume(?Volume $shipment_volume) : self /** * Gets carton_count. + * + * @return null|int */ public function getCartonCount() : ?int { @@ -257,7 +253,7 @@ public function getCartonCount() : ?int /** * Sets carton_count. * - * @param null|int $carton_count Number of cartons present in the shipment. Provide the cartonCount only for unpalletized shipments. + * @param null|int $carton_count Number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments. */ public function setCartonCount(?int $carton_count) : self { @@ -268,6 +264,8 @@ public function setCartonCount(?int $carton_count) : self /** * Gets pallet_count. + * + * @return null|int */ public function getPalletCount() : ?int { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentStatusDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentStatusDetails.php new file mode 100644 index 000000000..49119acd3 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/ShipmentStatusDetails.php @@ -0,0 +1,318 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class ShipmentStatusDetails implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + final public const SHIPMENT_STATUS_CREATED = 'Created'; + + final public const SHIPMENT_STATUS_TRANSPORTATION_REQUESTED = 'TransportationRequested'; + + final public const SHIPMENT_STATUS_CARRIER_ASSIGNED = 'CarrierAssigned'; + + final public const SHIPMENT_STATUS_SHIPPED = 'Shipped'; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'ShipmentStatusDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'shipment_status' => 'string', + 'shipment_status_date' => '\DateTimeInterface', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'shipment_status' => null, + 'shipment_status_date' => 'date-time', + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'shipment_status' => 'shipmentStatus', + 'shipment_status_date' => 'shipmentStatusDate', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'shipment_status' => 'setShipmentStatus', + 'shipment_status_date' => 'setShipmentStatusDate', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'shipment_status' => 'getShipmentStatus', + 'shipment_status_date' => 'getShipmentStatusDate', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['shipment_status'] = $data['shipment_status'] ?? null; + $this->container['shipment_status_date'] = $data['shipment_status_date'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getShipmentStatusAllowableValues() : array + { + return [ + self::SHIPMENT_STATUS_CREATED, + self::SHIPMENT_STATUS_TRANSPORTATION_REQUESTED, + self::SHIPMENT_STATUS_CARRIER_ASSIGNED, + self::SHIPMENT_STATUS_SHIPPED, + ]; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + $allowedValues = $this->getShipmentStatusAllowableValues(); + + if (null !== $this->container['shipment_status'] && !\in_array($this->container['shipment_status'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'shipment_status', must be one of '%s'", + $this->container['shipment_status'], + \implode("', '", $allowedValues) + ) + ); + } + } + + /** + * Gets shipment_status. + * + * @return null|string + */ + public function getShipmentStatus() : ?string + { + return $this->container['shipment_status']; + } + + /** + * Sets shipment_status. + * + * @param null|string $shipment_status current status of the shipment on whether it is picked up or scheduled + */ + public function setShipmentStatus(?string $shipment_status) : self + { + $this->container['shipment_status'] = $shipment_status; + + return $this; + } + + /** + * Gets shipment_status_date. + * + * @return null|\DateTimeInterface + */ + public function getShipmentStatusDate() : ?\DateTimeInterface + { + return $this->container['shipment_status_date']; + } + + /** + * Sets shipment_status_date. + * + * @param null|\DateTimeInterface $shipment_status_date Date and time on last status update received for the shipment + */ + public function setShipmentStatusDate(?\DateTimeInterface $shipment_status_date) : self + { + $this->container['shipment_status_date'] = $shipment_status_date; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Stop.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Stop.php index 2d6b5049b..39d4f0a36 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Stop.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Stop.php @@ -128,8 +128,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +136,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +145,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +153,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +161,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +172,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -240,6 +230,8 @@ public function validate() : void /** * Gets function_code. + * + * @return string */ public function getFunctionCode() : string { @@ -260,6 +252,8 @@ public function setFunctionCode(string $function_code) : self /** * Gets location_identification. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Location */ public function getLocationIdentification() : ?Location { @@ -280,6 +274,8 @@ public function setLocationIdentification(?Location $location_identification) : /** * Gets arrival_time. + * + * @return null|\DateTimeInterface */ public function getArrivalTime() : ?\DateTimeInterface { @@ -300,6 +296,8 @@ public function setArrivalTime(?\DateTimeInterface $arrival_time) : self /** * Gets departure_time. + * + * @return null|\DateTimeInterface */ public function getDepartureTime() : ?\DateTimeInterface { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipmentConfirmationsRequest.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipmentConfirmationsRequest.php index 967b4ef7c..2f575a736 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipmentConfirmationsRequest.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipmentConfirmationsRequest.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipmentConfirmationsResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipmentConfirmationsResponse.php index e81c576c4..e474af0b5 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipmentConfirmationsResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipmentConfirmationsResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\TransactionReference */ public function getPayload() : ?TransactionReference { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipments.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipments.php new file mode 100644 index 000000000..de376fe61 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/SubmitShipments.php @@ -0,0 +1,256 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class SubmitShipments implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'SubmitShipments'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'shipments' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Shipment[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'shipments' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'shipments' => 'shipments', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'shipments' => 'setShipments', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'shipments' => 'getShipments', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['shipments'] = $data['shipments'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + } + + /** + * Gets shipments. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Shipment[] + */ + public function getShipments() : ?array + { + return $this->container['shipments']; + } + + /** + * Sets shipments. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Shipment[] $shipments shipments + */ + public function setShipments(?array $shipments) : self + { + $this->container['shipments'] = $shipments; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/TaxRegistrationDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TaxRegistrationDetails.php index 267b0db40..8fc89ee6d 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/TaxRegistrationDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TaxRegistrationDetails.php @@ -114,8 +114,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -124,8 +122,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -135,8 +131,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -145,8 +139,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -155,8 +147,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -168,7 +158,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -225,6 +215,8 @@ public function validate() : void /** * Gets tax_registration_type. + * + * @return string */ public function getTaxRegistrationType() : string { @@ -245,6 +237,8 @@ public function setTaxRegistrationType(string $tax_registration_type) : self /** * Gets tax_registration_number. + * + * @return string */ public function getTaxRegistrationNumber() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransactionReference.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransactionReference.php index 6fe528c48..9c2053f86 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransactionReference.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransactionReference.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -183,6 +173,8 @@ public function validate() : void /** * Gets transaction_id. + * + * @return null|string */ public function getTransactionId() : ?string { @@ -192,7 +184,7 @@ public function getTransactionId() : ?string /** * Sets transaction_id. * - * @param null|string $transaction_id GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. + * @param null|string $transaction_id GUID assigned by Buyer to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. */ public function setTransactionId(?string $transaction_id) : self { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportLabel.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportLabel.php new file mode 100644 index 000000000..f6f7101a7 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportLabel.php @@ -0,0 +1,315 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class TransportLabel implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'transportLabel'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'label_create_date_time' => 'string', + 'shipment_information' => '\AmazonPHP\SellingPartner\Model\VendorShipments\ShipmentInformation', + 'label_data' => '\AmazonPHP\SellingPartner\Model\VendorShipments\LabelData[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'label_create_date_time' => null, + 'shipment_information' => null, + 'label_data' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'label_create_date_time' => 'labelCreateDateTime', + 'shipment_information' => 'shipmentInformation', + 'label_data' => 'labelData', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'label_create_date_time' => 'setLabelCreateDateTime', + 'shipment_information' => 'setShipmentInformation', + 'label_data' => 'setLabelData', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'label_create_date_time' => 'getLabelCreateDateTime', + 'shipment_information' => 'getShipmentInformation', + 'label_data' => 'getLabelData', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['label_create_date_time'] = $data['label_create_date_time'] ?? null; + $this->container['shipment_information'] = $data['shipment_information'] ?? null; + $this->container['label_data'] = $data['label_data'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['shipment_information'] !== null) { + $this->container['shipment_information']->validate(); + } + } + + /** + * Gets label_create_date_time. + * + * @return null|string + */ + public function getLabelCreateDateTime() : ?string + { + return $this->container['label_create_date_time']; + } + + /** + * Sets label_create_date_time. + * + * @param null|string $label_create_date_time date on which label is created + */ + public function setLabelCreateDateTime(?string $label_create_date_time) : self + { + $this->container['label_create_date_time'] = $label_create_date_time; + + return $this; + } + + /** + * Gets shipment_information. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\ShipmentInformation + */ + public function getShipmentInformation() : ?ShipmentInformation + { + return $this->container['shipment_information']; + } + + /** + * Sets shipment_information. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\ShipmentInformation $shipment_information shipment_information + */ + public function setShipmentInformation(?ShipmentInformation $shipment_information) : self + { + $this->container['shipment_information'] = $shipment_information; + + return $this; + } + + /** + * Gets label_data. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\LabelData[] + */ + public function getLabelData() : ?array + { + return $this->container['label_data']; + } + + /** + * Sets label_data. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\LabelData[] $label_data indicates the label data,format and type associated + */ + public function setLabelData(?array $label_data) : self + { + $this->container['label_data'] = $label_data; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportShipmentMeasurements.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportShipmentMeasurements.php new file mode 100644 index 000000000..04b88ae24 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportShipmentMeasurements.php @@ -0,0 +1,375 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class TransportShipmentMeasurements implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'TransportShipmentMeasurements'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'total_carton_count' => 'int', + 'total_pallet_stackable' => 'int', + 'total_pallet_non_stackable' => 'int', + 'shipment_weight' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Weight', + 'shipment_volume' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Volume', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'total_carton_count' => null, + 'total_pallet_stackable' => null, + 'total_pallet_non_stackable' => null, + 'shipment_weight' => null, + 'shipment_volume' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'total_carton_count' => 'totalCartonCount', + 'total_pallet_stackable' => 'totalPalletStackable', + 'total_pallet_non_stackable' => 'totalPalletNonStackable', + 'shipment_weight' => 'shipmentWeight', + 'shipment_volume' => 'shipmentVolume', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'total_carton_count' => 'setTotalCartonCount', + 'total_pallet_stackable' => 'setTotalPalletStackable', + 'total_pallet_non_stackable' => 'setTotalPalletNonStackable', + 'shipment_weight' => 'setShipmentWeight', + 'shipment_volume' => 'setShipmentVolume', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'total_carton_count' => 'getTotalCartonCount', + 'total_pallet_stackable' => 'getTotalPalletStackable', + 'total_pallet_non_stackable' => 'getTotalPalletNonStackable', + 'shipment_weight' => 'getShipmentWeight', + 'shipment_volume' => 'getShipmentVolume', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['total_carton_count'] = $data['total_carton_count'] ?? null; + $this->container['total_pallet_stackable'] = $data['total_pallet_stackable'] ?? null; + $this->container['total_pallet_non_stackable'] = $data['total_pallet_non_stackable'] ?? null; + $this->container['shipment_weight'] = $data['shipment_weight'] ?? null; + $this->container['shipment_volume'] = $data['shipment_volume'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['shipment_weight'] !== null) { + $this->container['shipment_weight']->validate(); + } + + if ($this->container['shipment_volume'] !== null) { + $this->container['shipment_volume']->validate(); + } + } + + /** + * Gets total_carton_count. + * + * @return null|int + */ + public function getTotalCartonCount() : ?int + { + return $this->container['total_carton_count']; + } + + /** + * Sets total_carton_count. + * + * @param null|int $total_carton_count Total number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments. + */ + public function setTotalCartonCount(?int $total_carton_count) : self + { + $this->container['total_carton_count'] = $total_carton_count; + + return $this; + } + + /** + * Gets total_pallet_stackable. + * + * @return null|int + */ + public function getTotalPalletStackable() : ?int + { + return $this->container['total_pallet_stackable']; + } + + /** + * Sets total_pallet_stackable. + * + * @param null|int $total_pallet_stackable total number of Stackable Pallets present in the shipment + */ + public function setTotalPalletStackable(?int $total_pallet_stackable) : self + { + $this->container['total_pallet_stackable'] = $total_pallet_stackable; + + return $this; + } + + /** + * Gets total_pallet_non_stackable. + * + * @return null|int + */ + public function getTotalPalletNonStackable() : ?int + { + return $this->container['total_pallet_non_stackable']; + } + + /** + * Sets total_pallet_non_stackable. + * + * @param null|int $total_pallet_non_stackable total number of Non Stackable Pallets present in the shipment + */ + public function setTotalPalletNonStackable(?int $total_pallet_non_stackable) : self + { + $this->container['total_pallet_non_stackable'] = $total_pallet_non_stackable; + + return $this; + } + + /** + * Gets shipment_weight. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Weight + */ + public function getShipmentWeight() : ?Weight + { + return $this->container['shipment_weight']; + } + + /** + * Sets shipment_weight. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Weight $shipment_weight shipment_weight + */ + public function setShipmentWeight(?Weight $shipment_weight) : self + { + $this->container['shipment_weight'] = $shipment_weight; + + return $this; + } + + /** + * Gets shipment_volume. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Volume + */ + public function getShipmentVolume() : ?Volume + { + return $this->container['shipment_volume']; + } + + /** + * Sets shipment_volume. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Volume $shipment_volume shipment_volume + */ + public function setShipmentVolume(?Volume $shipment_volume) : self + { + $this->container['shipment_volume'] = $shipment_volume; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportationDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportationDetails.php index c380ab662..42ca94ab2 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportationDetails.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportationDetails.php @@ -27,6 +27,12 @@ class TransportationDetails implements \ArrayAccess, \JsonSerializable, \Stringa { final public const DISCRIMINATOR = null; + final public const SHIP_MODE_TRUCK_LOAD = 'TruckLoad'; + + final public const SHIP_MODE_LESS_THAN_TRUCK_LOAD = 'LessThanTruckLoad'; + + final public const SHIP_MODE_SMALL_PARCEL = 'SmallParcel'; + final public const TRANSPORTATION_MODE_ROAD = 'Road'; final public const TRANSPORTATION_MODE_AIR = 'Air'; @@ -46,9 +52,12 @@ class TransportationDetails implements \ArrayAccess, \JsonSerializable, \Stringa * @var string[] */ protected static array $openAPITypes = [ - 'carrier_scac' => 'string', - 'carrier_shipment_reference_number' => 'string', + 'ship_mode' => 'string', 'transportation_mode' => 'string', + 'shipped_date' => '\DateTimeInterface', + 'estimated_delivery_date' => '\DateTimeInterface', + 'shipment_delivery_date' => '\DateTimeInterface', + 'carrier_details' => '\AmazonPHP\SellingPartner\Model\VendorShipments\CarrierDetails', 'bill_of_lading_number' => 'string', ]; @@ -62,9 +71,12 @@ class TransportationDetails implements \ArrayAccess, \JsonSerializable, \Stringa * @psalm-var array */ protected static array $openAPIFormats = [ - 'carrier_scac' => null, - 'carrier_shipment_reference_number' => null, + 'ship_mode' => null, 'transportation_mode' => null, + 'shipped_date' => 'date-time', + 'estimated_delivery_date' => 'date-time', + 'shipment_delivery_date' => 'date-time', + 'carrier_details' => null, 'bill_of_lading_number' => null, ]; @@ -75,9 +87,12 @@ class TransportationDetails implements \ArrayAccess, \JsonSerializable, \Stringa * @var string[] */ protected static array $attributeMap = [ - 'carrier_scac' => 'carrierScac', - 'carrier_shipment_reference_number' => 'carrierShipmentReferenceNumber', + 'ship_mode' => 'shipMode', 'transportation_mode' => 'transportationMode', + 'shipped_date' => 'shippedDate', + 'estimated_delivery_date' => 'estimatedDeliveryDate', + 'shipment_delivery_date' => 'shipmentDeliveryDate', + 'carrier_details' => 'carrierDetails', 'bill_of_lading_number' => 'billOfLadingNumber', ]; @@ -87,9 +102,12 @@ class TransportationDetails implements \ArrayAccess, \JsonSerializable, \Stringa * @var string[] */ protected static array $setters = [ - 'carrier_scac' => 'setCarrierScac', - 'carrier_shipment_reference_number' => 'setCarrierShipmentReferenceNumber', + 'ship_mode' => 'setShipMode', 'transportation_mode' => 'setTransportationMode', + 'shipped_date' => 'setShippedDate', + 'estimated_delivery_date' => 'setEstimatedDeliveryDate', + 'shipment_delivery_date' => 'setShipmentDeliveryDate', + 'carrier_details' => 'setCarrierDetails', 'bill_of_lading_number' => 'setBillOfLadingNumber', ]; @@ -99,9 +117,12 @@ class TransportationDetails implements \ArrayAccess, \JsonSerializable, \Stringa * @var string[] */ protected static array $getters = [ - 'carrier_scac' => 'getCarrierScac', - 'carrier_shipment_reference_number' => 'getCarrierShipmentReferenceNumber', + 'ship_mode' => 'getShipMode', 'transportation_mode' => 'getTransportationMode', + 'shipped_date' => 'getShippedDate', + 'estimated_delivery_date' => 'getEstimatedDeliveryDate', + 'shipment_delivery_date' => 'getShipmentDeliveryDate', + 'carrier_details' => 'getCarrierDetails', 'bill_of_lading_number' => 'getBillOfLadingNumber', ]; @@ -120,16 +141,17 @@ class TransportationDetails implements \ArrayAccess, \JsonSerializable, \Stringa */ public function __construct(array $data = null) { - $this->container['carrier_scac'] = $data['carrier_scac'] ?? null; - $this->container['carrier_shipment_reference_number'] = $data['carrier_shipment_reference_number'] ?? null; + $this->container['ship_mode'] = $data['ship_mode'] ?? null; $this->container['transportation_mode'] = $data['transportation_mode'] ?? null; + $this->container['shipped_date'] = $data['shipped_date'] ?? null; + $this->container['estimated_delivery_date'] = $data['estimated_delivery_date'] ?? null; + $this->container['shipment_delivery_date'] = $data['shipment_delivery_date'] ?? null; + $this->container['carrier_details'] = $data['carrier_details'] ?? null; $this->container['bill_of_lading_number'] = $data['bill_of_lading_number'] ?? null; } /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -138,8 +160,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -149,8 +169,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -159,8 +177,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -169,8 +185,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -182,7 +196,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -196,6 +210,20 @@ public function getModelName() : string return self::$openAPIModelName; } + /** + * Gets allowable values of the enum. + * + * @return string[] + */ + public function getShipModeAllowableValues() : array + { + return [ + self::SHIP_MODE_TRUCK_LOAD, + self::SHIP_MODE_LESS_THAN_TRUCK_LOAD, + self::SHIP_MODE_SMALL_PARCEL, + ]; + } + /** * Gets allowable values of the enum. * @@ -217,6 +245,18 @@ public function getTransportationModeAllowableValues() : array */ public function validate() : void { + $allowedValues = $this->getShipModeAllowableValues(); + + if (null !== $this->container['ship_mode'] && !\in_array($this->container['ship_mode'], $allowedValues, true)) { + throw new AssertionException( + \sprintf( + "invalid value '%s' for 'ship_mode', must be one of '%s'", + $this->container['ship_mode'], + \implode("', '", $allowedValues) + ) + ); + } + $allowedValues = $this->getTransportationModeAllowableValues(); if (null !== $this->container['transportation_mode'] && !\in_array($this->container['transportation_mode'], $allowedValues, true)) { @@ -228,70 +268,148 @@ public function validate() : void ) ); } + + if ($this->container['carrier_details'] !== null) { + $this->container['carrier_details']->validate(); + } } /** - * Gets carrier_scac. + * Gets ship_mode. + * + * @return null|string */ - public function getCarrierScac() : ?string + public function getShipMode() : ?string { - return $this->container['carrier_scac']; + return $this->container['ship_mode']; } /** - * Sets carrier_scac. + * Sets ship_mode. * - * @param null|string $carrier_scac Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association). This field is mandatory for US, CA, MX shipment confirmations. + * @param null|string $ship_mode the type of shipment */ - public function setCarrierScac(?string $carrier_scac) : self + public function setShipMode(?string $ship_mode) : self { - $this->container['carrier_scac'] = $carrier_scac; + $this->container['ship_mode'] = $ship_mode; return $this; } /** - * Gets carrier_shipment_reference_number. + * Gets transportation_mode. + * + * @return null|string */ - public function getCarrierShipmentReferenceNumber() : ?string + public function getTransportationMode() : ?string { - return $this->container['carrier_shipment_reference_number']; + return $this->container['transportation_mode']; } /** - * Sets carrier_shipment_reference_number. + * Sets transportation_mode. * - * @param null|string $carrier_shipment_reference_number The field also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for UA, CA, MX shipment confirmations. + * @param null|string $transportation_mode the mode of transportation for this shipment */ - public function setCarrierShipmentReferenceNumber(?string $carrier_shipment_reference_number) : self + public function setTransportationMode(?string $transportation_mode) : self { - $this->container['carrier_shipment_reference_number'] = $carrier_shipment_reference_number; + $this->container['transportation_mode'] = $transportation_mode; return $this; } /** - * Gets transportation_mode. + * Gets shipped_date. + * + * @return null|\DateTimeInterface */ - public function getTransportationMode() : ?string + public function getShippedDate() : ?\DateTimeInterface { - return $this->container['transportation_mode']; + return $this->container['shipped_date']; } /** - * Sets transportation_mode. + * Sets shipped_date. * - * @param null|string $transportation_mode the mode of transportation for this shipment + * @param null|\DateTimeInterface $shipped_date Date when shipment is performed by the Vendor to Buyer */ - public function setTransportationMode(?string $transportation_mode) : self + public function setShippedDate(?\DateTimeInterface $shipped_date) : self { - $this->container['transportation_mode'] = $transportation_mode; + $this->container['shipped_date'] = $shipped_date; + + return $this; + } + + /** + * Gets estimated_delivery_date. + * + * @return null|\DateTimeInterface + */ + public function getEstimatedDeliveryDate() : ?\DateTimeInterface + { + return $this->container['estimated_delivery_date']; + } + + /** + * Sets estimated_delivery_date. + * + * @param null|\DateTimeInterface $estimated_delivery_date Estimated Date on which shipment will be delivered from Vendor to Buyer + */ + public function setEstimatedDeliveryDate(?\DateTimeInterface $estimated_delivery_date) : self + { + $this->container['estimated_delivery_date'] = $estimated_delivery_date; + + return $this; + } + + /** + * Gets shipment_delivery_date. + * + * @return null|\DateTimeInterface + */ + public function getShipmentDeliveryDate() : ?\DateTimeInterface + { + return $this->container['shipment_delivery_date']; + } + + /** + * Sets shipment_delivery_date. + * + * @param null|\DateTimeInterface $shipment_delivery_date Date on which shipment will be delivered from Vendor to Buyer + */ + public function setShipmentDeliveryDate(?\DateTimeInterface $shipment_delivery_date) : self + { + $this->container['shipment_delivery_date'] = $shipment_delivery_date; + + return $this; + } + + /** + * Gets carrier_details. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\CarrierDetails + */ + public function getCarrierDetails() : ?CarrierDetails + { + return $this->container['carrier_details']; + } + + /** + * Sets carrier_details. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\CarrierDetails $carrier_details carrier_details + */ + public function setCarrierDetails(?CarrierDetails $carrier_details) : self + { + $this->container['carrier_details'] = $carrier_details; return $this; } /** * Gets bill_of_lading_number. + * + * @return null|string */ public function getBillOfLadingNumber() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportationLabels.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportationLabels.php new file mode 100644 index 000000000..497328b25 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/TransportationLabels.php @@ -0,0 +1,287 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class TransportationLabels implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'transportationLabels'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'pagination' => '\AmazonPHP\SellingPartner\Model\VendorShipments\Pagination', + 'transport_labels' => '\AmazonPHP\SellingPartner\Model\VendorShipments\TransportLabel[]', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'pagination' => null, + 'transport_labels' => null, + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'pagination' => 'pagination', + 'transport_labels' => 'transportLabels', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'pagination' => 'setPagination', + 'transport_labels' => 'setTransportLabels', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'pagination' => 'getPagination', + 'transport_labels' => 'getTransportLabels', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['pagination'] = $data['pagination'] ?? null; + $this->container['transport_labels'] = $data['transport_labels'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['pagination'] !== null) { + $this->container['pagination']->validate(); + } + } + + /** + * Gets pagination. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\Pagination + */ + public function getPagination() : ?Pagination + { + return $this->container['pagination']; + } + + /** + * Sets pagination. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\Pagination $pagination pagination + */ + public function setPagination(?Pagination $pagination) : self + { + $this->container['pagination'] = $pagination; + + return $this; + } + + /** + * Gets transport_labels. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\TransportLabel[] + */ + public function getTransportLabels() : ?array + { + return $this->container['transport_labels']; + } + + /** + * Sets transport_labels. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\TransportLabel[] $transport_labels transport_labels + */ + public function setTransportLabels(?array $transport_labels) : self + { + $this->container['transport_labels'] = $transport_labels; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/VendorDetails.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/VendorDetails.php new file mode 100644 index 000000000..b052a5093 --- /dev/null +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/VendorDetails.php @@ -0,0 +1,287 @@ + + * + * @template TKey int|null + * @template TValue mixed|null + */ +class VendorDetails implements \ArrayAccess, \JsonSerializable, \Stringable, ModelInterface +{ + final public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static string $openAPIModelName = 'VendorDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization. + * + * @var string[] + */ + protected static array $openAPITypes = [ + 'selling_party' => '\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification', + 'vendor_shipment_id' => '\DateTimeInterface', + ]; + + /** + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + * + * @phpstan-var array + * + * @psalm-var array + */ + protected static array $openAPIFormats = [ + 'selling_party' => null, + 'vendor_shipment_id' => 'date-time', + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + * + * @var string[] + */ + protected static array $attributeMap = [ + 'selling_party' => 'sellingParty', + 'vendor_shipment_id' => 'vendorShipmentId', + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses). + * + * @var string[] + */ + protected static array $setters = [ + 'selling_party' => 'setSellingParty', + 'vendor_shipment_id' => 'setVendorShipmentId', + ]; + + /** + * Array of attributes to getter functions (for serialization of requests). + * + * @var string[] + */ + protected static array $getters = [ + 'selling_party' => 'getSellingParty', + 'vendor_shipment_id' => 'getVendorShipmentId', + ]; + + /** + * Associative array for storing property values. + * + * @var mixed[] + */ + protected array $container = []; + + /** + * Constructor. + * + * @param null|mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['selling_party'] = $data['selling_party'] ?? null; + $this->container['vendor_shipment_id'] = $data['vendor_shipment_id'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization. + */ + public static function openAPITypes() : array + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization. + */ + public static function openAPIFormats() : array + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name. + */ + public static function attributeMap() : array + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses). + */ + public static function setters() : array + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests). + */ + public static function getters() : array + { + return self::$getters; + } + + /** + * Gets the string presentation of the object. + */ + public function __toString() : string + { + return (string) \json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * The original name of the model. + */ + public function getModelName() : string + { + return self::$openAPIModelName; + } + + /** + * Validate all properties. + * + * @throws AssertionException + */ + public function validate() : void + { + if ($this->container['selling_party'] !== null) { + $this->container['selling_party']->validate(); + } + } + + /** + * Gets selling_party. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification + */ + public function getSellingParty() : ?PartyIdentification + { + return $this->container['selling_party']; + } + + /** + * Sets selling_party. + * + * @param null|\AmazonPHP\SellingPartner\Model\VendorShipments\PartyIdentification $selling_party selling_party + */ + public function setSellingParty(?PartyIdentification $selling_party) : self + { + $this->container['selling_party'] = $selling_party; + + return $this; + } + + /** + * Gets vendor_shipment_id. + * + * @return null|\DateTimeInterface + */ + public function getVendorShipmentId() : ?\DateTimeInterface + { + return $this->container['vendor_shipment_id']; + } + + /** + * Sets vendor_shipment_id. + * + * @param null|\DateTimeInterface $vendor_shipment_id Unique vendor shipment id which is not used in last 365 days + */ + public function setVendorShipmentId(?\DateTimeInterface $vendor_shipment_id) : self + { + $this->container['vendor_shipment_id'] = $vendor_shipment_id; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + */ + public function offsetExists($offset) : bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @return null|mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) : mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + */ + public function offsetSet($offset, $value) : void + { + if (null === $offset) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + */ + public function offsetUnset($offset) : void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } + + /** + * Gets a header-safe presentation of the object. + */ + public function toHeaderValue() : string + { + return \json_encode(ObjectSerializer::sanitizeForSerialization($this), JSON_THROW_ON_ERROR); + } +} diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Volume.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Volume.php index 231a1e7d6..8d23d7d3a 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Volume.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Volume.php @@ -118,8 +118,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -128,8 +126,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -139,8 +135,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -149,8 +143,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -159,8 +151,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -172,7 +162,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -231,6 +221,8 @@ public function validate() : void /** * Gets unit_of_measure. + * + * @return string */ public function getUnitOfMeasure() : string { @@ -251,6 +243,8 @@ public function setUnitOfMeasure(string $unit_of_measure) : self /** * Gets value. + * + * @return string */ public function getValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Weight.php b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Weight.php index 52254bf0b..0b694c02f 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorShipments/Weight.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorShipments/Weight.php @@ -118,8 +118,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -128,8 +126,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -139,8 +135,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -149,8 +143,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -159,8 +151,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -172,7 +162,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -231,6 +221,8 @@ public function validate() : void /** * Gets unit_of_measure. + * + * @return string */ public function getUnitOfMeasure() : string { @@ -251,6 +243,8 @@ public function setUnitOfMeasure(string $unit_of_measure) : self /** * Gets value. + * + * @return string */ public function getValue() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/Error.php b/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/Error.php index 831279a5e..bc6346e52 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/Error.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/Error.php @@ -116,8 +116,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -126,8 +124,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -137,8 +133,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -147,8 +141,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -157,8 +149,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -170,7 +160,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -202,6 +192,8 @@ public function validate() : void /** * Gets code. + * + * @return string */ public function getCode() : string { @@ -222,6 +214,8 @@ public function setCode(string $code) : self /** * Gets message. + * + * @return string */ public function getMessage() : string { @@ -242,6 +236,8 @@ public function setMessage(string $message) : self /** * Gets details. + * + * @return null|string */ public function getDetails() : ?string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/GetTransactionResponse.php b/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/GetTransactionResponse.php index 2e324f7ab..207d36fc7 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/GetTransactionResponse.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/GetTransactionResponse.php @@ -110,8 +110,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -120,8 +118,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -131,8 +127,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -141,8 +135,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -151,8 +143,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -164,7 +154,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -192,6 +182,8 @@ public function validate() : void /** * Gets payload. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorTransactionStatus\TransactionStatus */ public function getPayload() : ?TransactionStatus { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/Transaction.php b/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/Transaction.php index d83d77122..1e2012d9c 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/Transaction.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/Transaction.php @@ -122,8 +122,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -132,8 +130,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -143,8 +139,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -153,8 +147,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -163,8 +155,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -176,7 +166,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -234,6 +224,8 @@ public function validate() : void /** * Gets transaction_id. + * + * @return string */ public function getTransactionId() : string { @@ -254,6 +246,8 @@ public function setTransactionId(string $transaction_id) : self /** * Gets status. + * + * @return string */ public function getStatus() : string { diff --git a/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/TransactionStatus.php b/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/TransactionStatus.php index 0f435e4ce..032ef82b1 100644 --- a/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/TransactionStatus.php +++ b/src/AmazonPHP/SellingPartner/Model/VendorTransactionStatus/TransactionStatus.php @@ -104,8 +104,6 @@ public function __construct(array $data = null) /** * Array of property to type mappings. Used for (de)serialization. - * - * @return string[] */ public static function openAPITypes() : array { @@ -114,8 +112,6 @@ public static function openAPITypes() : array /** * Array of property to format mappings. Used for (de)serialization. - * - * @return null[]|string[] */ public static function openAPIFormats() : array { @@ -125,8 +121,6 @@ public static function openAPIFormats() : array /** * Array of attributes where the key is the local name, * and the value is the original name. - * - * @return string[] */ public static function attributeMap() : array { @@ -135,8 +129,6 @@ public static function attributeMap() : array /** * Array of attributes to setter functions (for deserialization of responses). - * - * @return string[] */ public static function setters() : array { @@ -145,8 +137,6 @@ public static function setters() : array /** * Array of attributes to getter functions (for serialization of requests). - * - * @return string[] */ public static function getters() : array { @@ -158,7 +148,7 @@ public static function getters() : array */ public function __toString() : string { - return \json_encode( + return (string) \json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); @@ -186,6 +176,8 @@ public function validate() : void /** * Gets transaction_status. + * + * @return null|\AmazonPHP\SellingPartner\Model\VendorTransactionStatus\Transaction */ public function getTransactionStatus() : ?Transaction { From f8e0df739816a7956766a18631af097f075ca974 Mon Sep 17 00:00:00 2001 From: Norbert Orzechowicz Date: Sun, 7 May 2023 14:48:59 +0200 Subject: [PATCH 2/2] Expose Order Approvals API through SDK --- src/AmazonPHP/SellingPartner/SellingPartnerSDK.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AmazonPHP/SellingPartner/SellingPartnerSDK.php b/src/AmazonPHP/SellingPartner/SellingPartnerSDK.php index b939bafa0..51deedc71 100644 --- a/src/AmazonPHP/SellingPartner/SellingPartnerSDK.php +++ b/src/AmazonPHP/SellingPartner/SellingPartnerSDK.php @@ -6,6 +6,7 @@ use AmazonPHP\SellingPartner\Api\AplusContentApi\APlusSDK; use AmazonPHP\SellingPartner\Api\AplusContentApi\APlusSDKInterface; +use AmazonPHP\SellingPartner\Api\ApprovalsApi\OrdersSDKInterface; use AmazonPHP\SellingPartner\Api\AuthorizationApi\AuthorizationSDK; use AmazonPHP\SellingPartner\Api\AuthorizationApi\AuthorizationSDKInterface; use AmazonPHP\SellingPartner\Api\CatalogApi\CatalogItemSDK; @@ -108,6 +109,11 @@ public function aPlus() : APlusSDKInterface return $this->instantiateSDK(APlusSDK::class); } + public function approvals() : OrdersSDKInterface + { + return $this->instantiateSDK(OrdersSDKInterface::class); + } + public function authorization() : AuthorizationSDKInterface { return $this->instantiateSDK(AuthorizationSDK::class);