From 3584f5fa985386b392b178d1b4212b6770dbc547 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Thu, 10 Nov 2016 16:29:42 +0000 Subject: [PATCH] 8.0.0 release Big thank you to @tudor2004 and @voskobovich for their contributions. close #35 close #51 close #58 close #59 close #60 close #64 close #67 --- CHANGELOG.md | 29 + Makefile | 81 +- README.md | 2 +- docs/getting-started/supported-services.rst | 62 +- docs/guide/configuration.rst | 83 +- docs/guide/credentials.rst | 4 + docs/guide/index.rst | 1 + docs/guide/request-and-response-objects.rst | 6 +- docs/guide/restful-services.rst | 142 ++ requirements_check.php | 2 +- src/Account/Enums/CategoryTypeEnum.php | 17 + src/Account/Enums/CountryCodeEnum.php | 264 ++ src/Account/Enums/CurrencyCodeEnum.php | 170 ++ .../Enums/ExternalPaymentMethodTypeEnum.php | 22 + src/Account/Enums/MarketplaceIdEnum.php | 56 + .../Enums/PaymentInstrumentBrandEnum.php | 19 + src/Account/Enums/PaymentMethodTypeEnum.php | 30 + src/Account/Enums/ProgramTypeEnum.php | 17 + .../RecipientAccountReferenceTypeEnum.php | 16 + src/Account/Enums/RefundMethodEnum.php | 17 + src/Account/Enums/RegionTypeEnum.php | 20 + src/Account/Enums/ReturnMethodEnum.php | 17 + .../Enums/ReturnShippingCostPayerEnum.php | 17 + src/Account/Enums/ShippingCostTypeEnum.php | 18 + src/Account/Enums/ShippingOptionTypeEnum.php | 17 + src/Account/Enums/TimeDurationUnitEnum.php | 24 + src/Account/Services/AccountBaseService.php | 79 + src/Account/Services/AccountService.php | 776 ++++++ src/Account/Types/Amount.php | 53 + src/Account/Types/CategoryType.php | 53 + .../CreateAFulfillmentPolicyRestRequest.php | 39 + .../CreateAFulfillmentPolicyRestResponse.php | 65 + .../Types/CreateAPaymentPolicyRestRequest.php | 39 + .../CreateAPaymentPolicyRestResponse.php | 65 + .../Types/CreateAReturnPolicyRestRequest.php | 39 + .../Types/CreateAReturnPolicyRestResponse.php | 65 + .../Types/CreateASalesTaxTableRestRequest.php | 53 + .../CreateASalesTaxTableRestResponse.php | 65 + .../DeleteAFulfillmentPolicyRestRequest.php | 46 + .../DeleteAFulfillmentPolicyRestResponse.php | 65 + .../Types/DeleteAPaymentPolicyRestRequest.php | 46 + .../DeleteAPaymentPolicyRestResponse.php | 65 + .../Types/DeleteAReturnPolicyRestRequest.php | 46 + .../Types/DeleteAReturnPolicyRestResponse.php | 65 + .../Types/DeleteASalesTaxTableRestRequest.php | 53 + .../DeleteASalesTaxTableRestResponse.php | 65 + src/Account/Types/Deposit.php | 60 + src/Account/Types/ErrorDetailV3.php | 102 + src/Account/Types/ErrorParameterV3.php | 53 + src/Account/Types/ExternalPaymentMethod.php | 67 + src/Account/Types/FulfillmentPolicy.php | 123 + .../Types/FulfillmentPolicyRequest.php | 116 + .../Types/FulfillmentPolicyResponse.php | 88 + .../GetAFulfillmentPolicyByIDRestRequest.php | 46 + .../GetAFulfillmentPolicyByIDRestResponse.php | 65 + ...GetAFulfillmentPolicyByNameRestRequest.php | 53 + ...etAFulfillmentPolicyByNameRestResponse.php | 65 + .../GetAPaymentPolicyByIDRestRequest.php | 46 + .../GetAPaymentPolicyByIDRestResponse.php | 65 + .../GetAPaymentPolicyByNameRestRequest.php | 53 + .../GetAPaymentPolicyByNameRestResponse.php | 65 + .../Types/GetAReturnPolicyByIDRestRequest.php | 46 + .../GetAReturnPolicyByIDRestResponse.php | 65 + .../GetAReturnPolicyByNameRestRequest.php | 53 + .../GetAReturnPolicyByNameRestResponse.php | 65 + .../Types/GetASalesTaxTableRestRequest.php | 53 + .../Types/GetASalesTaxTableRestResponse.php | 65 + .../GetAccountPrivilegesRestResponse.php | 65 + .../Types/GetAllSalesTaxTablesRestRequest.php | 46 + .../GetAllSalesTaxTablesRestResponse.php | 65 + ...llmentPoliciesByMarketplaceRestRequest.php | 46 + ...lmentPoliciesByMarketplaceRestResponse.php | 65 + .../Types/GetOptedInProgramsRestResponse.php | 65 + ...aymentPoliciesByMarketplaceRestRequest.php | 46 + ...ymentPoliciesByMarketplaceRestResponse.php | 65 + ...ReturnPoliciesByMarketplaceRestRequest.php | 46 + ...eturnPoliciesByMarketplaceRestResponse.php | 65 + src/Account/Types/InventorySizing.php | 67 + src/Account/Types/InventorySnapshot.php | 88 + src/Account/Types/LookbackPeriod.php | 53 + src/Account/Types/MerchantExternalProfile.php | 102 + .../Types/OptInToProgramRestRequest.php | 39 + .../Types/OptInToProgramRestResponse.php | 65 + .../Types/OptOutOfProgramRestRequest.php | 39 + .../Types/OptOutOfProgramRestResponse.php | 65 + src/Account/Types/PaymentMethod.php | 60 + src/Account/Types/PaymentPolicy.php | 109 + src/Account/Types/PaymentPolicyRequest.php | 102 + src/Account/Types/PaymentPolicyResponse.php | 88 + src/Account/Types/Program.php | 46 + src/Account/Types/Programs.php | 46 + .../Types/RecipientAccountReference.php | 53 + src/Account/Types/Region.php | 53 + src/Account/Types/RegionSet.php | 53 + src/Account/Types/ReturnPolicy.php | 130 + src/Account/Types/ReturnPolicyRequest.php | 123 + src/Account/Types/ReturnPolicyResponse.php | 88 + src/Account/Types/ReturnSnapshot.php | 60 + src/Account/Types/SalesTax.php | 67 + src/Account/Types/SalesTaxBase.php | 53 + src/Account/Types/SalesTaxes.php | 46 + src/Account/Types/SellingLimit.php | 53 + src/Account/Types/SellingPrivileges.php | 53 + .../Types/SetFulfillmentPolicyResponse.php | 130 + .../Types/SetPaymentPolicyResponse.php | 116 + src/Account/Types/SetReturnPolicyResponse.php | 137 ++ src/Account/Types/ShippingOption.php | 81 + src/Account/Types/ShippingService.php | 116 + src/Account/Types/SoldAggregatedMetrics.php | 74 + src/Account/Types/TimeDuration.php | 53 + src/Account/Types/TransactionSnapshot.php | 74 + src/Account/Types/TransactionVolume.php | 53 + .../UpdateAFulfillmentPolicyRestRequest.php | 46 + .../UpdateAFulfillmentPolicyRestResponse.php | 65 + .../Types/UpdateAPaymentPolicyRestRequest.php | 46 + .../UpdateAPaymentPolicyRestResponse.php | 65 + .../Types/UpdateAReturnPolicyRestRequest.php | 46 + .../Types/UpdateAReturnPolicyRestResponse.php | 65 + src/Analytics/Enums/CycleTypeEnum.php | 17 + src/Analytics/Enums/DataTypeEnum.php | 18 + src/Analytics/Enums/ProgramEnum.php | 19 + src/Analytics/Enums/StandardsLevelEnum.php | 18 + .../Services/AnalyticsBaseService.php | 79 + src/Analytics/Services/AnalyticsService.php | 122 + src/Analytics/Types/Cycle.php | 60 + src/Analytics/Types/Definition.php | 60 + src/Analytics/Types/ErrorDetailV3.php | 102 + src/Analytics/Types/ErrorParameterV3.php | 53 + src/Analytics/Types/FilterField.php | 74 + .../FindSellerStandardsProfilesResponse.php | 46 + .../GetASpecificSellerProfileRestRequest.php | 53 + .../GetASpecificSellerProfileRestResponse.php | 65 + .../GetAllSellerProfilesRestResponse.php | 65 + .../Types/GetTrafficReportRestRequest.php | 60 + .../Types/GetTrafficReportRestResponse.php | 65 + src/Analytics/Types/Header.php | 53 + src/Analytics/Types/Metric.php | 109 + src/Analytics/Types/RangeValue.php | 74 + src/Analytics/Types/Record.php | 53 + src/Analytics/Types/Report.php | 81 + src/Analytics/Types/StandardsProfile.php | 81 + src/Analytics/Types/Value.php | 53 + src/Browse/Enums/AvailabilityStatusEnum.php | 18 + src/Browse/Enums/CountryCodeEnum.php | 264 ++ src/Browse/Enums/CurrencyCodeEnum.php | 170 ++ .../Enums/PriceDisplayConditionEnum.php | 17 + src/Browse/Enums/RefundMethodEnum.php | 17 + src/Browse/Enums/ReturnMethodEnum.php | 17 + .../Enums/ReturnShippingCostPayerEnum.php | 17 + src/Browse/Enums/TimeDurationUnitEnum.php | 24 + src/Browse/Enums/ValueTypeEnum.php | 17 + src/Browse/Services/BrowseBaseService.php | 79 + src/Browse/Services/BrowseService.php | 165 ++ src/Browse/Types/Address.php | 88 + src/Browse/Types/Amount.php | 53 + src/Browse/Types/Amount_0.php | 53 + src/Browse/Types/Category.php | 46 + src/Browse/Types/ErrorDetailV3.php | 102 + src/Browse/Types/ErrorParameterV3.php | 53 + src/Browse/Types/FilterField.php | 74 + src/Browse/Types/GetItemFeedRestRequest.php | 60 + src/Browse/Types/GetItemFeedRestResponse.php | 65 + src/Browse/Types/GetItemGroupRestRequest.php | 46 + src/Browse/Types/GetItemGroupRestResponse.php | 65 + src/Browse/Types/GetItemRestRequest.php | 46 + src/Browse/Types/GetItemRestResponse.php | 65 + src/Browse/Types/Image.php | 60 + src/Browse/Types/Item.php | 347 +++ src/Browse/Types/ItemDigest.php | 165 ++ src/Browse/Types/ItemFeed.php | 221 ++ src/Browse/Types/ItemFeedResponse.php | 46 + src/Browse/Types/ItemGroup.php | 116 + src/Browse/Types/ItemLocationImpl.php | 88 + src/Browse/Types/ItemReturnTerms.php | 95 + src/Browse/Types/ItemSummary.php | 193 ++ src/Browse/Types/MarketingPrice.php | 60 + src/Browse/Types/MarketingPrice_0.php | 60 + src/Browse/Types/PickupOptionSummary.php | 46 + src/Browse/Types/RangeValue.php | 74 + src/Browse/Types/RatingHistogram.php | 53 + src/Browse/Types/ReviewRating.php | 60 + .../Types/SearchForItemsRestRequest.php | 74 + .../Types/SearchForItemsRestResponse.php | 65 + src/Browse/Types/SearchPagedCollection.php | 95 + src/Browse/Types/Seller.php | 67 + src/Browse/Types/ShippingOption.php | 74 + src/Browse/Types/ShippingOptionSummary.php | 53 + src/Browse/Types/SortField.php | 53 + src/Browse/Types/TargetLocation.php | 53 + src/Browse/Types/TimeDuration.php | 53 + src/Browse/Types/TypedNameValue.php | 60 + src/BulkDataExchange/Enums/AckValue.php | 10 +- src/BulkDataExchange/Enums/ErrorCategory.php | 10 +- src/BulkDataExchange/Enums/ErrorSeverity.php | 10 +- src/BulkDataExchange/Enums/FileType.php | 10 +- .../Enums/IncludeListingType.php | 10 +- .../Enums/IncludeShippingAddressType.php | 10 +- src/BulkDataExchange/Enums/ItemEventType.php | 10 +- src/BulkDataExchange/Enums/JobStatus.php | 10 +- src/BulkDataExchange/Enums/ListingType.php | 10 +- .../Enums/OrderStatusTypes.php | 10 +- .../Enums/RecurringJobStatus.php | 10 +- .../Services/BulkDataExchangeBaseService.php | 20 +- .../Services/BulkDataExchangeService.php | 7 +- .../Types/AbortJobRequest.php | 7 +- .../Types/AbortJobResponse.php | 7 +- .../AbortRecurringJobExecutionRequest.php | 7 +- .../AbortRecurringJobExecutionResponse.php | 7 +- .../Types/ActivateRecurringJobRequest.php | 7 +- .../Types/ActivateRecurringJobResponse.php | 7 +- .../Types/ActiveInventoryReportFilter.php | 7 +- .../Types/AuctionItemDetails.php | 7 +- .../Types/BaseServiceRequest.php | 7 +- .../Types/BaseServiceResponse.php | 7 +- .../Types/CreateRecurringJobRequest.php | 7 +- .../Types/CreateRecurringJobResponse.php | 7 +- .../Types/CreateUploadJobRequest.php | 7 +- .../Types/CreateUploadJobResponse.php | 7 +- .../Types/DailyRecurrence.php | 7 +- src/BulkDataExchange/Types/DateFilter.php | 7 +- .../Types/DeleteRecurringJobRequest.php | 7 +- .../Types/DeleteRecurringJobResponse.php | 7 +- .../Types/DownloadJobRecurringFilter.php | 7 +- .../Types/DownloadRequestFilter.php | 7 +- src/BulkDataExchange/Types/ErrorData.php | 7 +- src/BulkDataExchange/Types/ErrorMessage.php | 7 +- src/BulkDataExchange/Types/ErrorParameter.php | 7 +- .../Types/FeeSettlementReportFilter.php | 7 +- .../Types/FixedPriceItemDetails.php | 7 +- .../Types/GetItemInfoReportFilter.php | 7 +- .../Types/GetItemJobActionType.php | 7 +- .../Types/GetJobStatusRequest.php | 7 +- .../Types/GetJobStatusResponse.php | 7 +- src/BulkDataExchange/Types/GetJobsRequest.php | 7 +- .../Types/GetJobsResponse.php | 7 +- ...GetRecurringJobExecutionHistoryRequest.php | 7 +- ...etRecurringJobExecutionHistoryResponse.php | 7 +- .../GetRecurringJobExecutionStatusRequest.php | 7 +- ...GetRecurringJobExecutionStatusResponse.php | 7 +- .../Types/GetRecurringJobsRequest.php | 7 +- .../Types/GetRecurringJobsResponse.php | 7 +- src/BulkDataExchange/Types/JobProfile.php | 7 +- .../Types/MonthlyRecurrence.php | 7 +- .../Types/OrderReportFilter.php | 7 +- .../Types/OrderReportRecurringFilter.php | 7 +- .../Types/RecurringJobDetail.php | 7 +- src/BulkDataExchange/Types/SiteFilter.php | 7 +- .../Types/SoldReportFilter.php | 7 +- .../Types/StartDownloadJobRequest.php | 7 +- .../Types/StartDownloadJobResponse.php | 7 +- .../Types/StartUploadJobRequest.php | 7 +- .../Types/StartUploadJobResponse.php | 7 +- .../Types/SuspendRecurringJobRequest.php | 7 +- .../Types/SuspendRecurringJobResponse.php | 7 +- .../Types/WeeklyRecurrence.php | 7 +- .../Enums/AckValue.php | 10 +- .../Enums/ConsolidationJobStatus.php | 10 +- .../Enums/ConsolidationJobType.php | 10 +- .../Enums/ErrorCategory.php | 10 +- .../Enums/ErrorSeverity.php | 10 +- .../Enums/IsoCurrencyCode.php | 10 +- .../Enums/ProfileType.php | 10 +- .../Enums/ShippingRateType.php | 10 +- .../BusinessPoliciesManagementBaseService.php | 29 +- .../BusinessPoliciesManagementService.php | 7 +- .../Types/AddSellerProfileRequest.php | 7 +- .../Types/AddSellerProfileResponse.php | 7 +- .../Types/AdditionalServiceShippingOption.php | 7 +- .../Types/Amount.php | 7 +- .../Types/BaseRequest.php | 7 +- .../Types/BaseResponse.php | 7 +- .../Types/CategoryGroup.php | 7 +- .../Types/CategoryGroups.php | 7 +- .../ConsolidateShippingProfilesRequest.php | 7 +- .../ConsolidateShippingProfilesResponse.php | 7 +- .../Types/ConsolidationJob.php | 7 +- .../Types/DeliveryEstimate.php | 7 +- .../Types/DeliveryEstimateMetaInfo.php | 7 +- .../Types/DepositDetails.php | 7 +- .../Types/ErrorData.php | 7 +- .../Types/ErrorMessage.php | 7 +- .../Types/ErrorParameter.php | 7 +- .../Types/ExtensionType.php | 11 +- .../Types/FreightShipping.php | 7 +- .../GetConsolidationJobStatusRequest.php | 7 +- .../GetConsolidationJobStatusResponse.php | 7 +- .../Types/GetSellerProfilesRequest.php | 7 +- .../Types/GetSellerProfilesResponse.php | 7 +- .../Types/GetVersionRequest.php | 7 +- .../Types/GetVersionResponse.php | 7 +- .../Types/Insurance.php | 7 +- .../Types/PaymentInfo.php | 7 +- .../Types/PaymentProfile.php | 7 +- .../Types/PaymentProfileList.php | 7 +- .../Types/RateTableInfo.php | 7 +- .../Types/RemoveOverridesRequest.php | 7 +- .../Types/RemoveOverridesResponse.php | 7 +- .../Types/RemoveProfileRequest.php | 7 +- .../Types/RemoveProfileResponse.php | 7 +- .../Types/RemoveSellerProfilesRequest.php | 7 +- .../Types/RemoveSellerProfilesResponse.php | 7 +- .../Types/ReturnPolicyInfo.php | 7 +- .../Types/ReturnPolicyProfile.php | 7 +- .../Types/ReturnPolicyProfileList.php | 7 +- .../Types/SellerProfile.php | 7 +- .../Types/SellerProfileResponseStatus.php | 7 +- .../Types/ServiceDefinition.php | 7 +- .../Types/SetSellerProfileRequest.php | 7 +- .../Types/SetSellerProfileResponse.php | 7 +- .../Types/ShippingPolicyIdentity.php | 7 +- .../Types/ShippingPolicyInfo.php | 7 +- .../Types/ShippingPolicyInfoService.php | 7 +- .../Types/ShippingPolicyProfile.php | 7 +- .../Types/ShippingPolicyProfileList.php | 7 +- .../Types/ShippingPolicyService.php | 7 +- .../Types/ShippingProfileDiscountInfo.php | 7 +- src/ConfigurationResolver.php | 26 +- src/Constants/GlobalIds.php | 2 +- src/Constants/MarketplaceIds.php | 55 + src/Constants/SiteIds.php | 2 +- src/Credentials/Credentials.php | 30 +- src/Credentials/CredentialsProvider.php | 12 +- src/Debugger.php | 11 +- .../InvalidPropertyTypeException.php | 7 + src/Exceptions/UnknownPropertyException.php | 5 + src/Feedback/Enums/AckValue.php | 19 + src/Feedback/Enums/ErrorCategory.php | 18 + src/Feedback/Enums/ErrorSeverity.php | 17 + src/Feedback/Services/FeedbackBaseService.php | 75 + src/Feedback/Services/FeedbackService.php | 134 + src/Feedback/Types/BaseServiceRequest.php | 43 + src/Feedback/Types/BaseServiceResponse.php | 71 + .../CreateDSRSummaryByCategoryRequest.php | 68 + .../Types/CreateDSRSummaryByPeriodRequest.php | 61 + ...reateDSRSummaryByShippingDetailRequest.php | 89 + .../CreateDSRSummaryByTransactionRequest.php | 54 + .../Types/CreateDSRSummaryResponse.php | 50 + src/Feedback/Types/DSRSummary.php | 99 + src/Feedback/Types/DateRange.php | 57 + src/Feedback/Types/ErrorData.php | 99 + src/Feedback/Types/ErrorMessage.php | 50 + src/Feedback/Types/ErrorParameter.php | 50 + src/Feedback/Types/GetDSRSummaryRequest.php | 54 + src/Feedback/Types/GetDSRSummaryResponse.php | 57 + src/Feedback/Types/TransactionKey.php | 57 + src/FileTransfer/Enums/AckValue.php | 10 +- src/FileTransfer/Enums/ErrorCategory.php | 10 +- src/FileTransfer/Enums/ErrorSeverity.php | 10 +- .../Services/FileTransferBaseService.php | 28 +- .../Services/FileTransferService.php | 7 +- src/FileTransfer/Types/BaseServiceRequest.php | 7 +- .../Types/BaseServiceResponse.php | 7 +- .../Types/DownloadFileRequest.php | 7 +- .../Types/DownloadFileResponse.php | 7 +- src/FileTransfer/Types/ErrorData.php | 7 +- src/FileTransfer/Types/ErrorMessage.php | 7 +- src/FileTransfer/Types/ErrorParameter.php | 7 +- src/FileTransfer/Types/FileAttachment.php | 7 +- src/FileTransfer/Types/UploadFileRequest.php | 7 +- src/FileTransfer/Types/UploadFileResponse.php | 7 +- src/Finding/Enums/AckValue.php | 10 +- src/Finding/Enums/ErrorCategory.php | 10 +- src/Finding/Enums/ErrorSeverity.php | 10 +- src/Finding/Enums/GallerySizeEnum.php | 10 +- src/Finding/Enums/ItemFilterType.php | 10 +- src/Finding/Enums/MapExposureEnum.php | 10 +- src/Finding/Enums/OutputSelectorType.php | 10 +- src/Finding/Enums/PriceTreatmentEnum.php | 10 +- src/Finding/Enums/SortOrderType.php | 10 +- src/Finding/Services/FindingBaseService.php | 28 +- src/Finding/Services/FindingService.php | 7 +- src/Finding/Types/Affiliate.php | 7 +- src/Finding/Types/Amount.php | 7 +- src/Finding/Types/Aspect.php | 7 +- src/Finding/Types/AspectFilter.php | 7 +- .../Types/AspectHistogramContainer.php | 7 +- src/Finding/Types/AspectValueHistogram.php | 7 +- .../Types/BaseFindingServiceRequest.php | 7 +- .../Types/BaseFindingServiceResponse.php | 7 +- src/Finding/Types/BaseServiceRequest.php | 7 +- src/Finding/Types/BaseServiceResponse.php | 7 +- .../Types/BestMatchFindingServiceRequest.php | 7 +- src/Finding/Types/Category.php | 7 +- src/Finding/Types/CategoryHistogram.php | 7 +- .../Types/CategoryHistogramContainer.php | 7 +- src/Finding/Types/Condition.php | 7 +- src/Finding/Types/ConditionHistogram.php | 7 +- .../Types/ConditionHistogramContainer.php | 7 +- src/Finding/Types/DiscountPriceInfo.php | 7 +- src/Finding/Types/Distance.php | 7 +- src/Finding/Types/DomainFilter.php | 7 +- src/Finding/Types/ErrorData.php | 7 +- src/Finding/Types/ErrorMessage.php | 7 +- src/Finding/Types/ErrorParameter.php | 7 +- src/Finding/Types/ExtensionType.php | 7 +- .../Types/FindCompletedItemsRequest.php | 7 +- .../Types/FindCompletedItemsResponse.php | 7 +- .../Types/FindItemsAdvancedRequest.php | 7 +- .../Types/FindItemsAdvancedResponse.php | 7 +- .../Types/FindItemsByCategoryRequest.php | 7 +- .../Types/FindItemsByCategoryResponse.php | 7 +- src/Finding/Types/FindItemsByImageRequest.php | 7 +- .../Types/FindItemsByImageResponse.php | 7 +- .../Types/FindItemsByKeywordsRequest.php | 7 +- .../Types/FindItemsByKeywordsResponse.php | 7 +- .../Types/FindItemsByProductRequest.php | 7 +- .../Types/FindItemsByProductResponse.php | 7 +- .../FindItemsForFavoriteSearchRequest.php | 7 +- .../FindItemsForFavoriteSearchResponse.php | 7 +- .../Types/FindItemsIneBayStoresRequest.php | 7 +- .../Types/FindItemsIneBayStoresResponse.php | 7 +- src/Finding/Types/GalleryInfoContainer.php | 7 +- src/Finding/Types/GalleryURL.php | 7 +- src/Finding/Types/GetHistogramsRequest.php | 7 +- src/Finding/Types/GetHistogramsResponse.php | 7 +- ...GetSearchKeywordsRecommendationRequest.php | 7 +- ...etSearchKeywordsRecommendationResponse.php | 7 +- src/Finding/Types/GetVersionRequest.php | 7 +- src/Finding/Types/GetVersionResponse.php | 7 +- src/Finding/Types/ItemAttribute.php | 7 +- src/Finding/Types/ItemFilter.php | 7 +- src/Finding/Types/ListingInfo.php | 7 +- src/Finding/Types/PaginationInput.php | 7 +- src/Finding/Types/PaginationOutput.php | 7 +- src/Finding/Types/ProductId.php | 7 +- src/Finding/Types/SearchItem.php | 7 +- src/Finding/Types/SearchResult.php | 7 +- src/Finding/Types/SellerInfo.php | 7 +- src/Finding/Types/SellingStatus.php | 7 +- src/Finding/Types/ShippingInfo.php | 7 +- src/Finding/Types/Storefront.php | 7 +- src/Finding/Types/UnitPriceInfo.php | 7 +- .../Enums/AcknowledgeStatusEnum.php | 17 + .../Enums/CancelRequestStateEnum.php | 18 + src/Fulfillment/Enums/CancelStateEnum.php | 18 + src/Fulfillment/Enums/CountryCodeEnum.php | 264 ++ src/Fulfillment/Enums/CurrencyCodeEnum.php | 170 ++ .../Enums/LineItemFulfillmentStatusEnum.php | 17 + src/Fulfillment/Enums/MarketplaceIdEnum.php | 56 + .../Enums/OrderPaymentStatusEnum.php | 20 + .../Enums/PaymentMethodTypeEnum.php | 17 + src/Fulfillment/Enums/PaymentStatusEnum.php | 18 + src/Fulfillment/Enums/RefundStatusEnum.php | 18 + src/Fulfillment/Enums/RefundTypeEnum.php | 17 + src/Fulfillment/Enums/SoldFormatEnum.php | 19 + .../Services/FulfillmentBaseService.php | 79 + .../Services/FulfillmentService.php | 187 ++ src/Fulfillment/Types/Address.php | 88 + src/Fulfillment/Types/Amount.php | 67 + src/Fulfillment/Types/AppliedPromotion.php | 60 + src/Fulfillment/Types/Attribute.php | 53 + src/Fulfillment/Types/Buyer.php | 46 + src/Fulfillment/Types/CancelRequest.php | 81 + src/Fulfillment/Types/CancelStatus.php | 60 + src/Fulfillment/Types/Contact.php | 67 + .../CreateAShippingFulfillmentRestRequest.php | 46 + ...CreateAShippingFulfillmentRestResponse.php | 65 + src/Fulfillment/Types/DeliveryCost.php | 60 + src/Fulfillment/Types/ErrorDetailV3.php | 102 + src/Fulfillment/Types/ErrorParameterV3.php | 53 + src/Fulfillment/Types/Fee.php | 53 + src/Fulfillment/Types/FilterField.php | 67 + .../Types/FulfillmentInstructionsType.php | 39 + .../Types/FulfillmentStartInstruction.php | 81 + .../GetAShippingFulfillmentRestRequest.php | 53 + .../GetAShippingFulfillmentRestResponse.php | 65 + .../Types/GetAnOrderRestRequest.php | 46 + .../Types/GetAnOrderRestResponse.php | 65 + .../Types/GetOrdersRestRequest.php | 67 + .../Types/GetOrdersRestResponse.php | 65 + .../GetShippingFulfillmentsRestRequest.php | 46 + .../GetShippingFulfillmentsRestResponse.php | 65 + src/Fulfillment/Types/GiftDetails.php | 60 + src/Fulfillment/Types/LineItem.php | 165 ++ src/Fulfillment/Types/LineItemProperties.php | 53 + src/Fulfillment/Types/LineItemReference.php | 53 + src/Fulfillment/Types/Order.php | 137 ++ .../Types/OrderFulfillmentStatus.php | 39 + src/Fulfillment/Types/OrderRefund.php | 67 + .../Types/OrderSearchPagedCollection.php | 95 + src/Fulfillment/Types/Payment.php | 81 + src/Fulfillment/Types/PaymentHold.php | 81 + src/Fulfillment/Types/PaymentSummary.php | 60 + src/Fulfillment/Types/PhoneNumber.php | 46 + src/Fulfillment/Types/PricingSummary.php | 95 + src/Fulfillment/Types/RangeValue.php | 74 + .../Types/SellerActionsToRelease.php | 46 + src/Fulfillment/Types/ShippingFulfillment.php | 74 + .../Types/ShippingFulfillmentDetails.php | 67 + .../ShippingFulfillmentPagedCollection.php | 60 + src/Fulfillment/Types/ShippingStep.php | 60 + src/Fulfillment/Types/Tax.php | 46 + src/HalfFinding/Enums/AckValue.php | 10 +- src/HalfFinding/Enums/ErrorCategory.php | 10 +- src/HalfFinding/Enums/ErrorSeverity.php | 10 +- .../Enums/HalfItemConditionCodeType.php | 10 +- src/HalfFinding/Enums/ItemFilterType.php | 10 +- src/HalfFinding/Enums/ProductIDCodeType.php | 10 +- src/HalfFinding/Enums/RentalDurationType.php | 10 +- src/HalfFinding/Enums/SortOnType.php | 10 +- src/HalfFinding/Enums/SortOrder.php | 10 +- src/HalfFinding/Enums/Type.php | 10 +- .../Services/HalfFindingBaseService.php | 27 +- .../Services/HalfFindingService.php | 7 +- src/HalfFinding/Types/Amount.php | 7 +- src/HalfFinding/Types/BaseRequest.php | 7 +- src/HalfFinding/Types/BaseResponse.php | 7 +- src/HalfFinding/Types/ErrorData.php | 7 +- src/HalfFinding/Types/ErrorMessage.php | 7 +- src/HalfFinding/Types/ErrorParameter.php | 7 +- src/HalfFinding/Types/ExtensionType.php | 11 +- src/HalfFinding/Types/FindItemsRequest.php | 7 +- src/HalfFinding/Types/FindItemsResponse.php | 7 +- src/HalfFinding/Types/GetVersionRequest.php | 7 +- src/HalfFinding/Types/GetVersionResponse.php | 7 +- .../Types/HalfCatalogProductType.php | 7 +- src/HalfFinding/Types/ItemFilter.php | 7 +- src/HalfFinding/Types/ItemType.php | 7 +- .../Types/NameValueListArrayType.php | 7 +- src/HalfFinding/Types/NameValueListType.php | 7 +- src/HalfFinding/Types/PaginationInputType.php | 7 +- .../Types/PaginationOutputType.php | 7 +- src/HalfFinding/Types/ProductIDType.php | 7 +- src/HalfFinding/Types/RentalAmount.php | 7 +- .../Types/ShippingServiceOptionsType.php | 7 +- src/HalfFinding/Types/SortByType.php | 7 +- src/HalfFinding/Types/StorefrontType.php | 7 +- src/HalfFinding/Types/UserType.php | 7 +- src/HttpHandler.php | 17 +- src/HttpHeadersTrait.php | 155 ++ src/Inventory/Enums/AvailabilityTypeEnum.php | 18 + src/Inventory/Enums/ConditionEnum.php | 26 + src/Inventory/Enums/CountryCodeEnum.php | 264 ++ src/Inventory/Enums/DayOfWeekEnum.php | 22 + src/Inventory/Enums/FormatTypeEnum.php | 16 + .../Enums/LengthUnitOfMeasureEnum.php | 19 + src/Inventory/Enums/ListingStatusEnum.php | 21 + src/Inventory/Enums/MarketplaceEnum.php | 57 + .../MinimumAdvertisedPriceHandlingEnum.php | 18 + src/Inventory/Enums/OfferStatusEnum.php | 17 + src/Inventory/Enums/PackageTypeEnum.php | 44 + .../Enums/ShippingServiceTypeEnum.php | 17 + src/Inventory/Enums/SoldOnEnum.php | 18 + src/Inventory/Enums/StatusEnum.php | 17 + src/Inventory/Enums/StoreTypeEnum.php | 17 + src/Inventory/Enums/TimeDurationUnitEnum.php | 24 + .../Enums/WeightUnitOfMeasureEnum.php | 19 + .../Services/InventoryBaseService.php | 79 + src/Inventory/Services/InventoryService.php | 759 ++++++ src/Inventory/Types/Address.php | 88 + src/Inventory/Types/Amount.php | 53 + src/Inventory/Types/Availability.php | 53 + src/Inventory/Types/BaseResponse.php | 46 + src/Inventory/Types/BulkPriceQuantity.php | 46 + .../Types/BulkPriceQuantityResponse.php | 46 + .../BulkUpdatePriceAndQuantityRestRequest.php | 39 + ...BulkUpdatePriceAndQuantityRestResponse.php | 65 + src/Inventory/Types/Compatibility.php | 53 + src/Inventory/Types/CompatibleProduct.php | 60 + .../CreateInventoryLocationRestRequest.php | 46 + .../CreateInventoryLocationRestResponse.php | 65 + .../Types/CreateOfferRestRequest.php | 39 + .../Types/CreateOfferRestResponse.php | 65 + ...OrReplaceInventoryItemGroupRestRequest.php | 46 + ...rReplaceInventoryItemGroupRestResponse.php | 65 + ...reateOrReplaceInventoryItemRestRequest.php | 46 + ...eateOrReplaceInventoryItemRestResponse.php | 65 + ...ReplaceProductCompatibilityRestRequest.php | 46 + ...eplaceProductCompatibilityRestResponse.php | 65 + .../DeleteInventoryItemGroupRestRequest.php | 46 + .../DeleteInventoryItemGroupRestResponse.php | 65 + .../Types/DeleteInventoryItemRestRequest.php | 46 + .../Types/DeleteInventoryItemRestResponse.php | 65 + .../DeleteInventoryLocationRestRequest.php | 46 + .../DeleteInventoryLocationRestResponse.php | 65 + .../Types/DeleteOfferRestRequest.php | 46 + .../Types/DeleteOfferRestResponse.php | 65 + .../DeleteProductCompatibilityRestRequest.php | 46 + ...DeleteProductCompatibilityRestResponse.php | 65 + src/Inventory/Types/Dimension.php | 67 + .../DisableInventoryLocationRestRequest.php | 46 + .../DisableInventoryLocationRestResponse.php | 65 + .../Types/EbayOfferDetailsWithAll.php | 144 ++ .../Types/EbayOfferDetailsWithId.php | 102 + .../Types/EbayOfferDetailsWithKeys.php | 123 + .../EnableInventoryLocationRestRequest.php | 46 + .../EnableInventoryLocationRestResponse.php | 65 + src/Inventory/Types/ErrorDetailV3.php | 102 + src/Inventory/Types/ErrorParameterV3.php | 53 + src/Inventory/Types/Fee.php | 60 + src/Inventory/Types/FeeSummary.php | 60 + src/Inventory/Types/FeesSummaryResponse.php | 46 + src/Inventory/Types/GeoCoordinates.php | 53 + .../GetInventoryItemGroupRestRequest.php | 46 + .../GetInventoryItemGroupRestResponse.php | 65 + .../Types/GetInventoryItemRestRequest.php | 46 + .../Types/GetInventoryItemRestResponse.php | 65 + .../Types/GetInventoryItemsRestRequest.php | 53 + .../Types/GetInventoryItemsRestResponse.php | 65 + .../Types/GetInventoryLocationRestRequest.php | 46 + .../GetInventoryLocationRestResponse.php | 65 + .../GetInventoryLocationsRestRequest.php | 53 + .../GetInventoryLocationsRestResponse.php | 65 + .../Types/GetListingFeesRestRequest.php | 39 + .../Types/GetListingFeesRestResponse.php | 65 + src/Inventory/Types/GetOfferRestRequest.php | 46 + src/Inventory/Types/GetOfferRestResponse.php | 65 + src/Inventory/Types/GetOffersRestRequest.php | 74 + src/Inventory/Types/GetOffersRestResponse.php | 65 + .../GetProductCompatibilityRestRequest.php | 46 + .../GetProductCompatibilityRestResponse.php | 65 + src/Inventory/Types/Interval.php | 53 + src/Inventory/Types/InventoryItem.php | 81 + src/Inventory/Types/InventoryItemGroup.php | 95 + src/Inventory/Types/InventoryItems.php | 88 + src/Inventory/Types/InventoryLocation.php | 88 + src/Inventory/Types/InventoryLocationFull.php | 109 + .../Types/InventoryLocationResponse.php | 116 + src/Inventory/Types/ListingDetails.php | 60 + src/Inventory/Types/ListingPolicies.php | 67 + src/Inventory/Types/Location.php | 53 + src/Inventory/Types/LocationResponse.php | 88 + src/Inventory/Types/OfferKeyWithId.php | 46 + src/Inventory/Types/OfferKeysWithId.php | 46 + src/Inventory/Types/OfferPriceQuantity.php | 60 + src/Inventory/Types/OfferResponse.php | 53 + src/Inventory/Types/Offers.php | 88 + src/Inventory/Types/OperatingHours.php | 53 + src/Inventory/Types/PackageWeightAndSize.php | 60 + .../Types/PickupAtLocationAvailability.php | 67 + src/Inventory/Types/PriceQuantity.php | 60 + src/Inventory/Types/PriceQuantityResponse.php | 74 + src/Inventory/Types/PricingSummary.php | 74 + src/Inventory/Types/Product.php | 109 + .../Types/ProductFamilyProperties.php | 74 + src/Inventory/Types/ProductIdentifier.php | 60 + .../Types/PublishOfferRestRequest.php | 46 + .../Types/PublishOfferRestResponse.php | 65 + src/Inventory/Types/PublishResponse.php | 53 + .../Types/ShipToLocationAvailability.php | 46 + src/Inventory/Types/ShippingCostOverride.php | 74 + src/Inventory/Types/SpecialHours.php | 53 + src/Inventory/Types/Specification.php | 53 + src/Inventory/Types/Tax.php | 60 + src/Inventory/Types/TimeDuration.php | 53 + .../UpdateInventoryLocationRestRequest.php | 46 + .../UpdateInventoryLocationRestResponse.php | 65 + .../Types/UpdateOfferRestRequest.php | 46 + .../Types/UpdateOfferRestResponse.php | 65 + src/Inventory/Types/VariesBy.php | 53 + src/Inventory/Types/Weight.php | 53 + src/JmesPath/FnDispatcher.php | 5 +- src/JmesPath/Parser.php | 2 + src/JmesPath/TreeCompiler.php | 5 +- src/JmesPath/TreeInterpreter.php | 5 + src/Marketing/Enums/CampaignStatusEnum.php | 22 + src/Marketing/Enums/CategoryScopeEnum.php | 17 + src/Marketing/Enums/CriterionTypeEnum.php | 16 + src/Marketing/Enums/CurrencyCodeEnum.php | 170 ++ src/Marketing/Enums/FundingModelEnum.php | 16 + .../Enums/InventoryCriterionEnum.php | 18 + .../Enums/InventoryReferenceTypeEnum.php | 17 + src/Marketing/Enums/MarketplaceIdEnum.php | 56 + src/Marketing/Enums/PromotionPriorityEnum.php | 20 + src/Marketing/Enums/PromotionStatusEnum.php | 21 + .../Services/MarketingBaseService.php | 79 + src/Marketing/Services/MarketingService.php | 1042 ++++++++ src/Marketing/Types/Ad.php | 74 + src/Marketing/Types/AdIds.php | 46 + src/Marketing/Types/AdPagedCollection.php | 88 + src/Marketing/Types/AdReference.php | 53 + src/Marketing/Types/AdReferences.php | 46 + src/Marketing/Types/AdResponse.php | 74 + src/Marketing/Types/Ads.php | 46 + src/Marketing/Types/Amount.php | 53 + src/Marketing/Types/BulkAdResponse.php | 46 + src/Marketing/Types/BulkCreateAdRequest.php | 46 + ...lkCreateAdsByInventoryReferenceRequest.php | 46 + ...eateAdsByInventoryReferenceRestRequest.php | 46 + ...ateAdsByInventoryReferenceRestResponse.php | 65 + .../BulkCreateAdsByListingIDRestRequest.php | 46 + .../BulkCreateAdsByListingIDRestResponse.php | 65 + src/Marketing/Types/BulkDeleteAdRequest.php | 46 + src/Marketing/Types/BulkDeleteAdResponse.php | 46 + ...lkDeleteAdsByInventoryReferenceRequest.php | 46 + ...leteAdsByInventoryReferenceRestRequest.php | 46 + ...eteAdsByInventoryReferenceRestResponse.php | 65 + .../BulkDeleteAdsByListingIDRestRequest.php | 46 + .../BulkDeleteAdsByListingIDRestResponse.php | 65 + ...eAdBidsByInventoryReferenceRestRequest.php | 46 + ...AdBidsByInventoryReferenceRestResponse.php | 65 + ...BulkUpdateAdBidsByListingIDRestRequest.php | 46 + ...ulkUpdateAdBidsByListingIDRestResponse.php | 65 + src/Marketing/Types/Campaign.php | 95 + src/Marketing/Types/CampaignCriterion.php | 60 + .../Types/CampaignPagedCollection.php | 88 + src/Marketing/Types/Campaigns.php | 46 + src/Marketing/Types/CloneCampaignRequest.php | 67 + .../Types/CloneCampaignRestRequest.php | 46 + .../Types/CloneCampaignRestResponse.php | 65 + .../Types/CreateAdByListingIDRestRequest.php | 46 + .../Types/CreateAdByListingIDRestResponse.php | 65 + src/Marketing/Types/CreateAdRequest.php | 53 + .../CreateAdsByInventoryReferenceRequest.php | 60 + ...eateAdsByInventoryReferenceRestRequest.php | 46 + ...ateAdsByInventoryReferenceRestResponse.php | 65 + src/Marketing/Types/CreateCampaignRequest.php | 81 + .../Types/CreateCampaignRestRequest.php | 39 + .../Types/CreateCampaignRestResponse.php | 65 + .../Types/CreateItemPromotionRestRequest.php | 39 + .../Types/CreateItemPromotionRestResponse.php | 65 + .../Types/DeleteAdByIDRestRequest.php | 53 + .../Types/DeleteAdByIDRestResponse.php | 65 + src/Marketing/Types/DeleteAdRequest.php | 46 + src/Marketing/Types/DeleteAdResponse.php | 67 + .../DeleteAdsByInventoryReferenceRequest.php | 53 + ...leteAdsByInventoryReferenceRestRequest.php | 46 + ...eteAdsByInventoryReferenceRestResponse.php | 65 + .../Types/DeleteCampaignRestRequest.php | 46 + .../Types/DeleteCampaignRestResponse.php | 65 + .../Types/DeleteItemPromotionRestRequest.php | 46 + .../Types/DeleteItemPromotionRestResponse.php | 65 + src/Marketing/Types/DiscountBenefit.php | 67 + src/Marketing/Types/DiscountRule.php | 60 + src/Marketing/Types/DiscountSpecification.php | 74 + .../Types/EndCampaignRestRequest.php | 46 + .../Types/EndCampaignRestResponse.php | 65 + src/Marketing/Types/ErrorDetailV3.php | 102 + src/Marketing/Types/ErrorParameterV3.php | 53 + .../FindCampaignByAdReferenceRestRequest.php | 60 + .../FindCampaignByAdReferenceRestResponse.php | 65 + src/Marketing/Types/FundingStrategy.php | 53 + src/Marketing/Types/GetAdByIDRestRequest.php | 53 + src/Marketing/Types/GetAdByIDRestResponse.php | 65 + .../GetAdsByInventoryReferenceRestRequest.php | 60 + ...GetAdsByInventoryReferenceRestResponse.php | 65 + src/Marketing/Types/GetAdsRestRequest.php | 67 + src/Marketing/Types/GetAdsRestResponse.php | 65 + .../Types/GetAllCampaignsRestRequest.php | 81 + .../Types/GetAllCampaignsRestResponse.php | 65 + .../Types/GetCampaignByIDRestRequest.php | 46 + .../Types/GetCampaignByIDRestResponse.php | 65 + .../Types/GetCampaignByNameRestRequest.php | 46 + .../Types/GetCampaignByNameRestResponse.php | 65 + .../Types/GetItemPromotionRestRequest.php | 46 + .../Types/GetItemPromotionRestResponse.php | 65 + .../GetPromotionSummaryReportRestRequest.php | 46 + .../GetPromotionSummaryReportRestResponse.php | 65 + .../Types/GetPromotionsRestRequest.php | 81 + .../Types/GetPromotionsRestResponse.php | 65 + src/Marketing/Types/InventoryCriterion.php | 60 + src/Marketing/Types/InventoryItem.php | 53 + src/Marketing/Types/ItemPromotion.php | 109 + src/Marketing/Types/ItemPromotionResponse.php | 116 + .../Types/PauseAPromotionRestRequest.php | 46 + .../Types/PauseAPromotionRestResponse.php | 65 + .../Types/PauseCampaignRestRequest.php | 46 + .../Types/PauseCampaignRestResponse.php | 65 + src/Marketing/Types/PromotionDetail.php | 109 + .../Types/PromotionsPagedCollection.php | 88 + .../Types/ResumeAPromotionRestRequest.php | 46 + .../Types/ResumeAPromotionRestResponse.php | 65 + .../Types/ResumeCampaignRestRequest.php | 46 + .../Types/ResumeCampaignRestResponse.php | 65 + src/Marketing/Types/SelectionRule.php | 81 + src/Marketing/Types/SortField.php | 53 + src/Marketing/Types/SummaryReportResponse.php | 74 + .../Types/UpdateBidPercentageRequest.php | 46 + src/Marketing/Types/UpdateBidRestRequest.php | 53 + src/Marketing/Types/UpdateBidRestResponse.php | 65 + ...pdateCampaignIDentificationRestRequest.php | 46 + ...dateCampaignIDentificationRestResponse.php | 65 + .../UpdateCampaignIdentificationRequest.php | 60 + .../Types/UpdateItemPromotionRestRequest.php | 46 + .../Types/UpdateItemPromotionRestResponse.php | 65 + src/Merchandising/Enums/AckValue.php | 19 + src/Merchandising/Enums/ErrorCategory.php | 18 + src/Merchandising/Enums/ErrorSeverity.php | 17 + src/Merchandising/Enums/ItemFilterType.php | 16 + .../Enums/PriceTreatmentEnum.php | 18 + .../Services/MerchandisingBaseService.php | 83 + .../Services/MerchandisingService.php | 156 ++ src/Merchandising/Types/Affiliate.php | 64 + src/Merchandising/Types/Amount.php | 50 + .../Types/BaseMerchandisingServiceRequest.php | 57 + .../BaseMerchandisingServiceResponse.php | 43 + .../Types/BaseServiceRequest.php | 43 + .../Types/BaseServiceResponse.php | 71 + src/Merchandising/Types/DiscountPriceInfo.php | 71 + src/Merchandising/Types/ErrorData.php | 99 + src/Merchandising/Types/ErrorMessage.php | 50 + src/Merchandising/Types/ErrorParameter.php | 50 + src/Merchandising/Types/GetDealsRequest.php | 54 + .../Types/GetMostWatchedItemsRequest.php | 54 + .../Types/GetRelatedCategoryItemsRequest.php | 68 + .../Types/GetSimilarItemsRequest.php | 103 + .../Types/GetTopSellingProductsRequest.php | 47 + src/Merchandising/Types/GetVersionRequest.php | 47 + .../Types/GetVersionResponse.php | 43 + src/Merchandising/Types/Item.php | 169 ++ src/Merchandising/Types/ItemFilter.php | 71 + .../Types/ItemRecommendations.php | 50 + .../MerchandisingServiceItemResponse.php | 50 + .../MerchandisingServiceProductResponse.php | 50 + src/Merchandising/Types/Product.php | 99 + src/Merchandising/Types/ProductId.php | 50 + .../Types/ProductRecommendations.php | 50 + src/MerchantData/Enums/AckCodeType.php | 10 +- .../Enums/AddressAttributeCodeType.php | 10 +- .../Enums/AddressOwnerCodeType.php | 10 +- .../Enums/AddressRecordTypeCodeType.php | 10 +- .../Enums/AddressRegistrationTypeCodeType.php | 10 +- .../Enums/AddressStatusCodeType.php | 10 +- .../Enums/AddressUsageCodeType.php | 10 +- .../Enums/BestOfferStatusCodeType.php | 10 +- .../Enums/BestOfferTypeCodeType.php | 10 +- src/MerchantData/Enums/BusinessRoleType.php | 10 +- .../Enums/BuyerPaymentInstrumentCodeType.php | 10 +- .../Enums/BuyerPaymentMethodCodeType.php | 10 +- .../Enums/BuyerProtectionCodeType.php | 10 +- .../Enums/BuyerProtectionSourceCodeType.php | 10 +- .../Enums/CancelStatusCodeType.php | 10 +- .../Enums/CharityAffiliationTypeCodeType.php | 10 +- .../Enums/CharitySellerStatusCodeType.php | 10 +- .../Enums/CharityStatusCodeType.php | 10 +- .../Enums/CheckoutStatusCodeType.php | 10 +- .../Enums/CommentTypeCodeType.php | 10 +- .../Enums/CompleteStatusCodeType.php | 10 +- src/MerchantData/Enums/CountryCodeType.php | 10 +- src/MerchantData/Enums/CurrencyCodeType.php | 10 +- src/MerchantData/Enums/DaysCodeType.php | 10 +- .../Enums/DepositTypeCodeType.php | 10 +- .../Enums/DescriptionReviseModeCodeType.php | 10 +- .../Enums/DetailLevelCodeType.php | 10 +- .../Enums/DigitalStatusCodeType.php | 10 +- .../Enums/DiscountNameCodeType.php | 10 +- .../Enums/DiscountReasonCodeType.php | 10 +- .../Enums/EBaySubscriptionTypeCodeType.php | 10 +- src/MerchantData/Enums/EnableCodeType.php | 10 +- src/MerchantData/Enums/EndReasonCodeType.php | 10 +- .../Enums/ErrorClassificationCodeType.php | 10 +- .../Enums/ErrorHandlingCodeType.php | 10 +- .../Enums/ExternalProductCodeType.php | 10 +- .../Enums/FeedbackRatingStarCodeType.php | 10 +- .../Enums/GalleryStatusCodeType.php | 10 +- .../Enums/GalleryTypeCodeType.php | 10 +- .../Enums/GiftServicesCodeType.php | 10 +- src/MerchantData/Enums/HitCounterCodeType.php | 10 +- .../Enums/InquiryStatusCodeType.php | 10 +- .../Enums/InsuranceOptionCodeType.php | 10 +- .../Enums/InventoryTrackingMethodCodeType.php | 10 +- .../Enums/InvocationStatusType.php | 10 +- .../Enums/ItemSpecificSourceCodeType.php | 10 +- .../Enums/ListingEnhancementsCodeType.php | 10 +- .../Enums/ListingStatusCodeType.php | 10 +- .../Enums/ListingSubtypeCodeType.php | 10 +- .../Enums/ListingTypeCodeType.php | 10 +- .../Enums/MeasurementSystemCodeType.php | 10 +- ...MinimumAdvertisedPriceExposureCodeType.php | 10 +- .../Enums/MismatchTypeCodeType.php | 10 +- .../Enums/OrderStatusCodeType.php | 10 +- src/MerchantData/Enums/PaidStatusCodeType.php | 10 +- .../Enums/PayPalAccountLevelCodeType.php | 10 +- .../Enums/PayPalAccountStatusCodeType.php | 10 +- .../Enums/PayPalAccountTypeCodeType.php | 10 +- .../Enums/PaymentHoldReasonCodeType.php | 10 +- .../Enums/PaymentHoldStatusCodeType.php | 10 +- .../Enums/PaymentInstructionCodeType.php | 10 +- .../Enums/PaymentStatusCodeType.php | 10 +- .../PaymentTransactionStatusCodeType.php | 10 +- .../Enums/PaymentTypeCodeType.php | 10 +- src/MerchantData/Enums/PayoutMethodType.php | 10 +- src/MerchantData/Enums/PeriodCodeType.php | 10 +- .../Enums/PhotoDisplayCodeType.php | 10 +- .../Enums/PickupStatusCodeType.php | 10 +- .../Enums/PictureFormatCodeType.php | 10 +- src/MerchantData/Enums/PictureSetCodeType.php | 10 +- .../Enums/PictureSourceCodeType.php | 10 +- .../Enums/PictureUploadPolicyCodeType.php | 10 +- .../Enums/PictureWatermarkCodeType.php | 10 +- .../Enums/PricingTreatmentCodeType.php | 10 +- .../Enums/PromotionItemPriceTypeCodeType.php | 10 +- .../Enums/PromotionItemSelectionCodeType.php | 10 +- .../Enums/PromotionMethodCodeType.php | 10 +- .../Enums/PromotionSchemeCodeType.php | 10 +- .../Enums/QuantityAvailableHintCodeType.php | 10 +- .../Enums/ReasonHideFromSearchCodeType.php | 10 +- .../Enums/RefundFailureCodeType.php | 10 +- .../Enums/RefundLineTypeCodeType.php | 10 +- .../Enums/RefundSourceTypeCodeType.php | 10 +- .../Enums/RefundStatusCodeType.php | 10 +- .../Enums/RefundingSourceTypeCodeType.php | 10 +- .../Enums/RequiredSellerActionCodeType.php | 10 +- .../Enums/ReturnStatusCodeType.php | 10 +- .../Enums/ReviseReasonCodeType.php | 10 +- .../Enums/SelectionModeCodeType.php | 10 +- .../Enums/SellerBusinessCodeType.php | 10 +- .../Enums/SellerGuaranteeLevelCodeType.php | 10 +- .../Enums/SellerLevelCodeType.php | 10 +- .../Enums/SellerPaymentMethodCodeType.php | 10 +- ...SellereBayPaymentProcessStatusCodeType.php | 10 +- src/MerchantData/Enums/SeverityCodeType.php | 10 +- .../Enums/ShipmentDeliveryStatusCodeType.php | 10 +- .../Enums/ShipmentStatusCodeType.php | 10 +- .../Enums/ShippingFeatureCodeType.php | 10 +- .../Enums/ShippingPackageCodeType.php | 10 +- .../Enums/ShippingRateTypeCodeType.php | 10 +- .../Enums/ShippingServiceType.php | 10 +- .../Enums/ShippingTypeCodeType.php | 10 +- src/MerchantData/Enums/SiteCodeType.php | 10 +- .../Enums/SkypeContactOptionCodeType.php | 10 +- src/MerchantData/Enums/SortOrderCodeType.php | 10 +- .../Enums/TaxDescriptionCodeType.php | 10 +- .../Enums/TaxIdentifierAttributeCodeType.php | 10 +- src/MerchantData/Enums/TaxTypeCodeType.php | 10 +- .../Enums/TopRatedProgramCodeType.php | 10 +- .../Enums/TradingRoleCodeType.php | 10 +- .../Enums/TransactionPlatformCodeType.php | 10 +- .../Enums/TransactionReferenceCodeType.php | 10 +- .../Enums/UnpaidItemCaseOpenTypeCodeType.php | 10 +- .../UnpaidItemCaseStatusTypeCodeType.php | 10 +- .../Enums/UserIdentityCodeType.php | 10 +- src/MerchantData/Enums/UserStatusCodeType.php | 10 +- src/MerchantData/Enums/VATStatusCodeType.php | 10 +- src/MerchantData/Enums/ValueTypeCodeType.php | 10 +- .../Enums/WarningLevelCodeType.php | 10 +- src/MerchantData/MerchantData.php | 53 +- .../Types/AbstractRequestType.php | 21 +- .../Types/AbstractResponseType.php | 7 +- .../Types/AccountTransactionType.php | 7 +- .../ActiveInventoryReportRequestType.php | 7 +- .../ActiveInventoryReportResponseType.php | 7 +- .../Types/AddFixedPriceItemRequestType.php | 7 +- .../Types/AddFixedPriceItemResponseType.php | 7 +- src/MerchantData/Types/AddItemRequestType.php | 7 +- .../Types/AddItemResponseType.php | 7 +- .../Types/AddressAttributeType.php | 7 +- src/MerchantData/Types/AddressType.php | 7 +- src/MerchantData/Types/AmountType.php | 7 +- src/MerchantData/Types/AttributeArrayType.php | 7 +- .../Types/AttributeSetArrayType.php | 7 +- src/MerchantData/Types/AttributeSetType.php | 7 +- src/MerchantData/Types/AttributeType.php | 7 +- src/MerchantData/Types/Base64BinaryType.php | 7 +- .../Types/BestOfferDetailsType.php | 7 +- src/MerchantData/Types/BiddingDetailsType.php | 7 +- src/MerchantData/Types/BiddingSummaryType.php | 7 +- .../Types/BotBlockRequestType.php | 7 +- .../Types/BotBlockResponseType.php | 7 +- src/MerchantData/Types/BrandMPNType.php | 7 +- .../Types/BulkDataExchangeRequestsType.php | 7 +- .../Types/BulkDataExchangeResponsesType.php | 7 +- .../Types/BusinessSellerDetailsType.php | 7 +- .../Types/BuyerPackageEnclosureType.php | 7 +- .../Types/BuyerPackageEnclosuresType.php | 7 +- .../Types/BuyerProtectionDetailsType.php | 7 +- .../Types/BuyerRequirementDetailsType.php | 7 +- src/MerchantData/Types/BuyerType.php | 7 +- .../Types/CalculatedShippingDiscountType.php | 7 +- .../Types/CalculatedShippingRateType.php | 7 +- src/MerchantData/Types/CancelDetailType.php | 7 +- src/MerchantData/Types/CategoryType.php | 7 +- src/MerchantData/Types/CharacteristicType.php | 7 +- .../Types/CharacteristicsSetType.php | 7 +- .../Types/CharityAffiliationDetailType.php | 7 +- .../Types/CharityAffiliationDetailsType.php | 7 +- .../Types/CharityAffiliationType.php | 7 +- .../Types/CharityAffiliationsType.php | 7 +- src/MerchantData/Types/CharityIDType.php | 7 +- src/MerchantData/Types/CharitySellerType.php | 7 +- src/MerchantData/Types/CharityType.php | 7 +- src/MerchantData/Types/CheckoutStatusType.php | 7 +- .../Types/ContactHoursDetailsType.php | 7 +- .../Types/CrossPromotionsType.php | 7 +- .../Types/DeliveryDetailsType.php | 7 +- src/MerchantData/Types/DeliveryStatusType.php | 7 +- .../Types/DigitalDeliverySelectedType.php | 7 +- .../Types/DigitalDeliveryUserType.php | 7 +- .../Types/DigitalGoodInfoType.php | 7 +- .../Types/DiscountPriceInfoType.php | 7 +- .../Types/DiscountProfileType.php | 7 +- src/MerchantData/Types/DistanceType.php | 7 +- .../Types/DuplicateInvocationDetailsType.php | 7 +- .../Types/EBayPaymentMismatchDetailsType.php | 7 +- .../Types/EndFixedPriceItemRequestType.php | 7 +- .../Types/EndFixedPriceItemResponseType.php | 7 +- src/MerchantData/Types/EndItemRequestType.php | 7 +- .../Types/EndItemResponseType.php | 7 +- src/MerchantData/Types/ErrorParameterType.php | 7 +- src/MerchantData/Types/ErrorType.php | 7 +- .../Types/ExpressItemRequirementsType.php | 7 +- .../Types/ExtendedContactDetailsType.php | 7 +- .../Types/ExtendedPictureDetailsType.php | 7 +- .../Types/ExtendedProductFinderIDType.php | 7 +- .../Types/ExternalProductIDType.php | 7 +- .../Types/ExternalTransactionType.php | 7 +- .../Types/FeatureEligibilityType.php | 7 +- .../Types/FeeSettlementReportRequestType.php | 7 +- .../Types/FeeSettlementReportResponseType.php | 7 +- src/MerchantData/Types/FeeType.php | 7 +- src/MerchantData/Types/FeedbackInfoType.php | 7 +- .../Types/FeedbackRequirementsType.php | 7 +- src/MerchantData/Types/FeesType.php | 7 +- .../Types/FlatShippingDiscountType.php | 7 +- src/MerchantData/Types/GiftSummaryType.php | 7 +- .../Types/InsuranceDetailsType.php | 7 +- .../IntegratedMerchantCreditCardInfoType.php | 7 +- ...nternationalShippingServiceOptionsType.php | 7 +- src/MerchantData/Types/InventoryFeesType.php | 7 +- .../Types/InventoryStatusType.php | 7 +- src/MerchantData/Types/ItemBidDetailsType.php | 7 +- .../Types/ItemCompatibilityListType.php | 7 +- .../Types/ItemCompatibilityType.php | 7 +- .../Types/ItemPolicyViolationType.php | 7 +- .../Types/ItemTransactionIDType.php | 7 +- src/MerchantData/Types/ItemType.php | 7 +- src/MerchantData/Types/LabelType.php | 7 +- src/MerchantData/Types/LineItemType.php | 7 +- .../ListingCheckoutRedirectPreferenceType.php | 7 +- .../Types/ListingDesignerType.php | 7 +- src/MerchantData/Types/ListingDetailsType.php | 7 +- .../Types/ListingRecommendationType.php | 7 +- .../Types/ListingRecommendationsType.php | 7 +- .../Types/ListingTransactionType.php | 7 +- .../Types/LookupAttributeArrayType.php | 7 +- .../Types/LookupAttributeType.php | 7 +- .../MaximumBuyerPolicyViolationsType.php | 7 +- .../Types/MaximumItemRequirementsType.php | 7 +- .../MaximumUnpaidItemStrikesInfoType.php | 7 +- src/MerchantData/Types/MeasureType.php | 7 +- .../Types/MerchantDataRequestHeaderType.php | 7 +- .../Types/MerchantDataSellingStatusType.php | 7 +- .../Types/MerchantDataVariationType.php | 7 +- .../Types/MerchantDataVariationsType.php | 7 +- src/MerchantData/Types/MetadataType.php | 7 +- .../Types/ModifyNameArrayType.php | 7 +- src/MerchantData/Types/ModifyNameType.php | 7 +- .../Types/MultiLegShipmentType.php | 7 +- .../Types/MultiLegShippingDetailsType.php | 7 +- .../Types/MultiLegShippingServiceType.php | 7 +- .../Types/NameValueListArrayType.php | 7 +- src/MerchantData/Types/NameValueListType.php | 7 +- .../Types/NonUsageTransactionType.php | 7 +- .../Types/OrderAckRequestType.php | 7 +- .../Types/OrderAckResponseType.php | 7 +- src/MerchantData/Types/OrderArrayType.php | 7 +- src/MerchantData/Types/OrderDetailsType.php | 7 +- .../Types/OrderItemDetailsType.php | 7 +- src/MerchantData/Types/OrderLineItemType.php | 7 +- .../Types/OrderReportRequestType.php | 7 +- .../Types/OrderReportResponseType.php | 7 +- src/MerchantData/Types/OrderType.php | 7 +- src/MerchantData/Types/PaymentDetailsType.php | 7 +- .../Types/PaymentHoldDetailType.php | 7 +- .../Types/PaymentInformationType.php | 7 +- .../Types/PaymentTransactionType.php | 7 +- .../Types/PaymentsInformationType.php | 7 +- src/MerchantData/Types/PickupDetailsType.php | 7 +- .../Types/PickupInStoreDetailsType.php | 7 +- .../Types/PickupMethodSelectedType.php | 7 +- src/MerchantData/Types/PickupOptionsType.php | 7 +- src/MerchantData/Types/PictureDetailsType.php | 7 +- .../Types/PictureSetMemberType.php | 7 +- src/MerchantData/Types/PictureURLsType.php | 7 +- src/MerchantData/Types/PicturesType.php | 7 +- .../Types/ProStoresCheckoutPreferenceType.php | 7 +- .../Types/ProStoresDetailsType.php | 7 +- .../Types/ProductListingDetailsType.php | 7 +- .../Types/ProductSuggestionType.php | 7 +- .../Types/ProductSuggestionsType.php | 7 +- src/MerchantData/Types/PromotedItemType.php | 7 +- .../Types/PromotionDetailsType.php | 7 +- .../Types/PromotionalSaleDetailsType.php | 7 +- ...PromotionalShippingDiscountDetailsType.php | 7 +- src/MerchantData/Types/QuantityInfoType.php | 7 +- .../QuantityRestrictionPerBuyerInfoType.php | 7 +- .../Types/RateTableDetailsType.php | 7 +- .../Types/RecoupmentPolicyConsentType.php | 7 +- src/MerchantData/Types/RefundArrayType.php | 7 +- .../Types/RefundFailureReasonType.php | 7 +- .../Types/RefundFundingSourceArrayType.php | 7 +- .../Types/RefundFundingSourceType.php | 7 +- .../Types/RefundInformationType.php | 7 +- .../Types/RefundLineArrayType.php | 7 +- src/MerchantData/Types/RefundLineType.php | 7 +- .../Types/RefundTransactionArrayType.php | 7 +- .../Types/RefundTransactionInfoType.php | 7 +- .../Types/RefundTransactionType.php | 7 +- src/MerchantData/Types/RefundType.php | 7 +- .../Types/RelistFixedPriceItemRequestType.php | 7 +- .../RelistFixedPriceItemResponseType.php | 7 +- .../Types/RelistItemRequestType.php | 7 +- .../Types/RelistItemResponseType.php | 7 +- .../Types/RequiredSellerActionArrayType.php | 7 +- src/MerchantData/Types/ReturnPolicyType.php | 7 +- .../Types/ReviseFixedPriceItemRequestType.php | 7 +- .../ReviseFixedPriceItemResponseType.php | 7 +- .../ReviseInventoryStatusRequestType.php | 7 +- .../ReviseInventoryStatusResponseType.php | 7 +- .../Types/ReviseItemRequestType.php | 7 +- .../Types/ReviseItemResponseType.php | 7 +- src/MerchantData/Types/ReviseStatusType.php | 7 +- src/MerchantData/Types/SKUDetailsType.php | 7 +- src/MerchantData/Types/SalesTaxType.php | 7 +- src/MerchantData/Types/SchedulingInfoType.php | 7 +- src/MerchantData/Types/SearchDetailsType.php | 7 +- src/MerchantData/Types/SellerDiscountType.php | 7 +- .../Types/SellerDiscountsType.php | 7 +- .../Types/SellerPaymentProfileType.php | 7 +- src/MerchantData/Types/SellerProfilesType.php | 7 +- .../Types/SellerReturnProfileType.php | 7 +- .../Types/SellerShippingProfileType.php | 7 +- src/MerchantData/Types/SellerType.php | 7 +- ...ellereBayPaymentProcessConsentCodeType.php | 7 +- .../SellingManagerProductDetailsType.php | 7 +- ...llingManagerProductInventoryStatusType.php | 7 +- .../Types/SellingManagerVendorDetailsType.php | 7 +- src/MerchantData/Types/SellingStatusType.php | 7 +- .../SetShipmentTrackingInfoRequestType.php | 7 +- .../SetShipmentTrackingInfoResponseType.php | 7 +- .../Types/ShipPackageDetailsType.php | 7 +- .../Types/ShipmentLineItemType.php | 7 +- .../Types/ShipmentTrackingDetailsType.php | 7 +- src/MerchantData/Types/ShipmentType.php | 7 +- .../Types/ShippingDetailsType.php | 7 +- .../Types/ShippingPackageInfoType.php | 7 +- .../ShippingServiceCostOverrideListType.php | 7 +- .../Types/ShippingServiceCostOverrideType.php | 7 +- .../Types/ShippingServiceOptionsType.php | 7 +- .../Types/SiteHostedPictureDetailsType.php | 7 +- .../Types/SoldReportRequestType.php | 7 +- .../Types/SoldReportResponseType.php | 7 +- src/MerchantData/Types/StorefrontType.php | 7 +- .../Types/SuggestedBidValueType.php | 7 +- src/MerchantData/Types/TaxDetailsType.php | 7 +- .../Types/TaxIdentifierAttributeType.php | 7 +- src/MerchantData/Types/TaxIdentifierType.php | 7 +- .../Types/TaxJurisdictionType.php | 7 +- src/MerchantData/Types/TaxTableType.php | 7 +- src/MerchantData/Types/TaxesType.php | 7 +- .../Types/TicketListingDetailsType.php | 7 +- .../Types/TopRatedSellerDetailsType.php | 7 +- .../Types/TransactionArrayType.php | 7 +- .../Types/TransactionListType.php | 7 +- .../Types/TransactionReferenceType.php | 7 +- .../Types/TransactionStatusType.php | 7 +- src/MerchantData/Types/TransactionType.php | 7 +- src/MerchantData/Types/UnitInfoType.php | 7 +- src/MerchantData/Types/UnpaidItemType.php | 7 +- .../UploadSiteHostedPicturesRequestType.php | 7 +- .../UploadSiteHostedPicturesResponseType.php | 7 +- .../Types/UserAgreementInfoType.php | 7 +- src/MerchantData/Types/UserIdentityType.php | 7 +- src/MerchantData/Types/UserType.php | 7 +- src/MerchantData/Types/VATDetailsType.php | 7 +- src/MerchantData/Types/ValType.php | 7 +- .../VariationProductListingDetailsType.php | 7 +- .../Types/VariationSpecificPictureSetType.php | 7 +- src/MerchantData/Types/VariationType.php | 7 +- src/MerchantData/Types/VariationsType.php | 7 +- .../Types/VerifiedUserRequirementsType.php | 7 +- .../VerifyAddFixedPriceItemRequestType.php | 7 +- .../VerifyAddFixedPriceItemResponseType.php | 7 +- .../Types/VerifyAddItemRequestType.php | 7 +- .../Types/VerifyAddItemResponseType.php | 7 +- .../Types/XMLRequesterCredentialsType.php | 7 +- src/Metadata/Enums/CountryCodeEnum.php | 264 ++ src/Metadata/Services/MetadataBaseService.php | 79 + src/Metadata/Services/MetadataService.php | 59 + src/Metadata/Types/ErrorDetailV3.php | 102 + src/Metadata/Types/ErrorParameterV3.php | 53 + .../GetSalesTaxJurisdictionsRestRequest.php | 46 + .../GetSalesTaxJurisdictionsRestResponse.php | 65 + src/Metadata/Types/SalesTaxJurisdiction.php | 46 + src/Metadata/Types/SalesTaxJurisdictions.php | 46 + src/Order/Enums/CountryCodeEnum.php | 264 ++ src/Order/Enums/CurrencyCodeEnum.php | 170 ++ src/Order/Enums/LineItemPaymentStatusEnum.php | 18 + src/Order/Enums/LineItemStatusEnum.php | 19 + src/Order/Enums/PaymentMethodBrandEnum.php | 19 + src/Order/Enums/PaymentMethodTypeEnum.php | 16 + .../Enums/PurchaseOrderPaymentStatusEnum.php | 19 + src/Order/Enums/PurchaseOrderStatusEnum.php | 19 + src/Order/Services/OrderBaseService.php | 91 + src/Order/Services/OrderService.php | 486 ++++ src/Order/Types/Adjustment.php | 53 + src/Order/Types/Adjustment_0.php | 53 + src/Order/Types/Amount.php | 53 + src/Order/Types/Amount_0.php | 53 + src/Order/Types/BillingAddress.php | 102 + src/Order/Types/CheckoutSessionResponse.php | 95 + .../CreateGuestCheckoutSessionRequest.php | 81 + .../CreateSignInCheckoutSessionRequest.php | 60 + src/Order/Types/CreditCard.php | 88 + src/Order/Types/ErrorDetailV3.php | 102 + src/Order/Types/ErrorParameterV3.php | 53 + .../Types/GetCheckoutSessionRestRequest.php | 46 + .../Types/GetCheckoutSessionRestResponse.php | 65 + .../GetGuestCheckoutSessionRestRequest.php | 46 + .../GetGuestCheckoutSessionRestResponse.php | 65 + .../GetGuestPurchaseOrderRestRequest.php | 46 + .../GetGuestPurchaseOrderRestResponse.php | 65 + .../Types/GetPurchaseOrderRestRequest.php | 46 + .../Types/GetPurchaseOrderRestResponse.php | 65 + src/Order/Types/GuestPurchaseOrder.php | 95 + src/Order/Types/Image.php | 60 + .../InitiateCheckoutSessionRestRequest.php | 39 + .../InitiateCheckoutSessionRestResponse.php | 65 + ...nitiateGuestCheckoutSessionRestRequest.php | 39 + ...itiateGuestCheckoutSessionRestResponse.php | 65 + src/Order/Types/LineItem.php | 116 + src/Order/Types/LineItemInput.php | 53 + src/Order/Types/LineItemReference.php | 53 + src/Order/Types/LineItem_0.php | 109 + src/Order/Types/PaymentInstrument.php | 53 + .../Types/PaymentInstrumentReference.php | 46 + src/Order/Types/PaymentMethod.php | 74 + src/Order/Types/PaymentMethodBrand.php | 53 + src/Order/Types/PaymentMethodMessage.php | 53 + .../Types/PlaceGuestOrderRestRequest.php | 46 + .../Types/PlaceGuestOrderRestResponse.php | 65 + src/Order/Types/PlaceOrderRestRequest.php | 46 + src/Order/Types/PlaceOrderRestResponse.php | 65 + src/Order/Types/PricingSummary.php | 95 + src/Order/Types/PricingSummary_0.php | 95 + src/Order/Types/Promotion.php | 67 + src/Order/Types/ProvidedPaymentInstrument.php | 60 + src/Order/Types/PurchaseOrder.php | 116 + src/Order/Types/PurchaseOrderSummary.php | 67 + src/Order/Types/Seller.php | 67 + src/Order/Types/ShippingAddress.php | 102 + src/Order/Types/ShippingAddressImpl.php | 102 + src/Order/Types/ShippingAddress_0.php | 102 + src/Order/Types/ShippingDetail.php | 67 + src/Order/Types/ShippingFulfillment.php | 102 + src/Order/Types/ShippingOption.php | 95 + ...UpdateGuestLineItemQuantityRestRequest.php | 46 + ...pdateGuestLineItemQuantityRestResponse.php | 65 + ...uestLineItemShippingAddressRestRequest.php | 46 + ...estLineItemShippingAddressRestResponse.php | 65 + .../UpdateGuestPaymentInfoRestRequest.php | 46 + .../UpdateGuestPaymentInfoRestResponse.php | 65 + .../UpdateGuestShippingOptionRestRequest.php | 46 + .../UpdateGuestShippingOptionRestResponse.php | 65 + .../Types/UpdatePaymentInfoRestRequest.php | 46 + .../Types/UpdatePaymentInfoRestResponse.php | 65 + src/Order/Types/UpdatePaymentInformation.php | 46 + src/Order/Types/UpdateQuantity.php | 53 + .../UpdateQuantityForLineItemRestRequest.php | 46 + .../UpdateQuantityForLineItemRestResponse.php | 65 + .../UpdateShippingAddressRestRequest.php | 46 + .../UpdateShippingAddressRestResponse.php | 65 + src/Order/Types/UpdateShippingOption.php | 53 + .../Types/UpdateShippingOptionRestRequest.php | 46 + .../UpdateShippingOptionRestResponse.php | 65 + src/Parser/XmlParser.php | 60 +- src/PostOrder/Enums/ActivityOptionEnum.php | 88 + src/PostOrder/Enums/AddressTypeEnum.php | 18 + src/PostOrder/Enums/AppealCloseReasonEnum.php | 23 + src/PostOrder/Enums/AppealGrantStatusEnum.php | 18 + src/PostOrder/Enums/AppealStatusEnum.php | 25 + src/PostOrder/Enums/BuyerCloseReasonEnum.php | 19 + .../Enums/BuyerCloseReturnReasonEnum.php | 21 + .../Enums/CancelActivityTypeEnum.php | 27 + src/PostOrder/Enums/CancelCloseReasonEnum.php | 28 + src/PostOrder/Enums/CancelReasonEnum.php | 22 + src/PostOrder/Enums/CancelSortTypeEnum.php | 17 + src/PostOrder/Enums/CancelStateEnum.php | 22 + src/PostOrder/Enums/CancelStatusEnum.php | 23 + src/PostOrder/Enums/CaseCloseReasonEnum.php | 54 + .../Enums/CaseSearchFieldGroupEnum.php | 17 + src/PostOrder/Enums/CaseStatusEnum.php | 23 + src/PostOrder/Enums/CaseTypeEnum.php | 17 + src/PostOrder/Enums/CloseReturnReasonEnum.php | 38 + src/PostOrder/Enums/CountryCodeEnum.php | 264 ++ src/PostOrder/Enums/CurrencyCodeEnum.php | 170 ++ src/PostOrder/Enums/DecisionEnum.php | 25 + .../Enums/DesiredOutcomeTypeEnum.php | 17 + .../Enums/DispositionRuleTemplateTypeEnum.php | 19 + .../Enums/EligibilityCheckTypeEnum.php | 20 + .../Enums/EligibilityFailureReasonEnum.php | 35 + src/PostOrder/Enums/EscalateReasonEnum.php | 26 + src/PostOrder/Enums/FileFormatEnum.php | 21 + src/PostOrder/Enums/FilePurposeEnum.php | 18 + src/PostOrder/Enums/FileStatusEnum.php | 19 + .../Enums/GetReturnFieldGroupEnum.php | 18 + .../Enums/InquiryEligibilityStatusEnum.php | 18 + .../Enums/InquiryEscalationReasonEnum.php | 23 + .../Enums/InquirySearchFieldGroupEnum.php | 17 + src/PostOrder/Enums/InquiryStateEnum.php | 31 + src/PostOrder/Enums/InquiryStatusEnum.php | 23 + src/PostOrder/Enums/LabelActionEnum.php | 21 + src/PostOrder/Enums/LabelPrintStatusEnum.php | 20 + src/PostOrder/Enums/LanguageEnum.php | 31 + src/PostOrder/Enums/LanguageScriptEnum.php | 27 + src/PostOrder/Enums/MarketplaceIdEnum.php | 56 + .../Enums/MoneyMovementStatusEnum.php | 20 + src/PostOrder/Enums/MoneyMovementTypeEnum.php | 33 + .../Enums/NoSellerUploadLabelReasonEnum.php | 21 + src/PostOrder/Enums/OrderTypeEnum.php | 19 + src/PostOrder/Enums/PartyEnum.php | 18 + .../Enums/PaymentDenialReasonEnum.php | 23 + src/PostOrder/Enums/PaymentProviderEnum.php | 17 + src/PostOrder/Enums/PaymentStatusEnum.php | 19 + src/PostOrder/Enums/RefundFeeTypeEnum.php | 25 + src/PostOrder/Enums/RefundPaymentTypeEnum.php | 19 + src/PostOrder/Enums/RefundStatusEnum.php | 19 + src/PostOrder/Enums/RequestTypeEnum.php | 18 + src/PostOrder/Enums/ReturnCountFilterEnum.php | 23 + src/PostOrder/Enums/ReturnHoldStatusEnum.php | 20 + src/PostOrder/Enums/ReturnMetadataKeyEnum.php | 17 + src/PostOrder/Enums/ReturnReasonEnum.php | 40 + .../Enums/ReturnRefundInitiatorEnum.php | 18 + src/PostOrder/Enums/ReturnSortEnum.php | 24 + src/PostOrder/Enums/ReturnStateEnum.php | 52 + src/PostOrder/Enums/ReturnStatusEnum.php | 40 + src/PostOrder/Enums/ReturnTypeEnum.php | 19 + src/PostOrder/Enums/ReturnUserRoleEnum.php | 20 + .../Enums/RuleListFieldGroupEnum.php | 18 + src/PostOrder/Enums/ShippingCarrierEnum.php | 28 + src/PostOrder/Enums/ShippingMethodEnum.php | 18 + src/PostOrder/Enums/TrackingStatusEnum.php | 20 + src/PostOrder/Enums/UserPartyEnum.php | 20 + src/PostOrder/Enums/WorldRegionEnum.php | 28 + .../Services/PostOrderBaseService.php | 79 + src/PostOrder/Services/PostOrderService.php | 2153 +++++++++++++++++ src/PostOrder/Types/ActionDeadlines.php | 74 + .../Types/ActualRefundDetailType.php | 67 + .../Types/AddShippingLabelInfoRestRequest.php | 46 + .../AddShippingLabelInfoRestResponse.php | 72 + src/PostOrder/Types/Address.php | 130 + src/PostOrder/Types/Amount.php | 67 + .../Types/AppealCaseDecisionRestRequest.php | 46 + .../Types/AppealCaseDecisionRestResponse.php | 72 + src/PostOrder/Types/AppealDetails.php | 81 + src/PostOrder/Types/AppealRequest.php | 46 + .../ApproveCancellationRequestRestRequest.php | 46 + ...ApproveCancellationRequestRestResponse.php | 72 + src/PostOrder/Types/AvailableOptionType.php | 53 + src/PostOrder/Types/BuyerCloseCaseRequest.php | 53 + .../Types/BuyerCloseInquiryRequest.php | 53 + src/PostOrder/Types/CancelActivityHistory.php | 74 + src/PostOrder/Types/CancelDetail.php | 172 ++ .../Types/CancelReturnRequestRestRequest.php | 46 + .../Types/CancelReturnRequestRestResponse.php | 72 + src/PostOrder/Types/CancelSortField.php | 53 + src/PostOrder/Types/CancelSummary.php | 144 ++ .../Types/CarrierShippingCostInfoType.php | 53 + src/PostOrder/Types/CaseDetails.php | 116 + src/PostOrder/Types/CaseDetailsResponse.php | 242 ++ src/PostOrder/Types/CaseSearchResponse.php | 60 + src/PostOrder/Types/CaseStatusFilter.php | 39 + src/PostOrder/Types/CaseSummaryType.php | 109 + .../Types/CaseVoluntaryRefundRequest.php | 46 + ...heckCancellationEligibilityRestRequest.php | 39 + ...eckCancellationEligibilityRestResponse.php | 72 + .../Types/CheckEligibilityRequest.php | 74 + .../Types/CheckEligibilityResponse.php | 46 + .../Types/CheckInquiryEligibilityRequest.php | 53 + .../Types/CheckInquiryEligibilityResponse.php | 116 + .../CheckInquiryEligibilityRestRequest.php | 39 + .../CheckInquiryEligibilityRestResponse.php | 72 + .../CheckLabelPrintEligibilityResponse.php | 46 + .../CheckReturnEligibilityRestRequest.php | 39 + .../CheckReturnEligibilityRestResponse.php | 72 + ...eckShippingLabelEligibilityRestRequest.php | 46 + ...ckShippingLabelEligibilityRestResponse.php | 72 + .../Types/ClaimHistoryEventModel.php | 74 + src/PostOrder/Types/ClaimHistoryResponse.php | 53 + src/PostOrder/Types/CloseCaseRestRequest.php | 46 + src/PostOrder/Types/CloseCaseRestResponse.php | 72 + .../Types/CloseInquiryRestRequest.php | 46 + .../Types/CloseInquiryRestResponse.php | 72 + src/PostOrder/Types/CloseReturnRequest.php | 53 + .../Types/ConditionDataRangeType.php | 46 + .../Types/ConditionListDetailType.php | 60 + .../ConfirmCancellationRefundRestRequest.php | 46 + .../ConfirmCancellationRefundRestResponse.php | 72 + .../Types/ConfirmInquiryRefundRestRequest.php | 46 + .../ConfirmInquiryRefundRestResponse.php | 72 + src/PostOrder/Types/ConfirmRefundRequest.php | 53 + src/PostOrder/Types/CountSummaryType.php | 53 + src/PostOrder/Types/CreateCancelRequest.php | 67 + src/PostOrder/Types/CreateCancelResponse.php | 53 + .../Types/CreateCustomListRequest.php | 46 + .../Types/CreateCustomListResponse.php | 46 + .../Types/CreateCustomListRestRequest.php | 39 + .../Types/CreateCustomListRestResponse.php | 72 + .../Types/CreateDispositionRuleRequest.php | 46 + .../Types/CreateDispositionRuleResponse.php | 46 + src/PostOrder/Types/CreateInquiryRequest.php | 74 + .../Types/CreateInquiryRestRequest.php | 39 + .../Types/CreateInquiryRestResponse.php | 72 + .../Types/CreateReturnDraftRestRequest.php | 39 + .../Types/CreateReturnDraftRestResponse.php | 72 + src/PostOrder/Types/CreateReturnRequest.php | 53 + .../Types/CreateReturnRequestRestRequest.php | 46 + .../Types/CreateReturnRequestRestResponse.php | 72 + src/PostOrder/Types/CreateReturnResponse.php | 67 + .../Types/CreateReturnRulesRestRequest.php | 39 + .../Types/CreateReturnRulesRestResponse.php | 72 + .../CreateReturnShippingLabelRestRequest.php | 46 + .../CreateReturnShippingLabelRestResponse.php | 72 + src/PostOrder/Types/CustomListDataType.php | 60 + src/PostOrder/Types/CustomListDetailType.php | 67 + .../Types/CustomListModificationType.php | 39 + src/PostOrder/Types/CustomListType.php | 39 + src/PostOrder/Types/DateTime.php | 53 + src/PostOrder/Types/DecideReturnRequest.php | 67 + src/PostOrder/Types/DecideReturnResponse.php | 46 + .../DeleteReturnDraftFileRestRequest.php | 53 + .../DeleteReturnDraftFileRestResponse.php | 72 + .../Types/DeleteReturnFileRestRequest.php | 53 + .../Types/DeleteReturnFileRestResponse.php | 72 + .../Types/DispositionRuleDetailType.php | 60 + src/PostOrder/Types/EligibilityErrorType.php | 60 + .../Types/EligibilityResponseError.php | 53 + src/PostOrder/Types/EligibilityResultType.php | 88 + src/PostOrder/Types/Error.php | 95 + src/PostOrder/Types/ErrorDetailV3.php | 102 + src/PostOrder/Types/ErrorMessage.php | 46 + src/PostOrder/Types/ErrorParameter.php | 53 + src/PostOrder/Types/ErrorParameterV3.php | 53 + .../Types/EscalateInquiryRequest.php | 53 + .../Types/EscalateInquiryRestRequest.php | 46 + .../Types/EscalateInquiryRestResponse.php | 72 + src/PostOrder/Types/EscalateRequest.php | 53 + src/PostOrder/Types/EscalateResponse.php | 46 + .../Types/EscalateReturnRestRequest.php | 46 + .../Types/EscalateReturnRestResponse.php | 72 + .../Types/EscalationEligibilityInfo.php | 60 + src/PostOrder/Types/EscalationInfoType.php | 60 + .../Types/EstimatedRefundDetailType.php | 53 + .../Types/EstimatedRefundInfoType.php | 60 + src/PostOrder/Types/EstimatedRefundType.php | 74 + .../Types/EstimatedShippingInfoType.php | 53 + src/PostOrder/Types/FindCancelResponse.php | 60 + .../Types/GetCancelDetailResponse.php | 46 + src/PostOrder/Types/GetCancelFieldGroup.php | 39 + .../Types/GetCancellationRestRequest.php | 53 + .../Types/GetCancellationRestResponse.php | 72 + src/PostOrder/Types/GetCaseRestRequest.php | 46 + src/PostOrder/Types/GetCaseRestResponse.php | 72 + .../Types/GetCustomListDetailResponse.php | 46 + .../Types/GetCustomListRestResponse.php | 72 + .../Types/GetCustomListsResponse.php | 46 + .../Types/GetCustomListsRestResponse.php | 72 + src/PostOrder/Types/GetDetailResponse.php | 53 + .../GetDispositionRuleDetailResponse.php | 53 + .../GetDispositionRuleTemplatesResponse.php | 46 + .../GetDispositionRuleTriggerHistResponse.php | 53 + .../Types/GetDispositionRulesResponse.php | 67 + src/PostOrder/Types/GetEstimateRequest.php | 67 + src/PostOrder/Types/GetEstimateResponse.php | 53 + src/PostOrder/Types/GetFileResponse.php | 46 + src/PostOrder/Types/GetInquiryRestRequest.php | 46 + .../Types/GetInquiryRestResponse.php | 72 + src/PostOrder/Types/GetMetadataResponse.php | 46 + .../GetReturnCreationSessionResponse.php | 46 + .../Types/GetReturnDraftFilesRestRequest.php | 46 + .../Types/GetReturnDraftFilesRestResponse.php | 72 + .../Types/GetReturnDraftRestRequest.php | 46 + .../Types/GetReturnDraftRestResponse.php | 72 + .../Types/GetReturnEstimateRestRequest.php | 39 + .../Types/GetReturnEstimateRestResponse.php | 72 + .../Types/GetReturnFilesRestRequest.php | 46 + .../Types/GetReturnFilesRestResponse.php | 72 + .../Types/GetReturnMetadataRestRequest.php | 46 + .../Types/GetReturnMetadataRestResponse.php | 72 + .../GetReturnPreferencesRestResponse.php | 72 + src/PostOrder/Types/GetReturnRestRequest.php | 53 + src/PostOrder/Types/GetReturnRestResponse.php | 72 + .../Types/GetReturnRuleHistoryRestRequest.php | 74 + .../GetReturnRuleHistoryRestResponse.php | 72 + .../Types/GetReturnRuleRestRequest.php | 46 + .../Types/GetReturnRuleRestResponse.php | 72 + .../GetReturnRuleTemplatesRestResponse.php | 72 + .../Types/GetReturnRulesRestRequest.php | 46 + .../Types/GetReturnRulesRestResponse.php | 72 + .../GetReturnShippingLabelRestRequest.php | 46 + .../GetReturnShippingLabelRestResponse.php | 72 + .../GetSellerReturnPreferenceResponse.php | 67 + .../Types/GetShipmentTrackingRestRequest.php | 60 + .../Types/GetShipmentTrackingRestResponse.php | 72 + .../Types/GetShippingLabelResponse.php | 81 + .../Types/GetStoreCategoriesRestResponse.php | 72 + .../Types/GetStoreCategoryResponse.php | 46 + src/PostOrder/Types/GetSummaryResponse.php | 67 + .../Types/GetTrackingHistoryResponse.php | 67 + .../Types/InitiateShippingLabelResponse.php | 67 + src/PostOrder/Types/InquiryDetails.php | 95 + .../Types/InquiryDetailsResponse.php | 151 ++ src/PostOrder/Types/InquirySearchResponse.php | 60 + src/PostOrder/Types/InquiryStatusFilter.php | 39 + src/PostOrder/Types/InquirySummaryType.php | 109 + .../Types/InquiryVoluntaryRefundRequest.php | 46 + .../Types/IssueCaseRefundRestRequest.php | 46 + .../Types/IssueCaseRefundRestResponse.php | 72 + .../Types/IssueInquiryRefundRestRequest.php | 46 + .../Types/IssueInquiryRefundRestResponse.php | 72 + src/PostOrder/Types/IssueRefundRequest.php | 53 + src/PostOrder/Types/IssueRefundResponse.php | 46 + .../Types/IssueReturnRefundRestRequest.php | 46 + .../Types/IssueReturnRefundRestResponse.php | 72 + src/PostOrder/Types/ItemDetailType.php | 60 + src/PostOrder/Types/ItemDetails.php | 67 + src/PostOrder/Types/ItemEligibilityResult.php | 67 + .../Types/ItemizedRefundDetailType.php | 60 + .../Types/ItemizedReturnShippingCostType.php | 53 + src/PostOrder/Types/ListDataType.php | 53 + src/PostOrder/Types/MarkAsReceivedRequest.php | 46 + src/PostOrder/Types/MarkAsShippedRequest.php | 81 + src/PostOrder/Types/MarkRefundSentRequest.php | 60 + .../Types/MarkReturnReceivedRestRequest.php | 46 + .../Types/MarkReturnReceivedRestResponse.php | 72 + .../MarkReturnRefundReceivedRestRequest.php | 46 + .../MarkReturnRefundReceivedRestResponse.php | 72 + .../Types/MarkReturnRefundSentRestRequest.php | 46 + .../MarkReturnRefundSentRestResponse.php | 72 + .../Types/MarkReturnShippedRestRequest.php | 46 + .../Types/MarkReturnShippedRestResponse.php | 72 + .../Types/ModifyCustomListRequest.php | 60 + .../Types/ModifyCustomListResponse.php | 53 + .../Types/ModifyDispositionRuleRequest.php | 67 + .../Types/MoneyMovementDetailType.php | 88 + src/PostOrder/Types/MoneyMovementEntries.php | 46 + src/PostOrder/Types/MoneyMovementEntry.php | 60 + src/PostOrder/Types/MoneyMovementRef.php | 46 + src/PostOrder/Types/OrderCancelLineItem.php | 53 + .../Types/OrderEligibilityCheckInfo.php | 46 + .../Types/OrderEligibilityResult.php | 74 + src/PostOrder/Types/PaginationOutput.php | 67 + src/PostOrder/Types/PriorityListType.php | 46 + .../Types/ProcessReturnRequestRestRequest.php | 46 + .../ProcessReturnRequestRestResponse.php | 72 + .../ProvideInquiryRefundInfoRestRequest.php | 46 + .../ProvideInquiryRefundInfoRestResponse.php | 72 + .../ProvideInquiryShipmentInfoRestRequest.php | 46 + ...ProvideInquiryShipmentInfoRestResponse.php | 72 + src/PostOrder/Types/ProvideLabelRequest.php | 116 + src/PostOrder/Types/ProvideLabelResponse.php | 67 + .../ProvideReturnShipmentInfoRestRequest.php | 46 + .../ProvideReturnShipmentInfoRestResponse.php | 72 + .../Types/ProvideShipmentInfoRequest.php | 53 + .../ProvidesReturnAddressRestRequest.php | 46 + .../ProvidesReturnAddressRestResponse.php | 72 + src/PostOrder/Types/RefundAmounts.php | 67 + src/PostOrder/Types/RefundDetailType.php | 53 + src/PostOrder/Types/RefundInfoType.php | 53 + src/PostOrder/Types/RefundType.php | 39 + src/PostOrder/Types/RejectCancelRequest.php | 53 + .../RejectCancellationRequestRestRequest.php | 46 + .../RejectCancellationRequestRestResponse.php | 72 + .../Types/ResponseHistoryAttributesType.php | 95 + src/PostOrder/Types/ReturnAddress.php | 74 + src/PostOrder/Types/ReturnAddressRequest.php | 67 + src/PostOrder/Types/ReturnAddressType.php | 53 + src/PostOrder/Types/ReturnCloseInfoType.php | 60 + .../Types/ReturnCreationInfoType.php | 74 + src/PostOrder/Types/ReturnDetailType.php | 151 ++ .../ReturnEligibilityErrorDetailType.php | 46 + ...eturnEligibilityItemPerCheckTypeResult.php | 53 + .../Types/ReturnEligibilityItemType.php | 67 + .../Types/ReturnEligibilityPerItemType.php | 53 + src/PostOrder/Types/ReturnFileType.php | 95 + src/PostOrder/Types/ReturnHoldInfoType.php | 74 + src/PostOrder/Types/ReturnItemType.php | 60 + src/PostOrder/Types/ReturnMetadataType.php | 67 + src/PostOrder/Types/ReturnPolicyType.php | 46 + src/PostOrder/Types/ReturnRequestType.php | 95 + src/PostOrder/Types/ReturnResponseDueType.php | 53 + .../Types/ReturnResponseHistoryType.php | 88 + .../Types/ReturnShippingCostDetailType.php | 53 + .../Types/ReturnShippingCostType.php | 39 + src/PostOrder/Types/ReturnSortField.php | 60 + src/PostOrder/Types/ReturnSummaryType.php | 151 ++ .../Types/RuleActionDataDetailType.php | 46 + src/PostOrder/Types/RuleActionDataType.php | 39 + src/PostOrder/Types/RuleActionDetailType.php | 60 + src/PostOrder/Types/RuleActionInputType.php | 53 + .../Types/RuleConditionDetailType.php | 81 + .../Types/RuleConditionInputType.php | 74 + src/PostOrder/Types/RuleDetailInputType.php | 60 + src/PostOrder/Types/RuleDetailType.php | 60 + src/PostOrder/Types/RuleModificationType.php | 39 + src/PostOrder/Types/RuleSummaryType.php | 81 + .../Types/RuleTemplateDetailType.php | 53 + .../Types/RuleTriggerHistDetailType.php | 60 + src/PostOrder/Types/ScanDetailType.php | 88 + .../Types/SearchCancellationsRestRequest.php | 116 + .../Types/SearchCancellationsRestResponse.php | 72 + .../Types/SearchCasesRestRequest.php | 116 + .../Types/SearchCasesRestResponse.php | 72 + .../Types/SearchInquiriesRestRequest.php | 109 + .../Types/SearchInquiriesRestResponse.php | 72 + .../Types/SearchReturnsRestRequest.php | 102 + .../Types/SearchReturnsRestResponse.php | 72 + .../Types/SellerProvideRefundInfoRequest.php | 46 + .../Types/SendInquiryMessageRestRequest.php | 46 + .../Types/SendInquiryMessageRestResponse.php | 72 + src/PostOrder/Types/SendMessageRequest.php | 46 + .../Types/SendReturnMessageRestRequest.php | 46 + .../Types/SendReturnMessageRestResponse.php | 72 + .../SendReturnShippingLabelRestRequest.php | 53 + .../SendReturnShippingLabelRestResponse.php | 72 + .../Types/SendShippingLabelResponse.php | 46 + .../Types/SetReturnCreationSessionRequest.php | 46 + .../SetReturnCreationSessionResponse.php | 46 + .../Types/SetReturnPreferencesRestRequest.php | 39 + .../SetReturnPreferencesRestResponse.php | 72 + .../SetSellerReturnPreferenceRequest.php | 46 + src/PostOrder/Types/ShipmentInfoRequest.php | 81 + .../Types/ShipmentTrackingDetailType.php | 81 + src/PostOrder/Types/ShipmentTrackingType.php | 214 ++ src/PostOrder/Types/ShipmentType.php | 67 + src/PostOrder/Types/StatusType.php | 39 + src/PostOrder/Types/StoreCategoryType.php | 74 + .../SubmitCancellationRequestRestRequest.php | 39 + .../SubmitCancellationRequestRestResponse.php | 72 + src/PostOrder/Types/SubmitFileRequest.php | 46 + src/PostOrder/Types/SubmitFileResponse.php | 46 + .../Types/SubmitReturnFileRestRequest.php | 46 + .../Types/SubmitReturnFileRestResponse.php | 72 + src/PostOrder/Types/Text.php | 67 + src/PostOrder/Types/TotalRefundAmountType.php | 53 + .../Types/UpdateCustomListRestRequest.php | 39 + .../Types/UpdateCustomListRestResponse.php | 72 + .../Types/UpdateReturnDraftRestRequest.php | 46 + .../Types/UpdateReturnDraftRestResponse.php | 72 + .../Types/UpdateReturnRulesRestRequest.php | 39 + .../Types/UpdateReturnRulesRestResponse.php | 72 + .../UpdateShipmentTrackingRestRequest.php | 46 + .../UpdateShipmentTrackingRestResponse.php | 72 + src/PostOrder/Types/UpdateTrackingRequest.php | 81 + src/PostOrder/Types/UploadFileRequest.php | 60 + src/PostOrder/Types/UploadFileResponse.php | 53 + .../UploadReturnDraftFileRestRequest.php | 46 + .../UploadReturnDraftFileRestResponse.php | 72 + .../Types/UploadReturnFileRestRequest.php | 46 + .../Types/UploadReturnFileRestResponse.php | 72 + src/PostOrder/Types/VoidLabelRequest.php | 53 + .../Types/VoidShippingLabelRestRequest.php | 46 + .../Types/VoidShippingLabelRestResponse.php | 72 + .../Types/VoluntaryRefundResponse.php | 46 + src/PostOrder/Types/VoluntaryRefundResult.php | 53 + src/Product/Enums/AckValue.php | 19 + src/Product/Enums/ErrorCategory.php | 18 + src/Product/Enums/ErrorSeverity.php | 17 + src/Product/Enums/MediaType.php | 16 + src/Product/Enums/OrderType.php | 17 + src/Product/Enums/OutputSelector.php | 16 + .../Enums/ProductSubmissionStatusCode.php | 18 + src/Product/Enums/SortPriority.php | 20 + src/Product/Enums/SortType.php | 16 + src/Product/Services/ProductBaseService.php | 83 + src/Product/Services/ProductService.php | 178 ++ src/Product/Types/AddProductResponse.php | 57 + src/Product/Types/AddProductsRequest.php | 61 + src/Product/Types/AddProductsResponse.php | 57 + src/Product/Types/BaseServiceRequest.php | 43 + src/Product/Types/BaseServiceResponse.php | 71 + src/Product/Types/CompatibilityDetails.php | 50 + .../Types/CompatibilityPropertyFilter.php | 64 + src/Product/Types/CompatibilitySort.php | 57 + src/Product/Types/ErrorData.php | 99 + src/Product/Types/ErrorMessage.php | 50 + src/Product/Types/ErrorParameter.php | 50 + ...dCompatibilitiesBySpecificationRequest.php | 103 + ...CompatibilitiesBySpecificationResponse.php | 57 + .../FindProductsByCompatibilityRequest.php | 54 + src/Product/Types/FindProductsRequest.php | 54 + src/Product/Types/FindProductsResponse.php | 50 + .../GetProductCompatibilitiesRequest.php | 96 + .../GetProductCompatiblitiesResponse.php | 57 + .../Types/GetProductDetailsRequest.php | 54 + .../Types/GetProductDetailsResponse.php | 50 + .../Types/GetProductSubmissionsRequest.php | 75 + .../Types/GetProductSubmissionsResponse.php | 57 + src/Product/Types/Media.php | 57 + src/Product/Types/MediaIdentifier.php | 50 + src/Product/Types/Notes.php | 50 + src/Product/Types/NumericValue.php | 57 + src/Product/Types/PaginationInput.php | 57 + src/Product/Types/PaginationOutput.php | 71 + src/Product/Types/Product.php | 92 + .../Types/ProductByCompatibilityRequest.php | 57 + .../Types/ProductDetailsRequestType.php | 71 + .../Types/ProductIdentifier.php} | 43 +- src/Product/Types/ProductRequest.php | 106 + src/Product/Types/ProductResponse.php | 64 + src/Product/Types/ProductStatus.php | 64 + src/Product/Types/ProductSubmission.php | 71 + src/Product/Types/ProductSubmissionFilter.php | 57 + src/Product/Types/ProductSubmissionResult.php | 57 + src/Product/Types/ProductSubmissionStatus.php | 64 + src/Product/Types/PropertyValue.php | 57 + src/Product/Types/SortOption.php | 57 + src/Product/Types/SortOrder.php | 57 + src/Product/Types/StockPhotoURL.php | 57 + src/Product/Types/StringValue.php | 50 + src/Product/Types/URIValue.php | 50 + src/Product/Types/Value.php | 64 + src/ProductMetadata/Enums/AckValue.php | 19 + src/ProductMetadata/Enums/DatasetValue.php | 21 + src/ProductMetadata/Enums/ErrorCategory.php | 18 + src/ProductMetadata/Enums/ErrorSeverity.php | 17 + src/ProductMetadata/Enums/OrderType.php | 17 + .../Services/ProductMetadataBaseService.php | 83 + .../Services/ProductMetadataService.php | 222 ++ src/ProductMetadata/Types/BaseRequest.php | 50 + src/ProductMetadata/Types/BaseResponse.php | 78 + .../Types/BaseServiceRequest.php | 43 + .../Types/BaseServiceResponse.php | 71 + src/ProductMetadata/Types/ErrorData.php | 99 + src/ProductMetadata/Types/ErrorMessage.php | 50 + src/ProductMetadata/Types/ErrorParameter.php | 50 + .../Types/ExtensionType.php} | 45 +- ...tCompatibilitySearchDataVersionRequest.php | 54 + ...CompatibilitySearchDataVersionResponse.php | 57 + .../GetCompatibilitySearchNamesRequest.php | 61 + .../GetCompatibilitySearchNamesResponse.php | 57 + ...etCompatibilitySearchValuesBulkRequest.php | 54 + ...tCompatibilitySearchValuesBulkResponse.php | 50 + .../GetCompatibilitySearchValuesRequest.php | 54 + .../GetCompatibilitySearchValuesResponse.php | 71 + .../GetProductSearchDataVersionRequest.php | 54 + .../GetProductSearchDataVersionResponse.php | 57 + .../Types/GetProductSearchNamesRequest.php | 61 + .../Types/GetProductSearchNamesResponse.php | 57 + .../GetProductSearchValuesBaseRequest.php | 71 + .../GetProductSearchValuesBulkRequest.php | 54 + .../GetProductSearchValuesBulkResponse.php | 43 + .../Types/GetProductSearchValuesRequest.php | 54 + .../Types/GetProductSearchValuesResponse.php | 71 + src/ProductMetadata/Types/GroupProperties.php | 71 + src/ProductMetadata/Types/GroupProperty.php | 57 + .../Types/MediaTypeSpecificInformation.php | 43 + .../Types/NumericTypeSpecificInformation.php | 57 + src/ProductMetadata/Types/NumericValue.php | 57 + src/ProductMetadata/Types/ProductMetadata.php | 64 + .../Types/ProductMetadataBulkRequest.php | 54 + .../Types/ProductMetadataBulkResponse.php | 50 + .../Types/ProductMetadataRequest.php | 71 + .../Types/ProductMetadataResponse.php | 57 + src/ProductMetadata/Types/Properties.php | 64 + src/ProductMetadata/Types/Property.php | 64 + .../Types/PropertyMetadata.php | 99 + .../Types/PropertyNameMetadata.php | 50 + .../Types/PropertyNameValue.php | 64 + src/ProductMetadata/Types/PropertyValue.php | 57 + src/ProductMetadata/Types/SortOrder.php | 57 + .../Types/StringTypeSpecificInformation.php | 57 + src/ProductMetadata/Types/StringValue.php | 50 + src/ProductMetadata/Types/Tag.php | 71 + .../Types/TypeSpecificInformation.php | 71 + .../Types/URITypeSpecificInformation.php | 43 + src/ProductMetadata/Types/URIValue.php | 50 + src/ProductMetadata/Types/Value.php | 64 + src/ProductMetadata/Types/VersionDetails.php | 57 + src/RelatedItemsManagement/Enums/AckValue.php | 19 + .../Enums/BundleDetailEnum.php | 17 + .../Enums/BundleStatusEnum.php | 19 + .../Enums/DiscountTypeEnum.php | 17 + .../Enums/ErrorCategory.php | 18 + .../Enums/ErrorSeverity.php | 17 + .../RelatedItemsManagementBaseService.php | 87 + .../RelatedItemsManagementService.php | 178 ++ src/RelatedItemsManagement/Types/Amount.php | 50 + .../Types/BaseRequest.php | 50 + .../Types/BaseResponse.php | 78 + src/RelatedItemsManagement/Types/Bundle.php | 106 + .../Types/BundleFilter.php | 57 + .../Types/BundleStatus.php | 78 + .../Types/BundleStatusMap.php | 57 + .../Types/CreateBundlesRequest.php | 54 + .../Types/CreateBundlesResponse.php | 50 + .../Types/DeleteBundlesRequest.php | 54 + .../Types/DeleteBundlesResponse.php | 50 + src/RelatedItemsManagement/Types/Discount.php | 64 + .../Types/ErrorData.php | 99 + .../Types/ErrorMessage.php | 50 + .../Types/ErrorParameter.php | 50 + .../Types/ExtensionType.php | 71 + .../Types/FindBundlesRequest.php | 68 + .../Types/FindBundlesResponse.php | 50 + .../Types/GetBundlesRequest.php | 54 + .../Types/GetBundlesResponse.php | 50 + .../Types/GetVersionRequest.php | 47 + .../Types/GetVersionResponse.php | 43 + .../Types/RelatedProduct.php | 78 + .../Types/RelatedProductGroup.php | 71 + .../Types/UpdateBundleStatusRequest.php | 54 + .../Types/UpdateBundleStatusResponse.php | 50 + .../Types/UpdateBundlesRequest.php | 54 + .../Types/UpdateBundlesResponse.php | 50 + .../Enums/AckValue.php | 10 +- .../Enums/AppealDecisionType.php | 10 +- .../Enums/AppealReasonType.php | 10 +- .../Enums/BuyerINREscalationReasonType.php | 10 +- .../Enums/BuyerSNADEscalationReasonType.php | 10 +- .../Enums/CancelTransactionCaseStatusType.php | 10 +- .../Enums/CaseDecisionType.php | 10 +- .../Enums/CaseSortOrderType.php | 10 +- .../Enums/CaseStatusInputType.php | 10 +- .../Enums/CaseType.php | 10 +- .../Enums/CaseUserRoleType.php | 10 +- .../Enums/EBPINRCaseStatusType.php | 10 +- .../Enums/EBPSNADCaseStatusType.php | 10 +- .../Enums/ErrorCategory.php | 10 +- .../Enums/ErrorSeverity.php | 10 +- .../Enums/INRCaseStatusType.php | 10 +- .../Enums/IsoCurrencyCode.php | 10 +- .../Enums/MoneyMovementStatusType.php | 10 +- .../Enums/MoneyMovementType.php | 10 +- .../Enums/NotificationEventNameType.php | 10 +- .../Enums/PaymentMethodType.php | 10 +- .../Enums/PaypalINRCaseStatusType.php | 10 +- .../Enums/PaypalSNADCaseStatusType.php | 10 +- .../Enums/ProofType.php | 10 +- .../Enums/RefundStatusType.php | 10 +- .../Enums/ReturnCaseStatusType.php | 10 +- .../Enums/SNADCaseStatusType.php | 10 +- .../Enums/SellerINREscalationReasonType.php | 10 +- .../Enums/SellerSNADEscalationReasonType.php | 10 +- .../Enums/UPICaseStatusType.php | 10 +- .../ResolutionCaseManagementBaseService.php | 27 +- .../ResolutionCaseManagementService.php | 7 +- .../Types/ActivityDetailType.php | 7 +- .../Types/ActivityOptionListType.php | 7 +- .../Types/Address.php | 7 +- src/ResolutionCaseManagement/Types/Amount.php | 7 +- .../Types/AppealRef.php | 50 + .../AppealToCustomerSupportOptionType.php | 7 +- .../Types/AppealToCustomerSupportRequest.php | 7 +- .../Types/AppealToCustomerSupportResponse.php | 7 +- .../Types/AppealType.php | 7 +- .../Types/BaseActivityOptionType.php | 7 +- .../Types/BaseRequest.php | 7 +- .../Types/BaseResponse.php | 7 +- .../Types/CaseArrayType.php | 7 +- .../Types/CaseIdType.php | 7 +- .../Types/CaseStatusFilterType.php | 7 +- .../Types/CaseStatusType.php | 7 +- .../Types/CaseSummaryType.php | 7 +- .../Types/CaseTypeFilterType.php | 7 +- .../Types/CaseUserType.php | 7 +- .../ContactCustomerSupportOptionType.php | 7 +- .../Types/DateRangeFilterType.php | 7 +- .../Types/DecisionReasonDetailType.php | 7 +- .../Types/DetailStatusInfoType.php | 7 +- .../Types/EBPCaseDetailType.php | 7 +- .../Types/EBPCaseDocumentInfoType.php | 7 +- .../Types/EBPCaseResponseHistoryType.php | 7 +- .../Types/EnumerationDetailType.php | 7 +- .../Types/ErrorData.php | 7 +- .../Types/ErrorMessage.php | 7 +- .../Types/ErrorParameter.php | 7 +- .../EscalateToCustomerSupportOptionType.php | 7 +- .../EscalateToCustomerSupportRequest.php | 7 +- .../EscalateToCustomerSupportResponse.php | 7 +- .../Types/EscalationReasonType.php | 7 +- .../Types/ExtensionType.php | 7 +- .../Types/GetActivityOptionsRequest.php | 7 +- .../Types/GetActivityOptionsResponse.php | 7 +- .../Types/GetEBPCaseDetailRequest.php | 7 +- .../Types/GetEBPCaseDetailResponse.php | 7 +- .../Types/GetUserCasesRequest.php | 7 +- .../Types/GetUserCasesResponse.php | 7 +- .../Types/GetVersionRequest.php | 7 +- .../Types/GetVersionResponse.php | 7 +- .../InitialBuyerExpectationDetailType.php | 7 +- .../Types/IssueFullRefundOptionType.php | 7 +- .../Types/IssueFullRefundRequest.php | 7 +- .../Types/IssueFullRefundResponse.php | 7 +- .../Types/IssuePartialRefundOptionType.php | 7 +- .../Types/IssuePartialRefundRequest.php | 7 +- .../Types/IssuePartialRefundResponse.php | 7 +- .../Types/ItemFilterType.php | 7 +- .../Types/ItemType.php | 7 +- src/ResolutionCaseManagement/Types/Money.php | 7 +- .../Types/MoneyMovementDetailType.php | 7 +- .../Types/MoneyMovementRef.php | 50 + .../Types/NotificationEventType.php | 7 +- .../Types/OfferOtherSolutionOptionType.php | 7 +- .../Types/OfferOtherSolutionRequest.php | 7 +- .../Types/OfferOtherSolutionResponse.php | 7 +- .../Types/OfferPartialRefundRequest.php | 7 +- .../Types/OfferPartialRefundResponse.php | 7 +- .../Types/OfferRefundUponReturnRequest.php | 7 +- .../Types/OfferRefundUponReturnResponse.php | 7 +- .../Types/OnHoldReasonDetailType.php | 7 +- .../Types/PaginationInput.php | 7 +- .../Types/PaginationOutput.php | 7 +- .../Types/PaymentDetailType.php | 7 +- .../Types/ProvideRefundInfoOptionType.php | 7 +- .../Types/ProvideRefundInfoRequest.php | 7 +- .../Types/ProvideRefundInfoResponse.php | 7 +- .../Types/ProvideReturnInfoRequest.php | 7 +- .../Types/ProvideReturnInfoResponse.php | 7 +- .../Types/ProvideShippingInfoOptionType.php | 7 +- .../Types/ProvideShippingInfoRequest.php | 7 +- .../Types/ProvideShippingInfoResponse.php | 7 +- ...rovideShippingOrTrackingInfoOptionType.php | 7 +- .../Types/ProvideTrackingInfoOptionType.php | 7 +- .../Types/ProvideTrackingInfoRequest.php | 7 +- .../Types/ProvideTrackingInfoResponse.php | 7 +- .../Types/RequestBuyerToReturnOptionType.php | 7 +- .../Types/ResponseHistoryAttributesType.php | 21 +- .../Types/ShipmentType.php | 7 +- .../Types/UploadDocumentInfoType.php | 7 +- .../Types/UploadDocumentsRequest.php | 7 +- .../Types/UploadDocumentsResponse.php | 7 +- src/ReturnManagement/Enums/AckValue.php | 10 +- .../Enums/ActivityOptionType.php | 10 +- src/ReturnManagement/Enums/CaseType.php | 10 +- .../Enums/CloseReturnReasonType.php | 10 +- src/ReturnManagement/Enums/ErrorCategory.php | 10 +- src/ReturnManagement/Enums/ErrorSeverity.php | 10 +- .../Enums/MetadataCodeType.php | 10 +- .../Enums/MetadataEntryType.php | 10 +- .../Enums/NotificationEventNameType.php | 10 +- src/ReturnManagement/Enums/RefundFeeType.php | 10 +- .../Enums/RefundStatusType.php | 10 +- .../Enums/ReturnSortOrderType.php | 10 +- src/ReturnManagement/Enums/ReturnSortType.php | 10 +- .../Enums/ReturnStatusInputType.php | 10 +- .../Enums/ReturnStatusType.php | 10 +- src/ReturnManagement/Enums/ReturnType.php | 10 +- .../Enums/ReturnUserRoleType.php | 10 +- .../Enums/ShipmentStatusType.php | 10 +- src/ReturnManagement/Enums/StatusType.php | 10 +- .../Enums/TrackingStatusType.php | 10 +- .../Enums/UserFilterRoleType.php | 10 +- .../Services/ReturnManagementBaseService.php | 27 +- .../Services/ReturnManagementService.php | 7 +- .../Types/ActivityDetailType.php | 7 +- .../Types/ActivityOptionListType.php | 7 +- .../Types/ActualRefundDetailType.php | 7 +- src/ReturnManagement/Types/Address.php | 7 +- src/ReturnManagement/Types/Amount.php | 7 +- .../Types/BaseActivityOptionType.php | 7 +- src/ReturnManagement/Types/BaseRequest.php | 7 +- src/ReturnManagement/Types/BaseResponse.php | 7 +- src/ReturnManagement/Types/CaseIdType.php | 7 +- .../Types/DateRangeFilterType.php | 7 +- .../Types/EnumerationDetailType.php | 7 +- src/ReturnManagement/Types/ErrorData.php | 7 +- src/ReturnManagement/Types/ErrorMessage.php | 7 +- src/ReturnManagement/Types/ErrorParameter.php | 7 +- .../Types/EstimatedRefundDetailType.php | 7 +- src/ReturnManagement/Types/ExtensionType.php | 7 +- .../Types/GetActivityOptionsRequest.php | 7 +- .../Types/GetActivityOptionsResponse.php | 7 +- .../Types/GetReturnDetailRequest.php | 7 +- .../Types/GetReturnDetailResponse.php | 7 +- .../Types/GetReturnMetadataRequest.php | 7 +- .../Types/GetReturnMetadataResponse.php | 7 +- .../Types/GetUserReturnsRequest.php | 7 +- .../Types/GetUserReturnsResponse.php | 7 +- .../Types/GetVersionRequest.php | 7 +- .../Types/GetVersionResponse.php | 7 +- .../Types/IssueRefundOptionType.php | 7 +- .../Types/IssueRefundRequest.php | 7 +- .../Types/IssueRefundResponse.php | 7 +- src/ReturnManagement/Types/ItemFilterType.php | 7 +- .../Types/ItemizedRefundDetailType.php | 7 +- .../Types/MetaDataCodeResultType.php | 7 +- .../Types/NotificationEventType.php | 7 +- .../Types/PaginationInput.php | 7 +- .../Types/PaginationOutput.php | 7 +- .../Types/ProvideSellerInfoOptionType.php | 7 +- .../Types/ProvideSellerInfoRequest.php | 7 +- .../Types/ProvideSellerInfoResponse.php | 7 +- .../Types/ProvideTrackingInfoRequest.php | 7 +- .../Types/ProvideTrackingInfoResponse.php | 7 +- .../Types/RefundDetailType.php | 7 +- src/ReturnManagement/Types/RefundInfoType.php | 7 +- .../Types/ReturnArrayType.php | 7 +- .../Types/ReturnDetailType.php | 7 +- src/ReturnManagement/Types/ReturnIdType.php | 7 +- src/ReturnManagement/Types/ReturnItemType.php | 7 +- .../Types/ReturnPolicyInfoType.php | 7 +- .../Types/ReturnReasonType.php | 7 +- .../Types/ReturnRequestType.php | 7 +- .../Types/ReturnResponseDueType.php | 7 +- .../Types/ReturnResponseHistoryType.php | 7 +- .../Types/ReturnStatusFilterType.php | 7 +- .../Types/ReturnSummaryType.php | 7 +- src/ReturnManagement/Types/ReturnUserType.php | 7 +- .../Types/SetItemAsReceivedRequest.php | 7 +- .../Types/SetItemAsReceivedResponse.php | 7 +- src/ReturnManagement/Types/ShipmentType.php | 7 +- .../Types/TotalRefundAmountType.php | 7 +- src/ReturnManagement/Types/UserFilterType.php | 7 +- src/Sdk.php | 37 +- src/Services/BaseRestService.php | 272 +++ src/Services/BaseService.php | 35 +- src/Shopping/Enums/AckCodeType.php | 10 +- .../Enums/BuyerPaymentMethodCodeType.php | 10 +- src/Shopping/Enums/CharityStatusCodeType.php | 10 +- src/Shopping/Enums/CommentTypeCodeType.php | 10 +- src/Shopping/Enums/CountryCodeType.php | 10 +- src/Shopping/Enums/CurrencyCodeType.php | 10 +- .../Enums/ErrorClassificationCodeType.php | 10 +- .../Enums/ExternalProductCodeType.php | 10 +- .../Enums/FeedbackRatingDetailCodeType.php | 10 +- .../Enums/FeedbackRatingStarCodeType.php | 10 +- .../Enums/HalfItemConditionCodeType.php | 10 +- .../Enums/InsuranceOptionCodeType.php | 10 +- src/Shopping/Enums/ListingStatusCodeType.php | 10 +- src/Shopping/Enums/ListingTypeCodeType.php | 10 +- ...MinimumAdvertisedPriceExposureCodeType.php | 10 +- .../Enums/PricingTreatmentCodeType.php | 10 +- src/Shopping/Enums/ProductIDCodeType.php | 10 +- src/Shopping/Enums/ProductSortCodeType.php | 10 +- src/Shopping/Enums/ProductStateCodeType.php | 10 +- .../Enums/QuantityAvailableHintCodeType.php | 10 +- src/Shopping/Enums/ReviewSortCodeType.php | 10 +- src/Shopping/Enums/SellerBusinessCodeType.php | 10 +- src/Shopping/Enums/SellerLevelCodeType.php | 10 +- src/Shopping/Enums/SeverityCodeType.php | 10 +- src/Shopping/Enums/ShippingTypeCodeType.php | 10 +- src/Shopping/Enums/SiteCodeType.php | 10 +- src/Shopping/Enums/SortOrderCodeType.php | 10 +- src/Shopping/Enums/TradingRoleCodeType.php | 10 +- src/Shopping/Enums/UserStatusCodeType.php | 10 +- src/Shopping/Services/ShoppingBaseService.php | 41 +- src/Shopping/Services/ShoppingService.php | 9 +- src/Shopping/Types/AbstractRequestType.php | 7 +- src/Shopping/Types/AbstractResponseType.php | 7 +- src/Shopping/Types/AddressType.php | 7 +- src/Shopping/Types/AmountType.php | 7 +- .../Types/AverageRatingDetailsType.php | 7 +- .../Types/BusinessSellerDetailsType.php | 7 +- src/Shopping/Types/BuyingGuideDetailsType.php | 7 +- src/Shopping/Types/BuyingGuideType.php | 7 +- src/Shopping/Types/CatalogProductType.php | 7 +- src/Shopping/Types/CategoryArrayType.php | 7 +- src/Shopping/Types/CategoryType.php | 7 +- src/Shopping/Types/CharityType.php | 7 +- src/Shopping/Types/DiscountPriceInfoType.php | 7 +- src/Shopping/Types/DistanceType.php | 7 +- src/Shopping/Types/DomainHistogramType.php | 7 +- src/Shopping/Types/ErrorParameterType.php | 7 +- src/Shopping/Types/ErrorType.php | 7 +- src/Shopping/Types/ExternalProductIDType.php | 7 +- src/Shopping/Types/FeedbackDetailType.php | 7 +- src/Shopping/Types/FeedbackHistoryType.php | 7 +- src/Shopping/Types/FeedbackPeriodType.php | 7 +- .../Types/FindHalfProductsRequestType.php | 7 +- .../Types/FindHalfProductsResponseType.php | 7 +- .../Types/FindPopularItemsRequestType.php | 7 +- .../Types/FindPopularItemsResponseType.php | 7 +- .../Types/FindPopularSearchesRequestType.php | 7 +- .../Types/FindPopularSearchesResponseType.php | 7 +- .../Types/FindProductsRequestType.php | 7 +- .../Types/FindProductsResponseType.php | 7 +- .../Types/FindReviewsAndGuidesRequestType.php | 7 +- .../FindReviewsAndGuidesResponseType.php | 7 +- .../Types/GetCategoryInfoRequestType.php | 7 +- .../Types/GetCategoryInfoResponseType.php | 7 +- .../Types/GetItemStatusRequestType.php | 7 +- .../Types/GetItemStatusResponseType.php | 7 +- .../Types/GetMultipleItemsRequestType.php | 7 +- .../Types/GetMultipleItemsResponseType.php | 7 +- .../Types/GetShippingCostsRequestType.php | 7 +- .../Types/GetShippingCostsResponseType.php | 7 +- .../Types/GetSingleItemRequestType.php | 7 +- .../Types/GetSingleItemResponseType.php | 7 +- .../Types/GetUserProfileRequestType.php | 7 +- .../Types/GetUserProfileResponseType.php | 7 +- src/Shopping/Types/GeteBayTimeRequestType.php | 7 +- .../Types/GeteBayTimeResponseType.php | 7 +- src/Shopping/Types/HalfCatalogProductType.php | 7 +- src/Shopping/Types/HalfProductsType.php | 7 +- src/Shopping/Types/HistogramEntryType.php | 7 +- ...InternationalShippingServiceOptionType.php | 7 +- .../Types/ItemCompatibilityListType.php | 7 +- src/Shopping/Types/ItemCompatibilityType.php | 7 +- src/Shopping/Types/NameValueListArrayType.php | 7 +- src/Shopping/Types/NameValueListType.php | 7 +- .../Types/PickUpInStoreDetailsType.php | 7 +- src/Shopping/Types/PicturesType.php | 7 +- src/Shopping/Types/PopularSearchesType.php | 7 +- src/Shopping/Types/ProductIDType.php | 7 +- src/Shopping/Types/QuantityInfo.php | 7 +- src/Shopping/Types/ReturnPolicyType.php | 7 +- src/Shopping/Types/ReviewDetailsType.php | 7 +- src/Shopping/Types/ReviewType.php | 7 +- src/Shopping/Types/SalesTaxType.php | 7 +- src/Shopping/Types/SellingStatusType.php | 7 +- .../Types/ShippingCostSummaryType.php | 7 +- src/Shopping/Types/ShippingDetailsType.php | 7 +- .../Types/ShippingServiceOptionType.php | 7 +- src/Shopping/Types/SimpleItemArrayType.php | 7 +- src/Shopping/Types/SimpleItemType.php | 7 +- src/Shopping/Types/SimpleUserType.php | 7 +- src/Shopping/Types/StorefrontType.php | 7 +- src/Shopping/Types/TaxJurisdictionType.php | 7 +- src/Shopping/Types/TaxTableType.php | 7 +- src/Shopping/Types/UnitInfoType.php | 7 +- src/Shopping/Types/VATDetailsType.php | 7 +- .../Types/VariationSpecificPictureSetType.php | 7 +- src/Shopping/Types/VariationType.php | 7 +- src/Shopping/Types/VariationsType.php | 7 +- src/StatusCodeTrait.php | 23 + .../Enums/AccessRuleCurrentStatusCodeType.php | 10 +- .../Enums/AccessRuleStatusCodeType.php | 10 +- .../Enums/AccountDetailEntryCodeType.php | 10 +- .../Enums/AccountEntrySortTypeCodeType.php | 10 +- .../Enums/AccountHistorySelectionCodeType.php | 10 +- src/Trading/Enums/AccountStateCodeType.php | 10 +- src/Trading/Enums/AckCodeType.php | 10 +- src/Trading/Enums/AdFormatEnabledCodeType.php | 10 +- .../Enums/AdFormatLeadStatusCodeType.php | 10 +- .../Enums/AddressAttributeCodeType.php | 10 +- src/Trading/Enums/AddressOwnerCodeType.php | 10 +- .../Enums/AddressRecordTypeCodeType.php | 10 +- src/Trading/Enums/AddressStatusCodeType.php | 10 +- src/Trading/Enums/AddressTypeCodeType.php | 10 +- src/Trading/Enums/AddressUsageCodeType.php | 10 +- .../Enums/AnnouncementMessageCodeType.php | 10 +- .../Enums/ApplicationDeviceTypeCodeType.php | 10 +- .../AttributeConversionEnabledCodeType.php | 10 +- src/Trading/Enums/AuthTokenTypeCodeType.php | 10 +- .../AutomatedLeaveFeedbackEventCodeType.php | 10 +- src/Trading/Enums/BalanceCodeType.php | 10 +- src/Trading/Enums/BestOfferActionCodeType.php | 10 +- src/Trading/Enums/BestOfferStatusCodeType.php | 10 +- src/Trading/Enums/BestOfferTypeCodeType.php | 10 +- src/Trading/Enums/BidActionCodeType.php | 10 +- .../Enums/BidGroupItemStatusCodeType.php | 10 +- src/Trading/Enums/BidGroupStatusCodeType.php | 10 +- src/Trading/Enums/BidderStatusCodeType.php | 10 +- src/Trading/Enums/BidderTypeCodeType.php | 10 +- src/Trading/Enums/BoldTitleCodeType.php | 10 +- src/Trading/Enums/BorderCodeType.php | 10 +- .../Enums/BulkCatalogListerStatusCodeType.php | 10 +- src/Trading/Enums/BusinessRoleType.php | 10 +- .../Enums/BuyerPaymentInstrumentCodeType.php | 10 +- .../Enums/BuyerPaymentMethodCodeType.php | 10 +- src/Trading/Enums/BuyerProtectionCodeType.php | 10 +- .../Enums/BuyerProtectionSourceCodeType.php | 10 +- .../Enums/BuyerSatisfactionStatusCodeType.php | 10 +- ...CalculatedShippingChargeOptionCodeType.php | 10 +- .../CalculatedShippingRateOptionCodeType.php | 10 +- src/Trading/Enums/CancelInitiatorCodeType.php | 10 +- src/Trading/Enums/CancelReasonCodeType.php | 10 +- src/Trading/Enums/CancelStatusCodeType.php | 10 +- .../Enums/CharacteristicsSearchCodeType.php | 10 +- .../Enums/CharityAffiliationTypeCodeType.php | 10 +- .../Enums/CharitySellerStatusCodeType.php | 10 +- src/Trading/Enums/CharityStatusCodeType.php | 10 +- src/Trading/Enums/CheckoutMethodCodeType.php | 10 +- src/Trading/Enums/CheckoutStatusCodeType.php | 10 +- .../ClassifiedAdBestOfferEnabledCodeType.php | 10 +- ...assifiedAdPaymentMethodEnabledCodeType.php | 10 +- .../Enums/CombinedPaymentOptionCodeType.php | 10 +- .../Enums/CombinedPaymentPeriodCodeType.php | 10 +- src/Trading/Enums/CommentTypeCodeType.php | 10 +- src/Trading/Enums/CompleteStatusCodeType.php | 10 +- .../Enums/ConditionEnabledCodeType.php | 10 +- src/Trading/Enums/CostGroupFlatCodeType.php | 10 +- src/Trading/Enums/CountryCodeType.php | 10 +- src/Trading/Enums/CurrencyCodeType.php | 10 +- src/Trading/Enums/DayOfWeekCodeType.php | 10 +- src/Trading/Enums/DaysCodeType.php | 10 +- src/Trading/Enums/DeliveryMethodCodeType.php | 10 +- .../Enums/DeliveryStatusEmailCodeType.php | 10 +- src/Trading/Enums/DepositTypeCodeType.php | 10 +- .../Enums/DescriptionReviseModeCodeType.php | 10 +- .../Enums/DescriptionTemplateCodeType.php | 10 +- src/Trading/Enums/DetailLevelCodeType.php | 10 +- src/Trading/Enums/DetailNameCodeType.php | 10 +- src/Trading/Enums/DeviceTypeCodeType.php | 10 +- src/Trading/Enums/DigitalStatusCodeType.php | 10 +- src/Trading/Enums/DiscountCodeType.php | 10 +- src/Trading/Enums/DiscountNameCodeType.php | 10 +- src/Trading/Enums/DiscountReasonCodeType.php | 10 +- .../Enums/DisplayPayNowButtonCodeType.php | 10 +- src/Trading/Enums/DisputeActivityCodeType.php | 10 +- .../DisputeCreditEligibilityCodeType.php | 10 +- .../Enums/DisputeExplanationCodeType.php | 10 +- .../Enums/DisputeFilterTypeCodeType.php | 10 +- .../Enums/DisputeMessageSourceCodeType.php | 10 +- src/Trading/Enums/DisputeReasonCodeType.php | 10 +- .../Enums/DisputeRecordTypeCodeType.php | 10 +- .../Enums/DisputeResolutionReasonCodeType.php | 10 +- .../DisputeResolutionRecordTypeCodeType.php | 10 +- src/Trading/Enums/DisputeSortTypeCodeType.php | 10 +- src/Trading/Enums/DisputeStateCodeType.php | 10 +- src/Trading/Enums/DisputeStatusCodeType.php | 10 +- .../Enums/EBaySubscriptionTypeCodeType.php | 10 +- src/Trading/Enums/EnableCodeType.php | 10 +- .../Enums/EndOfAuctionLogoTypeCodeType.php | 10 +- src/Trading/Enums/EndReasonCodeType.php | 10 +- .../Enums/ErrorClassificationCodeType.php | 10 +- src/Trading/Enums/ErrorHandlingCodeType.php | 10 +- src/Trading/Enums/EscrowCodeType.php | 10 +- src/Trading/Enums/ExternalProductCodeType.php | 10 +- src/Trading/Enums/FeatureIDCodeType.php | 10 +- src/Trading/Enums/FeaturedFirstCodeType.php | 10 +- src/Trading/Enums/FeaturedPlusCodeType.php | 10 +- src/Trading/Enums/FedExRateOptionCodeType.php | 10 +- .../Enums/FeedbackRatingDetailCodeType.php | 10 +- .../Enums/FeedbackRatingStarCodeType.php | 10 +- .../Enums/FeedbackResponseCodeType.php | 10 +- .../Enums/FeedbackSummaryPeriodCodeType.php | 10 +- src/Trading/Enums/FeedbackTypeCodeType.php | 10 +- .../Enums/FlatRateInsuranceRangeCodeType.php | 10 +- .../Enums/FlatShippingRateOptionCodeType.php | 10 +- .../Enums/GallerySortFilterCodeType.php | 10 +- src/Trading/Enums/GalleryStatusCodeType.php | 10 +- src/Trading/Enums/GalleryTypeCodeType.php | 10 +- .../Enums/GeneralPaymentMethodCodeType.php | 10 +- .../Enums/GeographicExposureCodeType.php | 10 +- .../Enums/GetAllBiddersModeCodeType.php | 10 +- src/Trading/Enums/GiftIconCodeType.php | 10 +- src/Trading/Enums/GiftServicesCodeType.php | 10 +- .../Enums/GranularityLevelCodeType.php | 10 +- src/Trading/Enums/HandlingNameCodeType.php | 10 +- src/Trading/Enums/HighlightCodeType.php | 10 +- src/Trading/Enums/HitCounterCodeType.php | 10 +- .../Enums/HomePageFeaturedCodeType.php | 10 +- .../INEscrowWorkflowTimelineCodeType.php | 10 +- src/Trading/Enums/InquiryStatusCodeType.php | 10 +- src/Trading/Enums/InsuranceOptionCodeType.php | 10 +- .../Enums/InsuranceSelectedCodeType.php | 10 +- .../Enums/InventoryTrackingMethodCodeType.php | 10 +- src/Trading/Enums/InvocationStatusType.php | 10 +- .../Enums/ItemArrivedWithinEDDCodeType.php | 10 +- .../ItemCompatibilityEnabledCodeType.php | 10 +- src/Trading/Enums/ItemConditionCodeType.php | 10 +- .../Enums/ItemFormatSortFilterCodeType.php | 10 +- src/Trading/Enums/ItemSortFilterCodeType.php | 10 +- src/Trading/Enums/ItemSortTypeCodeType.php | 10 +- .../Enums/ItemSpecificSourceCodeType.php | 10 +- .../Enums/ItemSpecificsEnabledCodeType.php | 10 +- src/Trading/Enums/ItemTypeCodeType.php | 10 +- src/Trading/Enums/ListingDurationCodeType.php | 10 +- .../ListingEnhancementDurationCodeType.php | 10 +- .../Enums/ListingEnhancementsCodeType.php | 10 +- src/Trading/Enums/ListingFlowCodeType.php | 10 +- src/Trading/Enums/ListingStatusCodeType.php | 10 +- src/Trading/Enums/ListingSubtypeCodeType.php | 10 +- src/Trading/Enums/ListingTypeCodeType.php | 10 +- src/Trading/Enums/LogisticsPlanCodeType.php | 10 +- src/Trading/Enums/LogoTypeCodeType.php | 10 +- src/Trading/Enums/MailOptionsTypeCodeType.php | 10 +- .../Enums/MarkUpMarkDownEventTypeCodeType.php | 10 +- .../Enums/MeasurementSystemCodeType.php | 10 +- src/Trading/Enums/MerchDisplayCodeType.php | 10 +- .../Enums/MessageStatusTypeCodeType.php | 10 +- src/Trading/Enums/MessageTypeCodeType.php | 10 +- ...MinimumAdvertisedPriceExposureCodeType.php | 10 +- src/Trading/Enums/MismatchTypeCodeType.php | 10 +- src/Trading/Enums/ModifyActionCodeType.php | 10 +- .../MyMessagesAlertResolutionStatusCode.php | 10 +- .../MyMessagesFolderOperationCodeType.php | 10 +- .../NotificationDeliveryStatusCodeType.php | 10 +- .../NotificationEventPropertyNameCodeType.php | 10 +- .../Enums/NotificationEventStateCodeType.php | 10 +- .../Enums/NotificationEventTypeCodeType.php | 10 +- .../Enums/NotificationPayloadTypeCodeType.php | 10 +- .../Enums/NotificationRoleCodeType.php | 10 +- src/Trading/Enums/OrderRoleCodeType.php | 10 +- src/Trading/Enums/OrderStatusCodeType.php | 10 +- .../Enums/OrderStatusFilterCodeType.php | 10 +- src/Trading/Enums/PaidStatusCodeType.php | 10 +- .../Enums/PayPalAccountLevelCodeType.php | 10 +- .../Enums/PayPalAccountStatusCodeType.php | 10 +- .../Enums/PayPalAccountTypeCodeType.php | 10 +- .../Enums/PaymentHoldReasonCodeType.php | 10 +- .../Enums/PaymentHoldStatusCodeType.php | 10 +- .../Enums/PaymentInstructionCodeType.php | 10 +- .../Enums/PaymentMethodSearchCodeType.php | 10 +- .../PaymentOptionsGroupEnabledCodeType.php | 10 +- src/Trading/Enums/PaymentStatusCodeType.php | 10 +- .../PaymentTransactionStatusCodeType.php | 10 +- src/Trading/Enums/PaymentTypeCodeType.php | 10 +- src/Trading/Enums/PayoutMethodType.php | 10 +- .../Enums/PerformanceStatusCodeType.php | 10 +- src/Trading/Enums/PeriodCodeType.php | 10 +- src/Trading/Enums/PhotoDisplayCodeType.php | 10 +- src/Trading/Enums/PickupMethodCodeType.php | 10 +- src/Trading/Enums/PickupStatusCodeType.php | 10 +- src/Trading/Enums/PictureFormatCodeType.php | 10 +- .../Enums/PictureManagerActionCodeType.php | 10 +- .../PictureManagerDetailLevelCodeType.php | 10 +- ...ctureManagerPictureDisplayTypeCodeType.php | 10 +- ...ictureManagerSubscriptionLevelCodeType.php | 10 +- src/Trading/Enums/PictureSetCodeType.php | 10 +- src/Trading/Enums/PictureSourceCodeType.php | 10 +- .../Enums/PictureUploadPolicyCodeType.php | 10 +- .../Enums/PictureWatermarkCodeType.php | 10 +- .../Enums/PolicyComplianceStatusCodeType.php | 10 +- .../Enums/PreferredLocationCodeType.php | 10 +- .../Enums/PricingTreatmentCodeType.php | 10 +- src/Trading/Enums/ProPackCodeType.php | 10 +- .../Enums/ProductCreationEnabledCodeType.php | 10 +- .../Enums/ProductIdentiferEnabledCodeType.php | 10 +- src/Trading/Enums/ProductSortCodeType.php | 10 +- src/Trading/Enums/ProductStateCodeType.php | 10 +- src/Trading/Enums/ProductUseCaseCodeType.php | 10 +- .../Enums/ProfileCategoryGroupCodeType.php | 10 +- .../Enums/PromotionItemPriceTypeCodeType.php | 10 +- .../Enums/PromotionItemSelectionCodeType.php | 10 +- src/Trading/Enums/PromotionMethodCodeType.php | 10 +- src/Trading/Enums/PromotionSchemeCodeType.php | 10 +- .../Enums/PromotionalSaleStatusCodeType.php | 10 +- .../Enums/PromotionalSaleTypeCodeType.php | 10 +- .../Enums/PurchasePurposeTypeCodeType.php | 10 +- .../Enums/QuantityAvailableHintCodeType.php | 10 +- .../Enums/QuantityOperatorCodeType.php | 10 +- src/Trading/Enums/QuestionTypeCodeType.php | 10 +- .../Enums/RCSPaymentStatusCodeType.php | 10 +- src/Trading/Enums/RangeCodeType.php | 10 +- .../Enums/ReasonHideFromSearchCodeType.php | 10 +- .../Enums/RecipientRelationCodeType.php | 10 +- .../Enums/RecommendationEngineCodeType.php | 10 +- src/Trading/Enums/RefundFailureCodeType.php | 10 +- src/Trading/Enums/RefundLineTypeCodeType.php | 10 +- src/Trading/Enums/RefundOptionsCodeType.php | 10 +- src/Trading/Enums/RefundReasonCodeType.php | 10 +- .../Enums/RefundSourceTypeCodeType.php | 10 +- src/Trading/Enums/RefundStatusCodeType.php | 10 +- src/Trading/Enums/RefundTypeCodeType.php | 10 +- .../Enums/RefundingSourceTypeCodeType.php | 10 +- .../Enums/RequiredSellerActionCodeType.php | 10 +- src/Trading/Enums/RestockingFeeCodeType.php | 10 +- src/Trading/Enums/ReturnStatusCodeType.php | 10 +- .../Enums/ReturnsAcceptedOptionsCodeType.php | 10 +- .../Enums/ReturnsWithinOptionsCodeType.php | 10 +- .../SMSSubscriptionErrorCodeCodeType.php | 10 +- .../SMSSubscriptionUserStatusCodeType.php | 10 +- src/Trading/Enums/SearchFlagCodeType.php | 10 +- .../Enums/SearchStandingStatusCodeType.php | 10 +- .../SecondChanceOfferDurationCodeType.php | 10 +- src/Trading/Enums/SelectionModeCodeType.php | 10 +- .../Enums/SellerAccountStatusCodeType.php | 10 +- src/Trading/Enums/SellerBusinessCodeType.php | 10 +- .../SellerDashboardAlertSeverityCodeType.php | 10 +- .../Enums/SellerGuaranteeLevelCodeType.php | 10 +- src/Trading/Enums/SellerLevelCodeType.php | 10 +- src/Trading/Enums/SellerPIStatusCodeType.php | 10 +- .../Enums/SellerPaymentMethodCodeType.php | 10 +- ...SellereBayPaymentProcessStatusCodeType.php | 10 +- .../Enums/SellingManagerAlertTypeCodeType.php | 10 +- ...SellingManagerAutoRelistOptionCodeType.php | 10 +- .../SellingManagerAutoRelistTypeCodeType.php | 10 +- ...nagerAutoSecondChanceOfferTypeCodeType.php | 10 +- ...gManagerAutomationPropertyTypeCodeType.php | 10 +- .../SellingManagerEmailSentStatusCodeType.php | 10 +- .../Enums/SellingManagerEmailTypeCodeType.php | 10 +- ...lingManagerGeneralPropertyTypeCodeType.php | 10 +- ...ngManagerInventoryPropertyTypeCodeType.php | 10 +- .../SellingManagerPaidStatusCodeType.php | 10 +- ...ingManagerPaisaPayPropertyTypeCodeType.php | 10 +- .../SellingManagerProductSortCodeType.php | 10 +- .../SellingManagerSearchTypeCodeType.php | 10 +- .../SellingManagerShippedStatusCodeType.php | 10 +- ...anagerSoldListingsPropertyTypeCodeType.php | 10 +- ...ingManagerSoldListingsSortTypeCodeType.php | 10 +- .../Enums/SetUserNotesActionCodeType.php | 10 +- src/Trading/Enums/SeverityCodeType.php | 10 +- .../Enums/ShipmentDeliveryStatusCodeType.php | 10 +- src/Trading/Enums/ShipmentStatusCodeType.php | 10 +- src/Trading/Enums/ShippingCarrierCodeType.php | 10 +- .../ShippingCostPaidByOptionsCodeType.php | 10 +- src/Trading/Enums/ShippingFeatureCodeType.php | 10 +- src/Trading/Enums/ShippingPackageCodeType.php | 10 +- .../Enums/ShippingRateTypeCodeType.php | 10 +- src/Trading/Enums/ShippingRegionCodeType.php | 10 +- src/Trading/Enums/ShippingServiceCodeType.php | 10 +- src/Trading/Enums/ShippingServiceType.php | 10 +- .../Enums/ShippingTrackingEventCodeType.php | 10 +- src/Trading/Enums/ShippingTypeCodeType.php | 10 +- src/Trading/Enums/SimpleItemSortCodeType.php | 10 +- src/Trading/Enums/SiteCodeType.php | 10 +- src/Trading/Enums/SiteIDFilterCodeType.php | 10 +- .../Enums/SkypeContactOptionCodeType.php | 10 +- .../Enums/SocialAddressTypeCodeType.php | 10 +- src/Trading/Enums/SortOrderCodeType.php | 10 +- .../StoreCategoryUpdateActionCodeType.php | 10 +- .../Enums/StoreCustomHeaderLayoutCodeType.php | 10 +- ...toreCustomListingHeaderDisplayCodeType.php | 10 +- .../StoreCustomListingHeaderLinkCodeType.php | 10 +- .../Enums/StoreCustomPageStatusCodeType.php | 10 +- src/Trading/Enums/StoreFontFaceCodeType.php | 10 +- src/Trading/Enums/StoreFontSizeCodeType.php | 10 +- .../Enums/StoreHeaderStyleCodeType.php | 10 +- .../Enums/StoreItemListLayoutCodeType.php | 10 +- .../Enums/StoreItemListSortOrderCodeType.php | 10 +- .../Enums/StoreSubscriptionLevelCodeType.php | 10 +- src/Trading/Enums/StringMatchCodeType.php | 10 +- .../Enums/SummaryFrequencyCodeType.php | 10 +- .../Enums/SummaryWindowPeriodCodeType.php | 10 +- src/Trading/Enums/TaskStatusCodeType.php | 10 +- src/Trading/Enums/TaxDescriptionCodeType.php | 10 +- .../Enums/TaxIdentifierAttributeCodeType.php | 10 +- src/Trading/Enums/TaxIdentifierCodeType.php | 10 +- src/Trading/Enums/TaxTypeCodeType.php | 10 +- src/Trading/Enums/TicketEventTypeCodeType.php | 10 +- .../Enums/TokenReturnMethodCodeType.php | 10 +- src/Trading/Enums/TokenStatusCodeType.php | 10 +- src/Trading/Enums/TopRatedProgramCodeType.php | 10 +- src/Trading/Enums/TradingRoleCodeType.php | 10 +- .../Enums/TransactionPlatformCodeType.php | 10 +- .../Enums/TransactionReferenceCodeType.php | 10 +- src/Trading/Enums/UPSRateOptionCodeType.php | 10 +- src/Trading/Enums/URLTypeCodeType.php | 10 +- src/Trading/Enums/USPSRateOptionCodeType.php | 10 +- src/Trading/Enums/UnitCodeType.php | 10 +- .../Enums/UnpaidItemCaseOpenTypeCodeType.php | 10 +- .../UnpaidItemCaseStatusTypeCodeType.php | 10 +- .../Enums/UnpaidItemStatusTypeCodeType.php | 10 +- src/Trading/Enums/UserIdentityCodeType.php | 10 +- src/Trading/Enums/UserStatusCodeType.php | 10 +- src/Trading/Enums/VATStatusCodeType.php | 10 +- src/Trading/Enums/ValueFormatCodeType.php | 10 +- src/Trading/Enums/ValueTypeCodeType.php | 10 +- .../Enums/VariationPictureRuleCodeType.php | 10 +- .../Enums/VariationSpecificsRuleCodeType.php | 10 +- src/Trading/Enums/VeROItemStatusCodeType.php | 10 +- .../Enums/VeROReportPacketStatusCodeType.php | 10 +- src/Trading/Enums/WarningLevelCodeType.php | 10 +- .../Enums/WarrantyDurationOptionsCodeType.php | 10 +- src/Trading/Enums/WarrantyOfferedCodeType.php | 10 +- .../Enums/WarrantyTypeOptionsCodeType.php | 10 +- .../Enums/WirelessCarrierIDCodeType.php | 10 +- src/Trading/Services/TradingBaseService.php | 62 +- src/Trading/Services/TradingService.php | 9 +- src/Trading/Types/ASQPreferencesType.php | 7 +- src/Trading/Types/AbstractRequestType.php | 7 +- src/Trading/Types/AbstractResponseType.php | 7 +- src/Trading/Types/AccountEntriesType.php | 7 +- src/Trading/Types/AccountEntryType.php | 7 +- src/Trading/Types/AccountSummaryType.php | 7 +- .../Types/AdFormatEnabledDefinitionType.php | 7 +- src/Trading/Types/AdFormatLeadType.php | 7 +- src/Trading/Types/AddDisputeRequestType.php | 7 +- .../Types/AddDisputeResponseRequestType.php | 7 +- .../Types/AddDisputeResponseResponseType.php | 7 +- src/Trading/Types/AddDisputeResponseType.php | 7 +- .../Types/AddFixedPriceItemRequestType.php | 7 +- .../Types/AddFixedPriceItemResponseType.php | 7 +- ...mFromSellingManagerTemplateRequestType.php | 7 +- ...FromSellingManagerTemplateResponseType.php | 7 +- .../Types/AddItemRequestContainerType.php | 7 +- src/Trading/Types/AddItemRequestType.php | 7 +- .../Types/AddItemResponseContainerType.php | 7 +- src/Trading/Types/AddItemResponseType.php | 7 +- src/Trading/Types/AddItemsRequestType.php | 7 +- src/Trading/Types/AddItemsResponseType.php | 7 +- ...ddMemberMessageAAQToPartnerRequestType.php | 7 +- ...dMemberMessageAAQToPartnerResponseType.php | 7 +- .../Types/AddMemberMessageRTQRequestType.php | 7 +- .../Types/AddMemberMessageRTQResponseType.php | 7 +- ...essagesAAQToBidderRequestContainerType.php | 7 +- ...ddMemberMessagesAAQToBidderRequestType.php | 7 +- ...ssagesAAQToBidderResponseContainerType.php | 7 +- ...dMemberMessagesAAQToBidderResponseType.php | 7 +- src/Trading/Types/AddOrderRequestType.php | 7 +- src/Trading/Types/AddOrderResponseType.php | 7 +- .../Types/AddSecondChanceItemRequestType.php | 7 +- .../Types/AddSecondChanceItemResponseType.php | 7 +- ...llingManagerInventoryFolderRequestType.php | 7 +- ...lingManagerInventoryFolderResponseType.php | 7 +- .../AddSellingManagerProductRequestType.php | 7 +- .../AddSellingManagerProductResponseType.php | 7 +- .../AddSellingManagerTemplateRequestType.php | 7 +- .../AddSellingManagerTemplateResponseType.php | 7 +- .../Types/AddToItemDescriptionRequestType.php | 7 +- .../AddToItemDescriptionResponseType.php | 7 +- .../Types/AddToWatchListRequestType.php | 7 +- .../Types/AddToWatchListResponseType.php | 7 +- ...TransactionConfirmationItemRequestType.php | 7 +- ...ransactionConfirmationItemResponseType.php | 7 +- src/Trading/Types/AdditionalAccountType.php | 7 +- ...onalCompatibilityEnabledDefinitionType.php | 7 +- src/Trading/Types/AddressAttributeType.php | 7 +- src/Trading/Types/AddressType.php | 7 +- .../Types/AffiliateTrackingDetailsType.php | 7 +- src/Trading/Types/AmountType.php | 7 +- src/Trading/Types/AnnouncementMessageType.php | 7 +- src/Trading/Types/ApiAccessRuleType.php | 7 +- .../ApplicationDeliveryPreferencesType.php | 7 +- src/Trading/Types/AttributeArrayType.php | 7 +- ...ConversionEnabledFeatureDefinitionType.php | 7 +- .../Types/AttributeRecommendationsType.php | 7 +- src/Trading/Types/AttributeSetArrayType.php | 7 +- src/Trading/Types/AttributeSetType.php | 7 +- src/Trading/Types/AttributeType.php | 7 +- .../Types/AverageRatingDetailArrayType.php | 7 +- .../Types/AverageRatingDetailsType.php | 7 +- .../Types/AverageRatingSummaryType.php | 7 +- src/Trading/Types/Base64BinaryType.php | 7 +- src/Trading/Types/BasicAmountType.php | 7 +- .../BasicUpgradePackEnabledDefinitionType.php | 7 +- src/Trading/Types/BestOfferArrayType.php | 7 +- ...stOfferAutoAcceptEnabledDefinitionType.php | 7 +- ...tOfferAutoDeclineEnabledDefinitionType.php | 7 +- .../BestOfferCounterEnabledDefinitionType.php | 7 +- src/Trading/Types/BestOfferDetailsType.php | 7 +- .../Types/BestOfferEnabledDefinitionType.php | 7 +- src/Trading/Types/BestOfferType.php | 7 +- src/Trading/Types/BidApprovalArrayType.php | 7 +- src/Trading/Types/BidApprovalType.php | 7 +- src/Trading/Types/BidAssistantListType.php | 7 +- src/Trading/Types/BidGroupArrayType.php | 7 +- src/Trading/Types/BidGroupItemType.php | 7 +- src/Trading/Types/BidGroupType.php | 7 +- src/Trading/Types/BidderDetailArrayType.php | 7 +- src/Trading/Types/BidderDetailType.php | 7 +- .../Types/BidderNoticePreferencesType.php | 7 +- src/Trading/Types/BiddingDetailsType.php | 7 +- src/Trading/Types/BiddingSummaryType.php | 7 +- src/Trading/Types/BotBlockRequestType.php | 7 +- src/Trading/Types/BotBlockResponseType.php | 7 +- ...randMPNIdentifierEnabledDefinitionType.php | 7 +- src/Trading/Types/BrandMPNType.php | 7 +- .../Types/BusinessSellerDetailsType.php | 7 +- .../BuyerGuaranteeEnabledDefinitionType.php | 7 +- .../Types/BuyerPackageEnclosureType.php | 7 +- .../Types/BuyerPackageEnclosuresType.php | 7 +- .../Types/BuyerProtectionDetailsType.php | 7 +- .../Types/BuyerRequirementDetailsType.php | 7 +- src/Trading/Types/BuyerRoleMetricsType.php | 7 +- .../Types/BuyerSatisfactionDashboardType.php | 7 +- src/Trading/Types/BuyerType.php | 7 +- src/Trading/Types/BuyingGuideDetailsType.php | 7 +- src/Trading/Types/BuyingGuideType.php | 7 +- src/Trading/Types/BuyingSummaryType.php | 7 +- .../Types/CalculatedHandlingDiscountType.php | 7 +- .../Types/CalculatedShippingDiscountType.php | 7 +- .../CalculatedShippingPreferencesType.php | 7 +- .../Types/CalculatedShippingRateType.php | 7 +- src/Trading/Types/CancelDetailType.php | 7 +- src/Trading/Types/CancelOfferArrayType.php | 7 +- src/Trading/Types/CancelOfferType.php | 7 +- src/Trading/Types/CartItemType.php | 7 +- src/Trading/Types/CatalogProductType.php | 7 +- src/Trading/Types/CategoryArrayType.php | 7 +- src/Trading/Types/CategoryFeatureType.php | 7 +- src/Trading/Types/CategoryGroupType.php | 7 +- .../Types/CategoryItemSpecificsType.php | 7 +- src/Trading/Types/CategoryMappingType.php | 7 +- src/Trading/Types/CategoryType.php | 7 +- .../Types/CharacteristicSetIDsType.php | 7 +- src/Trading/Types/CharacteristicType.php | 7 +- ...CharacteristicsSetProductHistogramType.php | 7 +- src/Trading/Types/CharacteristicsSetType.php | 7 +- .../Types/CharityAffiliationDetailType.php | 7 +- .../Types/CharityAffiliationDetailsType.php | 7 +- src/Trading/Types/CharityAffiliationType.php | 7 +- src/Trading/Types/CharityAffiliationsType.php | 7 +- src/Trading/Types/CharityIDType.php | 7 +- src/Trading/Types/CharityInfoType.php | 7 +- src/Trading/Types/CharitySellerType.php | 7 +- src/Trading/Types/CharityType.php | 7 +- src/Trading/Types/CheckoutOrderDetailType.php | 7 +- src/Trading/Types/CheckoutStatusType.php | 7 +- ...ifiedAdAutoAcceptEnabledDefinitionType.php | 7 +- ...fiedAdAutoDeclineEnabledDefinitionType.php | 7 +- ...sifiedAdBestOfferEnabledDefinitionType.php | 7 +- ...fiedAdCompanyNameEnabledDefinitionType.php | 7 +- ...dContactByAddressEnabledDefinitionType.php | 7 +- ...edAdContactByEmailEnabledDefintionType.php | 7 +- ...dAdContactByPhoneEnabledDefinitionType.php | 7 +- ...iedAdCounterOfferEnabledDefinitionType.php | 7 +- ...ifiedAdPayPerLeadEnabledDefinitionType.php | 7 +- ...edAdPaymentMethodEnabledDefinitionType.php | 7 +- .../ClassifiedAdPhoneCountDefinitionType.php | 7 +- ...dAdShippingMethodEnabledDefinitionType.php | 7 +- .../ClassifiedAdStreetCountDefinitionType.php | 7 +- ...xedPriceTreatmentEnabledDefinitionType.php | 7 +- .../Types/CombinedPaymentPreferencesType.php | 7 +- .../CompatibleVehicleTypeDefinitionType.php | 7 +- src/Trading/Types/CompleteSaleRequestType.php | 7 +- .../Types/CompleteSaleResponseType.php | 7 +- .../Types/ConditionEnabledDefinitionType.php | 7 +- src/Trading/Types/ConditionType.php | 7 +- .../Types/ConditionValuesDefinitionType.php | 7 +- src/Trading/Types/ConditionValuesType.php | 7 +- .../Types/ConfirmIdentityRequestType.php | 7 +- .../Types/ConfirmIdentityResponseType.php | 7 +- src/Trading/Types/ContactHoursDetailsType.php | 7 +- src/Trading/Types/ContextSearchAssetType.php | 7 +- src/Trading/Types/CountryDetailsType.php | 7 +- ...derTradeAustraliaEnabledDefinitionType.php | 7 +- ...rossBorderTradeGBEnabledDefinitionType.php | 7 +- ...TradeNorthAmericaEnabledDefinitionType.php | 7 +- .../Types/CrossPromotionPreferencesType.php | 7 +- src/Trading/Types/CrossPromotionsType.php | 7 +- src/Trading/Types/CurrencyDetailsType.php | 7 +- .../Types/CustomSecurityHeaderType.php | 7 +- src/Trading/Types/DataElementSetType.php | 7 +- src/Trading/Types/DateType.php | 7 +- .../Types/DeleteMyMessagesRequestType.php | 7 +- .../Types/DeleteMyMessagesResponseType.php | 7 +- ...llingManagerInventoryFolderRequestType.php | 7 +- ...lingManagerInventoryFolderResponseType.php | 7 +- ...ngManagerItemAutomationRuleRequestType.php | 7 +- ...gManagerItemAutomationRuleResponseType.php | 7 +- ...DeleteSellingManagerProductRequestType.php | 7 +- ...eleteSellingManagerProductResponseType.php | 7 +- ...nagerTemplateAutomationRuleRequestType.php | 7 +- ...agerTemplateAutomationRuleResponseType.php | 7 +- ...eleteSellingManagerTemplateRequestType.php | 7 +- ...leteSellingManagerTemplateResponseType.php | 7 +- src/Trading/Types/DeliveryDetailsType.php | 7 +- src/Trading/Types/DeliveryStatusType.php | 7 +- src/Trading/Types/DeliveryURLDetailType.php | 7 +- .../Types/DepositSupportedDefinitionType.php | 7 +- src/Trading/Types/DescriptionTemplateType.php | 7 +- .../Types/DigitalDeliverySelectedType.php | 7 +- src/Trading/Types/DigitalDeliveryUserType.php | 7 +- ...gitalGoodDeliveryEnabledDefinitionType.php | 7 +- src/Trading/Types/DigitalGoodInfoType.php | 7 +- ...DisableUnpaidItemAssistanceRequestType.php | 7 +- ...isableUnpaidItemAssistanceResponseType.php | 7 +- src/Trading/Types/DiscountPriceInfoType.php | 7 +- src/Trading/Types/DiscountProfileType.php | 7 +- .../DispatchCutoffTimePreferencesType.php | 7 +- .../Types/DispatchTimeMaxDetailsType.php | 7 +- src/Trading/Types/DisputeArrayType.php | 7 +- src/Trading/Types/DisputeFilterCountType.php | 7 +- src/Trading/Types/DisputeMessageType.php | 7 +- src/Trading/Types/DisputeResolutionType.php | 7 +- src/Trading/Types/DisputeType.php | 7 +- src/Trading/Types/DistanceType.php | 7 +- .../Types/DuplicateInvocationDetailsType.php | 7 +- .../Types/DutchBINEnabledDefinitionType.php | 7 +- .../Types/EANEnabledDefinitionType.php | 7 +- .../EANIdentifierEnabledDefinitionType.php | 7 +- ...MotorsProAdFormatEnabledDefinitionType.php | 7 +- ...torsProAutoAcceptEnabledDefinitionType.php | 7 +- ...orsProAutoDeclineEnabledDefinitionType.php | 7 +- ...otorsProBestOfferEnabledDefinitionType.php | 7 +- ...orsProCompanyNameEnabledDefinitionType.php | 7 +- ...oContactByAddressEnabledDefinitionType.php | 7 +- ...ProContactByEmailEnabledDefinitionType.php | 7 +- ...ProContactByPhoneEnabledDefinitionType.php | 7 +- ...rsProCounterOfferEnabledDefinitionType.php | 7 +- ...entMethodCheckOutEnabledDefinitionType.php | 7 +- .../EBayMotorsProPhoneCountDefinitionType.php | 7 +- ...lerContactDetailsEnabledDefinitionType.php | 7 +- ...ProShippingMethodEnabledDefinitionType.php | 7 +- ...EBayMotorsProStreetCountDefinitionType.php | 7 +- src/Trading/Types/EBayPLUSPreferenceType.php | 7 +- .../Types/EBayPaymentMismatchDetailsType.php | 7 +- .../Types/EndFixedPriceItemRequestType.php | 7 +- .../Types/EndFixedPriceItemResponseType.php | 7 +- .../Types/EndItemRequestContainerType.php | 7 +- src/Trading/Types/EndItemRequestType.php | 7 +- .../Types/EndItemResponseContainerType.php | 7 +- src/Trading/Types/EndItemResponseType.php | 7 +- src/Trading/Types/EndItemsRequestType.php | 7 +- src/Trading/Types/EndItemsResponseType.php | 7 +- .../EndOfAuctionEmailPreferencesType.php | 7 +- .../Types/EpidSupportedDefinitionType.php | 7 +- src/Trading/Types/ErrorParameterType.php | 7 +- src/Trading/Types/ErrorType.php | 7 +- .../ExcludeShippingLocationDetailsType.php | 7 +- ...ExpressConditionRequiredDefinitionType.php | 7 +- .../Types/ExpressEnabledDefinitionType.php | 7 +- .../Types/ExpressItemRequirementsType.php | 7 +- .../ExpressPicturesRequiredDefinitionType.php | 7 +- .../ExtendSiteHostedPicturesRequestType.php | 7 +- .../ExtendSiteHostedPicturesResponseType.php | 7 +- .../Types/ExtendedContactDetailsType.php | 7 +- .../Types/ExtendedPictureDetailsType.php | 7 +- .../Types/ExtendedProductFinderIDType.php | 7 +- .../Types/ExternalAlertIDArrayType.php | 7 +- src/Trading/Types/ExternalProductIDType.php | 7 +- src/Trading/Types/ExternalTransactionType.php | 7 +- src/Trading/Types/FaultDetailsType.php | 7 +- src/Trading/Types/FeatureDefinitionsType.php | 7 +- src/Trading/Types/FeatureEligibilityType.php | 7 +- src/Trading/Types/FeeType.php | 7 +- .../Types/FeedbackCommentArrayType.php | 7 +- src/Trading/Types/FeedbackDetailArrayType.php | 7 +- src/Trading/Types/FeedbackDetailType.php | 7 +- src/Trading/Types/FeedbackInfoType.php | 7 +- src/Trading/Types/FeedbackPeriodArrayType.php | 7 +- src/Trading/Types/FeedbackPeriodType.php | 7 +- .../Types/FeedbackRequirementsType.php | 7 +- src/Trading/Types/FeedbackSummaryType.php | 7 +- src/Trading/Types/FeesType.php | 7 +- src/Trading/Types/FetchTokenRequestType.php | 7 +- src/Trading/Types/FetchTokenResponseType.php | 7 +- .../Types/FlatRateInsuranceRangeCostType.php | 7 +- .../Types/FlatShippingDiscountType.php | 7 +- .../Types/FlatShippingPreferencesType.php | 7 +- .../FreeGalleryPlusEnabledDefinitionType.php | 7 +- .../FreePicturePackEnabledDefinitionType.php | 7 +- src/Trading/Types/GetAccountRequestType.php | 7 +- src/Trading/Types/GetAccountResponseType.php | 7 +- .../Types/GetAdFormatLeadsRequestType.php | 7 +- .../Types/GetAdFormatLeadsResponseType.php | 7 +- .../Types/GetAllBiddersRequestType.php | 7 +- .../Types/GetAllBiddersResponseType.php | 7 +- .../Types/GetApiAccessRulesRequestType.php | 7 +- .../Types/GetApiAccessRulesResponseType.php | 7 +- .../Types/GetBestOffersRequestType.php | 7 +- .../Types/GetBestOffersResponseType.php | 7 +- .../Types/GetBidderListRequestType.php | 7 +- .../Types/GetBidderListResponseType.php | 7 +- .../Types/GetCategoriesRequestType.php | 7 +- .../Types/GetCategoriesResponseType.php | 7 +- .../Types/GetCategoryFeaturesRequestType.php | 7 +- .../Types/GetCategoryFeaturesResponseType.php | 7 +- .../Types/GetCategoryMappingsRequestType.php | 7 +- .../Types/GetCategoryMappingsResponseType.php | 7 +- .../Types/GetCategorySpecificsRequestType.php | 7 +- .../GetCategorySpecificsResponseType.php | 7 +- .../Types/GetChallengeTokenRequestType.php | 7 +- .../Types/GetChallengeTokenResponseType.php | 7 +- src/Trading/Types/GetCharitiesRequestType.php | 7 +- .../Types/GetCharitiesResponseType.php | 7 +- .../GetClientAlertsAuthTokenRequestType.php | 7 +- .../GetClientAlertsAuthTokenResponseType.php | 7 +- .../GetContextualKeywordsRequestType.php | 7 +- .../GetContextualKeywordsResponseType.php | 7 +- .../GetDescriptionTemplatesRequestType.php | 7 +- .../GetDescriptionTemplatesResponseType.php | 7 +- src/Trading/Types/GetDisputeRequestType.php | 7 +- src/Trading/Types/GetDisputeResponseType.php | 7 +- src/Trading/Types/GetFeedbackRequestType.php | 7 +- src/Trading/Types/GetFeedbackResponseType.php | 7 +- src/Trading/Types/GetItemRequestType.php | 7 +- src/Trading/Types/GetItemResponseType.php | 7 +- .../Types/GetItemShippingRequestType.php | 7 +- .../Types/GetItemShippingResponseType.php | 7 +- .../Types/GetItemTransactionsRequestType.php | 7 +- .../Types/GetItemTransactionsResponseType.php | 7 +- .../GetItemsAwaitingFeedbackRequestType.php | 7 +- .../GetItemsAwaitingFeedbackResponseType.php | 7 +- .../Types/GetMemberMessagesRequestType.php | 7 +- .../Types/GetMemberMessagesResponseType.php | 7 +- .../GetMessagePreferencesRequestType.php | 7 +- .../GetMessagePreferencesResponseType.php | 7 +- .../Types/GetMyMessagesRequestType.php | 7 +- .../Types/GetMyMessagesResponseType.php | 7 +- .../Types/GetMyeBayBuyingRequestType.php | 7 +- .../Types/GetMyeBayBuyingResponseType.php | 7 +- .../Types/GetMyeBayRemindersRequestType.php | 7 +- .../Types/GetMyeBayRemindersResponseType.php | 7 +- .../Types/GetMyeBaySellingRequestType.php | 7 +- .../Types/GetMyeBaySellingResponseType.php | 7 +- .../GetNotificationPreferencesRequestType.php | 7 +- ...GetNotificationPreferencesResponseType.php | 7 +- .../GetNotificationsUsageRequestType.php | 7 +- .../GetNotificationsUsageResponseType.php | 7 +- .../Types/GetOrderTransactionsRequestType.php | 7 +- .../GetOrderTransactionsResponseType.php | 7 +- src/Trading/Types/GetOrdersRequestType.php | 7 +- src/Trading/Types/GetOrdersResponseType.php | 7 +- .../GetPromotionalSaleDetailsRequestType.php | 7 +- .../GetPromotionalSaleDetailsResponseType.php | 7 +- ...GetRecommendationsRequestContainerType.php | 7 +- ...etRecommendationsResponseContainerType.php | 7 +- .../Types/GetSellerDashboardRequestType.php | 7 +- .../Types/GetSellerDashboardResponseType.php | 7 +- .../Types/GetSellerEventsRequestType.php | 7 +- .../Types/GetSellerEventsResponseType.php | 7 +- .../Types/GetSellerListRequestType.php | 7 +- .../Types/GetSellerListResponseType.php | 7 +- .../Types/GetSellerPaymentsRequestType.php | 7 +- .../Types/GetSellerPaymentsResponseType.php | 7 +- .../GetSellerTransactionsRequestType.php | 7 +- .../GetSellerTransactionsResponseType.php | 7 +- .../GetSellingManagerAlertsRequestType.php | 7 +- .../GetSellingManagerAlertsResponseType.php | 7 +- .../GetSellingManagerEmailLogRequestType.php | 7 +- .../GetSellingManagerEmailLogResponseType.php | 7 +- ...llingManagerInventoryFolderRequestType.php | 7 +- ...lingManagerInventoryFolderResponseType.php | 7 +- .../GetSellingManagerInventoryRequestType.php | 7 +- ...GetSellingManagerInventoryResponseType.php | 7 +- ...ngManagerItemAutomationRuleRequestType.php | 7 +- ...gManagerItemAutomationRuleResponseType.php | 7 +- ...GetSellingManagerSaleRecordRequestType.php | 7 +- ...etSellingManagerSaleRecordResponseType.php | 7 +- ...tSellingManagerSoldListingsRequestType.php | 7 +- ...SellingManagerSoldListingsResponseType.php | 7 +- ...nagerTemplateAutomationRuleRequestType.php | 7 +- ...agerTemplateAutomationRuleResponseType.php | 7 +- .../GetSellingManagerTemplatesRequestType.php | 7 +- ...GetSellingManagerTemplatesResponseType.php | 7 +- src/Trading/Types/GetSessionIDRequestType.php | 7 +- .../Types/GetSessionIDResponseType.php | 7 +- ...GetShippingDiscountProfilesRequestType.php | 7 +- ...etShippingDiscountProfilesResponseType.php | 7 +- ...etStoreCategoryUpdateStatusRequestType.php | 7 +- ...tStoreCategoryUpdateStatusResponseType.php | 7 +- .../Types/GetStoreCustomPageRequestType.php | 7 +- .../Types/GetStoreCustomPageResponseType.php | 7 +- .../Types/GetStoreOptionsRequestType.php | 7 +- .../Types/GetStoreOptionsResponseType.php | 7 +- .../Types/GetStorePreferencesRequestType.php | 7 +- .../Types/GetStorePreferencesResponseType.php | 7 +- src/Trading/Types/GetStoreRequestType.php | 7 +- src/Trading/Types/GetStoreResponseType.php | 7 +- .../GetSuggestedCategoriesRequestType.php | 7 +- .../GetSuggestedCategoriesResponseType.php | 7 +- src/Trading/Types/GetTaxTableRequestType.php | 7 +- src/Trading/Types/GetTaxTableResponseType.php | 7 +- .../Types/GetTokenStatusRequestType.php | 7 +- .../Types/GetTokenStatusResponseType.php | 7 +- .../GetUserContactDetailsRequestType.php | 7 +- .../GetUserContactDetailsResponseType.php | 7 +- .../Types/GetUserDisputesRequestType.php | 7 +- .../Types/GetUserDisputesResponseType.php | 7 +- .../Types/GetUserPreferencesRequestType.php | 7 +- .../Types/GetUserPreferencesResponseType.php | 7 +- src/Trading/Types/GetUserRequestType.php | 7 +- src/Trading/Types/GetUserResponseType.php | 7 +- .../GetVeROReasonCodeDetailsRequestType.php | 7 +- .../GetVeROReasonCodeDetailsResponseType.php | 7 +- .../Types/GetVeROReportStatusRequestType.php | 7 +- .../Types/GetVeROReportStatusResponseType.php | 7 +- .../Types/GeteBayDetailsRequestType.php | 7 +- .../Types/GeteBayDetailsResponseType.php | 7 +- .../Types/GeteBayOfficialTimeRequestType.php | 7 +- .../Types/GeteBayOfficialTimeResponseType.php | 7 +- src/Trading/Types/GiftSummaryType.php | 7 +- .../GlobalShippingEnabledDefinitionType.php | 7 +- ...roup1MaxFlatShippingCostDefinitionType.php | 7 +- ...roup2MaxFlatShippingCostDefinitionType.php | 7 +- ...roup3MaxFlatShippingCostDefinitionType.php | 7 +- .../HandlingTimeEnabledDefinitionType.php | 7 +- src/Trading/Types/HistogramEntryType.php | 7 +- .../HomePageFeaturedEnabledDefinitionType.php | 7 +- ...INEscrowWorkflowTimelineDefinitionType.php | 7 +- .../Types/ISBNEnabledDefinitionType.php | 7 +- .../ISBNIdentifierEnabledDefinitionType.php | 7 +- src/Trading/Types/InsuranceDetailsType.php | 7 +- .../IntegratedMerchantCreditCardInfoType.php | 7 +- ...nternationalShippingServiceOptionsType.php | 7 +- src/Trading/Types/InventoryFeesType.php | 7 +- src/Trading/Types/InventoryStatusType.php | 7 +- src/Trading/Types/IssueRefundRequestType.php | 7 +- src/Trading/Types/IssueRefundResponseType.php | 7 +- src/Trading/Types/ItemArrayType.php | 7 +- src/Trading/Types/ItemBestOffersArrayType.php | 7 +- src/Trading/Types/ItemBestOffersType.php | 7 +- src/Trading/Types/ItemBidDetailsType.php | 7 +- ...ItemCompatibilityEnabledDefinitionType.php | 7 +- .../Types/ItemCompatibilityListType.php | 7 +- src/Trading/Types/ItemCompatibilityType.php | 7 +- src/Trading/Types/ItemIDArrayType.php | 7 +- .../Types/ItemListCustomizationType.php | 7 +- src/Trading/Types/ItemPolicyViolationType.php | 7 +- .../Types/ItemRatingDetailArrayType.php | 7 +- src/Trading/Types/ItemRatingDetailsType.php | 7 +- src/Trading/Types/ItemSpecificDetailsType.php | 7 +- .../ItemSpecificsEnabledDefinitionType.php | 7 +- src/Trading/Types/ItemTotalsType.php | 7 +- .../Types/ItemTransactionIDArrayType.php | 7 +- src/Trading/Types/ItemTransactionIDType.php | 7 +- src/Trading/Types/ItemType.php | 7 +- src/Trading/Types/ItemsCanceledEventType.php | 7 +- .../Types/KTypeSupportedDefinitionType.php | 7 +- src/Trading/Types/LabelType.php | 7 +- .../Types/LeaveFeedbackRequestType.php | 7 +- .../Types/LeaveFeedbackResponseType.php | 7 +- src/Trading/Types/LineItemType.php | 7 +- .../ListingAnalyzerRecommendationsType.php | 7 +- .../ListingCheckoutRedirectPreferenceType.php | 7 +- src/Trading/Types/ListingDesignerType.php | 7 +- src/Trading/Types/ListingDetailsType.php | 7 +- .../Types/ListingDurationDefinitionType.php | 7 +- .../Types/ListingDurationDefinitionsType.php | 7 +- .../Types/ListingDurationReferenceType.php | 7 +- ...stingEnhancementDurationDefinitionType.php | 7 +- ...istingEnhancementDurationReferenceType.php | 7 +- .../Types/ListingFeatureDetailsType.php | 7 +- .../Types/ListingRecommendationType.php | 7 +- .../Types/ListingRecommendationsType.php | 7 +- .../Types/ListingStartPriceDetailsType.php | 7 +- src/Trading/Types/ListingTipArrayType.php | 7 +- src/Trading/Types/ListingTipFieldType.php | 7 +- src/Trading/Types/ListingTipMessageType.php | 7 +- src/Trading/Types/ListingTipType.php | 7 +- ...DistancesNonSubscriptionDefinitionType.php | 7 +- ...lListingDistancesRegularDefinitionType.php | 7 +- ...istingDistancesSpecialtyDefinitionType.php | 7 +- ...calMarketAdFormatEnabledDefinitionType.php | 7 +- ...lMarketAutoAcceptEnabledDefinitionType.php | 7 +- ...MarketAutoDeclineEnabledDefinitionType.php | 7 +- ...alMarketBestOfferEnabledDefinitionType.php | 7 +- ...MarketCompanyNameEnabledDefinitionType.php | 7 +- ...tContactByAddressEnabledDefinitionType.php | 7 +- ...ketContactByEmailEnabledDefinitionType.php | 7 +- ...ketContactByPhoneEnabledDefinitionType.php | 7 +- ...arketCounterOfferEnabledDefinitionType.php | 7 +- ...calMarketNonSubscriptionDefinitionType.php | 7 +- ...entMethodCheckOutEnabledDefinitionType.php | 7 +- .../LocalMarketPhoneCountDefinitionType.php | 7 +- ...arketPremiumSubscriptionDefinitionType.php | 7 +- ...arketRegularSubscriptionDefinitionType.php | 7 +- ...lerContactDetailsEnabledDefinitionType.php | 7 +- ...ketShippingMethodEnabledDefinitionType.php | 7 +- ...etSpecialitySubscriptionDefinitionType.php | 7 +- .../LocalMarketStreetCountDefinitionType.php | 7 +- src/Trading/Types/LocalSearchType.php | 7 +- .../Types/LookupAttributeArrayType.php | 7 +- src/Trading/Types/LookupAttributeType.php | 7 +- src/Trading/Types/MarkUpMarkDownEventType.php | 7 +- .../Types/MarkUpMarkDownHistoryType.php | 7 +- ...latShippingCostCBTExemptDefinitionType.php | 7 +- .../MaxFlatShippingCostDefinitionType.php | 7 +- .../MaxGranularFitmentCountDefinitionType.php | 7 +- .../MaxItemCompatibilityDefinitionType.php | 7 +- ...aximumBuyerPolicyViolationsDetailsType.php | 7 +- .../MaximumBuyerPolicyViolationsType.php | 7 +- .../MaximumItemRequirementsDetailsType.php | 7 +- .../Types/MaximumItemRequirementsType.php | 7 +- ...ximumUnpaidItemStrikesCountDetailsType.php | 7 +- ...umUnpaidItemStrikesDurationDetailsType.php | 7 +- ...aximumUnpaidItemStrikesInfoDetailsType.php | 7 +- .../MaximumUnpaidItemStrikesInfoType.php | 7 +- src/Trading/Types/MeasureType.php | 7 +- .../Types/MemberMessageExchangeArrayType.php | 7 +- .../Types/MemberMessageExchangeType.php | 7 +- src/Trading/Types/MemberMessageType.php | 7 +- src/Trading/Types/MessageMediaType.php | 7 +- src/Trading/Types/MetadataType.php | 7 +- .../MinItemCompatibilityDefinitionType.php | 7 +- .../Types/MinimumFeedbackScoreDetailsType.php | 7 +- .../MinimumReservePriceDefinitionType.php | 7 +- src/Trading/Types/ModifyNameArrayType.php | 7 +- src/Trading/Types/ModifyNameType.php | 7 +- ...MotorsLocalMarketEnabledDefinitionType.php | 7 +- ...llingManagerInventoryFolderRequestType.php | 7 +- ...lingManagerInventoryFolderResponseType.php | 7 +- src/Trading/Types/MultiLegShipmentType.php | 7 +- .../Types/MultiLegShippingDetailsType.php | 7 +- .../Types/MultiLegShippingServiceType.php | 7 +- .../Types/MyMessagesAlertArrayType.php | 7 +- .../Types/MyMessagesAlertIDArrayType.php | 7 +- src/Trading/Types/MyMessagesAlertType.php | 7 +- .../MyMessagesExternalMessageIDArrayType.php | 7 +- .../Types/MyMessagesFolderSummaryType.php | 7 +- src/Trading/Types/MyMessagesFolderType.php | 7 +- .../Types/MyMessagesForwardDetailsType.php | 7 +- .../Types/MyMessagesMessageArrayType.php | 7 +- .../Types/MyMessagesMessageIDArrayType.php | 7 +- src/Trading/Types/MyMessagesMessageType.php | 7 +- .../Types/MyMessagesResponseDetailsType.php | 7 +- src/Trading/Types/MyMessagesSummaryType.php | 7 +- .../Types/MyeBayFavoriteSearchListType.php | 7 +- .../Types/MyeBayFavoriteSearchType.php | 7 +- .../Types/MyeBayFavoriteSellerListType.php | 7 +- .../Types/MyeBayFavoriteSellerType.php | 7 +- .../Types/MyeBaySecondChanceOfferListType.php | 7 +- src/Trading/Types/MyeBaySelectionType.php | 7 +- .../Types/MyeBaySellingSummaryType.php | 7 +- src/Trading/Types/NameRecommendationType.php | 7 +- src/Trading/Types/NameValueListArrayType.php | 7 +- src/Trading/Types/NameValueListType.php | 7 +- .../Types/NameValueRelationshipType.php | 7 +- src/Trading/Types/NonProfitAddressType.php | 7 +- .../Types/NonProfitSocialAddressType.php | 7 +- .../Types/NonSubscriptionDefinitionType.php | 7 +- .../Types/NotificationDetailsArrayType.php | 7 +- src/Trading/Types/NotificationDetailsType.php | 7 +- .../Types/NotificationEnableArrayType.php | 7 +- src/Trading/Types/NotificationEnableType.php | 7 +- .../Types/NotificationEventPropertyType.php | 7 +- src/Trading/Types/NotificationMessageType.php | 7 +- .../Types/NotificationStatisticsType.php | 7 +- .../Types/NotificationUserDataType.php | 7 +- .../NumberOfPolicyViolationsDetailsType.php | 7 +- src/Trading/Types/OfferArrayType.php | 7 +- src/Trading/Types/OfferType.php | 7 +- src/Trading/Types/OrderArrayType.php | 7 +- src/Trading/Types/OrderIDArrayType.php | 7 +- .../Types/OrderTransactionArrayType.php | 7 +- src/Trading/Types/OrderTransactionType.php | 7 +- src/Trading/Types/OrderType.php | 7 +- src/Trading/Types/PaginatedItemArrayType.php | 7 +- .../PaginatedOrderTransactionArrayType.php | 7 +- .../Types/PaginatedTransactionArrayType.php | 7 +- src/Trading/Types/PaginationResultType.php | 7 +- src/Trading/Types/PaginationType.php | 7 +- ...aisaPayFullEscrowEnabledDefinitionType.php | 7 +- ...alBuyerProtectionEnabledDefinitionType.php | 7 +- .../Types/PayPalRequiredDefinitionType.php | 7 +- ...PalRequiredForStoreOwnerDefinitionType.php | 7 +- src/Trading/Types/PaymentDetailsType.php | 7 +- src/Trading/Types/PaymentHoldDetailType.php | 7 +- .../Types/PaymentInformationCodeType.php | 7 +- src/Trading/Types/PaymentInformationType.php | 7 +- .../Types/PaymentMethodDefinitionType.php | 7 +- .../Types/PaymentOptionDetailsType.php | 7 +- ...ymentOptionsGroupEnabledDefinitionType.php | 7 +- .../Types/PaymentTransactionCodeType.php | 7 +- src/Trading/Types/PaymentTransactionType.php | 7 +- .../Types/PaymentsInformationCodeType.php | 7 +- src/Trading/Types/PaymentsInformationType.php | 7 +- .../Types/PerformanceDashboardType.php | 7 +- src/Trading/Types/PickupDetailsType.php | 7 +- .../PickupDropOffEnabledDefinitionType.php | 7 +- .../Types/PickupInStoreDetailsType.php | 7 +- .../Types/PickupMethodSelectedType.php | 7 +- src/Trading/Types/PickupOptionsType.php | 7 +- src/Trading/Types/PictureDetailsType.php | 7 +- .../Types/PictureManagerDetailsType.php | 7 +- .../Types/PictureManagerFolderType.php | 7 +- .../PictureManagerPictureDisplayType.php | 7 +- .../Types/PictureManagerPictureType.php | 7 +- .../Types/PictureManagerSubscriptionType.php | 7 +- src/Trading/Types/PictureSetMemberType.php | 7 +- src/Trading/Types/PictureURLsType.php | 7 +- src/Trading/Types/PicturesType.php | 7 +- src/Trading/Types/PlaceOfferRequestType.php | 7 +- src/Trading/Types/PlaceOfferResponseType.php | 7 +- .../Types/PolicyComplianceDashboardType.php | 7 +- .../PolicyViolationDurationDetailsType.php | 7 +- .../Types/PowerSellerDashboardType.php | 7 +- .../PremiumSubscriptionDefinitionType.php | 7 +- .../Types/PricingRecommendationsType.php | 7 +- .../Types/ProPackEnabledDefinitionType.php | 7 +- .../ProPackPlusEnabledDefinitionType.php | 7 +- .../Types/ProStoresCheckoutPreferenceType.php | 7 +- src/Trading/Types/ProStoresDetailsType.php | 7 +- .../ProductCreationEnabledDefinitionType.php | 7 +- src/Trading/Types/ProductDetailsType.php | 7 +- src/Trading/Types/ProductFamilyType.php | 7 +- .../Types/ProductFinderConstraintType.php | 7 +- src/Trading/Types/ProductInfoType.php | 7 +- .../Types/ProductListingDetailsType.php | 7 +- .../Types/ProductRecommendationsType.php | 7 +- src/Trading/Types/ProductSearchPageType.php | 7 +- src/Trading/Types/ProductSearchResultType.php | 7 +- src/Trading/Types/ProductSearchType.php | 7 +- src/Trading/Types/ProductSuggestionType.php | 7 +- src/Trading/Types/ProductSuggestionsType.php | 7 +- src/Trading/Types/ProductType.php | 7 +- .../ProfileCategoryGroupDefinitionType.php | 7 +- src/Trading/Types/PromotedItemType.php | 7 +- src/Trading/Types/PromotionDetailsType.php | 7 +- src/Trading/Types/PromotionRuleArrayType.php | 7 +- src/Trading/Types/PromotionRuleType.php | 7 +- .../Types/PromotionalSaleArrayType.php | 7 +- .../Types/PromotionalSaleDetailsType.php | 7 +- src/Trading/Types/PromotionalSaleType.php | 7 +- ...PromotionalShippingDiscountDetailsType.php | 7 +- .../PurchaseReminderEmailPreferencesType.php | 7 +- src/Trading/Types/QuantityInfoType.php | 7 +- .../QuantityRestrictionPerBuyerInfoType.php | 7 +- src/Trading/Types/QuantityType.php | 7 +- src/Trading/Types/RateTableDetailsType.php | 7 +- src/Trading/Types/ReasonCodeDetailType.php | 7 +- src/Trading/Types/RecommendationType.php | 7 +- .../RecommendationValidationRulesType.php | 7 +- src/Trading/Types/RecommendationsType.php | 7 +- .../Types/RecoupmentPolicyConsentType.php | 7 +- .../Types/RecoupmentPolicyDetailsType.php | 7 +- src/Trading/Types/RefundArrayType.php | 7 +- src/Trading/Types/RefundDetailsType.php | 7 +- src/Trading/Types/RefundFailureReasonType.php | 7 +- .../Types/RefundFundingSourceArrayType.php | 7 +- src/Trading/Types/RefundFundingSourceType.php | 7 +- src/Trading/Types/RefundInformationType.php | 7 +- src/Trading/Types/RefundLineArrayType.php | 7 +- src/Trading/Types/RefundLineType.php | 7 +- .../Types/RefundTransactionArrayType.php | 7 +- .../Types/RefundTransactionInfoType.php | 7 +- src/Trading/Types/RefundTransactionType.php | 7 +- src/Trading/Types/RefundType.php | 7 +- src/Trading/Types/RegionDetailsType.php | 7 +- .../Types/RegionOfOriginDetailsType.php | 7 +- .../RegularSubscriptionDefinitionType.php | 7 +- .../Types/RelistFixedPriceItemRequestType.php | 7 +- .../RelistFixedPriceItemResponseType.php | 7 +- src/Trading/Types/RelistItemRequestType.php | 7 +- src/Trading/Types/RelistItemResponseType.php | 7 +- .../Types/ReminderCustomizationType.php | 7 +- src/Trading/Types/RemindersType.php | 7 +- .../Types/RemoveFromWatchListRequestType.php | 7 +- .../Types/RemoveFromWatchListResponseType.php | 7 +- .../Types/RequiredSellerActionArrayType.php | 7 +- .../Types/RespondToBestOfferRequestType.php | 7 +- .../Types/RespondToBestOfferResponseType.php | 7 +- .../Types/RespondToFeedbackRequestType.php | 7 +- .../Types/RespondToFeedbackResponseType.php | 7 +- .../Types/ResponseAttributeSetType.php | 7 +- .../Types/RestockingFeeValueDetailsType.php | 7 +- src/Trading/Types/ReturnPolicyDetailsType.php | 7 +- .../ReturnPolicyEnabledDefinitionType.php | 7 +- src/Trading/Types/ReturnPolicyType.php | 7 +- .../Types/ReturnsAcceptedDetailsType.php | 7 +- .../Types/ReturnsWithinDetailsType.php | 7 +- src/Trading/Types/ReviewDetailsType.php | 7 +- src/Trading/Types/ReviewType.php | 7 +- .../Types/ReviseCheckoutStatusRequestType.php | 7 +- .../ReviseCheckoutStatusResponseType.php | 7 +- .../Types/ReviseFixedPriceItemRequestType.php | 7 +- .../ReviseFixedPriceItemResponseType.php | 7 +- .../ReviseInventoryStatusRequestType.php | 7 +- .../ReviseInventoryStatusResponseType.php | 7 +- src/Trading/Types/ReviseItemRequestType.php | 7 +- src/Trading/Types/ReviseItemResponseType.php | 7 +- .../ReviseMyMessagesFoldersRequestType.php | 7 +- .../ReviseMyMessagesFoldersResponseType.php | 7 +- .../Types/ReviseMyMessagesRequestType.php | 7 +- .../Types/ReviseMyMessagesResponseType.php | 7 +- .../RevisePriceAllowedDefinitionType.php | 7 +- .../ReviseQuantityAllowedDefinitionType.php | 7 +- ...llingManagerInventoryFolderRequestType.php | 7 +- ...lingManagerInventoryFolderResponseType.php | 7 +- ...ReviseSellingManagerProductRequestType.php | 7 +- ...eviseSellingManagerProductResponseType.php | 7 +- ...iseSellingManagerSaleRecordRequestType.php | 7 +- ...seSellingManagerSaleRecordResponseType.php | 7 +- ...eviseSellingManagerTemplateRequestType.php | 7 +- ...viseSellingManagerTemplateResponseType.php | 7 +- src/Trading/Types/ReviseStatusType.php | 7 +- src/Trading/Types/RevokeTokenRequestType.php | 7 +- src/Trading/Types/RevokeTokenResponseType.php | 7 +- .../Types/SIFFTASRecommendationsType.php | 7 +- src/Trading/Types/SKUArrayType.php | 7 +- src/Trading/Types/SMSSubscriptionType.php | 7 +- .../SafePaymentRequiredDefinitionType.php | 7 +- src/Trading/Types/SalesTaxType.php | 7 +- ...temToSellingManagerTemplateRequestType.php | 7 +- ...emToSellingManagerTemplateResponseType.php | 7 +- src/Trading/Types/ScheduleType.php | 7 +- src/Trading/Types/SchedulingInfoType.php | 7 +- src/Trading/Types/SearchAttributesType.php | 7 +- src/Trading/Types/SearchDetailsType.php | 7 +- .../Types/SearchStandingDashboardType.php | 7 +- .../Types/SellerAccountDashboardType.php | 7 +- ...lerContactDetailsEnabledDefinitionType.php | 7 +- .../Types/SellerDashboardAlertType.php | 7 +- src/Trading/Types/SellerDiscountType.php | 7 +- src/Trading/Types/SellerDiscountsType.php | 7 +- ...erExcludeShipToLocationPreferencesType.php | 7 +- .../SellerFavoriteItemPreferencesType.php | 7 +- .../Types/SellerFeeDiscountDashboardType.php | 7 +- .../Types/SellerPaymentPreferencesType.php | 7 +- .../Types/SellerPaymentProfileType.php | 7 +- src/Trading/Types/SellerPaymentType.php | 7 +- .../Types/SellerProfilePreferencesType.php | 7 +- src/Trading/Types/SellerProfilesType.php | 7 +- ...erProvidedTitleSupportedDefinitionType.php | 7 +- .../Types/SellerRatingSummaryArrayType.php | 7 +- .../Types/SellerReturnPreferencesType.php | 7 +- src/Trading/Types/SellerReturnProfileType.php | 7 +- .../Types/SellerReverseDisputeRequestType.php | 7 +- .../SellerReverseDisputeResponseType.php | 7 +- src/Trading/Types/SellerRoleMetricsType.php | 7 +- .../Types/SellerShippingProfileType.php | 7 +- src/Trading/Types/SellerType.php | 7 +- ...ellereBayPaymentProcessConsentCodeType.php | 7 +- src/Trading/Types/SellingManagerAlertType.php | 7 +- ...ManagerAutoListAccordingToScheduleType.php | 7 +- ...llingManagerAutoListMinActiveItemsType.php | 7 +- .../Types/SellingManagerAutoListType.php | 7 +- .../Types/SellingManagerAutoRelistType.php | 7 +- ...ellingManagerAutoSecondChanceOfferType.php | 7 +- .../Types/SellingManagerEmailLogType.php | 7 +- .../Types/SellingManagerFolderDetailsType.php | 7 +- .../Types/SellingManagerOrderStatusType.php | 7 +- .../SellingManagerProductDetailsType.php | 7 +- ...llingManagerProductInventoryStatusType.php | 7 +- .../SellingManagerProductSpecificsType.php | 7 +- .../Types/SellingManagerProductType.php | 7 +- .../Types/SellingManagerSearchType.php | 7 +- .../Types/SellingManagerSoldOrderType.php | 7 +- .../SellingManagerSoldTransactionType.php | 7 +- ...SellingManagerTemplateDetailsArrayType.php | 7 +- .../SellingManagerTemplateDetailsType.php | 7 +- .../Types/SellingManagerVendorDetailsType.php | 7 +- src/Trading/Types/SellingStatusType.php | 7 +- src/Trading/Types/SellingSummaryType.php | 7 +- src/Trading/Types/SendInvoiceRequestType.php | 7 +- src/Trading/Types/SendInvoiceResponseType.php | 7 +- .../SetMessagePreferencesRequestType.php | 7 +- .../SetMessagePreferencesResponseType.php | 7 +- .../SetNotificationPreferencesRequestType.php | 7 +- ...SetNotificationPreferencesResponseType.php | 7 +- .../SetPromotionalSaleListingsRequestType.php | 7 +- ...SetPromotionalSaleListingsResponseType.php | 7 +- .../Types/SetPromotionalSaleRequestType.php | 7 +- .../Types/SetPromotionalSaleResponseType.php | 7 +- ...llingManagerFeedbackOptionsRequestType.php | 7 +- ...lingManagerFeedbackOptionsResponseType.php | 7 +- ...ngManagerItemAutomationRuleRequestType.php | 7 +- ...gManagerItemAutomationRuleResponseType.php | 7 +- ...nagerTemplateAutomationRuleRequestType.php | 7 +- ...agerTemplateAutomationRuleResponseType.php | 7 +- ...SetShippingDiscountProfilesRequestType.php | 7 +- ...etShippingDiscountProfilesResponseType.php | 7 +- .../Types/SetStoreCategoriesRequestType.php | 7 +- .../Types/SetStoreCategoriesResponseType.php | 7 +- .../Types/SetStoreCustomPageRequestType.php | 7 +- .../Types/SetStoreCustomPageResponseType.php | 7 +- .../Types/SetStorePreferencesRequestType.php | 7 +- .../Types/SetStorePreferencesResponseType.php | 7 +- src/Trading/Types/SetStoreRequestType.php | 7 +- src/Trading/Types/SetStoreResponseType.php | 7 +- src/Trading/Types/SetTaxTableRequestType.php | 7 +- src/Trading/Types/SetTaxTableResponseType.php | 7 +- src/Trading/Types/SetUserNotesRequestType.php | 7 +- .../Types/SetUserNotesResponseType.php | 7 +- .../Types/SetUserPreferencesRequestType.php | 7 +- .../Types/SetUserPreferencesResponseType.php | 7 +- src/Trading/Types/ShipPackageDetailsType.php | 7 +- src/Trading/Types/ShipmentLineItemType.php | 7 +- .../Types/ShipmentTrackingDetailsType.php | 7 +- src/Trading/Types/ShipmentType.php | 7 +- .../Types/ShippingCarrierDetailsType.php | 7 +- .../Types/ShippingCategoryDetailsType.php | 7 +- .../Types/ShippingCostPaidByDetailsType.php | 7 +- src/Trading/Types/ShippingDetailsType.php | 7 +- .../ShippingEstimatedDeliveryInfoType.php | 7 +- src/Trading/Types/ShippingInsuranceType.php | 7 +- .../Types/ShippingLocationDetailsType.php | 7 +- .../Types/ShippingPackageDetailsType.php | 7 +- src/Trading/Types/ShippingPackageInfoType.php | 7 +- .../ShippingServiceCostOverrideListType.php | 7 +- .../Types/ShippingServiceCostOverrideType.php | 7 +- .../Types/ShippingServiceDetailsType.php | 7 +- .../Types/ShippingServiceOptionsType.php | 7 +- .../ShippingServicePackageDetailsType.php | 7 +- .../ShippingTermRequiredDefinitionType.php | 7 +- .../Types/SiteBuyerRequirementDetailsType.php | 7 +- src/Trading/Types/SiteDefaultsType.php | 7 +- src/Trading/Types/SiteDetailsType.php | 7 +- .../Types/SiteHostedPictureDetailsType.php | 7 +- src/Trading/Types/SiteLocationType.php | 7 +- .../Types/SiteWideCharacteristicsType.php | 7 +- ...eNonTransactionalEnabledDefinitionType.php | 7 +- ...peMeTransactionalEnabledDefinitionType.php | 7 +- .../SpecialitySubscriptionDefinitionType.php | 7 +- .../Types/StoreColorSchemeArrayType.php | 7 +- src/Trading/Types/StoreColorSchemeType.php | 7 +- src/Trading/Types/StoreColorType.php | 7 +- .../Types/StoreCustomCategoryArrayType.php | 7 +- src/Trading/Types/StoreCustomCategoryType.php | 7 +- .../StoreCustomListingHeaderLinkType.php | 7 +- .../Types/StoreCustomListingHeaderType.php | 7 +- .../Types/StoreCustomPageArrayType.php | 7 +- src/Trading/Types/StoreCustomPageType.php | 7 +- src/Trading/Types/StoreFontType.php | 7 +- .../StoreInventoryEnabledDefinitionType.php | 7 +- src/Trading/Types/StoreLogoArrayType.php | 7 +- src/Trading/Types/StoreLogoType.php | 7 +- ...ExtendedListingDurationsDefinitionType.php | 7 +- ...dListingDurationsEnabledDefinitionType.php | 7 +- ...StoreOwnerExtendedListingDurationsType.php | 7 +- src/Trading/Types/StorePreferencesType.php | 7 +- .../Types/StoreSubscriptionArrayType.php | 7 +- src/Trading/Types/StoreSubscriptionType.php | 7 +- src/Trading/Types/StoreThemeArrayType.php | 7 +- src/Trading/Types/StoreThemeType.php | 7 +- src/Trading/Types/StoreType.php | 7 +- .../Types/StoreVacationPreferencesType.php | 7 +- src/Trading/Types/StorefrontType.php | 7 +- src/Trading/Types/SubscriptionType.php | 7 +- src/Trading/Types/SuggestedBidValueType.php | 7 +- .../Types/SuggestedCategoryArrayType.php | 7 +- src/Trading/Types/SuggestedCategoryType.php | 7 +- .../Types/SummaryEventScheduleType.php | 7 +- .../Types/SupportedEventTypesArrayType.php | 7 +- .../Types/SupportedSellerProfileType.php | 7 +- .../Types/SupportedSellerProfilesType.php | 7 +- .../Types/TCREnabledDefinitionType.php | 7 +- src/Trading/Types/TaxDetailsType.php | 7 +- .../Types/TaxIdentifierAttributeType.php | 7 +- src/Trading/Types/TaxIdentifierType.php | 7 +- src/Trading/Types/TaxJurisdictionType.php | 7 +- src/Trading/Types/TaxTableType.php | 7 +- src/Trading/Types/TaxesType.php | 7 +- src/Trading/Types/ThemeGroupType.php | 7 +- .../Types/TicketListingDetailsType.php | 7 +- src/Trading/Types/TimeRangeType.php | 7 +- src/Trading/Types/TimeZoneDetailsType.php | 7 +- src/Trading/Types/TokenStatusType.php | 7 +- .../Types/TopRatedSellerDetailsType.php | 7 +- src/Trading/Types/TransactionArrayType.php | 7 +- .../Types/TransactionReferenceType.php | 7 +- src/Trading/Types/TransactionStatusType.php | 7 +- src/Trading/Types/TransactionType.php | 7 +- .../Types/UPCEnabledDefinitionType.php | 7 +- .../UPCIdentifierEnabledDefinitionType.php | 7 +- src/Trading/Types/URLDetailsType.php | 7 +- src/Trading/Types/UnitInfoType.php | 7 +- .../Types/UnitOfMeasurementDetailsType.php | 7 +- src/Trading/Types/UnitOfMeasurementType.php | 7 +- .../UnpaidItemAssistancePreferencesType.php | 7 +- src/Trading/Types/UnpaidItemType.php | 7 +- .../UploadSiteHostedPicturesRequestType.php | 7 +- .../UploadSiteHostedPicturesResponseType.php | 7 +- src/Trading/Types/UserAgreementInfoType.php | 7 +- .../UserConsentRequiredDefinitionType.php | 7 +- src/Trading/Types/UserDefinedListType.php | 7 +- src/Trading/Types/UserIDArrayType.php | 7 +- src/Trading/Types/UserIdPasswordType.php | 7 +- src/Trading/Types/UserIdentityType.php | 7 +- src/Trading/Types/UserType.php | 7 +- src/Trading/Types/VATDetailsType.php | 7 +- src/Trading/Types/VATRateType.php | 7 +- .../Types/VINSupportedDefinitionType.php | 7 +- .../Types/VRMSupportedDefinitionType.php | 7 +- src/Trading/Types/ValType.php | 7 +- .../ValidateChallengeInputRequestType.php | 7 +- .../ValidateChallengeInputResponseType.php | 7 +- ...alidateTestUserRegistrationRequestType.php | 7 +- ...lidateTestUserRegistrationResponseType.php | 7 +- .../Types/ValueCategoryDefinitionType.php | 7 +- .../Types/ValuePackEnabledDefinitionType.php | 7 +- src/Trading/Types/ValueRecommendationType.php | 7 +- src/Trading/Types/VariationDetailsType.php | 7 +- src/Trading/Types/VariationKeyType.php | 7 +- .../VariationProductListingDetailsType.php | 7 +- .../Types/VariationSpecificPictureSetType.php | 7 +- src/Trading/Types/VariationType.php | 7 +- .../Types/VariationsEnabledDefinitionType.php | 7 +- src/Trading/Types/VariationsType.php | 7 +- .../Types/VeROReasonCodeDetailsType.php | 7 +- src/Trading/Types/VeROReportItemType.php | 7 +- .../Types/VeROReportItemsRequestType.php | 7 +- .../Types/VeROReportItemsResponseType.php | 7 +- src/Trading/Types/VeROReportItemsType.php | 7 +- .../Types/VeROReportedItemDetailsType.php | 7 +- src/Trading/Types/VeROReportedItemType.php | 7 +- src/Trading/Types/VeROSiteDetailType.php | 7 +- .../VerifiedUserRequirementsDetailsType.php | 7 +- .../Types/VerifiedUserRequirementsType.php | 7 +- .../VerifyAddFixedPriceItemRequestType.php | 7 +- .../VerifyAddFixedPriceItemResponseType.php | 7 +- .../Types/VerifyAddItemRequestType.php | 7 +- .../Types/VerifyAddItemResponseType.php | 7 +- .../VerifyAddSecondChanceItemRequestType.php | 7 +- .../VerifyAddSecondChanceItemResponseType.php | 7 +- .../Types/VerifyRelistItemRequestType.php | 7 +- .../Types/VerifyRelistItemResponseType.php | 7 +- src/Trading/Types/WantItNowPostArrayType.php | 7 +- src/Trading/Types/WantItNowPostType.php | 7 +- .../Types/WarrantyDurationDetailsType.php | 7 +- .../Types/WarrantyOfferedDetailsType.php | 7 +- src/Trading/Types/WarrantyTypeDetailsType.php | 7 +- .../Types/XMLRequesterCredentialsType.php | 7 +- src/Trading/Types/XSLFileType.php | 7 +- src/Types/BaseType.php | 148 +- src/Types/RepeatableType.php | 29 +- src/UriResolver.php | 162 ++ src/functions.php | 54 +- test/Account/Enums/CategoryTypeEnumTest.php | 28 + test/Account/Enums/CountryCodeEnumTest.php | 28 + test/Account/Enums/CurrencyCodeEnumTest.php | 28 + .../ExternalPaymentMethodTypeEnumTest.php | 28 + test/Account/Enums/MarketplaceIdEnumTest.php | 28 + .../Enums/PaymentInstrumentBrandEnumTest.php | 28 + .../Enums/PaymentMethodTypeEnumTest.php | 28 + test/Account/Enums/ProgramTypeEnumTest.php | 28 + .../RecipientAccountReferenceTypeEnumTest.php | 28 + test/Account/Enums/RefundMethodEnumTest.php | 28 + test/Account/Enums/RegionTypeEnumTest.php | 28 + test/Account/Enums/ReturnMethodEnumTest.php | 28 + .../Enums/ReturnShippingCostPayerEnumTest.php | 28 + .../Enums/ShippingCostTypeEnumTest.php | 28 + .../Enums/ShippingOptionTypeEnumTest.php | 28 + .../Enums/TimeDurationUnitEnumTest.php | 28 + test/Account/Mocks/Service.php | 27 + test/Account/Services/ServiceTest.php | 68 + test/Account/Types/AmountTest.php | 33 + test/Account/Types/CategoryTypeTest.php | 33 + ...reateAFulfillmentPolicyRestRequestTest.php | 33 + ...eateAFulfillmentPolicyRestResponseTest.php | 33 + .../CreateAPaymentPolicyRestRequestTest.php | 33 + .../CreateAPaymentPolicyRestResponseTest.php | 33 + .../CreateAReturnPolicyRestRequestTest.php | 33 + .../CreateAReturnPolicyRestResponseTest.php | 33 + .../CreateASalesTaxTableRestRequestTest.php | 33 + .../CreateASalesTaxTableRestResponseTest.php | 33 + ...eleteAFulfillmentPolicyRestRequestTest.php | 33 + ...leteAFulfillmentPolicyRestResponseTest.php | 33 + .../DeleteAPaymentPolicyRestRequestTest.php | 33 + .../DeleteAPaymentPolicyRestResponseTest.php | 33 + .../DeleteAReturnPolicyRestRequestTest.php | 33 + .../DeleteAReturnPolicyRestResponseTest.php | 33 + .../DeleteASalesTaxTableRestRequestTest.php | 33 + .../DeleteASalesTaxTableRestResponseTest.php | 33 + test/Account/Types/DepositTest.php | 33 + test/Account/Types/ErrorDetailV3Test.php | 33 + test/Account/Types/ErrorParameterV3Test.php | 33 + .../Types/ExternalPaymentMethodTest.php | 33 + .../Types/FulfillmentPolicyRequestTest.php | 33 + .../Types/FulfillmentPolicyResponseTest.php | 33 + test/Account/Types/FulfillmentPolicyTest.php | 33 + ...tAFulfillmentPolicyByIDRestRequestTest.php | 33 + ...AFulfillmentPolicyByIDRestResponseTest.php | 33 + ...FulfillmentPolicyByNameRestRequestTest.php | 33 + ...ulfillmentPolicyByNameRestResponseTest.php | 33 + .../GetAPaymentPolicyByIDRestRequestTest.php | 33 + .../GetAPaymentPolicyByIDRestResponseTest.php | 33 + ...GetAPaymentPolicyByNameRestRequestTest.php | 33 + ...etAPaymentPolicyByNameRestResponseTest.php | 33 + .../GetAReturnPolicyByIDRestRequestTest.php | 33 + .../GetAReturnPolicyByIDRestResponseTest.php | 33 + .../GetAReturnPolicyByNameRestRequestTest.php | 33 + ...GetAReturnPolicyByNameRestResponseTest.php | 33 + .../GetASalesTaxTableRestRequestTest.php | 33 + .../GetASalesTaxTableRestResponseTest.php | 33 + .../GetAccountPrivilegesRestResponseTest.php | 33 + .../GetAllSalesTaxTablesRestRequestTest.php | 33 + .../GetAllSalesTaxTablesRestResponseTest.php | 33 + ...ntPoliciesByMarketplaceRestRequestTest.php | 33 + ...tPoliciesByMarketplaceRestResponseTest.php | 33 + .../GetOptedInProgramsRestResponseTest.php | 33 + ...ntPoliciesByMarketplaceRestRequestTest.php | 33 + ...tPoliciesByMarketplaceRestResponseTest.php | 33 + ...rnPoliciesByMarketplaceRestRequestTest.php | 33 + ...nPoliciesByMarketplaceRestResponseTest.php | 33 + test/Account/Types/InventorySizingTest.php | 33 + test/Account/Types/InventorySnapshotTest.php | 33 + test/Account/Types/LookbackPeriodTest.php | 33 + .../Types/MerchantExternalProfileTest.php | 33 + .../Types/OptInToProgramRestRequestTest.php | 33 + .../Types/OptInToProgramRestResponseTest.php | 33 + .../Types/OptOutOfProgramRestRequestTest.php | 33 + .../Types/OptOutOfProgramRestResponseTest.php | 33 + test/Account/Types/PaymentMethodTest.php | 33 + .../Types/PaymentPolicyRequestTest.php | 33 + .../Types/PaymentPolicyResponseTest.php | 33 + test/Account/Types/PaymentPolicyTest.php | 33 + test/Account/Types/ProgramTest.php | 33 + test/Account/Types/ProgramsTest.php | 33 + .../Types/RecipientAccountReferenceTest.php | 33 + test/Account/Types/RegionSetTest.php | 33 + test/Account/Types/RegionTest.php | 33 + .../Account/Types/ReturnPolicyRequestTest.php | 33 + .../Types/ReturnPolicyResponseTest.php | 33 + test/Account/Types/ReturnPolicyTest.php | 33 + test/Account/Types/ReturnSnapshotTest.php | 33 + test/Account/Types/SalesTaxBaseTest.php | 33 + test/Account/Types/SalesTaxTest.php | 33 + test/Account/Types/SalesTaxesTest.php | 33 + test/Account/Types/SellingLimitTest.php | 33 + test/Account/Types/SellingPrivilegesTest.php | 33 + .../SetFulfillmentPolicyResponseTest.php | 33 + .../Types/SetPaymentPolicyResponseTest.php | 33 + .../Types/SetReturnPolicyResponseTest.php | 33 + test/Account/Types/ShippingOptionTest.php | 33 + test/Account/Types/ShippingServiceTest.php | 33 + .../Types/SoldAggregatedMetricsTest.php | 33 + test/Account/Types/TimeDurationTest.php | 33 + .../Account/Types/TransactionSnapshotTest.php | 33 + test/Account/Types/TransactionVolumeTest.php | 33 + ...pdateAFulfillmentPolicyRestRequestTest.php | 33 + ...dateAFulfillmentPolicyRestResponseTest.php | 33 + .../UpdateAPaymentPolicyRestRequestTest.php | 33 + .../UpdateAPaymentPolicyRestResponseTest.php | 33 + .../UpdateAReturnPolicyRestRequestTest.php | 33 + .../UpdateAReturnPolicyRestResponseTest.php | 33 + test/Analytics/Enums/CycleTypeEnumTest.php | 28 + test/Analytics/Enums/DataTypeEnumTest.php | 28 + test/Analytics/Enums/ProgramEnumTest.php | 28 + .../Enums/StandardsLevelEnumTest.php | 28 + test/Analytics/Mocks/Service.php | 27 + test/Analytics/Services/ServiceTest.php | 68 + test/Analytics/Types/CycleTest.php | 33 + test/Analytics/Types/DefinitionTest.php | 33 + test/Analytics/Types/ErrorDetailV3Test.php | 33 + test/Analytics/Types/ErrorParameterV3Test.php | 33 + test/Analytics/Types/FilterFieldTest.php | 33 + ...indSellerStandardsProfilesResponseTest.php | 33 + ...tASpecificSellerProfileRestRequestTest.php | 33 + ...ASpecificSellerProfileRestResponseTest.php | 33 + .../GetAllSellerProfilesRestResponseTest.php | 33 + .../Types/GetTrafficReportRestRequestTest.php | 33 + .../GetTrafficReportRestResponseTest.php | 33 + test/Analytics/Types/HeaderTest.php | 33 + test/Analytics/Types/MetricTest.php | 33 + test/Analytics/Types/RangeValueTest.php | 33 + test/Analytics/Types/RecordTest.php | 33 + test/Analytics/Types/ReportTest.php | 33 + test/Analytics/Types/StandardsProfileTest.php | 33 + test/Analytics/Types/ValueTest.php | 33 + .../Enums/AvailabilityStatusEnumTest.php | 28 + test/Browse/Enums/CountryCodeEnumTest.php | 28 + test/Browse/Enums/CurrencyCodeEnumTest.php | 28 + .../Enums/PriceDisplayConditionEnumTest.php | 28 + test/Browse/Enums/RefundMethodEnumTest.php | 28 + test/Browse/Enums/ReturnMethodEnumTest.php | 28 + .../Enums/ReturnShippingCostPayerEnumTest.php | 28 + .../Browse/Enums/TimeDurationUnitEnumTest.php | 28 + test/Browse/Enums/ValueTypeEnumTest.php | 28 + test/Browse/Mocks/Service.php | 27 + test/Browse/Services/ServiceTest.php | 68 + test/Browse/Types/AddressTest.php | 33 + test/Browse/Types/AmountTest.php | 33 + test/Browse/Types/Amount_0Test.php | 33 + test/Browse/Types/CategoryTest.php | 33 + test/Browse/Types/ErrorDetailV3Test.php | 33 + test/Browse/Types/ErrorParameterV3Test.php | 33 + test/Browse/Types/FilterFieldTest.php | 33 + .../Types/GetItemFeedRestRequestTest.php | 33 + .../Types/GetItemFeedRestResponseTest.php | 33 + .../Types/GetItemGroupRestRequestTest.php | 33 + .../Types/GetItemGroupRestResponseTest.php | 33 + test/Browse/Types/GetItemRestRequestTest.php | 33 + test/Browse/Types/GetItemRestResponseTest.php | 33 + test/Browse/Types/ImageTest.php | 33 + test/Browse/Types/ItemDigestTest.php | 33 + test/Browse/Types/ItemFeedResponseTest.php | 33 + test/Browse/Types/ItemFeedTest.php | 33 + test/Browse/Types/ItemGroupTest.php | 33 + test/Browse/Types/ItemLocationImplTest.php | 33 + test/Browse/Types/ItemReturnTermsTest.php | 33 + test/Browse/Types/ItemSummaryTest.php | 33 + test/Browse/Types/ItemTest.php | 33 + test/Browse/Types/MarketingPriceTest.php | 33 + test/Browse/Types/MarketingPrice_0Test.php | 33 + test/Browse/Types/PickupOptionSummaryTest.php | 33 + test/Browse/Types/RangeValueTest.php | 33 + test/Browse/Types/RatingHistogramTest.php | 33 + test/Browse/Types/ReviewRatingTest.php | 33 + .../Types/SearchForItemsRestRequestTest.php | 33 + .../Types/SearchForItemsRestResponseTest.php | 33 + .../Types/SearchPagedCollectionTest.php | 33 + test/Browse/Types/SellerTest.php | 33 + .../Types/ShippingOptionSummaryTest.php | 33 + test/Browse/Types/ShippingOptionTest.php | 33 + test/Browse/Types/SortFieldTest.php | 33 + test/Browse/Types/TargetLocationTest.php | 33 + test/Browse/Types/TimeDurationTest.php | 33 + test/Browse/Types/TypedNameValueTest.php | 33 + test/BulkDataExchange/Enums/AckValueTest.php | 7 +- .../Enums/ErrorCategoryTest.php | 7 +- .../Enums/ErrorSeverityTest.php | 7 +- test/BulkDataExchange/Enums/FileTypeTest.php | 7 +- .../Enums/IncludeListingTypeTest.php | 7 +- .../Enums/IncludeShippingAddressTypeTest.php | 7 +- .../Enums/ItemEventTypeTest.php | 7 +- test/BulkDataExchange/Enums/JobStatusTest.php | 7 +- .../Enums/ListingTypeTest.php | 7 +- .../Enums/OrderStatusTypesTest.php | 7 +- .../Enums/RecurringJobStatusTest.php | 7 +- .../Types/AbortJobRequestTest.php | 7 +- .../Types/AbortJobResponseTest.php | 7 +- .../AbortRecurringJobExecutionRequestTest.php | 7 +- ...AbortRecurringJobExecutionResponseTest.php | 7 +- .../Types/ActivateRecurringJobRequestTest.php | 7 +- .../ActivateRecurringJobResponseTest.php | 7 +- .../Types/ActiveInventoryReportFilterTest.php | 7 +- .../Types/AuctionItemDetailsTest.php | 7 +- .../Types/BaseServiceRequestTest.php | 7 +- .../Types/BaseServiceResponseTest.php | 7 +- .../Types/CreateRecurringJobRequestTest.php | 7 +- .../Types/CreateRecurringJobResponseTest.php | 7 +- .../Types/CreateUploadJobRequestTest.php | 7 +- .../Types/CreateUploadJobResponseTest.php | 7 +- .../Types/DailyRecurrenceTest.php | 7 +- .../BulkDataExchange/Types/DateFilterTest.php | 7 +- .../Types/DeleteRecurringJobRequestTest.php | 7 +- .../Types/DeleteRecurringJobResponseTest.php | 7 +- .../Types/DownloadJobRecurringFilterTest.php | 7 +- .../Types/DownloadRequestFilterTest.php | 7 +- test/BulkDataExchange/Types/ErrorDataTest.php | 7 +- .../Types/ErrorMessageTest.php | 7 +- .../Types/ErrorParameterTest.php | 7 +- .../Types/FeeSettlementReportFilterTest.php | 7 +- .../Types/FixedPriceItemDetailsTest.php | 7 +- .../Types/GetItemInfoReportFilterTest.php | 7 +- .../Types/GetItemJobActionTypeTest.php | 7 +- .../Types/GetJobStatusRequestTest.php | 7 +- .../Types/GetJobStatusResponseTest.php | 7 +- .../Types/GetJobsRequestTest.php | 7 +- .../Types/GetJobsResponseTest.php | 7 +- ...ecurringJobExecutionHistoryRequestTest.php | 7 +- ...curringJobExecutionHistoryResponseTest.php | 7 +- ...RecurringJobExecutionStatusRequestTest.php | 7 +- ...ecurringJobExecutionStatusResponseTest.php | 7 +- .../Types/GetRecurringJobsRequestTest.php | 7 +- .../Types/GetRecurringJobsResponseTest.php | 7 +- .../BulkDataExchange/Types/JobProfileTest.php | 7 +- .../Types/MonthlyRecurrenceTest.php | 7 +- .../Types/OrderReportFilterTest.php | 7 +- .../Types/OrderReportRecurringFilterTest.php | 7 +- .../Types/RecurringJobDetailTest.php | 7 +- .../BulkDataExchange/Types/SiteFilterTest.php | 7 +- .../Types/SoldReportFilterTest.php | 7 +- .../Types/StartDownloadJobRequestTest.php | 7 +- .../Types/StartDownloadJobResponseTest.php | 7 +- .../Types/StartUploadJobRequestTest.php | 7 +- .../Types/StartUploadJobResponseTest.php | 7 +- .../Types/SuspendRecurringJobRequestTest.php | 7 +- .../Types/SuspendRecurringJobResponseTest.php | 7 +- .../Types/WeeklyRecurrenceTest.php | 7 +- .../Enums/AckValueTest.php | 7 +- .../Enums/ConsolidationJobStatusTest.php | 7 +- .../Enums/ConsolidationJobTypeTest.php | 7 +- .../Enums/ErrorCategoryTest.php | 7 +- .../Enums/ErrorSeverityTest.php | 7 +- .../Enums/IsoCurrencyCodeTest.php | 7 +- .../Enums/ProfileTypeTest.php | 7 +- .../Enums/ShippingRateTypeTest.php | 7 +- .../Types/AddSellerProfileRequestTest.php | 7 +- .../Types/AddSellerProfileResponseTest.php | 7 +- .../AdditionalServiceShippingOptionTest.php | 7 +- .../Types/AmountTest.php | 7 +- .../Types/BaseRequestTest.php | 7 +- .../Types/BaseResponseTest.php | 7 +- .../Types/CategoryGroupTest.php | 7 +- .../Types/CategoryGroupsTest.php | 7 +- ...ConsolidateShippingProfilesRequestTest.php | 7 +- ...onsolidateShippingProfilesResponseTest.php | 7 +- .../Types/ConsolidationJobTest.php | 7 +- .../Types/DeliveryEstimateMetaInfoTest.php | 7 +- .../Types/DeliveryEstimateTest.php | 7 +- .../Types/DepositDetailsTest.php | 7 +- .../Types/ErrorDataTest.php | 7 +- .../Types/ErrorMessageTest.php | 7 +- .../Types/ErrorParameterTest.php | 7 +- .../Types/ExtensionTypeTest.php | 7 +- .../Types/FreightShippingTest.php | 7 +- .../GetConsolidationJobStatusRequestTest.php | 7 +- .../GetConsolidationJobStatusResponseTest.php | 7 +- .../Types/GetSellerProfilesRequestTest.php | 7 +- .../Types/GetSellerProfilesResponseTest.php | 7 +- .../Types/GetVersionRequestTest.php | 7 +- .../Types/GetVersionResponseTest.php | 7 +- .../Types/InsuranceTest.php | 7 +- .../Types/PaymentInfoTest.php | 7 +- .../Types/PaymentProfileListTest.php | 7 +- .../Types/PaymentProfileTest.php | 7 +- .../Types/RateTableInfoTest.php | 7 +- .../Types/RemoveOverridesRequestTest.php | 7 +- .../Types/RemoveOverridesResponseTest.php | 7 +- .../Types/RemoveProfileRequestTest.php | 7 +- .../Types/RemoveProfileResponseTest.php | 7 +- .../Types/RemoveSellerProfilesRequestTest.php | 7 +- .../RemoveSellerProfilesResponseTest.php | 7 +- .../Types/ReturnPolicyInfoTest.php | 7 +- .../Types/ReturnPolicyProfileListTest.php | 7 +- .../Types/ReturnPolicyProfileTest.php | 7 +- .../Types/SellerProfileResponseStatusTest.php | 7 +- .../Types/SellerProfileTest.php | 7 +- .../Types/ServiceDefinitionTest.php | 7 +- .../Types/SetSellerProfileRequestTest.php | 7 +- .../Types/SetSellerProfileResponseTest.php | 7 +- .../Types/ShippingPolicyIdentityTest.php | 7 +- .../Types/ShippingPolicyInfoServiceTest.php | 7 +- .../Types/ShippingPolicyInfoTest.php | 7 +- .../Types/ShippingPolicyProfileListTest.php | 7 +- .../Types/ShippingPolicyProfileTest.php | 7 +- .../Types/ShippingPolicyServiceTest.php | 7 +- .../Types/ShippingProfileDiscountInfoTest.php | 7 +- test/ConfigurationResolverTest.php | 2 +- test/Constants/MarketplaceIdsTest.php | 57 + .../InvalidPropertyTypeExceptionTest.php | 2 + .../UnknownPropertyExceptionTest.php | 2 + test/Feedback/Enums/AckValueTest.php | 28 + test/Feedback/Enums/ErrorCategoryTest.php | 28 + test/Feedback/Enums/ErrorSeverityTest.php | 28 + test/Feedback/Mocks/Service.php | 21 + test/Feedback/Services/ServiceTest.php | 68 + .../Feedback/Types/BaseServiceRequestTest.php | 33 + .../Types/BaseServiceResponseTest.php | 33 + .../CreateDSRSummaryByCategoryRequestTest.php | 33 + .../CreateDSRSummaryByPeriodRequestTest.php | 33 + ...eDSRSummaryByShippingDetailRequestTest.php | 33 + ...eateDSRSummaryByTransactionRequestTest.php | 33 + .../Types/CreateDSRSummaryResponseTest.php | 33 + test/Feedback/Types/DSRSummaryTest.php | 33 + test/Feedback/Types/DateRangeTest.php | 33 + test/Feedback/Types/ErrorDataTest.php | 33 + test/Feedback/Types/ErrorMessageTest.php | 33 + test/Feedback/Types/ErrorParameterTest.php | 33 + .../Types/GetDSRSummaryRequestTest.php | 33 + .../Types/GetDSRSummaryResponseTest.php | 33 + test/Feedback/Types/TransactionKeyTest.php | 33 + test/FileTransfer/Enums/AckValueTest.php | 7 +- test/FileTransfer/Enums/ErrorCategoryTest.php | 7 +- test/FileTransfer/Enums/ErrorSeverityTest.php | 7 +- test/FileTransfer/Mocks/Service.php | 2 +- .../Types/BaseServiceRequestTest.php | 7 +- .../Types/BaseServiceResponseTest.php | 7 +- .../Types/DownloadFileRequestTest.php | 7 +- .../Types/DownloadFileResponseTest.php | 7 +- test/FileTransfer/Types/ErrorDataTest.php | 7 +- test/FileTransfer/Types/ErrorMessageTest.php | 7 +- .../FileTransfer/Types/ErrorParameterTest.php | 7 +- .../FileTransfer/Types/FileAttachmentTest.php | 7 +- .../Types/UploadFileRequestTest.php | 7 +- .../Types/UploadFileResponseTest.php | 7 +- test/Finding/Enums/AckValueTest.php | 7 +- test/Finding/Enums/ErrorCategoryTest.php | 7 +- test/Finding/Enums/ErrorSeverityTest.php | 7 +- test/Finding/Enums/GallerySizeEnumTest.php | 7 +- test/Finding/Enums/ItemFilterTypeTest.php | 7 +- test/Finding/Enums/MapExposureEnumTest.php | 7 +- test/Finding/Enums/OutputSelectorTypeTest.php | 7 +- test/Finding/Enums/PriceTreatmentEnumTest.php | 7 +- test/Finding/Enums/SortOrderTypeTest.php | 7 +- test/Finding/Types/AffiliateTest.php | 7 +- test/Finding/Types/AmountTest.php | 7 +- test/Finding/Types/AspectFilterTest.php | 7 +- .../Types/AspectHistogramContainerTest.php | 7 +- test/Finding/Types/AspectTest.php | 7 +- .../Types/AspectValueHistogramTest.php | 7 +- .../Types/BaseFindingServiceRequestTest.php | 7 +- .../Types/BaseFindingServiceResponseTest.php | 7 +- test/Finding/Types/BaseServiceRequestTest.php | 7 +- .../Finding/Types/BaseServiceResponseTest.php | 7 +- .../BestMatchFindingServiceRequestTest.php | 7 +- .../Types/CategoryHistogramContainerTest.php | 7 +- test/Finding/Types/CategoryHistogramTest.php | 7 +- test/Finding/Types/CategoryTest.php | 7 +- .../Types/ConditionHistogramContainerTest.php | 7 +- test/Finding/Types/ConditionHistogramTest.php | 7 +- test/Finding/Types/ConditionTest.php | 7 +- test/Finding/Types/DiscountPriceInfoTest.php | 7 +- test/Finding/Types/DistanceTest.php | 7 +- test/Finding/Types/DomainFilterTest.php | 7 +- test/Finding/Types/ErrorDataTest.php | 7 +- test/Finding/Types/ErrorMessageTest.php | 7 +- test/Finding/Types/ErrorParameterTest.php | 7 +- test/Finding/Types/ExtensionTypeTest.php | 7 +- .../Types/FindCompletedItemsRequestTest.php | 7 +- .../Types/FindCompletedItemsResponseTest.php | 7 +- .../Types/FindItemsAdvancedRequestTest.php | 7 +- .../Types/FindItemsAdvancedResponseTest.php | 7 +- .../Types/FindItemsByCategoryRequestTest.php | 7 +- .../Types/FindItemsByCategoryResponseTest.php | 7 +- .../Types/FindItemsByImageRequestTest.php | 7 +- .../Types/FindItemsByImageResponseTest.php | 7 +- .../Types/FindItemsByKeywordsRequestTest.php | 7 +- .../Types/FindItemsByKeywordsResponseTest.php | 7 +- .../Types/FindItemsByProductRequestTest.php | 7 +- .../Types/FindItemsByProductResponseTest.php | 7 +- .../FindItemsForFavoriteSearchRequestTest.php | 7 +- ...FindItemsForFavoriteSearchResponseTest.php | 7 +- .../FindItemsIneBayStoresRequestTest.php | 7 +- .../FindItemsIneBayStoresResponseTest.php | 7 +- .../Types/GalleryInfoContainerTest.php | 7 +- test/Finding/Types/GalleryURLTest.php | 7 +- .../Types/GetHistogramsRequestTest.php | 7 +- .../Types/GetHistogramsResponseTest.php | 7 +- ...earchKeywordsRecommendationRequestTest.php | 7 +- ...archKeywordsRecommendationResponseTest.php | 7 +- test/Finding/Types/GetVersionRequestTest.php | 7 +- test/Finding/Types/GetVersionResponseTest.php | 7 +- test/Finding/Types/ItemAttributeTest.php | 7 +- test/Finding/Types/ItemFilterTest.php | 7 +- test/Finding/Types/ListingInfoTest.php | 7 +- test/Finding/Types/PaginationInputTest.php | 7 +- test/Finding/Types/PaginationOutputTest.php | 7 +- test/Finding/Types/ProductIdTest.php | 7 +- test/Finding/Types/SearchItemTest.php | 7 +- test/Finding/Types/SearchResultTest.php | 7 +- test/Finding/Types/SellerInfoTest.php | 7 +- test/Finding/Types/SellingStatusTest.php | 7 +- test/Finding/Types/ShippingInfoTest.php | 7 +- test/Finding/Types/StorefrontTest.php | 7 +- test/Finding/Types/UnitPriceInfoTest.php | 7 +- .../Enums/AcknowledgeStatusEnumTest.php | 28 + .../Enums/CancelRequestStateEnumTest.php | 28 + .../Fulfillment/Enums/CancelStateEnumTest.php | 28 + .../Fulfillment/Enums/CountryCodeEnumTest.php | 28 + .../Enums/CurrencyCodeEnumTest.php | 28 + .../LineItemFulfillmentStatusEnumTest.php | 28 + .../Enums/MarketplaceIdEnumTest.php | 28 + .../Enums/OrderPaymentStatusEnumTest.php | 28 + .../Enums/PaymentMethodTypeEnumTest.php | 28 + .../Enums/PaymentStatusEnumTest.php | 28 + .../Enums/RefundStatusEnumTest.php | 28 + test/Fulfillment/Enums/RefundTypeEnumTest.php | 28 + test/Fulfillment/Enums/SoldFormatEnumTest.php | 28 + test/Fulfillment/Mocks/Service.php | 27 + test/Fulfillment/Services/ServiceTest.php | 68 + test/Fulfillment/Types/AddressTest.php | 33 + test/Fulfillment/Types/AmountTest.php | 33 + .../Types/AppliedPromotionTest.php | 33 + test/Fulfillment/Types/AttributeTest.php | 33 + test/Fulfillment/Types/BuyerTest.php | 33 + test/Fulfillment/Types/CancelRequestTest.php | 33 + test/Fulfillment/Types/CancelStatusTest.php | 33 + test/Fulfillment/Types/ContactTest.php | 33 + ...ateAShippingFulfillmentRestRequestTest.php | 33 + ...teAShippingFulfillmentRestResponseTest.php | 33 + test/Fulfillment/Types/DeliveryCostTest.php | 33 + test/Fulfillment/Types/ErrorDetailV3Test.php | 33 + .../Types/ErrorParameterV3Test.php | 33 + test/Fulfillment/Types/FeeTest.php | 33 + test/Fulfillment/Types/FilterFieldTest.php | 33 + .../Types/FulfillmentInstructionsTypeTest.php | 33 + .../Types/FulfillmentStartInstructionTest.php | 33 + ...GetAShippingFulfillmentRestRequestTest.php | 33 + ...etAShippingFulfillmentRestResponseTest.php | 33 + .../Types/GetAnOrderRestRequestTest.php | 33 + .../Types/GetAnOrderRestResponseTest.php | 33 + .../Types/GetOrdersRestRequestTest.php | 33 + .../Types/GetOrdersRestResponseTest.php | 33 + ...GetShippingFulfillmentsRestRequestTest.php | 33 + ...etShippingFulfillmentsRestResponseTest.php | 33 + test/Fulfillment/Types/GiftDetailsTest.php | 33 + .../Types/LineItemPropertiesTest.php | 33 + .../Types/LineItemReferenceTest.php | 33 + test/Fulfillment/Types/LineItemTest.php | 33 + .../Types/OrderFulfillmentStatusTest.php | 33 + test/Fulfillment/Types/OrderRefundTest.php | 33 + .../Types/OrderSearchPagedCollectionTest.php | 33 + test/Fulfillment/Types/OrderTest.php | 33 + test/Fulfillment/Types/PaymentHoldTest.php | 33 + test/Fulfillment/Types/PaymentSummaryTest.php | 33 + test/Fulfillment/Types/PaymentTest.php | 33 + test/Fulfillment/Types/PhoneNumberTest.php | 33 + test/Fulfillment/Types/PricingSummaryTest.php | 33 + test/Fulfillment/Types/RangeValueTest.php | 33 + .../Types/SellerActionsToReleaseTest.php | 33 + .../Types/ShippingFulfillmentDetailsTest.php | 33 + ...ShippingFulfillmentPagedCollectionTest.php | 33 + .../Types/ShippingFulfillmentTest.php | 33 + test/Fulfillment/Types/ShippingStepTest.php | 33 + test/Fulfillment/Types/TaxTest.php | 33 + test/HalfFinding/Enums/AckValueTest.php | 7 +- test/HalfFinding/Enums/ErrorCategoryTest.php | 7 +- test/HalfFinding/Enums/ErrorSeverityTest.php | 7 +- .../Enums/HalfItemConditionCodeTypeTest.php | 7 +- test/HalfFinding/Enums/ItemFilterTypeTest.php | 7 +- .../Enums/ProductIDCodeTypeTest.php | 7 +- .../Enums/RentalDurationTypeTest.php | 7 +- test/HalfFinding/Enums/SortOnTypeTest.php | 7 +- test/HalfFinding/Enums/SortOrderTest.php | 7 +- test/HalfFinding/Enums/TypeTest.php | 7 +- test/HalfFinding/Types/AmountTest.php | 7 +- test/HalfFinding/Types/BaseRequestTest.php | 7 +- test/HalfFinding/Types/BaseResponseTest.php | 7 +- test/HalfFinding/Types/ErrorDataTest.php | 7 +- test/HalfFinding/Types/ErrorMessageTest.php | 7 +- test/HalfFinding/Types/ErrorParameterTest.php | 7 +- test/HalfFinding/Types/ExtensionTypeTest.php | 7 +- .../Types/FindItemsRequestTest.php | 7 +- .../Types/FindItemsResponseTest.php | 7 +- .../Types/GetVersionRequestTest.php | 7 +- .../Types/GetVersionResponseTest.php | 7 +- .../Types/HalfCatalogProductTypeTest.php | 7 +- test/HalfFinding/Types/ItemFilterTest.php | 7 +- test/HalfFinding/Types/ItemTypeTest.php | 7 +- .../Types/NameValueListArrayTypeTest.php | 7 +- .../Types/NameValueListTypeTest.php | 7 +- .../Types/PaginationInputTypeTest.php | 7 +- .../Types/PaginationOutputTypeTest.php | 7 +- test/HalfFinding/Types/ProductIDTypeTest.php | 7 +- test/HalfFinding/Types/RentalAmountTest.php | 7 +- .../Types/ShippingServiceOptionsTypeTest.php | 7 +- test/HalfFinding/Types/SortByTypeTest.php | 7 +- test/HalfFinding/Types/StorefrontTypeTest.php | 7 +- test/HalfFinding/Types/UserTypeTest.php | 7 +- test/HttpHandlerTest.php | 1 - test/HttpHeadersTraitTest.php | 64 + .../Enums/AvailabilityTypeEnumTest.php | 28 + test/Inventory/Enums/ConditionEnumTest.php | 28 + test/Inventory/Enums/CountryCodeEnumTest.php | 28 + test/Inventory/Enums/DayOfWeekEnumTest.php | 28 + test/Inventory/Enums/FormatTypeEnumTest.php | 28 + .../Enums/LengthUnitOfMeasureEnumTest.php | 28 + .../Inventory/Enums/ListingStatusEnumTest.php | 28 + test/Inventory/Enums/MarketplaceEnumTest.php | 28 + ...MinimumAdvertisedPriceHandlingEnumTest.php | 28 + test/Inventory/Enums/OfferStatusEnumTest.php | 28 + test/Inventory/Enums/PackageTypeEnumTest.php | 28 + .../Enums/ShippingServiceTypeEnumTest.php | 28 + test/Inventory/Enums/SoldOnEnumTest.php | 28 + test/Inventory/Enums/StatusEnumTest.php | 28 + test/Inventory/Enums/StoreTypeEnumTest.php | 28 + .../Enums/TimeDurationUnitEnumTest.php | 28 + .../Enums/WeightUnitOfMeasureEnumTest.php | 28 + test/Inventory/Mocks/Service.php | 27 + test/Inventory/Services/ServiceTest.php | 68 + test/Inventory/Types/AddressTest.php | 33 + test/Inventory/Types/AmountTest.php | 33 + test/Inventory/Types/AvailabilityTest.php | 33 + test/Inventory/Types/BaseResponseTest.php | 33 + .../Types/BulkPriceQuantityResponseTest.php | 33 + .../Inventory/Types/BulkPriceQuantityTest.php | 33 + ...kUpdatePriceAndQuantityRestRequestTest.php | 33 + ...UpdatePriceAndQuantityRestResponseTest.php | 33 + test/Inventory/Types/CompatibilityTest.php | 33 + .../Inventory/Types/CompatibleProductTest.php | 33 + ...CreateInventoryLocationRestRequestTest.php | 33 + ...reateInventoryLocationRestResponseTest.php | 33 + .../Types/CreateOfferRestRequestTest.php | 33 + .../Types/CreateOfferRestResponseTest.php | 33 + ...placeInventoryItemGroupRestRequestTest.php | 33 + ...laceInventoryItemGroupRestResponseTest.php | 33 + ...eOrReplaceInventoryItemRestRequestTest.php | 33 + ...OrReplaceInventoryItemRestResponseTest.php | 33 + ...aceProductCompatibilityRestRequestTest.php | 33 + ...ceProductCompatibilityRestResponseTest.php | 33 + ...eleteInventoryItemGroupRestRequestTest.php | 33 + ...leteInventoryItemGroupRestResponseTest.php | 33 + .../DeleteInventoryItemRestRequestTest.php | 33 + .../DeleteInventoryItemRestResponseTest.php | 33 + ...DeleteInventoryLocationRestRequestTest.php | 33 + ...eleteInventoryLocationRestResponseTest.php | 33 + .../Types/DeleteOfferRestRequestTest.php | 33 + .../Types/DeleteOfferRestResponseTest.php | 33 + ...eteProductCompatibilityRestRequestTest.php | 33 + ...teProductCompatibilityRestResponseTest.php | 33 + test/Inventory/Types/DimensionTest.php | 33 + ...isableInventoryLocationRestRequestTest.php | 33 + ...sableInventoryLocationRestResponseTest.php | 33 + .../Types/EbayOfferDetailsWithAllTest.php | 33 + .../Types/EbayOfferDetailsWithIdTest.php | 33 + .../Types/EbayOfferDetailsWithKeysTest.php | 33 + ...EnableInventoryLocationRestRequestTest.php | 33 + ...nableInventoryLocationRestResponseTest.php | 33 + test/Inventory/Types/ErrorDetailV3Test.php | 33 + test/Inventory/Types/ErrorParameterV3Test.php | 33 + test/Inventory/Types/FeeSummaryTest.php | 33 + test/Inventory/Types/FeeTest.php | 33 + .../Types/FeesSummaryResponseTest.php | 33 + test/Inventory/Types/GeoCoordinatesTest.php | 33 + .../GetInventoryItemGroupRestRequestTest.php | 33 + .../GetInventoryItemGroupRestResponseTest.php | 33 + .../Types/GetInventoryItemRestRequestTest.php | 33 + .../GetInventoryItemRestResponseTest.php | 33 + .../GetInventoryItemsRestRequestTest.php | 33 + .../GetInventoryItemsRestResponseTest.php | 33 + .../GetInventoryLocationRestRequestTest.php | 33 + .../GetInventoryLocationRestResponseTest.php | 33 + .../GetInventoryLocationsRestRequestTest.php | 33 + .../GetInventoryLocationsRestResponseTest.php | 33 + .../Types/GetListingFeesRestRequestTest.php | 33 + .../Types/GetListingFeesRestResponseTest.php | 33 + .../Types/GetOfferRestRequestTest.php | 33 + .../Types/GetOfferRestResponseTest.php | 33 + .../Types/GetOffersRestRequestTest.php | 33 + .../Types/GetOffersRestResponseTest.php | 33 + ...GetProductCompatibilityRestRequestTest.php | 33 + ...etProductCompatibilityRestResponseTest.php | 33 + test/Inventory/Types/IntervalTest.php | 33 + .../Types/InventoryItemGroupTest.php | 33 + test/Inventory/Types/InventoryItemTest.php | 33 + test/Inventory/Types/InventoryItemsTest.php | 33 + .../Types/InventoryLocationFullTest.php | 33 + .../Types/InventoryLocationResponseTest.php | 33 + .../Inventory/Types/InventoryLocationTest.php | 33 + test/Inventory/Types/ListingDetailsTest.php | 33 + test/Inventory/Types/ListingPoliciesTest.php | 33 + test/Inventory/Types/LocationResponseTest.php | 33 + test/Inventory/Types/LocationTest.php | 33 + test/Inventory/Types/OfferKeyWithIdTest.php | 33 + test/Inventory/Types/OfferKeysWithIdTest.php | 33 + .../Types/OfferPriceQuantityTest.php | 33 + test/Inventory/Types/OfferResponseTest.php | 33 + test/Inventory/Types/OffersTest.php | 33 + test/Inventory/Types/OperatingHoursTest.php | 33 + .../Types/PackageWeightAndSizeTest.php | 33 + .../PickupAtLocationAvailabilityTest.php | 33 + .../Types/PriceQuantityResponseTest.php | 33 + test/Inventory/Types/PriceQuantityTest.php | 33 + test/Inventory/Types/PricingSummaryTest.php | 33 + .../Types/ProductFamilyPropertiesTest.php | 33 + .../Inventory/Types/ProductIdentifierTest.php | 33 + test/Inventory/Types/ProductTest.php | 33 + .../Types/PublishOfferRestRequestTest.php | 33 + .../Types/PublishOfferRestResponseTest.php | 33 + test/Inventory/Types/PublishResponseTest.php | 33 + .../Types/ShipToLocationAvailabilityTest.php | 33 + .../Types/ShippingCostOverrideTest.php | 33 + test/Inventory/Types/SpecialHoursTest.php | 33 + test/Inventory/Types/SpecificationTest.php | 33 + test/Inventory/Types/TaxTest.php | 33 + test/Inventory/Types/TimeDurationTest.php | 33 + ...UpdateInventoryLocationRestRequestTest.php | 33 + ...pdateInventoryLocationRestResponseTest.php | 33 + .../Types/UpdateOfferRestRequestTest.php | 33 + .../Types/UpdateOfferRestResponseTest.php | 33 + test/Inventory/Types/VariesByTest.php | 33 + test/Inventory/Types/WeightTest.php | 33 + test/Json/JsonTest.php | 58 + .../Enums/CampaignStatusEnumTest.php | 28 + .../Marketing/Enums/CategoryScopeEnumTest.php | 28 + .../Marketing/Enums/CriterionTypeEnumTest.php | 28 + test/Marketing/Enums/CurrencyCodeEnumTest.php | 28 + test/Marketing/Enums/FundingModelEnumTest.php | 28 + .../Enums/InventoryCriterionEnumTest.php | 28 + .../Enums/InventoryReferenceTypeEnumTest.php | 28 + .../Marketing/Enums/MarketplaceIdEnumTest.php | 28 + .../Enums/PromotionPriorityEnumTest.php | 28 + .../Enums/PromotionStatusEnumTest.php | 28 + test/Marketing/Mocks/Service.php | 27 + test/Marketing/Services/ServiceTest.php | 68 + test/Marketing/Types/AdIdsTest.php | 33 + .../Marketing/Types/AdPagedCollectionTest.php | 33 + test/Marketing/Types/AdReferenceTest.php | 33 + test/Marketing/Types/AdReferencesTest.php | 33 + test/Marketing/Types/AdResponseTest.php | 33 + test/Marketing/Types/AdTest.php | 33 + test/Marketing/Types/AdsTest.php | 33 + test/Marketing/Types/AmountTest.php | 33 + test/Marketing/Types/BulkAdResponseTest.php | 33 + .../Types/BulkCreateAdRequestTest.php | 33 + ...eateAdsByInventoryReferenceRequestTest.php | 33 + ...AdsByInventoryReferenceRestRequestTest.php | 33 + ...dsByInventoryReferenceRestResponseTest.php | 33 + ...ulkCreateAdsByListingIDRestRequestTest.php | 33 + ...lkCreateAdsByListingIDRestResponseTest.php | 33 + .../Types/BulkDeleteAdRequestTest.php | 33 + .../Types/BulkDeleteAdResponseTest.php | 33 + ...leteAdsByInventoryReferenceRequestTest.php | 33 + ...AdsByInventoryReferenceRestRequestTest.php | 33 + ...dsByInventoryReferenceRestResponseTest.php | 33 + ...ulkDeleteAdsByListingIDRestRequestTest.php | 33 + ...lkDeleteAdsByListingIDRestResponseTest.php | 33 + ...idsByInventoryReferenceRestRequestTest.php | 33 + ...dsByInventoryReferenceRestResponseTest.php | 33 + ...UpdateAdBidsByListingIDRestRequestTest.php | 33 + ...pdateAdBidsByListingIDRestResponseTest.php | 33 + .../Marketing/Types/CampaignCriterionTest.php | 33 + .../Types/CampaignPagedCollectionTest.php | 33 + test/Marketing/Types/CampaignTest.php | 33 + test/Marketing/Types/CampaignsTest.php | 33 + .../Types/CloneCampaignRequestTest.php | 33 + .../Types/CloneCampaignRestRequestTest.php | 33 + .../Types/CloneCampaignRestResponseTest.php | 33 + .../CreateAdByListingIDRestRequestTest.php | 33 + .../CreateAdByListingIDRestResponseTest.php | 33 + test/Marketing/Types/CreateAdRequestTest.php | 33 + ...eateAdsByInventoryReferenceRequestTest.php | 33 + ...AdsByInventoryReferenceRestRequestTest.php | 33 + ...dsByInventoryReferenceRestResponseTest.php | 33 + .../Types/CreateCampaignRequestTest.php | 33 + .../Types/CreateCampaignRestRequestTest.php | 33 + .../Types/CreateCampaignRestResponseTest.php | 33 + .../CreateItemPromotionRestRequestTest.php | 33 + .../CreateItemPromotionRestResponseTest.php | 33 + .../Types/DeleteAdByIDRestRequestTest.php | 33 + .../Types/DeleteAdByIDRestResponseTest.php | 33 + test/Marketing/Types/DeleteAdRequestTest.php | 33 + test/Marketing/Types/DeleteAdResponseTest.php | 33 + ...leteAdsByInventoryReferenceRequestTest.php | 33 + ...AdsByInventoryReferenceRestRequestTest.php | 33 + ...dsByInventoryReferenceRestResponseTest.php | 33 + .../Types/DeleteCampaignRestRequestTest.php | 33 + .../Types/DeleteCampaignRestResponseTest.php | 33 + .../DeleteItemPromotionRestRequestTest.php | 33 + .../DeleteItemPromotionRestResponseTest.php | 33 + test/Marketing/Types/DiscountBenefitTest.php | 33 + test/Marketing/Types/DiscountRuleTest.php | 33 + .../Types/DiscountSpecificationTest.php | 33 + .../Types/EndCampaignRestRequestTest.php | 33 + .../Types/EndCampaignRestResponseTest.php | 33 + test/Marketing/Types/ErrorDetailV3Test.php | 33 + test/Marketing/Types/ErrorParameterV3Test.php | 33 + ...ndCampaignByAdReferenceRestRequestTest.php | 33 + ...dCampaignByAdReferenceRestResponseTest.php | 33 + test/Marketing/Types/FundingStrategyTest.php | 33 + .../Types/GetAdByIDRestRequestTest.php | 33 + .../Types/GetAdByIDRestResponseTest.php | 33 + ...AdsByInventoryReferenceRestRequestTest.php | 33 + ...dsByInventoryReferenceRestResponseTest.php | 33 + .../Marketing/Types/GetAdsRestRequestTest.php | 33 + .../Types/GetAdsRestResponseTest.php | 33 + .../Types/GetAllCampaignsRestRequestTest.php | 33 + .../Types/GetAllCampaignsRestResponseTest.php | 33 + .../Types/GetCampaignByIDRestRequestTest.php | 33 + .../Types/GetCampaignByIDRestResponseTest.php | 33 + .../GetCampaignByNameRestRequestTest.php | 33 + .../GetCampaignByNameRestResponseTest.php | 33 + .../Types/GetItemPromotionRestRequestTest.php | 33 + .../GetItemPromotionRestResponseTest.php | 33 + ...tPromotionSummaryReportRestRequestTest.php | 33 + ...PromotionSummaryReportRestResponseTest.php | 33 + .../Types/GetPromotionsRestRequestTest.php | 33 + .../Types/GetPromotionsRestResponseTest.php | 33 + .../Types/InventoryCriterionTest.php | 33 + test/Marketing/Types/InventoryItemTest.php | 33 + .../Types/ItemPromotionResponseTest.php | 33 + test/Marketing/Types/ItemPromotionTest.php | 33 + .../Types/PauseAPromotionRestRequestTest.php | 33 + .../Types/PauseAPromotionRestResponseTest.php | 33 + .../Types/PauseCampaignRestRequestTest.php | 33 + .../Types/PauseCampaignRestResponseTest.php | 33 + test/Marketing/Types/PromotionDetailTest.php | 33 + .../Types/PromotionsPagedCollectionTest.php | 33 + .../Types/ResumeAPromotionRestRequestTest.php | 33 + .../ResumeAPromotionRestResponseTest.php | 33 + .../Types/ResumeCampaignRestRequestTest.php | 33 + .../Types/ResumeCampaignRestResponseTest.php | 33 + test/Marketing/Types/SelectionRuleTest.php | 33 + test/Marketing/Types/SortFieldTest.php | 33 + .../Types/SummaryReportResponseTest.php | 33 + .../Types/UpdateBidPercentageRequestTest.php | 33 + .../Types/UpdateBidRestRequestTest.php | 33 + .../Types/UpdateBidRestResponseTest.php | 33 + ...eCampaignIDentificationRestRequestTest.php | 33 + ...CampaignIDentificationRestResponseTest.php | 33 + ...pdateCampaignIdentificationRequestTest.php | 33 + .../UpdateItemPromotionRestRequestTest.php | 33 + .../UpdateItemPromotionRestResponseTest.php | 33 + test/Merchandising/Enums/AckValueTest.php | 28 + .../Merchandising/Enums/ErrorCategoryTest.php | 28 + .../Merchandising/Enums/ErrorSeverityTest.php | 28 + .../Enums/ItemFilterTypeTest.php | 28 + .../Enums/PriceTreatmentEnumTest.php | 28 + test/Merchandising/Mocks/Service.php | 21 + test/Merchandising/Services/ServiceTest.php | 71 + test/Merchandising/Types/AffiliateTest.php | 33 + test/Merchandising/Types/AmountTest.php | 33 + .../BaseMerchandisingServiceRequestTest.php | 33 + .../BaseMerchandisingServiceResponseTest.php | 33 + .../Types/BaseServiceRequestTest.php | 33 + .../Types/BaseServiceResponseTest.php | 33 + .../Types/DiscountPriceInfoTest.php | 33 + test/Merchandising/Types/ErrorDataTest.php | 33 + test/Merchandising/Types/ErrorMessageTest.php | 33 + .../Types/ErrorParameterTest.php | 33 + .../Types/GetDealsRequestTest.php | 33 + .../Types/GetMostWatchedItemsRequestTest.php | 33 + .../GetRelatedCategoryItemsRequestTest.php | 33 + .../Types/GetSimilarItemsRequestTest.php | 33 + .../GetTopSellingProductsRequestTest.php | 33 + .../Types/GetVersionRequestTest.php | 33 + .../Types/GetVersionResponseTest.php | 33 + test/Merchandising/Types/ItemFilterTest.php | 33 + .../Types/ItemRecommendationsTest.php | 33 + test/Merchandising/Types/ItemTest.php | 33 + .../MerchandisingServiceItemResponseTest.php | 33 + ...erchandisingServiceProductResponseTest.php | 33 + test/Merchandising/Types/ProductIdTest.php | 33 + .../Types/ProductRecommendationsTest.php | 33 + test/Merchandising/Types/ProductTest.php | 33 + test/MerchantData/Enums/AckCodeTypeTest.php | 7 +- .../Enums/AddressAttributeCodeTypeTest.php | 7 +- .../Enums/AddressOwnerCodeTypeTest.php | 7 +- .../Enums/AddressRecordTypeCodeTypeTest.php | 7 +- .../AddressRegistrationTypeCodeTypeTest.php | 7 +- .../Enums/AddressStatusCodeTypeTest.php | 7 +- .../Enums/AddressUsageCodeTypeTest.php | 7 +- .../Enums/BestOfferStatusCodeTypeTest.php | 7 +- .../Enums/BestOfferTypeCodeTypeTest.php | 7 +- .../Enums/BusinessRoleTypeTest.php | 7 +- .../BuyerPaymentInstrumentCodeTypeTest.php | 7 +- .../Enums/BuyerPaymentMethodCodeTypeTest.php | 7 +- .../Enums/BuyerProtectionCodeTypeTest.php | 7 +- .../BuyerProtectionSourceCodeTypeTest.php | 7 +- .../Enums/CancelStatusCodeTypeTest.php | 7 +- .../CharityAffiliationTypeCodeTypeTest.php | 7 +- .../Enums/CharitySellerStatusCodeTypeTest.php | 7 +- .../Enums/CharityStatusCodeTypeTest.php | 7 +- .../Enums/CheckoutStatusCodeTypeTest.php | 7 +- .../Enums/CommentTypeCodeTypeTest.php | 7 +- .../Enums/CompleteStatusCodeTypeTest.php | 7 +- .../Enums/CountryCodeTypeTest.php | 7 +- .../Enums/CurrencyCodeTypeTest.php | 7 +- test/MerchantData/Enums/DaysCodeTypeTest.php | 7 +- .../Enums/DepositTypeCodeTypeTest.php | 7 +- .../DescriptionReviseModeCodeTypeTest.php | 7 +- .../Enums/DetailLevelCodeTypeTest.php | 7 +- .../Enums/DigitalStatusCodeTypeTest.php | 7 +- .../Enums/DiscountNameCodeTypeTest.php | 7 +- .../Enums/DiscountReasonCodeTypeTest.php | 7 +- .../EBaySubscriptionTypeCodeTypeTest.php | 7 +- .../MerchantData/Enums/EnableCodeTypeTest.php | 7 +- .../Enums/EndReasonCodeTypeTest.php | 7 +- .../Enums/ErrorClassificationCodeTypeTest.php | 7 +- .../Enums/ErrorHandlingCodeTypeTest.php | 7 +- .../Enums/ExternalProductCodeTypeTest.php | 7 +- .../Enums/FeedbackRatingStarCodeTypeTest.php | 7 +- .../Enums/GalleryStatusCodeTypeTest.php | 7 +- .../Enums/GalleryTypeCodeTypeTest.php | 7 +- .../Enums/GiftServicesCodeTypeTest.php | 7 +- .../Enums/HitCounterCodeTypeTest.php | 7 +- .../Enums/InquiryStatusCodeTypeTest.php | 7 +- .../Enums/InsuranceOptionCodeTypeTest.php | 7 +- .../InventoryTrackingMethodCodeTypeTest.php | 7 +- .../Enums/InvocationStatusTypeTest.php | 7 +- .../Enums/ItemSpecificSourceCodeTypeTest.php | 7 +- .../Enums/ListingEnhancementsCodeTypeTest.php | 7 +- .../Enums/ListingStatusCodeTypeTest.php | 7 +- .../Enums/ListingSubtypeCodeTypeTest.php | 7 +- .../Enums/ListingTypeCodeTypeTest.php | 7 +- .../Enums/MeasurementSystemCodeTypeTest.php | 7 +- ...mumAdvertisedPriceExposureCodeTypeTest.php | 7 +- .../Enums/MismatchTypeCodeTypeTest.php | 7 +- .../Enums/OrderStatusCodeTypeTest.php | 7 +- .../Enums/PaidStatusCodeTypeTest.php | 7 +- .../Enums/PayPalAccountLevelCodeTypeTest.php | 7 +- .../Enums/PayPalAccountStatusCodeTypeTest.php | 7 +- .../Enums/PayPalAccountTypeCodeTypeTest.php | 7 +- .../Enums/PaymentHoldReasonCodeTypeTest.php | 7 +- .../Enums/PaymentHoldStatusCodeTypeTest.php | 7 +- .../Enums/PaymentInstructionCodeTypeTest.php | 7 +- .../Enums/PaymentStatusCodeTypeTest.php | 7 +- .../PaymentTransactionStatusCodeTypeTest.php | 7 +- .../Enums/PaymentTypeCodeTypeTest.php | 7 +- .../Enums/PayoutMethodTypeTest.php | 7 +- .../MerchantData/Enums/PeriodCodeTypeTest.php | 7 +- .../Enums/PhotoDisplayCodeTypeTest.php | 7 +- .../Enums/PickupStatusCodeTypeTest.php | 7 +- .../Enums/PictureFormatCodeTypeTest.php | 7 +- .../Enums/PictureSetCodeTypeTest.php | 7 +- .../Enums/PictureSourceCodeTypeTest.php | 7 +- .../Enums/PictureUploadPolicyCodeTypeTest.php | 7 +- .../Enums/PictureWatermarkCodeTypeTest.php | 7 +- .../Enums/PricingTreatmentCodeTypeTest.php | 7 +- .../PromotionItemPriceTypeCodeTypeTest.php | 7 +- .../PromotionItemSelectionCodeTypeTest.php | 7 +- .../Enums/PromotionMethodCodeTypeTest.php | 7 +- .../Enums/PromotionSchemeCodeTypeTest.php | 7 +- .../QuantityAvailableHintCodeTypeTest.php | 7 +- .../ReasonHideFromSearchCodeTypeTest.php | 7 +- .../Enums/RefundFailureCodeTypeTest.php | 7 +- .../Enums/RefundLineTypeCodeTypeTest.php | 7 +- .../Enums/RefundSourceTypeCodeTypeTest.php | 7 +- .../Enums/RefundStatusCodeTypeTest.php | 7 +- .../Enums/RefundingSourceTypeCodeTypeTest.php | 7 +- .../RequiredSellerActionCodeTypeTest.php | 7 +- .../Enums/ReturnStatusCodeTypeTest.php | 7 +- .../Enums/ReviseReasonCodeTypeTest.php | 7 +- .../Enums/SelectionModeCodeTypeTest.php | 7 +- .../Enums/SellerBusinessCodeTypeTest.php | 7 +- .../SellerGuaranteeLevelCodeTypeTest.php | 7 +- .../Enums/SellerLevelCodeTypeTest.php | 7 +- .../Enums/SellerPaymentMethodCodeTypeTest.php | 7 +- ...ereBayPaymentProcessStatusCodeTypeTest.php | 7 +- .../Enums/SeverityCodeTypeTest.php | 7 +- .../ShipmentDeliveryStatusCodeTypeTest.php | 7 +- .../Enums/ShipmentStatusCodeTypeTest.php | 7 +- .../Enums/ShippingFeatureCodeTypeTest.php | 7 +- .../Enums/ShippingPackageCodeTypeTest.php | 7 +- .../Enums/ShippingRateTypeCodeTypeTest.php | 7 +- .../Enums/ShippingServiceTypeTest.php | 7 +- .../Enums/ShippingTypeCodeTypeTest.php | 7 +- test/MerchantData/Enums/SiteCodeTypeTest.php | 7 +- .../Enums/SkypeContactOptionCodeTypeTest.php | 7 +- .../Enums/SortOrderCodeTypeTest.php | 7 +- .../Enums/TaxDescriptionCodeTypeTest.php | 7 +- .../TaxIdentifierAttributeCodeTypeTest.php | 7 +- .../Enums/TaxTypeCodeTypeTest.php | 7 +- .../Enums/TopRatedProgramCodeTypeTest.php | 7 +- .../Enums/TradingRoleCodeTypeTest.php | 7 +- .../Enums/TransactionPlatformCodeTypeTest.php | 7 +- .../TransactionReferenceCodeTypeTest.php | 7 +- .../UnpaidItemCaseOpenTypeCodeTypeTest.php | 7 +- .../UnpaidItemCaseStatusTypeCodeTypeTest.php | 7 +- .../Enums/UserIdentityCodeTypeTest.php | 7 +- .../Enums/UserStatusCodeTypeTest.php | 7 +- .../Enums/VATStatusCodeTypeTest.php | 7 +- .../Enums/ValueTypeCodeTypeTest.php | 7 +- .../Enums/WarningLevelCodeTypeTest.php | 7 +- test/MerchantData/MerchantDataTest.php | 2 + .../Types/AbstractRequestTypeTest.php | 7 +- .../Types/AbstractResponseTypeTest.php | 7 +- .../Types/AccountTransactionTypeTest.php | 7 +- .../ActiveInventoryReportRequestTypeTest.php | 7 +- .../ActiveInventoryReportResponseTypeTest.php | 7 +- .../AddFixedPriceItemRequestTypeTest.php | 7 +- .../AddFixedPriceItemResponseTypeTest.php | 7 +- .../Types/AddItemRequestTypeTest.php | 7 +- .../Types/AddItemResponseTypeTest.php | 7 +- .../Types/AddressAttributeTypeTest.php | 7 +- test/MerchantData/Types/AddressTypeTest.php | 7 +- test/MerchantData/Types/AmountTypeTest.php | 7 +- .../Types/AttributeArrayTypeTest.php | 7 +- .../Types/AttributeSetArrayTypeTest.php | 7 +- .../Types/AttributeSetTypeTest.php | 7 +- test/MerchantData/Types/AttributeTypeTest.php | 7 +- .../Types/Base64BinaryTypeTest.php | 7 +- .../Types/BestOfferDetailsTypeTest.php | 7 +- .../Types/BiddingDetailsTypeTest.php | 7 +- .../Types/BiddingSummaryTypeTest.php | 7 +- .../Types/BotBlockRequestTypeTest.php | 7 +- .../Types/BotBlockResponseTypeTest.php | 7 +- test/MerchantData/Types/BrandMPNTypeTest.php | 7 +- .../BulkDataExchangeRequestsTypeTest.php | 7 +- .../BulkDataExchangeResponsesTypeTest.php | 7 +- .../Types/BusinessSellerDetailsTypeTest.php | 7 +- .../Types/BuyerPackageEnclosureTypeTest.php | 7 +- .../Types/BuyerPackageEnclosuresTypeTest.php | 7 +- .../Types/BuyerProtectionDetailsTypeTest.php | 7 +- .../Types/BuyerRequirementDetailsTypeTest.php | 7 +- test/MerchantData/Types/BuyerTypeTest.php | 7 +- .../CalculatedShippingDiscountTypeTest.php | 7 +- .../Types/CalculatedShippingRateTypeTest.php | 7 +- .../Types/CancelDetailTypeTest.php | 7 +- test/MerchantData/Types/CategoryTypeTest.php | 7 +- .../Types/CharacteristicTypeTest.php | 7 +- .../Types/CharacteristicsSetTypeTest.php | 7 +- .../CharityAffiliationDetailTypeTest.php | 7 +- .../CharityAffiliationDetailsTypeTest.php | 7 +- .../Types/CharityAffiliationTypeTest.php | 7 +- .../Types/CharityAffiliationsTypeTest.php | 7 +- test/MerchantData/Types/CharityIDTypeTest.php | 7 +- .../Types/CharitySellerTypeTest.php | 7 +- test/MerchantData/Types/CharityTypeTest.php | 7 +- .../Types/CheckoutStatusTypeTest.php | 7 +- .../Types/ContactHoursDetailsTypeTest.php | 7 +- .../Types/CrossPromotionsTypeTest.php | 7 +- .../Types/CustomSecurityHeaderTypeTest.php | 30 - .../Types/DeliveryDetailsTypeTest.php | 7 +- .../Types/DeliveryStatusTypeTest.php | 7 +- .../Types/DigitalDeliverySelectedTypeTest.php | 7 +- .../Types/DigitalDeliveryUserTypeTest.php | 7 +- .../Types/DigitalGoodInfoTypeTest.php | 7 +- .../Types/DiscountPriceInfoTypeTest.php | 7 +- .../Types/DiscountProfileTypeTest.php | 7 +- test/MerchantData/Types/DistanceTypeTest.php | 7 +- .../DuplicateInvocationDetailsTypeTest.php | 7 +- .../EBayPaymentMismatchDetailsTypeTest.php | 7 +- .../EndFixedPriceItemRequestTypeTest.php | 7 +- .../EndFixedPriceItemResponseTypeTest.php | 7 +- .../Types/EndItemRequestTypeTest.php | 7 +- .../Types/EndItemResponseTypeTest.php | 7 +- .../Types/ErrorParameterTypeTest.php | 7 +- test/MerchantData/Types/ErrorTypeTest.php | 7 +- .../Types/ExpressItemRequirementsTypeTest.php | 7 +- .../Types/ExtendedContactDetailsTypeTest.php | 7 +- .../Types/ExtendedPictureDetailsTypeTest.php | 7 +- .../Types/ExtendedProductFinderIDTypeTest.php | 7 +- .../Types/ExternalProductIDTypeTest.php | 7 +- .../Types/ExternalTransactionTypeTest.php | 7 +- .../Types/FeatureEligibilityTypeTest.php | 7 +- .../FeeSettlementReportRequestTypeTest.php | 7 +- .../FeeSettlementReportResponseTypeTest.php | 7 +- test/MerchantData/Types/FeeTypeTest.php | 7 +- .../Types/FeedbackInfoTypeTest.php | 7 +- .../Types/FeedbackRequirementsTypeTest.php | 7 +- test/MerchantData/Types/FeesTypeTest.php | 7 +- .../Types/FlatShippingDiscountTypeTest.php | 7 +- .../Types/GiftSummaryTypeTest.php | 7 +- .../Types/InsuranceDetailsTypeTest.php | 7 +- ...tegratedMerchantCreditCardInfoTypeTest.php | 7 +- ...nationalShippingServiceOptionsTypeTest.php | 7 +- .../Types/InventoryFeesTypeTest.php | 7 +- .../Types/InventoryStatusTypeTest.php | 7 +- .../Types/ItemBidDetailsTypeTest.php | 7 +- .../Types/ItemCompatibilityListTypeTest.php | 7 +- .../Types/ItemCompatibilityTypeTest.php | 7 +- .../Types/ItemPolicyViolationTypeTest.php | 7 +- .../Types/ItemTransactionIDTypeTest.php | 7 +- test/MerchantData/Types/ItemTypeTest.php | 7 +- test/MerchantData/Types/LabelTypeTest.php | 7 +- test/MerchantData/Types/LineItemTypeTest.php | 7 +- ...tingCheckoutRedirectPreferenceTypeTest.php | 7 +- .../Types/ListingDesignerTypeTest.php | 7 +- .../Types/ListingDetailsTypeTest.php | 7 +- .../Types/ListingRecommendationTypeTest.php | 7 +- .../Types/ListingRecommendationsTypeTest.php | 7 +- .../Types/ListingTransactionTypeTest.php | 7 +- .../Types/LookupAttributeArrayTypeTest.php | 7 +- .../Types/LookupAttributeTypeTest.php | 7 +- .../MaximumBuyerPolicyViolationsTypeTest.php | 7 +- .../Types/MaximumItemRequirementsTypeTest.php | 7 +- .../MaximumUnpaidItemStrikesInfoTypeTest.php | 7 +- test/MerchantData/Types/MeasureTypeTest.php | 7 +- .../MerchantDataRequestHeaderTypeTest.php | 7 +- .../MerchantDataSellingStatusTypeTest.php | 7 +- .../Types/MerchantDataVariationTypeTest.php | 7 +- .../Types/MerchantDataVariationsTypeTest.php | 7 +- test/MerchantData/Types/MetadataTypeTest.php | 7 +- .../Types/ModifyNameArrayTypeTest.php | 7 +- .../MerchantData/Types/ModifyNameTypeTest.php | 7 +- .../Types/MultiLegShipmentTypeTest.php | 7 +- .../Types/MultiLegShippingDetailsTypeTest.php | 7 +- .../Types/MultiLegShippingServiceTypeTest.php | 7 +- .../Types/NameValueListArrayTypeTest.php | 7 +- .../Types/NameValueListTypeTest.php | 7 +- .../Types/NonUsageTransactionTypeTest.php | 7 +- .../Types/OrderAckRequestTypeTest.php | 7 +- .../Types/OrderAckResponseTypeTest.php | 7 +- .../MerchantData/Types/OrderArrayTypeTest.php | 7 +- .../Types/OrderDetailsTypeTest.php | 7 +- .../Types/OrderItemDetailsTypeTest.php | 7 +- .../Types/OrderLineItemTypeTest.php | 7 +- .../Types/OrderReportRequestTypeTest.php | 7 +- .../Types/OrderReportResponseTypeTest.php | 7 +- test/MerchantData/Types/OrderTypeTest.php | 7 +- .../Types/PaymentDetailsTypeTest.php | 7 +- .../Types/PaymentHoldDetailTypeTest.php | 7 +- .../Types/PaymentInformationTypeTest.php | 7 +- .../Types/PaymentTransactionTypeTest.php | 7 +- .../Types/PaymentsInformationTypeTest.php | 7 +- .../Types/PickupDetailsTypeTest.php | 7 +- .../Types/PickupInStoreDetailsTypeTest.php | 7 +- .../Types/PickupMethodSelectedTypeTest.php | 7 +- .../Types/PickupOptionsTypeTest.php | 7 +- .../Types/PictureDetailsTypeTest.php | 7 +- .../Types/PictureSetMemberTypeTest.php | 7 +- .../Types/PictureURLsTypeTest.php | 7 +- test/MerchantData/Types/PicturesTypeTest.php | 7 +- .../ProStoresCheckoutPreferenceTypeTest.php | 7 +- .../Types/ProStoresDetailsTypeTest.php | 7 +- .../Types/ProductListingDetailsTypeTest.php | 7 +- .../Types/ProductSuggestionTypeTest.php | 7 +- .../Types/ProductSuggestionsTypeTest.php | 7 +- .../Types/PromotedItemTypeTest.php | 7 +- .../Types/PromotionDetailsTypeTest.php | 7 +- .../Types/PromotionalSaleDetailsTypeTest.php | 7 +- ...otionalShippingDiscountDetailsTypeTest.php | 7 +- .../Types/QuantityInfoTypeTest.php | 7 +- ...uantityRestrictionPerBuyerInfoTypeTest.php | 7 +- .../Types/RateTableDetailsTypeTest.php | 7 +- .../Types/RecoupmentPolicyConsentTypeTest.php | 7 +- .../Types/RefundArrayTypeTest.php | 7 +- .../Types/RefundFailureReasonTypeTest.php | 7 +- .../RefundFundingSourceArrayTypeTest.php | 7 +- .../Types/RefundFundingSourceTypeTest.php | 7 +- .../Types/RefundInformationTypeTest.php | 7 +- .../Types/RefundLineArrayTypeTest.php | 7 +- .../MerchantData/Types/RefundLineTypeTest.php | 7 +- .../Types/RefundTransactionArrayTypeTest.php | 7 +- .../Types/RefundTransactionInfoTypeTest.php | 7 +- .../Types/RefundTransactionTypeTest.php | 7 +- test/MerchantData/Types/RefundTypeTest.php | 7 +- .../RelistFixedPriceItemRequestTypeTest.php | 7 +- .../RelistFixedPriceItemResponseTypeTest.php | 7 +- .../Types/RelistItemRequestTypeTest.php | 7 +- .../Types/RelistItemResponseTypeTest.php | 7 +- .../RequiredSellerActionArrayTypeTest.php | 7 +- .../Types/ReturnPolicyTypeTest.php | 7 +- .../ReviseFixedPriceItemRequestTypeTest.php | 7 +- .../ReviseFixedPriceItemResponseTypeTest.php | 7 +- .../ReviseInventoryStatusRequestTypeTest.php | 7 +- .../ReviseInventoryStatusResponseTypeTest.php | 7 +- .../Types/ReviseItemRequestTypeTest.php | 7 +- .../Types/ReviseItemResponseTypeTest.php | 7 +- .../Types/ReviseStatusTypeTest.php | 7 +- .../MerchantData/Types/SKUDetailsTypeTest.php | 7 +- test/MerchantData/Types/SalesTaxTypeTest.php | 7 +- .../Types/SchedulingInfoTypeTest.php | 7 +- .../Types/SearchDetailsTypeTest.php | 7 +- .../Types/SellerDiscountTypeTest.php | 7 +- .../Types/SellerDiscountsTypeTest.php | 7 +- .../Types/SellerPaymentProfileTypeTest.php | 7 +- .../Types/SellerProfilesTypeTest.php | 7 +- .../Types/SellerReturnProfileTypeTest.php | 7 +- .../Types/SellerShippingProfileTypeTest.php | 7 +- test/MerchantData/Types/SellerTypeTest.php | 7 +- ...reBayPaymentProcessConsentCodeTypeTest.php | 7 +- .../SellingManagerProductDetailsTypeTest.php | 7 +- ...gManagerProductInventoryStatusTypeTest.php | 7 +- .../SellingManagerVendorDetailsTypeTest.php | 7 +- .../Types/SellingStatusTypeTest.php | 7 +- ...SetShipmentTrackingInfoRequestTypeTest.php | 7 +- ...etShipmentTrackingInfoResponseTypeTest.php | 7 +- .../Types/ShipPackageDetailsTypeTest.php | 7 +- .../Types/ShipmentLineItemTypeTest.php | 7 +- .../Types/ShipmentTrackingDetailsTypeTest.php | 7 +- test/MerchantData/Types/ShipmentTypeTest.php | 7 +- .../Types/ShippingDetailsTypeTest.php | 7 +- .../Types/ShippingPackageInfoTypeTest.php | 7 +- ...hippingServiceCostOverrideListTypeTest.php | 7 +- .../ShippingServiceCostOverrideTypeTest.php | 7 +- .../Types/ShippingServiceOptionsTypeTest.php | 7 +- .../SiteHostedPictureDetailsTypeTest.php | 7 +- .../Types/SoldReportRequestTypeTest.php | 7 +- .../Types/SoldReportResponseTypeTest.php | 7 +- .../MerchantData/Types/StorefrontTypeTest.php | 7 +- .../Types/SuggestedBidValueTypeTest.php | 7 +- .../MerchantData/Types/TaxDetailsTypeTest.php | 7 +- .../Types/TaxIdentifierAttributeTypeTest.php | 7 +- .../Types/TaxIdentifierTypeTest.php | 7 +- .../Types/TaxJurisdictionTypeTest.php | 7 +- test/MerchantData/Types/TaxTableTypeTest.php | 7 +- test/MerchantData/Types/TaxesTypeTest.php | 7 +- .../Types/TicketListingDetailsTypeTest.php | 7 +- .../Types/TopRatedSellerDetailsTypeTest.php | 7 +- .../Types/TransactionArrayTypeTest.php | 7 +- .../Types/TransactionListTypeTest.php | 7 +- .../Types/TransactionReferenceTypeTest.php | 7 +- .../Types/TransactionStatusTypeTest.php | 7 +- .../Types/TransactionTypeTest.php | 7 +- test/MerchantData/Types/UnitInfoTypeTest.php | 7 +- .../MerchantData/Types/UnpaidItemTypeTest.php | 7 +- ...ploadSiteHostedPicturesRequestTypeTest.php | 7 +- ...loadSiteHostedPicturesResponseTypeTest.php | 7 +- .../Types/UserAgreementInfoTypeTest.php | 7 +- .../Types/UserIdPasswordTypeTest.php | 30 - .../Types/UserIdentityTypeTest.php | 7 +- test/MerchantData/Types/UserTypeTest.php | 7 +- .../MerchantData/Types/VATDetailsTypeTest.php | 7 +- test/MerchantData/Types/ValTypeTest.php | 7 +- ...VariationProductListingDetailsTypeTest.php | 7 +- .../VariationSpecificPictureSetTypeTest.php | 7 +- test/MerchantData/Types/VariationTypeTest.php | 7 +- .../MerchantData/Types/VariationsTypeTest.php | 7 +- .../VerifiedUserRequirementsTypeTest.php | 7 +- ...VerifyAddFixedPriceItemRequestTypeTest.php | 7 +- ...erifyAddFixedPriceItemResponseTypeTest.php | 7 +- .../Types/VerifyAddItemRequestTypeTest.php | 7 +- .../Types/VerifyAddItemResponseTypeTest.php | 7 +- .../Types/XMLRequesterCredentialsTypeTest.php | 7 +- test/Metadata/Enums/CountryCodeEnumTest.php | 28 + test/Metadata/Mocks/Service.php | 27 + test/Metadata/Services/ServiceTest.php | 68 + test/Metadata/Types/ErrorDetailV3Test.php | 33 + test/Metadata/Types/ErrorParameterV3Test.php | 33 + ...etSalesTaxJurisdictionsRestRequestTest.php | 33 + ...tSalesTaxJurisdictionsRestResponseTest.php | 33 + .../Types/SalesTaxJurisdictionTest.php | 33 + .../Types/SalesTaxJurisdictionsTest.php | 33 + test/Mocks/BaseRestService.php | 33 + test/Mocks/ComplexClassJson.json | 46 + test/Mocks/HttpHeaders.php | 14 + test/Mocks/HttpRestHandler.php | 33 + test/Mocks/Response.json | 67 + test/Mocks/Response.xml | 1 - test/Mocks/ResponseNS.xml | 1 - test/Mocks/RestResponse.json | 35 + test/Mocks/RestService.php | 25 + test/Mocks/SimpleClass.php | 12 + test/Mocks/StatusCode.php | 14 + test/Order/Enums/CountryCodeEnumTest.php | 28 + test/Order/Enums/CurrencyCodeEnumTest.php | 28 + .../Enums/LineItemPaymentStatusEnumTest.php | 28 + test/Order/Enums/LineItemStatusEnumTest.php | 28 + .../Enums/PaymentMethodBrandEnumTest.php | 28 + .../Order/Enums/PaymentMethodTypeEnumTest.php | 28 + .../PurchaseOrderPaymentStatusEnumTest.php | 28 + .../Enums/PurchaseOrderStatusEnumTest.php | 28 + test/Order/Mocks/Service.php | 27 + test/Order/Services/ServiceTest.php | 76 + test/Order/Types/AdjustmentTest.php | 33 + test/Order/Types/Adjustment_0Test.php | 33 + test/Order/Types/AmountTest.php | 33 + test/Order/Types/Amount_0Test.php | 33 + test/Order/Types/BillingAddressTest.php | 33 + .../Types/CheckoutSessionResponseTest.php | 33 + .../CreateGuestCheckoutSessionRequestTest.php | 33 + ...CreateSignInCheckoutSessionRequestTest.php | 33 + test/Order/Types/CreditCardTest.php | 33 + test/Order/Types/ErrorDetailV3Test.php | 33 + test/Order/Types/ErrorParameterV3Test.php | 33 + .../GetCheckoutSessionRestRequestTest.php | 33 + .../GetCheckoutSessionRestResponseTest.php | 33 + ...GetGuestCheckoutSessionRestRequestTest.php | 33 + ...etGuestCheckoutSessionRestResponseTest.php | 33 + .../GetGuestPurchaseOrderRestRequestTest.php | 33 + .../GetGuestPurchaseOrderRestResponseTest.php | 33 + .../Types/GetPurchaseOrderRestRequestTest.php | 33 + .../GetPurchaseOrderRestResponseTest.php | 33 + test/Order/Types/GuestPurchaseOrderTest.php | 33 + test/Order/Types/ImageTest.php | 33 + ...InitiateCheckoutSessionRestRequestTest.php | 33 + ...nitiateCheckoutSessionRestResponseTest.php | 33 + ...ateGuestCheckoutSessionRestRequestTest.php | 33 + ...teGuestCheckoutSessionRestResponseTest.php | 33 + test/Order/Types/LineItemInputTest.php | 33 + test/Order/Types/LineItemReferenceTest.php | 33 + test/Order/Types/LineItemTest.php | 33 + test/Order/Types/LineItem_0Test.php | 33 + .../Types/PaymentInstrumentReferenceTest.php | 33 + test/Order/Types/PaymentInstrumentTest.php | 33 + test/Order/Types/PaymentMethodBrandTest.php | 33 + test/Order/Types/PaymentMethodMessageTest.php | 33 + test/Order/Types/PaymentMethodTest.php | 33 + .../Types/PlaceGuestOrderRestRequestTest.php | 33 + .../Types/PlaceGuestOrderRestResponseTest.php | 33 + .../Order/Types/PlaceOrderRestRequestTest.php | 33 + .../Types/PlaceOrderRestResponseTest.php | 33 + test/Order/Types/PricingSummaryTest.php | 33 + test/Order/Types/PricingSummary_0Test.php | 33 + test/Order/Types/PromotionTest.php | 33 + .../Types/ProvidedPaymentInstrumentTest.php | 33 + test/Order/Types/PurchaseOrderSummaryTest.php | 33 + test/Order/Types/PurchaseOrderTest.php | 33 + test/Order/Types/SellerTest.php | 33 + test/Order/Types/ShippingAddressImplTest.php | 33 + test/Order/Types/ShippingAddressTest.php | 33 + test/Order/Types/ShippingAddress_0Test.php | 33 + test/Order/Types/ShippingDetailTest.php | 33 + test/Order/Types/ShippingFulfillmentTest.php | 33 + test/Order/Types/ShippingOptionTest.php | 33 + ...teGuestLineItemQuantityRestRequestTest.php | 33 + ...eGuestLineItemQuantityRestResponseTest.php | 33 + ...LineItemShippingAddressRestRequestTest.php | 33 + ...ineItemShippingAddressRestResponseTest.php | 33 + .../UpdateGuestPaymentInfoRestRequestTest.php | 33 + ...UpdateGuestPaymentInfoRestResponseTest.php | 33 + ...dateGuestShippingOptionRestRequestTest.php | 33 + ...ateGuestShippingOptionRestResponseTest.php | 33 + .../UpdatePaymentInfoRestRequestTest.php | 33 + .../UpdatePaymentInfoRestResponseTest.php | 33 + .../Types/UpdatePaymentInformationTest.php | 33 + ...dateQuantityForLineItemRestRequestTest.php | 33 + ...ateQuantityForLineItemRestResponseTest.php | 33 + test/Order/Types/UpdateQuantityTest.php | 33 + .../UpdateShippingAddressRestRequestTest.php | 33 + .../UpdateShippingAddressRestResponseTest.php | 33 + .../UpdateShippingOptionRestRequestTest.php | 33 + .../UpdateShippingOptionRestResponseTest.php | 33 + test/Order/Types/UpdateShippingOptionTest.php | 33 + test/Parser/XmlTest.php | 22 +- .../Enums/ActivityOptionEnumTest.php | 28 + test/PostOrder/Enums/AddressTypeEnumTest.php | 28 + .../Enums/AppealCloseReasonEnumTest.php | 28 + .../Enums/AppealGrantStatusEnumTest.php | 28 + test/PostOrder/Enums/AppealStatusEnumTest.php | 28 + .../Enums/BuyerCloseReasonEnumTest.php | 28 + .../Enums/BuyerCloseReturnReasonEnumTest.php | 28 + .../Enums/CancelActivityTypeEnumTest.php | 28 + .../Enums/CancelCloseReasonEnumTest.php | 28 + test/PostOrder/Enums/CancelReasonEnumTest.php | 28 + .../Enums/CancelSortTypeEnumTest.php | 28 + test/PostOrder/Enums/CancelStateEnumTest.php | 28 + test/PostOrder/Enums/CancelStatusEnumTest.php | 28 + .../Enums/CaseCloseReasonEnumTest.php | 28 + .../Enums/CaseSearchFieldGroupEnumTest.php | 28 + test/PostOrder/Enums/CaseStatusEnumTest.php | 28 + test/PostOrder/Enums/CaseTypeEnumTest.php | 28 + .../Enums/CloseReturnReasonEnumTest.php | 28 + test/PostOrder/Enums/CountryCodeEnumTest.php | 28 + test/PostOrder/Enums/CurrencyCodeEnumTest.php | 28 + test/PostOrder/Enums/DecisionEnumTest.php | 28 + .../Enums/DesiredOutcomeTypeEnumTest.php | 28 + .../DispositionRuleTemplateTypeEnumTest.php | 28 + .../Enums/EligibilityCheckTypeEnumTest.php | 28 + .../EligibilityFailureReasonEnumTest.php | 28 + .../Enums/EscalateReasonEnumTest.php | 28 + test/PostOrder/Enums/FileFormatEnumTest.php | 28 + test/PostOrder/Enums/FilePurposeEnumTest.php | 28 + test/PostOrder/Enums/FileStatusEnumTest.php | 28 + .../Enums/GetReturnFieldGroupEnumTest.php | 28 + .../InquiryEligibilityStatusEnumTest.php | 28 + .../Enums/InquiryEscalationReasonEnumTest.php | 28 + .../Enums/InquirySearchFieldGroupEnumTest.php | 28 + test/PostOrder/Enums/InquiryStateEnumTest.php | 28 + .../PostOrder/Enums/InquiryStatusEnumTest.php | 28 + test/PostOrder/Enums/LabelActionEnumTest.php | 28 + .../Enums/LabelPrintStatusEnumTest.php | 28 + test/PostOrder/Enums/LanguageEnumTest.php | 28 + .../Enums/LanguageScriptEnumTest.php | 28 + .../PostOrder/Enums/MarketplaceIdEnumTest.php | 28 + .../Enums/MoneyMovementStatusEnumTest.php | 28 + .../Enums/MoneyMovementTypeEnumTest.php | 28 + .../NoSellerUploadLabelReasonEnumTest.php | 28 + test/PostOrder/Enums/OrderTypeEnumTest.php | 28 + test/PostOrder/Enums/PartyEnumTest.php | 28 + .../Enums/PaymentDenialReasonEnumTest.php | 28 + .../Enums/PaymentProviderEnumTest.php | 28 + .../PostOrder/Enums/PaymentStatusEnumTest.php | 28 + .../PostOrder/Enums/RefundFeeTypeEnumTest.php | 28 + .../Enums/RefundPaymentTypeEnumTest.php | 28 + test/PostOrder/Enums/RefundStatusEnumTest.php | 28 + test/PostOrder/Enums/RequestTypeEnumTest.php | 28 + .../Enums/ReturnCountFilterEnumTest.php | 28 + .../Enums/ReturnHoldStatusEnumTest.php | 28 + .../Enums/ReturnMetadataKeyEnumTest.php | 28 + test/PostOrder/Enums/ReturnReasonEnumTest.php | 28 + .../Enums/ReturnRefundInitiatorEnumTest.php | 28 + test/PostOrder/Enums/ReturnSortEnumTest.php | 28 + test/PostOrder/Enums/ReturnStateEnumTest.php | 28 + test/PostOrder/Enums/ReturnStatusEnumTest.php | 28 + test/PostOrder/Enums/ReturnTypeEnumTest.php | 28 + .../Enums/ReturnUserRoleEnumTest.php | 28 + .../Enums/RuleListFieldGroupEnumTest.php | 28 + .../Enums/ShippingCarrierEnumTest.php | 28 + .../Enums/ShippingMethodEnumTest.php | 28 + .../Enums/TrackingStatusEnumTest.php | 28 + test/PostOrder/Enums/UserPartyEnumTest.php | 28 + test/PostOrder/Enums/WorldRegionEnumTest.php | 28 + test/PostOrder/Mocks/Service.php | 27 + test/PostOrder/Services/ServiceTest.php | 68 + test/PostOrder/Types/ActionDeadlinesTest.php | 33 + .../Types/ActualRefundDetailTypeTest.php | 33 + .../AddShippingLabelInfoRestRequestTest.php | 33 + .../AddShippingLabelInfoRestResponseTest.php | 33 + test/PostOrder/Types/AddressTest.php | 33 + test/PostOrder/Types/AmountTest.php | 33 + .../AppealCaseDecisionRestRequestTest.php | 33 + .../AppealCaseDecisionRestResponseTest.php | 33 + test/PostOrder/Types/AppealDetailsTest.php | 33 + test/PostOrder/Types/AppealRequestTest.php | 33 + ...roveCancellationRequestRestRequestTest.php | 33 + ...oveCancellationRequestRestResponseTest.php | 33 + .../Types/AvailableOptionTypeTest.php | 33 + .../Types/BuyerCloseCaseRequestTest.php | 33 + .../Types/BuyerCloseInquiryRequestTest.php | 33 + .../Types/CancelActivityHistoryTest.php | 33 + test/PostOrder/Types/CancelDetailTest.php | 33 + .../CancelReturnRequestRestRequestTest.php | 33 + .../CancelReturnRequestRestResponseTest.php | 33 + test/PostOrder/Types/CancelSortFieldTest.php | 33 + test/PostOrder/Types/CancelSummaryTest.php | 33 + .../Types/CarrierShippingCostInfoTypeTest.php | 33 + .../Types/CaseDetailsResponseTest.php | 33 + test/PostOrder/Types/CaseDetailsTest.php | 33 + .../Types/CaseSearchResponseTest.php | 33 + test/PostOrder/Types/CaseStatusFilterTest.php | 33 + test/PostOrder/Types/CaseSummaryTypeTest.php | 33 + .../Types/CaseVoluntaryRefundRequestTest.php | 33 + ...CancellationEligibilityRestRequestTest.php | 33 + ...ancellationEligibilityRestResponseTest.php | 33 + .../Types/CheckEligibilityRequestTest.php | 33 + .../Types/CheckEligibilityResponseTest.php | 33 + .../CheckInquiryEligibilityRequestTest.php | 33 + .../CheckInquiryEligibilityResponseTest.php | 33 + ...CheckInquiryEligibilityRestRequestTest.php | 33 + ...heckInquiryEligibilityRestResponseTest.php | 33 + ...CheckLabelPrintEligibilityResponseTest.php | 33 + .../CheckReturnEligibilityRestRequestTest.php | 33 + ...CheckReturnEligibilityRestResponseTest.php | 33 + ...hippingLabelEligibilityRestRequestTest.php | 33 + ...ippingLabelEligibilityRestResponseTest.php | 33 + .../Types/ClaimHistoryEventModelTest.php | 33 + .../Types/ClaimHistoryResponseTest.php | 33 + .../Types/CloseCaseRestRequestTest.php | 33 + .../Types/CloseCaseRestResponseTest.php | 33 + .../Types/CloseInquiryRestRequestTest.php | 33 + .../Types/CloseInquiryRestResponseTest.php | 33 + .../Types/CloseReturnRequestTest.php | 33 + .../Types/ConditionDataRangeTypeTest.php | 33 + .../Types/ConditionListDetailTypeTest.php | 33 + ...nfirmCancellationRefundRestRequestTest.php | 33 + ...firmCancellationRefundRestResponseTest.php | 33 + .../ConfirmInquiryRefundRestRequestTest.php | 33 + .../ConfirmInquiryRefundRestResponseTest.php | 33 + .../Types/ConfirmRefundRequestTest.php | 33 + test/PostOrder/Types/CountSummaryTypeTest.php | 33 + .../Types/CreateCancelRequestTest.php | 33 + .../Types/CreateCancelResponseTest.php | 33 + .../Types/CreateCustomListRequestTest.php | 33 + .../Types/CreateCustomListResponseTest.php | 33 + .../Types/CreateCustomListRestRequestTest.php | 33 + .../CreateCustomListRestResponseTest.php | 33 + .../CreateDispositionRuleRequestTest.php | 33 + .../CreateDispositionRuleResponseTest.php | 33 + .../Types/CreateInquiryRequestTest.php | 33 + .../Types/CreateInquiryRestRequestTest.php | 33 + .../Types/CreateInquiryRestResponseTest.php | 33 + .../CreateReturnDraftRestRequestTest.php | 33 + .../CreateReturnDraftRestResponseTest.php | 33 + .../CreateReturnRequestRestRequestTest.php | 33 + .../CreateReturnRequestRestResponseTest.php | 33 + .../Types/CreateReturnRequestTest.php | 33 + .../Types/CreateReturnResponseTest.php | 33 + .../CreateReturnRulesRestRequestTest.php | 33 + .../CreateReturnRulesRestResponseTest.php | 33 + ...eateReturnShippingLabelRestRequestTest.php | 33 + ...ateReturnShippingLabelRestResponseTest.php | 33 + .../Types/CustomListDataTypeTest.php | 33 + .../Types/CustomListDetailTypeTest.php | 33 + .../Types/CustomListModificationTypeTest.php | 33 + test/PostOrder/Types/CustomListTypeTest.php | 33 + test/PostOrder/Types/DateTimeTest.php | 33 + .../Types/DecideReturnRequestTest.php | 33 + .../Types/DecideReturnResponseTest.php | 33 + .../DeleteReturnDraftFileRestRequestTest.php | 33 + .../DeleteReturnDraftFileRestResponseTest.php | 33 + .../Types/DeleteReturnFileRestRequestTest.php | 33 + .../DeleteReturnFileRestResponseTest.php | 33 + .../Types/DispositionRuleDetailTypeTest.php | 33 + .../Types/EligibilityErrorTypeTest.php | 33 + .../Types/EligibilityResponseErrorTest.php | 33 + .../Types/EligibilityResultTypeTest.php | 33 + test/PostOrder/Types/ErrorDetailV3Test.php | 33 + test/PostOrder/Types/ErrorMessageTest.php | 33 + test/PostOrder/Types/ErrorParameterTest.php | 33 + test/PostOrder/Types/ErrorParameterV3Test.php | 33 + test/PostOrder/Types/ErrorTest.php | 33 + .../Types/EscalateInquiryRequestTest.php | 33 + .../Types/EscalateInquiryRestRequestTest.php | 33 + .../Types/EscalateInquiryRestResponseTest.php | 33 + test/PostOrder/Types/EscalateRequestTest.php | 33 + test/PostOrder/Types/EscalateResponseTest.php | 33 + .../Types/EscalateReturnRestRequestTest.php | 33 + .../Types/EscalateReturnRestResponseTest.php | 33 + .../Types/EscalationEligibilityInfoTest.php | 33 + .../Types/EscalationInfoTypeTest.php | 33 + .../Types/EstimatedRefundDetailTypeTest.php | 33 + .../Types/EstimatedRefundInfoTypeTest.php | 33 + .../Types/EstimatedRefundTypeTest.php | 33 + .../Types/EstimatedShippingInfoTypeTest.php | 33 + .../Types/FindCancelResponseTest.php | 33 + .../Types/GetCancelDetailResponseTest.php | 33 + .../Types/GetCancelFieldGroupTest.php | 33 + .../Types/GetCancellationRestRequestTest.php | 33 + .../Types/GetCancellationRestResponseTest.php | 33 + .../Types/GetCaseRestRequestTest.php | 33 + .../Types/GetCaseRestResponseTest.php | 33 + .../Types/GetCustomListDetailResponseTest.php | 33 + .../Types/GetCustomListRestResponseTest.php | 33 + .../Types/GetCustomListsResponseTest.php | 33 + .../Types/GetCustomListsRestResponseTest.php | 33 + .../PostOrder/Types/GetDetailResponseTest.php | 33 + .../GetDispositionRuleDetailResponseTest.php | 33 + ...etDispositionRuleTemplatesResponseTest.php | 33 + ...DispositionRuleTriggerHistResponseTest.php | 33 + .../Types/GetDispositionRulesResponseTest.php | 33 + .../Types/GetEstimateRequestTest.php | 33 + .../Types/GetEstimateResponseTest.php | 33 + test/PostOrder/Types/GetFileResponseTest.php | 33 + .../Types/GetInquiryRestRequestTest.php | 33 + .../Types/GetInquiryRestResponseTest.php | 33 + .../Types/GetMetadataResponseTest.php | 33 + .../GetReturnCreationSessionResponseTest.php | 33 + .../GetReturnDraftFilesRestRequestTest.php | 33 + .../GetReturnDraftFilesRestResponseTest.php | 33 + .../Types/GetReturnDraftRestRequestTest.php | 33 + .../Types/GetReturnDraftRestResponseTest.php | 33 + .../GetReturnEstimateRestRequestTest.php | 33 + .../GetReturnEstimateRestResponseTest.php | 33 + .../Types/GetReturnFilesRestRequestTest.php | 33 + .../Types/GetReturnFilesRestResponseTest.php | 33 + .../GetReturnMetadataRestRequestTest.php | 33 + .../GetReturnMetadataRestResponseTest.php | 33 + .../GetReturnPreferencesRestResponseTest.php | 33 + .../Types/GetReturnRestRequestTest.php | 33 + .../Types/GetReturnRestResponseTest.php | 33 + .../GetReturnRuleHistoryRestRequestTest.php | 33 + .../GetReturnRuleHistoryRestResponseTest.php | 33 + .../Types/GetReturnRuleRestRequestTest.php | 33 + .../Types/GetReturnRuleRestResponseTest.php | 33 + ...GetReturnRuleTemplatesRestResponseTest.php | 33 + .../Types/GetReturnRulesRestRequestTest.php | 33 + .../Types/GetReturnRulesRestResponseTest.php | 33 + .../GetReturnShippingLabelRestRequestTest.php | 33 + ...GetReturnShippingLabelRestResponseTest.php | 33 + .../GetSellerReturnPreferenceResponseTest.php | 33 + .../GetShipmentTrackingRestRequestTest.php | 33 + .../GetShipmentTrackingRestResponseTest.php | 33 + .../Types/GetShippingLabelResponseTest.php | 33 + .../GetStoreCategoriesRestResponseTest.php | 33 + .../Types/GetStoreCategoryResponseTest.php | 33 + .../Types/GetSummaryResponseTest.php | 33 + .../Types/GetTrackingHistoryResponseTest.php | 33 + .../InitiateShippingLabelResponseTest.php | 33 + .../Types/InquiryDetailsResponseTest.php | 33 + test/PostOrder/Types/InquiryDetailsTest.php | 33 + .../Types/InquirySearchResponseTest.php | 33 + .../Types/InquiryStatusFilterTest.php | 33 + .../Types/InquirySummaryTypeTest.php | 33 + .../InquiryVoluntaryRefundRequestTest.php | 33 + .../Types/IssueCaseRefundRestRequestTest.php | 33 + .../Types/IssueCaseRefundRestResponseTest.php | 33 + .../IssueInquiryRefundRestRequestTest.php | 33 + .../IssueInquiryRefundRestResponseTest.php | 33 + .../Types/IssueRefundRequestTest.php | 33 + .../Types/IssueRefundResponseTest.php | 33 + .../IssueReturnRefundRestRequestTest.php | 33 + .../IssueReturnRefundRestResponseTest.php | 33 + test/PostOrder/Types/ItemDetailTypeTest.php | 33 + test/PostOrder/Types/ItemDetailsTest.php | 33 + .../Types/ItemEligibilityResultTest.php | 33 + .../Types/ItemizedRefundDetailTypeTest.php | 33 + .../ItemizedReturnShippingCostTypeTest.php | 33 + test/PostOrder/Types/ListDataTypeTest.php | 33 + .../Types/MarkAsReceivedRequestTest.php | 33 + .../Types/MarkAsShippedRequestTest.php | 33 + .../Types/MarkRefundSentRequestTest.php | 33 + .../MarkReturnReceivedRestRequestTest.php | 33 + .../MarkReturnReceivedRestResponseTest.php | 33 + ...arkReturnRefundReceivedRestRequestTest.php | 33 + ...rkReturnRefundReceivedRestResponseTest.php | 33 + .../MarkReturnRefundSentRestRequestTest.php | 33 + .../MarkReturnRefundSentRestResponseTest.php | 33 + .../MarkReturnShippedRestRequestTest.php | 33 + .../MarkReturnShippedRestResponseTest.php | 33 + .../Types/ModifyCustomListRequestTest.php | 33 + .../Types/ModifyCustomListResponseTest.php | 33 + .../ModifyDispositionRuleRequestTest.php | 33 + .../Types/MoneyMovementDetailTypeTest.php | 33 + .../Types/MoneyMovementEntriesTest.php | 33 + .../Types/MoneyMovementEntryTest.php | 33 + test/PostOrder/Types/MoneyMovementRefTest.php | 33 + .../Types/OrderCancelLineItemTest.php | 33 + .../Types/OrderEligibilityCheckInfoTest.php | 33 + .../Types/OrderEligibilityResultTest.php | 33 + test/PostOrder/Types/PaginationOutputTest.php | 33 + test/PostOrder/Types/PriorityListTypeTest.php | 33 + .../ProcessReturnRequestRestRequestTest.php | 33 + .../ProcessReturnRequestRestResponseTest.php | 33 + ...rovideInquiryRefundInfoRestRequestTest.php | 33 + ...ovideInquiryRefundInfoRestResponseTest.php | 33 + ...videInquiryShipmentInfoRestRequestTest.php | 33 + ...ideInquiryShipmentInfoRestResponseTest.php | 33 + .../Types/ProvideLabelRequestTest.php | 33 + .../Types/ProvideLabelResponseTest.php | 33 + ...ovideReturnShipmentInfoRestRequestTest.php | 33 + ...videReturnShipmentInfoRestResponseTest.php | 33 + .../Types/ProvideShipmentInfoRequestTest.php | 33 + .../ProvidesReturnAddressRestRequestTest.php | 33 + .../ProvidesReturnAddressRestResponseTest.php | 33 + test/PostOrder/Types/RefundAmountsTest.php | 33 + test/PostOrder/Types/RefundDetailTypeTest.php | 33 + test/PostOrder/Types/RefundInfoTypeTest.php | 33 + test/PostOrder/Types/RefundTypeTest.php | 33 + .../Types/RejectCancelRequestTest.php | 33 + ...jectCancellationRequestRestRequestTest.php | 33 + ...ectCancellationRequestRestResponseTest.php | 33 + .../ResponseHistoryAttributesTypeTest.php | 33 + .../Types/ReturnAddressRequestTest.php | 33 + test/PostOrder/Types/ReturnAddressTest.php | 33 + .../PostOrder/Types/ReturnAddressTypeTest.php | 33 + .../Types/ReturnCloseInfoTypeTest.php | 33 + .../Types/ReturnCreationInfoTypeTest.php | 33 + test/PostOrder/Types/ReturnDetailTypeTest.php | 33 + .../ReturnEligibilityErrorDetailTypeTest.php | 33 + ...nEligibilityItemPerCheckTypeResultTest.php | 33 + .../Types/ReturnEligibilityItemTypeTest.php | 33 + .../ReturnEligibilityPerItemTypeTest.php | 33 + test/PostOrder/Types/ReturnFileTypeTest.php | 33 + .../Types/ReturnHoldInfoTypeTest.php | 33 + test/PostOrder/Types/ReturnItemTypeTest.php | 33 + .../Types/ReturnMetadataTypeTest.php | 33 + test/PostOrder/Types/ReturnPolicyTypeTest.php | 33 + .../PostOrder/Types/ReturnRequestTypeTest.php | 33 + .../Types/ReturnResponseDueTypeTest.php | 33 + .../Types/ReturnResponseHistoryTypeTest.php | 33 + .../ReturnShippingCostDetailTypeTest.php | 33 + .../Types/ReturnShippingCostTypeTest.php | 33 + test/PostOrder/Types/ReturnSortFieldTest.php | 33 + .../PostOrder/Types/ReturnSummaryTypeTest.php | 33 + .../Types/RuleActionDataDetailTypeTest.php | 33 + .../Types/RuleActionDataTypeTest.php | 33 + .../Types/RuleActionDetailTypeTest.php | 33 + .../Types/RuleActionInputTypeTest.php | 33 + .../Types/RuleConditionDetailTypeTest.php | 33 + .../Types/RuleConditionInputTypeTest.php | 33 + .../Types/RuleDetailInputTypeTest.php | 33 + test/PostOrder/Types/RuleDetailTypeTest.php | 33 + .../Types/RuleModificationTypeTest.php | 33 + test/PostOrder/Types/RuleSummaryTypeTest.php | 33 + .../Types/RuleTemplateDetailTypeTest.php | 33 + .../Types/RuleTriggerHistDetailTypeTest.php | 33 + test/PostOrder/Types/ScanDetailTypeTest.php | 33 + .../SearchCancellationsRestRequestTest.php | 33 + .../SearchCancellationsRestResponseTest.php | 33 + .../Types/SearchCasesRestRequestTest.php | 33 + .../Types/SearchCasesRestResponseTest.php | 33 + .../Types/SearchInquiriesRestRequestTest.php | 33 + .../Types/SearchInquiriesRestResponseTest.php | 33 + .../Types/SearchReturnsRestRequestTest.php | 33 + .../Types/SearchReturnsRestResponseTest.php | 33 + .../SellerProvideRefundInfoRequestTest.php | 33 + .../SendInquiryMessageRestRequestTest.php | 33 + .../SendInquiryMessageRestResponseTest.php | 33 + .../Types/SendMessageRequestTest.php | 33 + .../SendReturnMessageRestRequestTest.php | 33 + .../SendReturnMessageRestResponseTest.php | 33 + ...SendReturnShippingLabelRestRequestTest.php | 33 + ...endReturnShippingLabelRestResponseTest.php | 33 + .../Types/SendShippingLabelResponseTest.php | 33 + .../SetReturnCreationSessionRequestTest.php | 33 + .../SetReturnCreationSessionResponseTest.php | 33 + .../SetReturnPreferencesRestRequestTest.php | 33 + .../SetReturnPreferencesRestResponseTest.php | 33 + .../SetSellerReturnPreferenceRequestTest.php | 33 + .../Types/ShipmentInfoRequestTest.php | 33 + .../Types/ShipmentTrackingDetailTypeTest.php | 33 + .../Types/ShipmentTrackingTypeTest.php | 33 + test/PostOrder/Types/ShipmentTypeTest.php | 33 + test/PostOrder/Types/StatusTypeTest.php | 33 + .../PostOrder/Types/StoreCategoryTypeTest.php | 33 + ...bmitCancellationRequestRestRequestTest.php | 33 + ...mitCancellationRequestRestResponseTest.php | 33 + .../PostOrder/Types/SubmitFileRequestTest.php | 33 + .../Types/SubmitFileResponseTest.php | 33 + .../Types/SubmitReturnFileRestRequestTest.php | 33 + .../SubmitReturnFileRestResponseTest.php | 33 + test/PostOrder/Types/TextTest.php | 33 + .../Types/TotalRefundAmountTypeTest.php | 33 + .../Types/UpdateCustomListRestRequestTest.php | 33 + .../UpdateCustomListRestResponseTest.php | 33 + .../UpdateReturnDraftRestRequestTest.php | 33 + .../UpdateReturnDraftRestResponseTest.php | 33 + .../UpdateReturnRulesRestRequestTest.php | 33 + .../UpdateReturnRulesRestResponseTest.php | 33 + .../UpdateShipmentTrackingRestRequestTest.php | 33 + ...UpdateShipmentTrackingRestResponseTest.php | 33 + .../Types/UpdateTrackingRequestTest.php | 33 + .../PostOrder/Types/UploadFileRequestTest.php | 33 + .../Types/UploadFileResponseTest.php | 33 + .../UploadReturnDraftFileRestRequestTest.php | 33 + .../UploadReturnDraftFileRestResponseTest.php | 33 + .../Types/UploadReturnFileRestRequestTest.php | 33 + .../UploadReturnFileRestResponseTest.php | 33 + test/PostOrder/Types/VoidLabelRequestTest.php | 33 + .../VoidShippingLabelRestRequestTest.php | 33 + .../VoidShippingLabelRestResponseTest.php | 33 + .../Types/VoluntaryRefundResponseTest.php | 33 + .../Types/VoluntaryRefundResultTest.php | 33 + test/Product/Enums/AckValueTest.php | 28 + test/Product/Enums/ErrorCategoryTest.php | 28 + test/Product/Enums/ErrorSeverityTest.php | 28 + test/Product/Enums/MediaTypeTest.php | 28 + test/Product/Enums/OrderTypeTest.php | 28 + test/Product/Enums/OutputSelectorTest.php | 28 + .../Enums/ProductSubmissionStatusCodeTest.php | 28 + test/Product/Enums/SortPriorityTest.php | 28 + test/Product/Enums/SortTypeTest.php | 28 + test/Product/Mocks/Service.php | 21 + test/Product/Services/ServiceTest.php | 71 + test/Product/Types/AddProductResponseTest.php | 33 + test/Product/Types/AddProductsRequestTest.php | 33 + .../Product/Types/AddProductsResponseTest.php | 33 + test/Product/Types/BaseServiceRequestTest.php | 33 + .../Product/Types/BaseServiceResponseTest.php | 33 + .../Types/CompatibilityDetailsTest.php | 33 + .../Types/CompatibilityPropertyFilterTest.php | 33 + test/Product/Types/CompatibilitySortTest.php | 33 + test/Product/Types/ErrorDataTest.php | 33 + test/Product/Types/ErrorMessageTest.php | 33 + test/Product/Types/ErrorParameterTest.php | 33 + ...patibilitiesBySpecificationRequestTest.php | 33 + ...atibilitiesBySpecificationResponseTest.php | 33 + ...FindProductsByCompatibilityRequestTest.php | 33 + .../Product/Types/FindProductsRequestTest.php | 33 + .../Types/FindProductsResponseTest.php | 33 + .../GetProductCompatibilitiesRequestTest.php | 33 + .../GetProductCompatiblitiesResponseTest.php | 33 + .../Types/GetProductDetailsRequestTest.php | 33 + .../Types/GetProductDetailsResponseTest.php | 33 + .../GetProductSubmissionsRequestTest.php | 33 + .../GetProductSubmissionsResponseTest.php | 33 + test/Product/Types/MediaIdentifierTest.php | 33 + test/Product/Types/MediaTest.php | 33 + test/Product/Types/NotesTest.php | 33 + test/Product/Types/NumericValueTest.php | 33 + test/Product/Types/PaginationInputTest.php | 33 + test/Product/Types/PaginationOutputTest.php | 33 + .../ProductByCompatibilityRequestTest.php | 33 + .../Types/ProductDetailsRequestTypeTest.php | 33 + test/Product/Types/ProductIdentifierTest.php | 33 + test/Product/Types/ProductRequestTest.php | 33 + test/Product/Types/ProductResponseTest.php | 33 + test/Product/Types/ProductStatusTest.php | 33 + .../Types/ProductSubmissionFilterTest.php | 33 + .../Types/ProductSubmissionResultTest.php | 33 + .../Types/ProductSubmissionStatusTest.php | 33 + test/Product/Types/ProductSubmissionTest.php | 33 + test/Product/Types/ProductTest.php | 33 + test/Product/Types/PropertyValueTest.php | 33 + test/Product/Types/SortOptionTest.php | 33 + test/Product/Types/SortOrderTest.php | 33 + test/Product/Types/StockPhotoURLTest.php | 33 + test/Product/Types/StringValueTest.php | 33 + test/Product/Types/URIValueTest.php | 33 + test/Product/Types/ValueTest.php | 33 + test/ProductMetadata/Enums/AckValueTest.php | 28 + .../Enums/DatasetValueTest.php | 28 + .../Enums/ErrorCategoryTest.php | 28 + .../Enums/ErrorSeverityTest.php | 28 + test/ProductMetadata/Enums/OrderTypeTest.php | 28 + test/ProductMetadata/Mocks/Service.php | 21 + test/ProductMetadata/Services/ServiceTest.php | 71 + .../ProductMetadata/Types/BaseRequestTest.php | 33 + .../Types/BaseResponseTest.php | 33 + .../Types/BaseServiceRequestTest.php | 33 + .../Types/BaseServiceResponseTest.php | 33 + test/ProductMetadata/Types/ErrorDataTest.php | 33 + .../Types/ErrorMessageTest.php | 33 + .../Types/ErrorParameterTest.php | 33 + .../Types/ExtensionTypeTest.php | 33 + ...patibilitySearchDataVersionRequestTest.php | 33 + ...atibilitySearchDataVersionResponseTest.php | 33 + ...GetCompatibilitySearchNamesRequestTest.php | 33 + ...etCompatibilitySearchNamesResponseTest.php | 33 + ...mpatibilitySearchValuesBulkRequestTest.php | 33 + ...patibilitySearchValuesBulkResponseTest.php | 33 + ...etCompatibilitySearchValuesRequestTest.php | 33 + ...tCompatibilitySearchValuesResponseTest.php | 33 + ...GetProductSearchDataVersionRequestTest.php | 33 + ...etProductSearchDataVersionResponseTest.php | 33 + .../GetProductSearchNamesRequestTest.php | 33 + .../GetProductSearchNamesResponseTest.php | 33 + .../GetProductSearchValuesBaseRequestTest.php | 33 + .../GetProductSearchValuesBulkRequestTest.php | 33 + ...GetProductSearchValuesBulkResponseTest.php | 33 + .../GetProductSearchValuesRequestTest.php | 33 + .../GetProductSearchValuesResponseTest.php | 33 + .../Types/GroupPropertiesTest.php | 33 + .../Types/GroupPropertyTest.php | 33 + .../MediaTypeSpecificInformationTest.php | 33 + .../NumericTypeSpecificInformationTest.php | 33 + .../Types/NumericValueTest.php | 33 + .../Types/ProductMetadataBulkRequestTest.php | 33 + .../Types/ProductMetadataBulkResponseTest.php | 33 + .../Types/ProductMetadataRequestTest.php | 33 + .../Types/ProductMetadataResponseTest.php | 33 + .../Types/ProductMetadataTest.php | 33 + test/ProductMetadata/Types/PropertiesTest.php | 33 + .../Types/PropertyMetadataTest.php | 33 + .../Types/PropertyNameMetadataTest.php | 33 + .../Types/PropertyNameValueTest.php | 33 + test/ProductMetadata/Types/PropertyTest.php | 33 + .../Types/PropertyValueTest.php | 33 + test/ProductMetadata/Types/SortOrderTest.php | 33 + .../StringTypeSpecificInformationTest.php | 33 + .../ProductMetadata/Types/StringValueTest.php | 33 + test/ProductMetadata/Types/TagTest.php | 33 + .../Types/TypeSpecificInformationTest.php | 33 + .../Types/URITypeSpecificInformationTest.php | 33 + test/ProductMetadata/Types/URIValueTest.php | 33 + test/ProductMetadata/Types/ValueTest.php | 33 + .../Types/VersionDetailsTest.php | 33 + .../Enums/AckValueTest.php | 28 + .../Enums/BundleDetailEnumTest.php | 28 + .../Enums/BundleStatusEnumTest.php | 28 + .../Enums/DiscountTypeEnumTest.php | 28 + .../Enums/ErrorCategoryTest.php | 28 + .../Enums/ErrorSeverityTest.php | 28 + test/RelatedItemsManagement/Mocks/Service.php | 21 + .../Services/ServiceTest.php | 79 + .../Types/AmountTest.php | 33 + .../Types/BaseRequestTest.php | 33 + .../Types/BaseResponseTest.php | 33 + .../Types/BundleFilterTest.php | 33 + .../Types/BundleStatusMapTest.php | 33 + .../Types/BundleStatusTest.php | 33 + .../Types/BundleTest.php | 33 + .../Types/CreateBundlesRequestTest.php | 33 + .../Types/CreateBundlesResponseTest.php | 33 + .../Types/DeleteBundlesRequestTest.php | 33 + .../Types/DeleteBundlesResponseTest.php | 33 + .../Types/DiscountTest.php | 33 + .../Types/ErrorDataTest.php | 33 + .../Types/ErrorMessageTest.php | 33 + .../Types/ErrorParameterTest.php | 33 + .../Types/ExtensionTypeTest.php | 33 + .../Types/FindBundlesRequestTest.php | 33 + .../Types/FindBundlesResponseTest.php | 33 + .../Types/GetBundlesRequestTest.php | 33 + .../Types/GetBundlesResponseTest.php | 33 + .../Types/GetVersionRequestTest.php | 33 + .../Types/GetVersionResponseTest.php | 33 + .../Types/RelatedProductGroupTest.php | 33 + .../Types/RelatedProductTest.php | 33 + .../Types/UpdateBundleStatusRequestTest.php | 33 + .../Types/UpdateBundleStatusResponseTest.php | 33 + .../Types/UpdateBundlesRequestTest.php | 33 + .../Types/UpdateBundlesResponseTest.php | 33 + .../Enums/AckValueTest.php | 7 +- .../Enums/AppealDecisionTypeTest.php | 7 +- .../Enums/AppealReasonTypeTest.php | 7 +- .../BuyerINREscalationReasonTypeTest.php | 7 +- .../BuyerSNADEscalationReasonTypeTest.php | 7 +- .../CancelTransactionCaseStatusTypeTest.php | 7 +- .../Enums/CaseDecisionTypeTest.php | 7 +- .../Enums/CaseSortOrderTypeTest.php | 7 +- .../Enums/CaseStatusInputTypeTest.php | 7 +- .../Enums/CaseTypeTest.php | 7 +- .../Enums/CaseUserRoleTypeTest.php | 7 +- .../Enums/EBPINRCaseStatusTypeTest.php | 7 +- .../Enums/EBPSNADCaseStatusTypeTest.php | 7 +- .../Enums/ErrorCategoryTest.php | 7 +- .../Enums/ErrorSeverityTest.php | 7 +- .../Enums/INRCaseStatusTypeTest.php | 7 +- .../Enums/IsoCurrencyCodeTest.php | 7 +- .../Enums/MoneyMovementStatusTypeTest.php | 7 +- .../Enums/MoneyMovementTypeTest.php | 7 +- .../Enums/NotificationEventNameTypeTest.php | 7 +- .../Enums/PaymentMethodTypeTest.php | 7 +- .../Enums/PaypalINRCaseStatusTypeTest.php | 7 +- .../Enums/PaypalSNADCaseStatusTypeTest.php | 7 +- .../Enums/ProofTypeTest.php | 7 +- .../Enums/RefundStatusTypeTest.php | 7 +- .../Enums/ReturnCaseStatusTypeTest.php | 7 +- .../Enums/SNADCaseStatusTypeTest.php | 7 +- .../SellerINREscalationReasonTypeTest.php | 7 +- .../SellerSNADEscalationReasonTypeTest.php | 7 +- .../Enums/UPICaseStatusTypeTest.php | 7 +- .../Types/ActivityDetailTypeTest.php | 7 +- .../Types/ActivityOptionListTypeTest.php | 7 +- .../Types/AddressTest.php | 7 +- .../Types/AmountTest.php | 7 +- .../Types/AppealRefTest.php | 33 + .../AppealToCustomerSupportOptionTypeTest.php | 7 +- .../AppealToCustomerSupportRequestTest.php | 7 +- .../AppealToCustomerSupportResponseTest.php | 7 +- .../Types/AppealTypeTest.php | 7 +- .../Types/BaseActivityOptionTypeTest.php | 7 +- .../Types/BaseRequestTest.php | 7 +- .../Types/BaseResponseTest.php | 7 +- .../Types/CaseArrayTypeTest.php | 7 +- .../Types/CaseIdTypeTest.php | 7 +- .../Types/CaseStatusFilterTypeTest.php | 7 +- .../Types/CaseStatusTypeTest.php | 7 +- .../Types/CaseSummaryTypeTest.php | 7 +- .../Types/CaseTypeFilterTypeTest.php | 7 +- .../Types/CaseUserTypeTest.php | 7 +- .../ContactCustomerSupportOptionTypeTest.php | 7 +- .../Types/DateRangeFilterTypeTest.php | 7 +- .../Types/DecisionReasonDetailTypeTest.php | 7 +- .../Types/DetailStatusInfoTypeTest.php | 7 +- .../Types/EBPCaseDetailTypeTest.php | 7 +- .../Types/EBPCaseDocumentInfoTypeTest.php | 7 +- .../Types/EBPCaseResponseHistoryTypeTest.php | 7 +- .../Types/EnumerationDetailTypeTest.php | 7 +- .../Types/ErrorDataTest.php | 7 +- .../Types/ErrorMessageTest.php | 7 +- .../Types/ErrorParameterTest.php | 7 +- ...scalateToCustomerSupportOptionTypeTest.php | 7 +- .../EscalateToCustomerSupportRequestTest.php | 7 +- .../EscalateToCustomerSupportResponseTest.php | 7 +- .../Types/EscalationReasonTypeTest.php | 7 +- .../Types/ExtensionTypeTest.php | 7 +- .../Types/GetActivityOptionsRequestTest.php | 7 +- .../Types/GetActivityOptionsResponseTest.php | 7 +- .../Types/GetEBPCaseDetailRequestTest.php | 7 +- .../Types/GetEBPCaseDetailResponseTest.php | 7 +- .../Types/GetUserCasesRequestTest.php | 7 +- .../Types/GetUserCasesResponseTest.php | 7 +- .../Types/GetVersionRequestTest.php | 7 +- .../Types/GetVersionResponseTest.php | 7 +- .../InitialBuyerExpectationDetailTypeTest.php | 7 +- .../Types/IssueFullRefundOptionTypeTest.php | 7 +- .../Types/IssueFullRefundRequestTest.php | 7 +- .../Types/IssueFullRefundResponseTest.php | 7 +- .../IssuePartialRefundOptionTypeTest.php | 7 +- .../Types/IssuePartialRefundRequestTest.php | 7 +- .../Types/IssuePartialRefundResponseTest.php | 7 +- .../Types/ItemFilterTypeTest.php | 7 +- .../Types/ItemTypeTest.php | 7 +- .../Types/MoneyMovementDetailTypeTest.php | 7 +- .../Types/MoneyMovementRefTest.php | 33 + .../Types/MoneyTest.php | 7 +- .../Types/NotificationEventTypeTest.php | 7 +- .../OfferOtherSolutionOptionTypeTest.php | 7 +- .../Types/OfferOtherSolutionRequestTest.php | 7 +- .../Types/OfferOtherSolutionResponseTest.php | 7 +- .../Types/OfferPartialRefundRequestTest.php | 7 +- .../Types/OfferPartialRefundResponseTest.php | 7 +- .../OfferRefundUponReturnRequestTest.php | 7 +- .../OfferRefundUponReturnResponseTest.php | 7 +- .../Types/OnHoldReasonDetailTypeTest.php | 7 +- .../Types/PaginationInputTest.php | 7 +- .../Types/PaginationOutputTest.php | 7 +- .../Types/PaymentDetailTypeTest.php | 7 +- .../Types/ProvideRefundInfoOptionTypeTest.php | 7 +- .../Types/ProvideRefundInfoRequestTest.php | 7 +- .../Types/ProvideRefundInfoResponseTest.php | 7 +- .../Types/ProvideReturnInfoRequestTest.php | 7 +- .../Types/ProvideReturnInfoResponseTest.php | 7 +- .../ProvideShippingInfoOptionTypeTest.php | 7 +- .../Types/ProvideShippingInfoRequestTest.php | 7 +- .../Types/ProvideShippingInfoResponseTest.php | 7 +- ...deShippingOrTrackingInfoOptionTypeTest.php | 7 +- .../ProvideTrackingInfoOptionTypeTest.php | 7 +- .../Types/ProvideTrackingInfoRequestTest.php | 7 +- .../Types/ProvideTrackingInfoResponseTest.php | 7 +- .../RequestBuyerToReturnOptionTypeTest.php | 7 +- .../ResponseHistoryAttributesTypeTest.php | 7 +- .../Types/ShipmentTypeTest.php | 7 +- .../Types/UploadDocumentInfoTypeTest.php | 7 +- .../Types/UploadDocumentsRequestTest.php | 7 +- .../Types/UploadDocumentsResponseTest.php | 7 +- test/ReturnManagement/Enums/AckValueTest.php | 7 +- .../Enums/ActivityOptionTypeTest.php | 7 +- test/ReturnManagement/Enums/CaseTypeTest.php | 7 +- .../Enums/CloseReturnReasonTypeTest.php | 7 +- .../Enums/ErrorCategoryTest.php | 7 +- .../Enums/ErrorSeverityTest.php | 7 +- .../Enums/MetadataCodeTypeTest.php | 7 +- .../Enums/MetadataEntryTypeTest.php | 7 +- .../Enums/NotificationEventNameTypeTest.php | 7 +- .../Enums/RefundFeeTypeTest.php | 7 +- .../Enums/RefundStatusTypeTest.php | 7 +- .../Enums/ReturnSortOrderTypeTest.php | 7 +- .../Enums/ReturnSortTypeTest.php | 7 +- .../Enums/ReturnStatusInputTypeTest.php | 7 +- .../Enums/ReturnStatusTypeTest.php | 7 +- .../ReturnManagement/Enums/ReturnTypeTest.php | 7 +- .../Enums/ReturnUserRoleTypeTest.php | 7 +- .../Enums/ShipmentStatusTypeTest.php | 7 +- .../ReturnManagement/Enums/StatusTypeTest.php | 7 +- .../Enums/TrackingStatusTypeTest.php | 7 +- .../Enums/UserFilterRoleTypeTest.php | 7 +- .../Types/ActivityDetailTypeTest.php | 7 +- .../Types/ActivityOptionListTypeTest.php | 7 +- .../Types/ActualRefundDetailTypeTest.php | 7 +- test/ReturnManagement/Types/AddressTest.php | 7 +- test/ReturnManagement/Types/AmountTest.php | 7 +- .../Types/BaseActivityOptionTypeTest.php | 7 +- .../Types/BaseRequestTest.php | 7 +- .../Types/BaseResponseTest.php | 7 +- .../ReturnManagement/Types/CaseIdTypeTest.php | 7 +- .../Types/DateRangeFilterTypeTest.php | 7 +- .../Types/EnumerationDetailTypeTest.php | 7 +- test/ReturnManagement/Types/ErrorDataTest.php | 7 +- .../Types/ErrorMessageTest.php | 7 +- .../Types/ErrorParameterTest.php | 7 +- .../Types/EstimatedRefundDetailTypeTest.php | 7 +- .../Types/ExtensionTypeTest.php | 7 +- .../Types/GetActivityOptionsRequestTest.php | 7 +- .../Types/GetActivityOptionsResponseTest.php | 7 +- .../Types/GetReturnDetailRequestTest.php | 7 +- .../Types/GetReturnDetailResponseTest.php | 7 +- .../Types/GetReturnMetadataRequestTest.php | 7 +- .../Types/GetReturnMetadataResponseTest.php | 7 +- .../Types/GetUserReturnsRequestTest.php | 7 +- .../Types/GetUserReturnsResponseTest.php | 7 +- .../Types/GetVersionRequestTest.php | 7 +- .../Types/GetVersionResponseTest.php | 7 +- .../Types/IssueRefundOptionTypeTest.php | 7 +- .../Types/IssueRefundRequestTest.php | 7 +- .../Types/IssueRefundResponseTest.php | 7 +- .../Types/ItemFilterTypeTest.php | 7 +- .../Types/ItemizedRefundDetailTypeTest.php | 7 +- .../Types/MetaDataCodeResultTypeTest.php | 7 +- .../Types/NotificationEventTypeTest.php | 7 +- .../Types/PaginationInputTest.php | 7 +- .../Types/PaginationOutputTest.php | 7 +- .../Types/ProvideSellerInfoOptionTypeTest.php | 7 +- .../Types/ProvideSellerInfoRequestTest.php | 7 +- .../Types/ProvideSellerInfoResponseTest.php | 7 +- .../Types/ProvideTrackingInfoRequestTest.php | 7 +- .../Types/ProvideTrackingInfoResponseTest.php | 7 +- .../Types/RefundDetailTypeTest.php | 7 +- .../Types/RefundInfoTypeTest.php | 7 +- .../Types/ReturnArrayTypeTest.php | 7 +- .../Types/ReturnDetailTypeTest.php | 7 +- .../Types/ReturnIdTypeTest.php | 7 +- .../Types/ReturnItemTypeTest.php | 7 +- .../Types/ReturnPolicyInfoTypeTest.php | 7 +- .../Types/ReturnReasonTypeTest.php | 7 +- .../Types/ReturnRequestTypeTest.php | 7 +- .../Types/ReturnResponseDueTypeTest.php | 7 +- .../Types/ReturnResponseHistoryTypeTest.php | 7 +- .../Types/ReturnStatusFilterTypeTest.php | 7 +- .../Types/ReturnSummaryTypeTest.php | 7 +- .../Types/ReturnUserTypeTest.php | 7 +- .../Types/SetItemAsReceivedRequestTest.php | 7 +- .../Types/SetItemAsReceivedResponseTest.php | 7 +- .../Types/ShipmentTypeTest.php | 7 +- .../Types/TotalRefundAmountTypeTest.php | 7 +- .../Types/UserFilterTypeTest.php | 7 +- test/SDKTest.php | 73 + test/Services/RestServiceTest.php | 195 ++ test/Services/ServiceTest.php | 6 +- test/Shopping/Enums/AckCodeTypeTest.php | 7 +- .../Enums/BuyerPaymentMethodCodeTypeTest.php | 7 +- .../Enums/CharityStatusCodeTypeTest.php | 7 +- .../Enums/CommentTypeCodeTypeTest.php | 7 +- test/Shopping/Enums/CountryCodeTypeTest.php | 7 +- test/Shopping/Enums/CurrencyCodeTypeTest.php | 7 +- .../Enums/ErrorClassificationCodeTypeTest.php | 7 +- .../Enums/ExternalProductCodeTypeTest.php | 7 +- .../FeedbackRatingDetailCodeTypeTest.php | 7 +- .../Enums/FeedbackRatingStarCodeTypeTest.php | 7 +- .../Enums/HalfItemConditionCodeTypeTest.php | 7 +- .../Enums/InsuranceOptionCodeTypeTest.php | 7 +- .../Enums/ListingStatusCodeTypeTest.php | 7 +- .../Enums/ListingTypeCodeTypeTest.php | 7 +- ...mumAdvertisedPriceExposureCodeTypeTest.php | 7 +- .../Enums/PricingTreatmentCodeTypeTest.php | 7 +- test/Shopping/Enums/ProductIDCodeTypeTest.php | 7 +- .../Enums/ProductSortCodeTypeTest.php | 7 +- .../Enums/ProductStateCodeTypeTest.php | 7 +- .../QuantityAvailableHintCodeTypeTest.php | 7 +- .../Shopping/Enums/ReviewSortCodeTypeTest.php | 7 +- .../Enums/SellerBusinessCodeTypeTest.php | 7 +- .../Enums/SellerLevelCodeTypeTest.php | 7 +- test/Shopping/Enums/SeverityCodeTypeTest.php | 7 +- .../Enums/ShippingTypeCodeTypeTest.php | 7 +- test/Shopping/Enums/SiteCodeTypeTest.php | 7 +- test/Shopping/Enums/SortOrderCodeTypeTest.php | 7 +- .../Enums/TradingRoleCodeTypeTest.php | 7 +- .../Shopping/Enums/UserStatusCodeTypeTest.php | 7 +- .../Types/AbstractRequestTypeTest.php | 7 +- .../Types/AbstractResponseTypeTest.php | 7 +- test/Shopping/Types/AddressTypeTest.php | 7 +- test/Shopping/Types/AmountTypeTest.php | 7 +- .../Types/AverageRatingDetailsTypeTest.php | 7 +- .../Types/BusinessSellerDetailsTypeTest.php | 7 +- .../Types/BuyingGuideDetailsTypeTest.php | 7 +- test/Shopping/Types/BuyingGuideTypeTest.php | 7 +- .../Shopping/Types/CatalogProductTypeTest.php | 7 +- test/Shopping/Types/CategoryArrayTypeTest.php | 7 +- test/Shopping/Types/CategoryTypeTest.php | 7 +- test/Shopping/Types/CharityTypeTest.php | 7 +- .../Types/DiscountPriceInfoTypeTest.php | 7 +- test/Shopping/Types/DistanceTypeTest.php | 7 +- .../Types/DomainHistogramTypeTest.php | 7 +- .../Shopping/Types/ErrorParameterTypeTest.php | 7 +- test/Shopping/Types/ErrorTypeTest.php | 7 +- .../Types/ExternalProductIDTypeTest.php | 7 +- .../Shopping/Types/FeedbackDetailTypeTest.php | 7 +- .../Types/FeedbackHistoryTypeTest.php | 7 +- .../Shopping/Types/FeedbackPeriodTypeTest.php | 7 +- .../Types/FindHalfProductsRequestTypeTest.php | 7 +- .../FindHalfProductsResponseTypeTest.php | 7 +- .../Types/FindPopularItemsRequestTypeTest.php | 7 +- .../FindPopularItemsResponseTypeTest.php | 7 +- .../FindPopularSearchesRequestTypeTest.php | 7 +- .../FindPopularSearchesResponseTypeTest.php | 7 +- .../Types/FindProductsRequestTypeTest.php | 7 +- .../Types/FindProductsResponseTypeTest.php | 7 +- .../FindReviewsAndGuidesRequestTypeTest.php | 7 +- .../FindReviewsAndGuidesResponseTypeTest.php | 7 +- .../Types/GetCategoryInfoRequestTypeTest.php | 7 +- .../Types/GetCategoryInfoResponseTypeTest.php | 7 +- .../Types/GetItemStatusRequestTypeTest.php | 7 +- .../Types/GetItemStatusResponseTypeTest.php | 7 +- .../Types/GetMultipleItemsRequestTypeTest.php | 7 +- .../GetMultipleItemsResponseTypeTest.php | 7 +- .../Types/GetShippingCostsRequestTypeTest.php | 7 +- .../GetShippingCostsResponseTypeTest.php | 7 +- .../Types/GetSingleItemRequestTypeTest.php | 7 +- .../Types/GetSingleItemResponseTypeTest.php | 7 +- .../Types/GetUserProfileRequestTypeTest.php | 7 +- .../Types/GetUserProfileResponseTypeTest.php | 7 +- .../Types/GeteBayTimeRequestTypeTest.php | 7 +- .../Types/GeteBayTimeResponseTypeTest.php | 7 +- .../Types/HalfCatalogProductTypeTest.php | 7 +- test/Shopping/Types/HalfProductsTypeTest.php | 7 +- .../Shopping/Types/HistogramEntryTypeTest.php | 7 +- ...rnationalShippingServiceOptionTypeTest.php | 7 +- .../Types/ItemCompatibilityListTypeTest.php | 7 +- .../Types/ItemCompatibilityTypeTest.php | 7 +- .../Types/NameValueListArrayTypeTest.php | 7 +- test/Shopping/Types/NameValueListTypeTest.php | 7 +- .../Types/PickUpInStoreDetailsTypeTest.php | 7 +- test/Shopping/Types/PicturesTypeTest.php | 7 +- .../Types/PopularSearchesTypeTest.php | 7 +- test/Shopping/Types/ProductIDTypeTest.php | 7 +- test/Shopping/Types/QuantityInfoTest.php | 7 +- test/Shopping/Types/ReturnPolicyTypeTest.php | 7 +- test/Shopping/Types/ReviewDetailsTypeTest.php | 7 +- test/Shopping/Types/ReviewTypeTest.php | 7 +- test/Shopping/Types/SalesTaxTypeTest.php | 7 +- test/Shopping/Types/SellingStatusTypeTest.php | 7 +- .../Types/ShippingCostSummaryTypeTest.php | 7 +- .../Types/ShippingDetailsTypeTest.php | 7 +- .../Types/ShippingServiceOptionTypeTest.php | 7 +- .../Types/SimpleItemArrayTypeTest.php | 7 +- test/Shopping/Types/SimpleItemTypeTest.php | 7 +- test/Shopping/Types/SimpleUserTypeTest.php | 7 +- test/Shopping/Types/StorefrontTypeTest.php | 7 +- .../Types/TaxJurisdictionTypeTest.php | 7 +- test/Shopping/Types/TaxTableTypeTest.php | 7 +- test/Shopping/Types/UnitInfoTypeTest.php | 7 +- test/Shopping/Types/VATDetailsTypeTest.php | 7 +- .../VariationSpecificPictureSetTypeTest.php | 7 +- test/Shopping/Types/VariationTypeTest.php | 7 +- test/Shopping/Types/VariationsTypeTest.php | 7 +- test/StatusCodeTraitTest.php | 14 + .../AccessRuleCurrentStatusCodeTypeTest.php | 7 +- .../Enums/AccessRuleStatusCodeTypeTest.php | 7 +- .../Enums/AccountDetailEntryCodeTypeTest.php | 7 +- .../AccountEntrySortTypeCodeTypeTest.php | 7 +- .../AccountHistorySelectionCodeTypeTest.php | 7 +- .../Enums/AccountStateCodeTypeTest.php | 7 +- test/Trading/Enums/AckCodeTypeTest.php | 7 +- .../Enums/AdFormatEnabledCodeTypeTest.php | 7 +- .../Enums/AdFormatLeadStatusCodeTypeTest.php | 7 +- .../Enums/AddressAttributeCodeTypeTest.php | 7 +- .../Enums/AddressOwnerCodeTypeTest.php | 7 +- .../Enums/AddressRecordTypeCodeTypeTest.php | 7 +- .../Enums/AddressStatusCodeTypeTest.php | 7 +- .../Trading/Enums/AddressTypeCodeTypeTest.php | 7 +- .../Enums/AddressUsageCodeTypeTest.php | 7 +- .../Enums/AnnouncementMessageCodeTypeTest.php | 7 +- .../ApplicationDeviceTypeCodeTypeTest.php | 7 +- ...AttributeConversionEnabledCodeTypeTest.php | 7 +- .../Enums/AuthTokenTypeCodeTypeTest.php | 7 +- ...utomatedLeaveFeedbackEventCodeTypeTest.php | 7 +- test/Trading/Enums/BalanceCodeTypeTest.php | 7 +- .../Enums/BestOfferActionCodeTypeTest.php | 7 +- .../Enums/BestOfferStatusCodeTypeTest.php | 7 +- .../Enums/BestOfferTypeCodeTypeTest.php | 7 +- test/Trading/Enums/BidActionCodeTypeTest.php | 7 +- .../Enums/BidGroupItemStatusCodeTypeTest.php | 7 +- .../Enums/BidGroupStatusCodeTypeTest.php | 7 +- .../Enums/BidderStatusCodeTypeTest.php | 7 +- test/Trading/Enums/BidderTypeCodeTypeTest.php | 7 +- test/Trading/Enums/BoldTitleCodeTypeTest.php | 7 +- test/Trading/Enums/BorderCodeTypeTest.php | 7 +- .../BulkCatalogListerStatusCodeTypeTest.php | 7 +- test/Trading/Enums/BusinessRoleTypeTest.php | 7 +- .../BuyerPaymentInstrumentCodeTypeTest.php | 7 +- .../Enums/BuyerPaymentMethodCodeTypeTest.php | 7 +- .../Enums/BuyerProtectionCodeTypeTest.php | 7 +- .../BuyerProtectionSourceCodeTypeTest.php | 7 +- .../BuyerSatisfactionStatusCodeTypeTest.php | 7 +- ...ulatedShippingChargeOptionCodeTypeTest.php | 7 +- ...lculatedShippingRateOptionCodeTypeTest.php | 7 +- .../Enums/CancelInitiatorCodeTypeTest.php | 7 +- .../Enums/CancelReasonCodeTypeTest.php | 7 +- .../Enums/CancelStatusCodeTypeTest.php | 7 +- .../CharacteristicsSearchCodeTypeTest.php | 7 +- .../CharityAffiliationTypeCodeTypeTest.php | 7 +- .../Enums/CharitySellerStatusCodeTypeTest.php | 7 +- .../Enums/CharityStatusCodeTypeTest.php | 7 +- .../Enums/CheckoutMethodCodeTypeTest.php | 7 +- .../Enums/CheckoutStatusCodeTypeTest.php | 7 +- ...assifiedAdBestOfferEnabledCodeTypeTest.php | 7 +- ...fiedAdPaymentMethodEnabledCodeTypeTest.php | 7 +- .../CombinedPaymentOptionCodeTypeTest.php | 7 +- .../CombinedPaymentPeriodCodeTypeTest.php | 7 +- .../Trading/Enums/CommentTypeCodeTypeTest.php | 7 +- .../Enums/CompleteStatusCodeTypeTest.php | 7 +- .../Enums/ConditionEnabledCodeTypeTest.php | 7 +- .../Enums/CostGroupFlatCodeTypeTest.php | 7 +- test/Trading/Enums/CountryCodeTypeTest.php | 7 +- test/Trading/Enums/CurrencyCodeTypeTest.php | 7 +- test/Trading/Enums/DayOfWeekCodeTypeTest.php | 7 +- test/Trading/Enums/DaysCodeTypeTest.php | 7 +- .../Enums/DeliveryMethodCodeTypeTest.php | 7 +- .../Enums/DeliveryStatusEmailCodeTypeTest.php | 7 +- .../Trading/Enums/DepositTypeCodeTypeTest.php | 7 +- .../DescriptionReviseModeCodeTypeTest.php | 7 +- .../Enums/DescriptionTemplateCodeTypeTest.php | 7 +- .../Trading/Enums/DetailLevelCodeTypeTest.php | 7 +- test/Trading/Enums/DetailNameCodeTypeTest.php | 7 +- test/Trading/Enums/DeviceTypeCodeTypeTest.php | 7 +- .../Enums/DigitalStatusCodeTypeTest.php | 7 +- test/Trading/Enums/DiscountCodeTypeTest.php | 7 +- .../Enums/DiscountNameCodeTypeTest.php | 7 +- .../Enums/DiscountReasonCodeTypeTest.php | 7 +- .../Enums/DisplayPayNowButtonCodeTypeTest.php | 7 +- .../Enums/DisputeActivityCodeTypeTest.php | 7 +- .../DisputeCreditEligibilityCodeTypeTest.php | 7 +- .../Enums/DisputeExplanationCodeTypeTest.php | 7 +- .../Enums/DisputeFilterTypeCodeTypeTest.php | 7 +- .../DisputeMessageSourceCodeTypeTest.php | 7 +- .../Enums/DisputeReasonCodeTypeTest.php | 7 +- .../Enums/DisputeRecordTypeCodeTypeTest.php | 7 +- .../DisputeResolutionReasonCodeTypeTest.php | 7 +- ...isputeResolutionRecordTypeCodeTypeTest.php | 7 +- .../Enums/DisputeSortTypeCodeTypeTest.php | 7 +- .../Enums/DisputeStateCodeTypeTest.php | 7 +- .../Enums/DisputeStatusCodeTypeTest.php | 7 +- .../EBaySubscriptionTypeCodeTypeTest.php | 7 +- test/Trading/Enums/EnableCodeTypeTest.php | 7 +- .../EndOfAuctionLogoTypeCodeTypeTest.php | 7 +- test/Trading/Enums/EndReasonCodeTypeTest.php | 7 +- .../Enums/ErrorClassificationCodeTypeTest.php | 7 +- .../Enums/ErrorHandlingCodeTypeTest.php | 7 +- test/Trading/Enums/EscrowCodeTypeTest.php | 7 +- .../Enums/ExternalProductCodeTypeTest.php | 7 +- test/Trading/Enums/FeatureIDCodeTypeTest.php | 7 +- .../Enums/FeaturedFirstCodeTypeTest.php | 7 +- .../Enums/FeaturedPlusCodeTypeTest.php | 7 +- .../Enums/FedExRateOptionCodeTypeTest.php | 7 +- .../FeedbackRatingDetailCodeTypeTest.php | 7 +- .../Enums/FeedbackRatingStarCodeTypeTest.php | 7 +- .../Enums/FeedbackResponseCodeTypeTest.php | 7 +- .../FeedbackSummaryPeriodCodeTypeTest.php | 7 +- .../Enums/FeedbackTypeCodeTypeTest.php | 7 +- .../FlatRateInsuranceRangeCodeTypeTest.php | 7 +- .../FlatShippingRateOptionCodeTypeTest.php | 7 +- .../Enums/GallerySortFilterCodeTypeTest.php | 7 +- .../Enums/GalleryStatusCodeTypeTest.php | 7 +- .../Trading/Enums/GalleryTypeCodeTypeTest.php | 7 +- .../GeneralPaymentMethodCodeTypeTest.php | 7 +- .../Enums/GeographicExposureCodeTypeTest.php | 7 +- .../Enums/GetAllBiddersModeCodeTypeTest.php | 7 +- test/Trading/Enums/GiftIconCodeTypeTest.php | 7 +- .../Enums/GiftServicesCodeTypeTest.php | 7 +- .../Enums/GranularityLevelCodeTypeTest.php | 7 +- .../Enums/HandlingNameCodeTypeTest.php | 7 +- test/Trading/Enums/HighlightCodeTypeTest.php | 7 +- test/Trading/Enums/HitCounterCodeTypeTest.php | 7 +- .../Enums/HomePageFeaturedCodeTypeTest.php | 7 +- .../INEscrowWorkflowTimelineCodeTypeTest.php | 7 +- .../Enums/InquiryStatusCodeTypeTest.php | 7 +- .../Enums/InsuranceOptionCodeTypeTest.php | 7 +- .../Enums/InsuranceSelectedCodeTypeTest.php | 7 +- .../InventoryTrackingMethodCodeTypeTest.php | 7 +- .../Enums/InvocationStatusTypeTest.php | 7 +- .../ItemArrivedWithinEDDCodeTypeTest.php | 7 +- .../ItemCompatibilityEnabledCodeTypeTest.php | 7 +- .../Enums/ItemConditionCodeTypeTest.php | 7 +- .../ItemFormatSortFilterCodeTypeTest.php | 7 +- .../Enums/ItemSortFilterCodeTypeTest.php | 7 +- .../Enums/ItemSortTypeCodeTypeTest.php | 7 +- .../Enums/ItemSpecificSourceCodeTypeTest.php | 7 +- .../ItemSpecificsEnabledCodeTypeTest.php | 7 +- test/Trading/Enums/ItemTypeCodeTypeTest.php | 7 +- .../Enums/ListingDurationCodeTypeTest.php | 7 +- ...ListingEnhancementDurationCodeTypeTest.php | 7 +- .../Enums/ListingEnhancementsCodeTypeTest.php | 7 +- .../Trading/Enums/ListingFlowCodeTypeTest.php | 7 +- .../Enums/ListingStatusCodeTypeTest.php | 7 +- .../Enums/ListingSubtypeCodeTypeTest.php | 7 +- .../Trading/Enums/ListingTypeCodeTypeTest.php | 7 +- .../Enums/LogisticsPlanCodeTypeTest.php | 7 +- test/Trading/Enums/LogoTypeCodeTypeTest.php | 7 +- .../Enums/MailOptionsTypeCodeTypeTest.php | 7 +- .../MarkUpMarkDownEventTypeCodeTypeTest.php | 7 +- .../Enums/MeasurementSystemCodeTypeTest.php | 7 +- .../Enums/MerchDisplayCodeTypeTest.php | 7 +- .../Enums/MessageStatusTypeCodeTypeTest.php | 7 +- .../Trading/Enums/MessageTypeCodeTypeTest.php | 7 +- ...mumAdvertisedPriceExposureCodeTypeTest.php | 7 +- .../Enums/MismatchTypeCodeTypeTest.php | 7 +- .../Enums/ModifyActionCodeTypeTest.php | 7 +- ...yMessagesAlertResolutionStatusCodeTest.php | 7 +- .../MyMessagesFolderOperationCodeTypeTest.php | 7 +- ...NotificationDeliveryStatusCodeTypeTest.php | 7 +- ...ificationEventPropertyNameCodeTypeTest.php | 7 +- .../NotificationEventStateCodeTypeTest.php | 7 +- .../NotificationEventTypeCodeTypeTest.php | 7 +- .../NotificationPayloadTypeCodeTypeTest.php | 7 +- .../Enums/NotificationRoleCodeTypeTest.php | 7 +- test/Trading/Enums/OrderRoleCodeTypeTest.php | 7 +- .../Trading/Enums/OrderStatusCodeTypeTest.php | 7 +- .../Enums/OrderStatusFilterCodeTypeTest.php | 7 +- test/Trading/Enums/PaidStatusCodeTypeTest.php | 7 +- .../Enums/PayPalAccountLevelCodeTypeTest.php | 7 +- .../Enums/PayPalAccountStatusCodeTypeTest.php | 7 +- .../Enums/PayPalAccountTypeCodeTypeTest.php | 7 +- .../Enums/PaymentHoldReasonCodeTypeTest.php | 7 +- .../Enums/PaymentHoldStatusCodeTypeTest.php | 7 +- .../Enums/PaymentInstructionCodeTypeTest.php | 7 +- .../Enums/PaymentMethodSearchCodeTypeTest.php | 7 +- ...PaymentOptionsGroupEnabledCodeTypeTest.php | 7 +- .../Enums/PaymentStatusCodeTypeTest.php | 7 +- .../PaymentTransactionStatusCodeTypeTest.php | 7 +- .../Trading/Enums/PaymentTypeCodeTypeTest.php | 7 +- test/Trading/Enums/PayoutMethodTypeTest.php | 7 +- .../Enums/PerformanceStatusCodeTypeTest.php | 7 +- test/Trading/Enums/PeriodCodeTypeTest.php | 7 +- .../Enums/PhotoDisplayCodeTypeTest.php | 7 +- .../Enums/PickupMethodCodeTypeTest.php | 7 +- .../Enums/PickupStatusCodeTypeTest.php | 7 +- .../Enums/PictureFormatCodeTypeTest.php | 7 +- .../PictureManagerActionCodeTypeTest.php | 7 +- .../PictureManagerDetailLevelCodeTypeTest.php | 7 +- ...eManagerPictureDisplayTypeCodeTypeTest.php | 7 +- ...reManagerSubscriptionLevelCodeTypeTest.php | 7 +- test/Trading/Enums/PictureSetCodeTypeTest.php | 7 +- .../Enums/PictureSourceCodeTypeTest.php | 7 +- .../Enums/PictureUploadPolicyCodeTypeTest.php | 7 +- .../Enums/PictureWatermarkCodeTypeTest.php | 7 +- .../PolicyComplianceStatusCodeTypeTest.php | 7 +- .../Enums/PreferredLocationCodeTypeTest.php | 7 +- .../Enums/PricingTreatmentCodeTypeTest.php | 7 +- test/Trading/Enums/ProPackCodeTypeTest.php | 7 +- .../ProductCreationEnabledCodeTypeTest.php | 7 +- .../ProductIdentiferEnabledCodeTypeTest.php | 7 +- .../Trading/Enums/ProductSortCodeTypeTest.php | 7 +- .../Enums/ProductStateCodeTypeTest.php | 7 +- .../Enums/ProductUseCaseCodeTypeTest.php | 7 +- .../ProfileCategoryGroupCodeTypeTest.php | 7 +- .../PromotionItemPriceTypeCodeTypeTest.php | 7 +- .../PromotionItemSelectionCodeTypeTest.php | 7 +- .../Enums/PromotionMethodCodeTypeTest.php | 7 +- .../Enums/PromotionSchemeCodeTypeTest.php | 7 +- .../PromotionalSaleStatusCodeTypeTest.php | 7 +- .../Enums/PromotionalSaleTypeCodeTypeTest.php | 7 +- .../Enums/PurchasePurposeTypeCodeTypeTest.php | 7 +- .../QuantityAvailableHintCodeTypeTest.php | 7 +- .../Enums/QuantityOperatorCodeTypeTest.php | 7 +- .../Enums/QuestionTypeCodeTypeTest.php | 7 +- .../Enums/RCSPaymentStatusCodeTypeTest.php | 7 +- test/Trading/Enums/RangeCodeTypeTest.php | 7 +- .../ReasonHideFromSearchCodeTypeTest.php | 7 +- .../Enums/RecipientRelationCodeTypeTest.php | 7 +- .../RecommendationEngineCodeTypeTest.php | 7 +- .../Enums/RefundFailureCodeTypeTest.php | 7 +- .../Enums/RefundLineTypeCodeTypeTest.php | 7 +- .../Enums/RefundOptionsCodeTypeTest.php | 7 +- .../Enums/RefundReasonCodeTypeTest.php | 7 +- .../Enums/RefundSourceTypeCodeTypeTest.php | 7 +- .../Enums/RefundStatusCodeTypeTest.php | 7 +- test/Trading/Enums/RefundTypeCodeTypeTest.php | 7 +- .../Enums/RefundingSourceTypeCodeTypeTest.php | 7 +- .../RequiredSellerActionCodeTypeTest.php | 7 +- .../Enums/RestockingFeeCodeTypeTest.php | 7 +- .../Enums/ReturnStatusCodeTypeTest.php | 7 +- .../ReturnsAcceptedOptionsCodeTypeTest.php | 7 +- .../ReturnsWithinOptionsCodeTypeTest.php | 7 +- .../SMSSubscriptionErrorCodeCodeTypeTest.php | 7 +- .../SMSSubscriptionUserStatusCodeTypeTest.php | 7 +- test/Trading/Enums/SearchFlagCodeTypeTest.php | 7 +- .../SearchStandingStatusCodeTypeTest.php | 7 +- .../SecondChanceOfferDurationCodeTypeTest.php | 7 +- .../Enums/SelectionModeCodeTypeTest.php | 7 +- .../Enums/SellerAccountStatusCodeTypeTest.php | 7 +- .../Enums/SellerBusinessCodeTypeTest.php | 7 +- ...llerDashboardAlertSeverityCodeTypeTest.php | 7 +- .../SellerGuaranteeLevelCodeTypeTest.php | 7 +- .../Trading/Enums/SellerLevelCodeTypeTest.php | 7 +- .../Enums/SellerPIStatusCodeTypeTest.php | 7 +- .../Enums/SellerPaymentMethodCodeTypeTest.php | 7 +- ...ereBayPaymentProcessStatusCodeTypeTest.php | 7 +- .../SellingManagerAlertTypeCodeTypeTest.php | 7 +- ...ingManagerAutoRelistOptionCodeTypeTest.php | 7 +- ...llingManagerAutoRelistTypeCodeTypeTest.php | 7 +- ...rAutoSecondChanceOfferTypeCodeTypeTest.php | 7 +- ...agerAutomationPropertyTypeCodeTypeTest.php | 7 +- ...lingManagerEmailSentStatusCodeTypeTest.php | 7 +- .../SellingManagerEmailTypeCodeTypeTest.php | 7 +- ...ManagerGeneralPropertyTypeCodeTypeTest.php | 7 +- ...nagerInventoryPropertyTypeCodeTypeTest.php | 7 +- .../SellingManagerPaidStatusCodeTypeTest.php | 7 +- ...anagerPaisaPayPropertyTypeCodeTypeTest.php | 7 +- .../SellingManagerProductSortCodeTypeTest.php | 7 +- .../SellingManagerSearchTypeCodeTypeTest.php | 7 +- ...ellingManagerShippedStatusCodeTypeTest.php | 7 +- ...erSoldListingsPropertyTypeCodeTypeTest.php | 7 +- ...anagerSoldListingsSortTypeCodeTypeTest.php | 7 +- .../Enums/SetUserNotesActionCodeTypeTest.php | 7 +- test/Trading/Enums/SeverityCodeTypeTest.php | 7 +- .../ShipmentDeliveryStatusCodeTypeTest.php | 7 +- .../Enums/ShipmentStatusCodeTypeTest.php | 7 +- .../Enums/ShippingCarrierCodeTypeTest.php | 7 +- .../ShippingCostPaidByOptionsCodeTypeTest.php | 7 +- .../Enums/ShippingFeatureCodeTypeTest.php | 7 +- .../Enums/ShippingPackageCodeTypeTest.php | 7 +- .../Enums/ShippingRateTypeCodeTypeTest.php | 7 +- .../Enums/ShippingRegionCodeTypeTest.php | 7 +- .../Enums/ShippingServiceCodeTypeTest.php | 7 +- .../Trading/Enums/ShippingServiceTypeTest.php | 7 +- .../ShippingTrackingEventCodeTypeTest.php | 7 +- .../Enums/ShippingTypeCodeTypeTest.php | 7 +- .../Enums/SimpleItemSortCodeTypeTest.php | 7 +- test/Trading/Enums/SiteCodeTypeTest.php | 7 +- .../Enums/SiteIDFilterCodeTypeTest.php | 7 +- .../Enums/SkypeContactOptionCodeTypeTest.php | 7 +- .../Enums/SocialAddressTypeCodeTypeTest.php | 7 +- test/Trading/Enums/SortOrderCodeTypeTest.php | 7 +- .../StoreCategoryUpdateActionCodeTypeTest.php | 7 +- .../StoreCustomHeaderLayoutCodeTypeTest.php | 7 +- ...CustomListingHeaderDisplayCodeTypeTest.php | 7 +- ...oreCustomListingHeaderLinkCodeTypeTest.php | 7 +- .../StoreCustomPageStatusCodeTypeTest.php | 7 +- .../Enums/StoreFontFaceCodeTypeTest.php | 7 +- .../Enums/StoreFontSizeCodeTypeTest.php | 7 +- .../Enums/StoreHeaderStyleCodeTypeTest.php | 7 +- .../Enums/StoreItemListLayoutCodeTypeTest.php | 7 +- .../StoreItemListSortOrderCodeTypeTest.php | 7 +- .../StoreSubscriptionLevelCodeTypeTest.php | 7 +- .../Trading/Enums/StringMatchCodeTypeTest.php | 7 +- .../Enums/SummaryFrequencyCodeTypeTest.php | 7 +- .../Enums/SummaryWindowPeriodCodeTypeTest.php | 7 +- test/Trading/Enums/TaskStatusCodeTypeTest.php | 7 +- .../Enums/TaxDescriptionCodeTypeTest.php | 7 +- .../TaxIdentifierAttributeCodeTypeTest.php | 7 +- .../Enums/TaxIdentifierCodeTypeTest.php | 7 +- test/Trading/Enums/TaxTypeCodeTypeTest.php | 7 +- .../Enums/TicketEventTypeCodeTypeTest.php | 7 +- .../Enums/TokenReturnMethodCodeTypeTest.php | 7 +- .../Trading/Enums/TokenStatusCodeTypeTest.php | 7 +- .../Enums/TopRatedProgramCodeTypeTest.php | 7 +- .../Trading/Enums/TradingRoleCodeTypeTest.php | 7 +- .../Enums/TransactionPlatformCodeTypeTest.php | 7 +- .../TransactionReferenceCodeTypeTest.php | 7 +- .../Enums/UPSRateOptionCodeTypeTest.php | 7 +- test/Trading/Enums/URLTypeCodeTypeTest.php | 7 +- .../Enums/USPSRateOptionCodeTypeTest.php | 7 +- test/Trading/Enums/UnitCodeTypeTest.php | 7 +- .../UnpaidItemCaseOpenTypeCodeTypeTest.php | 7 +- .../UnpaidItemCaseStatusTypeCodeTypeTest.php | 7 +- .../UnpaidItemStatusTypeCodeTypeTest.php | 7 +- .../Enums/UserIdentityCodeTypeTest.php | 7 +- test/Trading/Enums/UserStatusCodeTypeTest.php | 7 +- test/Trading/Enums/VATStatusCodeTypeTest.php | 7 +- .../Trading/Enums/ValueFormatCodeTypeTest.php | 7 +- test/Trading/Enums/ValueTypeCodeTypeTest.php | 7 +- .../VariationPictureRuleCodeTypeTest.php | 7 +- .../VariationSpecificsRuleCodeTypeTest.php | 7 +- .../Enums/VeROItemStatusCodeTypeTest.php | 7 +- .../VeROReportPacketStatusCodeTypeTest.php | 7 +- .../Enums/WarningLevelCodeTypeTest.php | 7 +- .../WarrantyDurationOptionsCodeTypeTest.php | 7 +- .../Enums/WarrantyOfferedCodeTypeTest.php | 7 +- .../Enums/WarrantyTypeOptionsCodeTypeTest.php | 7 +- .../Enums/WirelessCarrierIDCodeTypeTest.php | 7 +- test/Trading/Mocks/Service.php | 4 +- test/Trading/Services/AuthTokenTest.php | 33 + test/Trading/Services/ServiceTest.php | 11 + test/Trading/Types/ASQPreferencesTypeTest.php | 7 +- .../Trading/Types/AbstractRequestTypeTest.php | 7 +- .../Types/AbstractResponseTypeTest.php | 7 +- test/Trading/Types/AccountEntriesTypeTest.php | 7 +- test/Trading/Types/AccountEntryTypeTest.php | 7 +- test/Trading/Types/AccountSummaryTypeTest.php | 7 +- .../AdFormatEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/AdFormatLeadTypeTest.php | 7 +- .../Types/AddDisputeRequestTypeTest.php | 7 +- .../AddDisputeResponseRequestTypeTest.php | 7 +- .../AddDisputeResponseResponseTypeTest.php | 7 +- .../Types/AddDisputeResponseTypeTest.php | 7 +- .../AddFixedPriceItemRequestTypeTest.php | 7 +- .../AddFixedPriceItemResponseTypeTest.php | 7 +- ...mSellingManagerTemplateRequestTypeTest.php | 7 +- ...SellingManagerTemplateResponseTypeTest.php | 7 +- .../Types/AddItemRequestContainerTypeTest.php | 7 +- test/Trading/Types/AddItemRequestTypeTest.php | 7 +- .../AddItemResponseContainerTypeTest.php | 7 +- .../Trading/Types/AddItemResponseTypeTest.php | 7 +- .../Trading/Types/AddItemsRequestTypeTest.php | 7 +- .../Types/AddItemsResponseTypeTest.php | 7 +- ...mberMessageAAQToPartnerRequestTypeTest.php | 7 +- ...berMessageAAQToPartnerResponseTypeTest.php | 7 +- .../AddMemberMessageRTQRequestTypeTest.php | 7 +- .../AddMemberMessageRTQResponseTypeTest.php | 7 +- ...gesAAQToBidderRequestContainerTypeTest.php | 7 +- ...mberMessagesAAQToBidderRequestTypeTest.php | 7 +- ...esAAQToBidderResponseContainerTypeTest.php | 7 +- ...berMessagesAAQToBidderResponseTypeTest.php | 7 +- .../Trading/Types/AddOrderRequestTypeTest.php | 7 +- .../Types/AddOrderResponseTypeTest.php | 7 +- .../AddSecondChanceItemRequestTypeTest.php | 7 +- .../AddSecondChanceItemResponseTypeTest.php | 7 +- ...gManagerInventoryFolderRequestTypeTest.php | 7 +- ...ManagerInventoryFolderResponseTypeTest.php | 7 +- ...ddSellingManagerProductRequestTypeTest.php | 7 +- ...dSellingManagerProductResponseTypeTest.php | 7 +- ...dSellingManagerTemplateRequestTypeTest.php | 7 +- ...SellingManagerTemplateResponseTypeTest.php | 7 +- .../AddToItemDescriptionRequestTypeTest.php | 7 +- .../AddToItemDescriptionResponseTypeTest.php | 7 +- .../Types/AddToWatchListRequestTypeTest.php | 7 +- .../Types/AddToWatchListResponseTypeTest.php | 7 +- ...sactionConfirmationItemRequestTypeTest.php | 7 +- ...actionConfirmationItemResponseTypeTest.php | 7 +- .../Types/AdditionalAccountTypeTest.php | 7 +- ...CompatibilityEnabledDefinitionTypeTest.php | 7 +- .../Types/AddressAttributeTypeTest.php | 7 +- test/Trading/Types/AddressTypeTest.php | 7 +- .../AffiliateTrackingDetailsTypeTest.php | 7 +- test/Trading/Types/AmountTypeTest.php | 7 +- .../Types/AnnouncementMessageTypeTest.php | 7 +- test/Trading/Types/ApiAccessRuleTypeTest.php | 7 +- ...ApplicationDeliveryPreferencesTypeTest.php | 7 +- test/Trading/Types/AttributeArrayTypeTest.php | 7 +- ...ersionEnabledFeatureDefinitionTypeTest.php | 7 +- .../AttributeRecommendationsTypeTest.php | 7 +- .../Types/AttributeSetArrayTypeTest.php | 7 +- test/Trading/Types/AttributeSetTypeTest.php | 7 +- test/Trading/Types/AttributeTypeTest.php | 7 +- .../AverageRatingDetailArrayTypeTest.php | 7 +- .../Types/AverageRatingDetailsTypeTest.php | 7 +- .../Types/AverageRatingSummaryTypeTest.php | 7 +- test/Trading/Types/Base64BinaryTypeTest.php | 7 +- test/Trading/Types/BasicAmountTypeTest.php | 7 +- ...icUpgradePackEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/BestOfferArrayTypeTest.php | 7 +- ...ferAutoAcceptEnabledDefinitionTypeTest.php | 7 +- ...erAutoDeclineEnabledDefinitionTypeTest.php | 7 +- ...tOfferCounterEnabledDefinitionTypeTest.php | 7 +- .../Types/BestOfferDetailsTypeTest.php | 7 +- .../BestOfferEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/BestOfferTypeTest.php | 7 +- .../Types/BidApprovalArrayTypeTest.php | 7 +- test/Trading/Types/BidApprovalTypeTest.php | 7 +- .../Types/BidAssistantListTypeTest.php | 7 +- test/Trading/Types/BidGroupArrayTypeTest.php | 7 +- test/Trading/Types/BidGroupItemTypeTest.php | 7 +- test/Trading/Types/BidGroupTypeTest.php | 7 +- .../Types/BidderDetailArrayTypeTest.php | 7 +- test/Trading/Types/BidderDetailTypeTest.php | 7 +- .../Types/BidderNoticePreferencesTypeTest.php | 7 +- test/Trading/Types/BiddingDetailsTypeTest.php | 7 +- test/Trading/Types/BiddingSummaryTypeTest.php | 7 +- .../Trading/Types/BotBlockRequestTypeTest.php | 7 +- .../Types/BotBlockResponseTypeTest.php | 7 +- ...MPNIdentifierEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/BrandMPNTypeTest.php | 7 +- .../Types/BusinessSellerDetailsTypeTest.php | 7 +- ...uyerGuaranteeEnabledDefinitionTypeTest.php | 7 +- .../Types/BuyerPackageEnclosureTypeTest.php | 7 +- .../Types/BuyerPackageEnclosuresTypeTest.php | 7 +- .../Types/BuyerProtectionDetailsTypeTest.php | 7 +- .../Types/BuyerRequirementDetailsTypeTest.php | 7 +- .../Types/BuyerRoleMetricsTypeTest.php | 7 +- .../BuyerSatisfactionDashboardTypeTest.php | 7 +- test/Trading/Types/BuyerTypeTest.php | 7 +- .../Types/BuyingGuideDetailsTypeTest.php | 7 +- test/Trading/Types/BuyingGuideTypeTest.php | 7 +- test/Trading/Types/BuyingSummaryTypeTest.php | 7 +- .../CalculatedHandlingDiscountTypeTest.php | 7 +- .../CalculatedShippingDiscountTypeTest.php | 7 +- .../CalculatedShippingPreferencesTypeTest.php | 7 +- .../Types/CalculatedShippingRateTypeTest.php | 7 +- test/Trading/Types/CancelDetailTypeTest.php | 7 +- .../Types/CancelOfferArrayTypeTest.php | 7 +- test/Trading/Types/CancelOfferTypeTest.php | 7 +- test/Trading/Types/CartItemTypeTest.php | 7 +- test/Trading/Types/CatalogProductTypeTest.php | 7 +- test/Trading/Types/CategoryArrayTypeTest.php | 7 +- .../Trading/Types/CategoryFeatureTypeTest.php | 7 +- test/Trading/Types/CategoryGroupTypeTest.php | 7 +- .../Types/CategoryItemSpecificsTypeTest.php | 7 +- .../Trading/Types/CategoryMappingTypeTest.php | 7 +- test/Trading/Types/CategoryTypeTest.php | 7 +- .../Types/CharacteristicSetIDsTypeTest.php | 7 +- test/Trading/Types/CharacteristicTypeTest.php | 7 +- ...acteristicsSetProductHistogramTypeTest.php | 7 +- .../Types/CharacteristicsSetTypeTest.php | 7 +- .../CharityAffiliationDetailTypeTest.php | 7 +- .../CharityAffiliationDetailsTypeTest.php | 7 +- .../Types/CharityAffiliationTypeTest.php | 7 +- .../Types/CharityAffiliationsTypeTest.php | 7 +- test/Trading/Types/CharityIDTypeTest.php | 7 +- test/Trading/Types/CharityInfoTypeTest.php | 7 +- test/Trading/Types/CharitySellerTypeTest.php | 7 +- test/Trading/Types/CharityTypeTest.php | 7 +- .../Types/CheckoutOrderDetailTypeTest.php | 7 +- test/Trading/Types/CheckoutStatusTypeTest.php | 7 +- ...dAdAutoAcceptEnabledDefinitionTypeTest.php | 7 +- ...AdAutoDeclineEnabledDefinitionTypeTest.php | 7 +- ...edAdBestOfferEnabledDefinitionTypeTest.php | 7 +- ...AdCompanyNameEnabledDefinitionTypeTest.php | 7 +- ...tactByAddressEnabledDefinitionTypeTest.php | 7 +- ...ContactByEmailEnabledDefintionTypeTest.php | 7 +- ...ontactByPhoneEnabledDefinitionTypeTest.php | 7 +- ...dCounterOfferEnabledDefinitionTypeTest.php | 7 +- ...dAdPayPerLeadEnabledDefinitionTypeTest.php | 7 +- ...PaymentMethodEnabledDefinitionTypeTest.php | 7 +- ...assifiedAdPhoneCountDefinitionTypeTest.php | 7 +- ...hippingMethodEnabledDefinitionTypeTest.php | 7 +- ...ssifiedAdStreetCountDefinitionTypeTest.php | 7 +- ...riceTreatmentEnabledDefinitionTypeTest.php | 7 +- .../CombinedPaymentPreferencesTypeTest.php | 7 +- ...ompatibleVehicleTypeDefinitionTypeTest.php | 7 +- .../Types/CompleteSaleRequestTypeTest.php | 7 +- .../Types/CompleteSaleResponseTypeTest.php | 7 +- .../ConditionEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/ConditionTypeTest.php | 7 +- .../ConditionValuesDefinitionTypeTest.php | 7 +- .../Trading/Types/ConditionValuesTypeTest.php | 7 +- .../Types/ConfirmIdentityRequestTypeTest.php | 7 +- .../Types/ConfirmIdentityResponseTypeTest.php | 7 +- .../Types/ContactHoursDetailsTypeTest.php | 7 +- .../Types/ContextSearchAssetTypeTest.php | 7 +- test/Trading/Types/CountryDetailsTypeTest.php | 7 +- ...radeAustraliaEnabledDefinitionTypeTest.php | 7 +- ...BorderTradeGBEnabledDefinitionTypeTest.php | 7 +- ...eNorthAmericaEnabledDefinitionTypeTest.php | 7 +- .../CrossPromotionPreferencesTypeTest.php | 7 +- .../Trading/Types/CrossPromotionsTypeTest.php | 7 +- .../Trading/Types/CurrencyDetailsTypeTest.php | 7 +- .../Types/CustomSecurityHeaderTypeTest.php | 7 +- test/Trading/Types/DataElementSetTypeTest.php | 7 +- test/Trading/Types/DateTypeTest.php | 7 +- .../Types/DeleteMyMessagesRequestTypeTest.php | 7 +- .../DeleteMyMessagesResponseTypeTest.php | 7 +- ...gManagerInventoryFolderRequestTypeTest.php | 7 +- ...ManagerInventoryFolderResponseTypeTest.php | 7 +- ...nagerItemAutomationRuleRequestTypeTest.php | 7 +- ...agerItemAutomationRuleResponseTypeTest.php | 7 +- ...teSellingManagerProductRequestTypeTest.php | 7 +- ...eSellingManagerProductResponseTypeTest.php | 7 +- ...rTemplateAutomationRuleRequestTypeTest.php | 7 +- ...TemplateAutomationRuleResponseTypeTest.php | 7 +- ...eSellingManagerTemplateRequestTypeTest.php | 7 +- ...SellingManagerTemplateResponseTypeTest.php | 7 +- .../Trading/Types/DeliveryDetailsTypeTest.php | 7 +- test/Trading/Types/DeliveryStatusTypeTest.php | 7 +- .../Types/DeliveryURLDetailTypeTest.php | 7 +- .../DepositSupportedDefinitionTypeTest.php | 7 +- .../Types/DescriptionTemplateTypeTest.php | 7 +- .../Types/DigitalDeliverySelectedTypeTest.php | 7 +- .../Types/DigitalDeliveryUserTypeTest.php | 7 +- ...lGoodDeliveryEnabledDefinitionTypeTest.php | 7 +- .../Trading/Types/DigitalGoodInfoTypeTest.php | 7 +- ...bleUnpaidItemAssistanceRequestTypeTest.php | 7 +- ...leUnpaidItemAssistanceResponseTypeTest.php | 7 +- .../Types/DiscountPriceInfoTypeTest.php | 7 +- .../Trading/Types/DiscountProfileTypeTest.php | 7 +- .../DispatchCutoffTimePreferencesTypeTest.php | 7 +- .../Types/DispatchTimeMaxDetailsTypeTest.php | 7 +- test/Trading/Types/DisputeArrayTypeTest.php | 7 +- .../Types/DisputeFilterCountTypeTest.php | 7 +- test/Trading/Types/DisputeMessageTypeTest.php | 7 +- .../Types/DisputeResolutionTypeTest.php | 7 +- test/Trading/Types/DisputeTypeTest.php | 7 +- test/Trading/Types/DistanceTypeTest.php | 7 +- .../DuplicateInvocationDetailsTypeTest.php | 7 +- .../DutchBINEnabledDefinitionTypeTest.php | 7 +- .../Types/EANEnabledDefinitionTypeTest.php | 7 +- ...EANIdentifierEnabledDefinitionTypeTest.php | 7 +- ...rsProAdFormatEnabledDefinitionTypeTest.php | 7 +- ...ProAutoAcceptEnabledDefinitionTypeTest.php | 7 +- ...roAutoDeclineEnabledDefinitionTypeTest.php | 7 +- ...sProBestOfferEnabledDefinitionTypeTest.php | 7 +- ...roCompanyNameEnabledDefinitionTypeTest.php | 7 +- ...tactByAddressEnabledDefinitionTypeTest.php | 7 +- ...ontactByEmailEnabledDefinitionTypeTest.php | 7 +- ...ontactByPhoneEnabledDefinitionTypeTest.php | 7 +- ...oCounterOfferEnabledDefinitionTypeTest.php | 7 +- ...ethodCheckOutEnabledDefinitionTypeTest.php | 7 +- ...yMotorsProPhoneCountDefinitionTypeTest.php | 7 +- ...ontactDetailsEnabledDefinitionTypeTest.php | 7 +- ...hippingMethodEnabledDefinitionTypeTest.php | 7 +- ...MotorsProStreetCountDefinitionTypeTest.php | 7 +- .../Types/EBayPLUSPreferenceTypeTest.php | 7 +- .../EBayPaymentMismatchDetailsTypeTest.php | 7 +- .../EndFixedPriceItemRequestTypeTest.php | 7 +- .../EndFixedPriceItemResponseTypeTest.php | 7 +- .../Types/EndItemRequestContainerTypeTest.php | 7 +- test/Trading/Types/EndItemRequestTypeTest.php | 7 +- .../EndItemResponseContainerTypeTest.php | 7 +- .../Trading/Types/EndItemResponseTypeTest.php | 7 +- .../Trading/Types/EndItemsRequestTypeTest.php | 7 +- .../Types/EndItemsResponseTypeTest.php | 7 +- .../EndOfAuctionEmailPreferencesTypeTest.php | 7 +- .../Types/EpidSupportedDefinitionTypeTest.php | 7 +- test/Trading/Types/ErrorParameterTypeTest.php | 7 +- test/Trading/Types/ErrorTypeTest.php | 7 +- ...ExcludeShippingLocationDetailsTypeTest.php | 7 +- ...essConditionRequiredDefinitionTypeTest.php | 7 +- .../ExpressEnabledDefinitionTypeTest.php | 7 +- .../Types/ExpressItemRequirementsTypeTest.php | 7 +- ...ressPicturesRequiredDefinitionTypeTest.php | 7 +- ...xtendSiteHostedPicturesRequestTypeTest.php | 7 +- ...tendSiteHostedPicturesResponseTypeTest.php | 7 +- .../Types/ExtendedContactDetailsTypeTest.php | 7 +- .../Types/ExtendedPictureDetailsTypeTest.php | 7 +- .../Types/ExtendedProductFinderIDTypeTest.php | 7 +- .../Types/ExternalAlertIDArrayTypeTest.php | 7 +- .../Types/ExternalProductIDTypeTest.php | 7 +- .../Types/ExternalTransactionTypeTest.php | 7 +- test/Trading/Types/FaultDetailsTypeTest.php | 7 +- .../Types/FeatureDefinitionsTypeTest.php | 7 +- .../Types/FeatureEligibilityTypeTest.php | 7 +- test/Trading/Types/FeeTypeTest.php | 7 +- .../Types/FeedbackCommentArrayTypeTest.php | 7 +- .../Types/FeedbackDetailArrayTypeTest.php | 7 +- test/Trading/Types/FeedbackDetailTypeTest.php | 7 +- test/Trading/Types/FeedbackInfoTypeTest.php | 7 +- .../Types/FeedbackPeriodArrayTypeTest.php | 7 +- test/Trading/Types/FeedbackPeriodTypeTest.php | 7 +- .../Types/FeedbackRequirementsTypeTest.php | 7 +- .../Trading/Types/FeedbackSummaryTypeTest.php | 7 +- test/Trading/Types/FeesTypeTest.php | 7 +- .../Types/FetchTokenRequestTypeTest.php | 7 +- .../Types/FetchTokenResponseTypeTest.php | 7 +- .../FlatRateInsuranceRangeCostTypeTest.php | 7 +- .../Types/FlatShippingDiscountTypeTest.php | 7 +- .../Types/FlatShippingPreferencesTypeTest.php | 7 +- ...eeGalleryPlusEnabledDefinitionTypeTest.php | 7 +- ...eePicturePackEnabledDefinitionTypeTest.php | 7 +- .../Types/GetAccountRequestTypeTest.php | 7 +- .../Types/GetAccountResponseTypeTest.php | 7 +- .../Types/GetAdFormatLeadsRequestTypeTest.php | 7 +- .../GetAdFormatLeadsResponseTypeTest.php | 7 +- .../Types/GetAllBiddersRequestTypeTest.php | 7 +- .../Types/GetAllBiddersResponseTypeTest.php | 7 +- .../GetApiAccessRulesRequestTypeTest.php | 7 +- .../GetApiAccessRulesResponseTypeTest.php | 7 +- .../Types/GetBestOffersRequestTypeTest.php | 7 +- .../Types/GetBestOffersResponseTypeTest.php | 7 +- .../Types/GetBidderListRequestTypeTest.php | 7 +- .../Types/GetBidderListResponseTypeTest.php | 7 +- .../Types/GetCategoriesRequestTypeTest.php | 7 +- .../Types/GetCategoriesResponseTypeTest.php | 7 +- .../GetCategoryFeaturesRequestTypeTest.php | 7 +- .../GetCategoryFeaturesResponseTypeTest.php | 7 +- .../GetCategoryMappingsRequestTypeTest.php | 7 +- .../GetCategoryMappingsResponseTypeTest.php | 7 +- .../GetCategorySpecificsRequestTypeTest.php | 7 +- .../GetCategorySpecificsResponseTypeTest.php | 7 +- .../GetChallengeTokenRequestTypeTest.php | 7 +- .../GetChallengeTokenResponseTypeTest.php | 7 +- .../Types/GetCharitiesRequestTypeTest.php | 7 +- .../Types/GetCharitiesResponseTypeTest.php | 7 +- ...etClientAlertsAuthTokenRequestTypeTest.php | 7 +- ...tClientAlertsAuthTokenResponseTypeTest.php | 7 +- .../GetContextualKeywordsRequestTypeTest.php | 7 +- .../GetContextualKeywordsResponseTypeTest.php | 7 +- ...GetDescriptionTemplatesRequestTypeTest.php | 7 +- ...etDescriptionTemplatesResponseTypeTest.php | 7 +- .../Types/GetDisputeRequestTypeTest.php | 7 +- .../Types/GetDisputeResponseTypeTest.php | 7 +- .../Types/GetFeedbackRequestTypeTest.php | 7 +- .../Types/GetFeedbackResponseTypeTest.php | 7 +- test/Trading/Types/GetItemRequestTypeTest.php | 7 +- .../Trading/Types/GetItemResponseTypeTest.php | 7 +- .../Types/GetItemShippingRequestTypeTest.php | 7 +- .../Types/GetItemShippingResponseTypeTest.php | 7 +- .../GetItemTransactionsRequestTypeTest.php | 7 +- .../GetItemTransactionsResponseTypeTest.php | 7 +- ...etItemsAwaitingFeedbackRequestTypeTest.php | 7 +- ...tItemsAwaitingFeedbackResponseTypeTest.php | 7 +- .../GetMemberMessagesRequestTypeTest.php | 7 +- .../GetMemberMessagesResponseTypeTest.php | 7 +- .../GetMessagePreferencesRequestTypeTest.php | 7 +- .../GetMessagePreferencesResponseTypeTest.php | 7 +- .../Types/GetMyMessagesRequestTypeTest.php | 7 +- .../Types/GetMyMessagesResponseTypeTest.php | 7 +- .../Types/GetMyeBayBuyingRequestTypeTest.php | 7 +- .../Types/GetMyeBayBuyingResponseTypeTest.php | 7 +- .../GetMyeBayRemindersRequestTypeTest.php | 7 +- .../GetMyeBayRemindersResponseTypeTest.php | 7 +- .../Types/GetMyeBaySellingRequestTypeTest.php | 7 +- .../GetMyeBaySellingResponseTypeTest.php | 7 +- ...NotificationPreferencesRequestTypeTest.php | 7 +- ...otificationPreferencesResponseTypeTest.php | 7 +- .../GetNotificationsUsageRequestTypeTest.php | 7 +- .../GetNotificationsUsageResponseTypeTest.php | 7 +- .../GetOrderTransactionsRequestTypeTest.php | 7 +- .../GetOrderTransactionsResponseTypeTest.php | 7 +- .../Types/GetOrdersRequestTypeTest.php | 7 +- .../Types/GetOrdersResponseTypeTest.php | 7 +- ...tPromotionalSaleDetailsRequestTypeTest.php | 7 +- ...PromotionalSaleDetailsResponseTypeTest.php | 7 +- ...ecommendationsRequestContainerTypeTest.php | 7 +- ...commendationsResponseContainerTypeTest.php | 7 +- .../GetSellerDashboardRequestTypeTest.php | 7 +- .../GetSellerDashboardResponseTypeTest.php | 7 +- .../Types/GetSellerEventsRequestTypeTest.php | 7 +- .../Types/GetSellerEventsResponseTypeTest.php | 7 +- .../Types/GetSellerListRequestTypeTest.php | 7 +- .../Types/GetSellerListResponseTypeTest.php | 7 +- .../GetSellerPaymentsRequestTypeTest.php | 7 +- .../GetSellerPaymentsResponseTypeTest.php | 7 +- .../GetSellerTransactionsRequestTypeTest.php | 7 +- .../GetSellerTransactionsResponseTypeTest.php | 7 +- ...GetSellingManagerAlertsRequestTypeTest.php | 7 +- ...etSellingManagerAlertsResponseTypeTest.php | 7 +- ...tSellingManagerEmailLogRequestTypeTest.php | 7 +- ...SellingManagerEmailLogResponseTypeTest.php | 7 +- ...gManagerInventoryFolderRequestTypeTest.php | 7 +- ...ManagerInventoryFolderResponseTypeTest.php | 7 +- ...SellingManagerInventoryRequestTypeTest.php | 7 +- ...ellingManagerInventoryResponseTypeTest.php | 7 +- ...nagerItemAutomationRuleRequestTypeTest.php | 7 +- ...agerItemAutomationRuleResponseTypeTest.php | 7 +- ...ellingManagerSaleRecordRequestTypeTest.php | 7 +- ...llingManagerSaleRecordResponseTypeTest.php | 7 +- ...lingManagerSoldListingsRequestTypeTest.php | 7 +- ...ingManagerSoldListingsResponseTypeTest.php | 7 +- ...rTemplateAutomationRuleRequestTypeTest.php | 7 +- ...TemplateAutomationRuleResponseTypeTest.php | 7 +- ...SellingManagerTemplatesRequestTypeTest.php | 7 +- ...ellingManagerTemplatesResponseTypeTest.php | 7 +- .../Types/GetSessionIDRequestTypeTest.php | 7 +- .../Types/GetSessionIDResponseTypeTest.php | 7 +- ...hippingDiscountProfilesRequestTypeTest.php | 7 +- ...ippingDiscountProfilesResponseTypeTest.php | 7 +- ...oreCategoryUpdateStatusRequestTypeTest.php | 7 +- ...reCategoryUpdateStatusResponseTypeTest.php | 7 +- .../GetStoreCustomPageRequestTypeTest.php | 7 +- .../GetStoreCustomPageResponseTypeTest.php | 7 +- .../Types/GetStoreOptionsRequestTypeTest.php | 7 +- .../Types/GetStoreOptionsResponseTypeTest.php | 7 +- .../GetStorePreferencesRequestTypeTest.php | 7 +- .../GetStorePreferencesResponseTypeTest.php | 7 +- .../Trading/Types/GetStoreRequestTypeTest.php | 7 +- .../Types/GetStoreResponseTypeTest.php | 7 +- .../GetSuggestedCategoriesRequestTypeTest.php | 7 +- ...GetSuggestedCategoriesResponseTypeTest.php | 7 +- .../Types/GetTaxTableRequestTypeTest.php | 7 +- .../Types/GetTaxTableResponseTypeTest.php | 7 +- .../Types/GetTokenStatusRequestTypeTest.php | 7 +- .../Types/GetTokenStatusResponseTypeTest.php | 7 +- .../GetUserContactDetailsRequestTypeTest.php | 7 +- .../GetUserContactDetailsResponseTypeTest.php | 7 +- .../Types/GetUserDisputesRequestTypeTest.php | 7 +- .../Types/GetUserDisputesResponseTypeTest.php | 7 +- .../GetUserPreferencesRequestTypeTest.php | 7 +- .../GetUserPreferencesResponseTypeTest.php | 7 +- test/Trading/Types/GetUserRequestTypeTest.php | 7 +- .../Trading/Types/GetUserResponseTypeTest.php | 7 +- ...etVeROReasonCodeDetailsRequestTypeTest.php | 7 +- ...tVeROReasonCodeDetailsResponseTypeTest.php | 7 +- .../GetVeROReportStatusRequestTypeTest.php | 7 +- .../GetVeROReportStatusResponseTypeTest.php | 7 +- .../Types/GeteBayDetailsRequestTypeTest.php | 7 +- .../Types/GeteBayDetailsResponseTypeTest.php | 7 +- .../GeteBayOfficialTimeRequestTypeTest.php | 7 +- .../GeteBayOfficialTimeResponseTypeTest.php | 7 +- test/Trading/Types/GiftSummaryTypeTest.php | 7 +- ...lobalShippingEnabledDefinitionTypeTest.php | 7 +- ...1MaxFlatShippingCostDefinitionTypeTest.php | 7 +- ...2MaxFlatShippingCostDefinitionTypeTest.php | 7 +- ...3MaxFlatShippingCostDefinitionTypeTest.php | 7 +- .../HandlingTimeEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/HistogramEntryTypeTest.php | 7 +- ...ePageFeaturedEnabledDefinitionTypeTest.php | 7 +- ...crowWorkflowTimelineDefinitionTypeTest.php | 7 +- .../Types/ISBNEnabledDefinitionTypeTest.php | 7 +- ...SBNIdentifierEnabledDefinitionTypeTest.php | 7 +- .../Types/InsuranceDetailsTypeTest.php | 7 +- ...tegratedMerchantCreditCardInfoTypeTest.php | 7 +- ...nationalShippingServiceOptionsTypeTest.php | 7 +- test/Trading/Types/InventoryFeesTypeTest.php | 7 +- .../Trading/Types/InventoryStatusTypeTest.php | 7 +- .../Types/IssueRefundRequestTypeTest.php | 7 +- .../Types/IssueRefundResponseTypeTest.php | 7 +- test/Trading/Types/ItemArrayTypeTest.php | 7 +- .../Types/ItemBestOffersArrayTypeTest.php | 7 +- test/Trading/Types/ItemBestOffersTypeTest.php | 7 +- test/Trading/Types/ItemBidDetailsTypeTest.php | 7 +- ...CompatibilityEnabledDefinitionTypeTest.php | 7 +- .../Types/ItemCompatibilityListTypeTest.php | 7 +- .../Types/ItemCompatibilityTypeTest.php | 7 +- test/Trading/Types/ItemIDArrayTypeTest.php | 7 +- .../Types/ItemListCustomizationTypeTest.php | 7 +- .../Types/ItemPolicyViolationTypeTest.php | 7 +- .../Types/ItemRatingDetailArrayTypeTest.php | 7 +- .../Types/ItemRatingDetailsTypeTest.php | 7 +- .../Types/ItemSpecificDetailsTypeTest.php | 7 +- ...ItemSpecificsEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/ItemTotalsTypeTest.php | 7 +- .../Types/ItemTransactionIDArrayTypeTest.php | 7 +- .../Types/ItemTransactionIDTypeTest.php | 7 +- test/Trading/Types/ItemTypeTest.php | 7 +- .../Types/ItemsCanceledEventTypeTest.php | 7 +- .../KTypeSupportedDefinitionTypeTest.php | 7 +- test/Trading/Types/LabelTypeTest.php | 7 +- .../Types/LeaveFeedbackRequestTypeTest.php | 7 +- .../Types/LeaveFeedbackResponseTypeTest.php | 7 +- test/Trading/Types/LineItemTypeTest.php | 7 +- ...ListingAnalyzerRecommendationsTypeTest.php | 7 +- ...tingCheckoutRedirectPreferenceTypeTest.php | 7 +- .../Trading/Types/ListingDesignerTypeTest.php | 7 +- test/Trading/Types/ListingDetailsTypeTest.php | 7 +- .../ListingDurationDefinitionTypeTest.php | 7 +- .../ListingDurationDefinitionsTypeTest.php | 7 +- .../ListingDurationReferenceTypeTest.php | 7 +- ...gEnhancementDurationDefinitionTypeTest.php | 7 +- ...ngEnhancementDurationReferenceTypeTest.php | 7 +- .../Types/ListingFeatureDetailsTypeTest.php | 7 +- .../Types/ListingRecommendationTypeTest.php | 7 +- .../Types/ListingRecommendationsTypeTest.php | 7 +- .../ListingStartPriceDetailsTypeTest.php | 7 +- .../Trading/Types/ListingTipArrayTypeTest.php | 7 +- .../Trading/Types/ListingTipFieldTypeTest.php | 7 +- .../Types/ListingTipMessageTypeTest.php | 7 +- test/Trading/Types/ListingTipTypeTest.php | 7 +- ...ancesNonSubscriptionDefinitionTypeTest.php | 7 +- ...tingDistancesRegularDefinitionTypeTest.php | 7 +- ...ngDistancesSpecialtyDefinitionTypeTest.php | 7 +- ...arketAdFormatEnabledDefinitionTypeTest.php | 7 +- ...ketAutoAcceptEnabledDefinitionTypeTest.php | 7 +- ...etAutoDeclineEnabledDefinitionTypeTest.php | 7 +- ...rketBestOfferEnabledDefinitionTypeTest.php | 7 +- ...etCompanyNameEnabledDefinitionTypeTest.php | 7 +- ...tactByAddressEnabledDefinitionTypeTest.php | 7 +- ...ontactByEmailEnabledDefinitionTypeTest.php | 7 +- ...ontactByPhoneEnabledDefinitionTypeTest.php | 7 +- ...tCounterOfferEnabledDefinitionTypeTest.php | 7 +- ...arketNonSubscriptionDefinitionTypeTest.php | 7 +- ...ethodCheckOutEnabledDefinitionTypeTest.php | 7 +- ...ocalMarketPhoneCountDefinitionTypeTest.php | 7 +- ...tPremiumSubscriptionDefinitionTypeTest.php | 7 +- ...tRegularSubscriptionDefinitionTypeTest.php | 7 +- ...ontactDetailsEnabledDefinitionTypeTest.php | 7 +- ...hippingMethodEnabledDefinitionTypeTest.php | 7 +- ...ecialitySubscriptionDefinitionTypeTest.php | 7 +- ...calMarketStreetCountDefinitionTypeTest.php | 7 +- test/Trading/Types/LocalSearchTypeTest.php | 7 +- .../Types/LookupAttributeArrayTypeTest.php | 7 +- .../Trading/Types/LookupAttributeTypeTest.php | 7 +- .../Types/MarkUpMarkDownEventTypeTest.php | 7 +- .../Types/MarkUpMarkDownHistoryTypeTest.php | 7 +- ...hippingCostCBTExemptDefinitionTypeTest.php | 7 +- .../MaxFlatShippingCostDefinitionTypeTest.php | 7 +- ...GranularFitmentCountDefinitionTypeTest.php | 7 +- ...MaxItemCompatibilityDefinitionTypeTest.php | 7 +- ...umBuyerPolicyViolationsDetailsTypeTest.php | 7 +- .../MaximumBuyerPolicyViolationsTypeTest.php | 7 +- ...MaximumItemRequirementsDetailsTypeTest.php | 7 +- .../Types/MaximumItemRequirementsTypeTest.php | 7 +- ...mUnpaidItemStrikesCountDetailsTypeTest.php | 7 +- ...paidItemStrikesDurationDetailsTypeTest.php | 7 +- ...umUnpaidItemStrikesInfoDetailsTypeTest.php | 7 +- .../MaximumUnpaidItemStrikesInfoTypeTest.php | 7 +- test/Trading/Types/MeasureTypeTest.php | 7 +- .../MemberMessageExchangeArrayTypeTest.php | 7 +- .../Types/MemberMessageExchangeTypeTest.php | 7 +- test/Trading/Types/MemberMessageTypeTest.php | 7 +- test/Trading/Types/MessageMediaTypeTest.php | 7 +- test/Trading/Types/MetadataTypeTest.php | 7 +- ...MinItemCompatibilityDefinitionTypeTest.php | 7 +- .../MinimumFeedbackScoreDetailsTypeTest.php | 7 +- .../MinimumReservePriceDefinitionTypeTest.php | 7 +- .../Trading/Types/ModifyNameArrayTypeTest.php | 7 +- test/Trading/Types/ModifyNameTypeTest.php | 7 +- ...rsLocalMarketEnabledDefinitionTypeTest.php | 7 +- ...gManagerInventoryFolderRequestTypeTest.php | 7 +- ...ManagerInventoryFolderResponseTypeTest.php | 7 +- .../Types/MultiLegShipmentTypeTest.php | 7 +- .../Types/MultiLegShippingDetailsTypeTest.php | 7 +- .../Types/MultiLegShippingServiceTypeTest.php | 7 +- .../Types/MyMessagesAlertArrayTypeTest.php | 7 +- .../Types/MyMessagesAlertIDArrayTypeTest.php | 7 +- .../Trading/Types/MyMessagesAlertTypeTest.php | 7 +- ...MessagesExternalMessageIDArrayTypeTest.php | 7 +- .../Types/MyMessagesFolderSummaryTypeTest.php | 7 +- .../Types/MyMessagesFolderTypeTest.php | 7 +- .../MyMessagesForwardDetailsTypeTest.php | 7 +- .../Types/MyMessagesMessageArrayTypeTest.php | 7 +- .../MyMessagesMessageIDArrayTypeTest.php | 7 +- .../Types/MyMessagesMessageTypeTest.php | 7 +- .../MyMessagesResponseDetailsTypeTest.php | 7 +- .../Types/MyMessagesSummaryTypeTest.php | 7 +- .../MyeBayFavoriteSearchListTypeTest.php | 7 +- .../Types/MyeBayFavoriteSearchTypeTest.php | 7 +- .../MyeBayFavoriteSellerListTypeTest.php | 7 +- .../Types/MyeBayFavoriteSellerTypeTest.php | 7 +- .../MyeBaySecondChanceOfferListTypeTest.php | 7 +- .../Trading/Types/MyeBaySelectionTypeTest.php | 7 +- .../Types/MyeBaySellingSummaryTypeTest.php | 7 +- .../Types/NameRecommendationTypeTest.php | 7 +- .../Types/NameValueListArrayTypeTest.php | 7 +- test/Trading/Types/NameValueListTypeTest.php | 7 +- .../Types/NameValueRelationshipTypeTest.php | 7 +- .../Types/NonProfitAddressTypeTest.php | 7 +- .../Types/NonProfitSocialAddressTypeTest.php | 7 +- .../NonSubscriptionDefinitionTypeTest.php | 7 +- .../NotificationDetailsArrayTypeTest.php | 7 +- .../Types/NotificationDetailsTypeTest.php | 7 +- .../Types/NotificationEnableArrayTypeTest.php | 7 +- .../Types/NotificationEnableTypeTest.php | 7 +- .../NotificationEventPropertyTypeTest.php | 7 +- .../Types/NotificationMessageTypeTest.php | 7 +- .../Types/NotificationStatisticsTypeTest.php | 7 +- .../Types/NotificationUserDataTypeTest.php | 7 +- ...umberOfPolicyViolationsDetailsTypeTest.php | 7 +- test/Trading/Types/OfferArrayTypeTest.php | 7 +- test/Trading/Types/OfferTypeTest.php | 7 +- test/Trading/Types/OrderArrayTypeTest.php | 7 +- test/Trading/Types/OrderIDArrayTypeTest.php | 7 +- .../Types/OrderTransactionArrayTypeTest.php | 7 +- .../Types/OrderTransactionTypeTest.php | 7 +- test/Trading/Types/OrderTypeTest.php | 7 +- .../Types/PaginatedItemArrayTypeTest.php | 7 +- ...PaginatedOrderTransactionArrayTypeTest.php | 7 +- .../PaginatedTransactionArrayTypeTest.php | 7 +- .../Types/PaginationResultTypeTest.php | 7 +- test/Trading/Types/PaginationTypeTest.php | 7 +- ...PayFullEscrowEnabledDefinitionTypeTest.php | 7 +- ...yerProtectionEnabledDefinitionTypeTest.php | 7 +- .../PayPalRequiredDefinitionTypeTest.php | 7 +- ...equiredForStoreOwnerDefinitionTypeTest.php | 7 +- test/Trading/Types/PaymentDetailsTypeTest.php | 7 +- .../Types/PaymentHoldDetailTypeTest.php | 7 +- .../Types/PaymentInformationCodeTypeTest.php | 7 +- .../Types/PaymentInformationTypeTest.php | 7 +- .../Types/PaymentMethodDefinitionTypeTest.php | 7 +- .../Types/PaymentOptionDetailsTypeTest.php | 7 +- ...tOptionsGroupEnabledDefinitionTypeTest.php | 7 +- .../Types/PaymentTransactionCodeTypeTest.php | 7 +- .../Types/PaymentTransactionTypeTest.php | 7 +- .../Types/PaymentsInformationCodeTypeTest.php | 7 +- .../Types/PaymentsInformationTypeTest.php | 7 +- .../Types/PerformanceDashboardTypeTest.php | 7 +- test/Trading/Types/PickupDetailsTypeTest.php | 7 +- ...PickupDropOffEnabledDefinitionTypeTest.php | 7 +- .../Types/PickupInStoreDetailsTypeTest.php | 7 +- .../Types/PickupMethodSelectedTypeTest.php | 7 +- test/Trading/Types/PickupOptionsTypeTest.php | 7 +- test/Trading/Types/PictureDetailsTypeTest.php | 7 +- .../Types/PictureManagerDetailsTypeTest.php | 7 +- .../Types/PictureManagerFolderTypeTest.php | 7 +- .../PictureManagerPictureDisplayTypeTest.php | 7 +- .../Types/PictureManagerPictureTypeTest.php | 7 +- .../PictureManagerSubscriptionTypeTest.php | 7 +- .../Types/PictureSetMemberTypeTest.php | 7 +- test/Trading/Types/PictureURLsTypeTest.php | 7 +- test/Trading/Types/PicturesTypeTest.php | 7 +- .../Types/PlaceOfferRequestTypeTest.php | 7 +- .../Types/PlaceOfferResponseTypeTest.php | 7 +- .../PolicyComplianceDashboardTypeTest.php | 7 +- ...PolicyViolationDurationDetailsTypeTest.php | 7 +- .../Types/PowerSellerDashboardTypeTest.php | 7 +- .../PremiumSubscriptionDefinitionTypeTest.php | 7 +- .../Types/PricingRecommendationsTypeTest.php | 7 +- .../ProPackEnabledDefinitionTypeTest.php | 7 +- .../ProPackPlusEnabledDefinitionTypeTest.php | 7 +- .../ProStoresCheckoutPreferenceTypeTest.php | 7 +- .../Types/ProStoresDetailsTypeTest.php | 7 +- ...oductCreationEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/ProductDetailsTypeTest.php | 7 +- test/Trading/Types/ProductFamilyTypeTest.php | 7 +- .../Types/ProductFinderConstraintTypeTest.php | 7 +- test/Trading/Types/ProductInfoTypeTest.php | 7 +- .../Types/ProductListingDetailsTypeTest.php | 7 +- .../Types/ProductRecommendationsTypeTest.php | 7 +- .../Types/ProductSearchPageTypeTest.php | 7 +- .../Types/ProductSearchResultTypeTest.php | 7 +- test/Trading/Types/ProductSearchTypeTest.php | 7 +- .../Types/ProductSuggestionTypeTest.php | 7 +- .../Types/ProductSuggestionsTypeTest.php | 7 +- test/Trading/Types/ProductTypeTest.php | 7 +- ...ProfileCategoryGroupDefinitionTypeTest.php | 7 +- test/Trading/Types/PromotedItemTypeTest.php | 7 +- .../Types/PromotionDetailsTypeTest.php | 7 +- .../Types/PromotionRuleArrayTypeTest.php | 7 +- test/Trading/Types/PromotionRuleTypeTest.php | 7 +- .../Types/PromotionalSaleArrayTypeTest.php | 7 +- .../Types/PromotionalSaleDetailsTypeTest.php | 7 +- .../Trading/Types/PromotionalSaleTypeTest.php | 7 +- ...otionalShippingDiscountDetailsTypeTest.php | 7 +- ...rchaseReminderEmailPreferencesTypeTest.php | 7 +- test/Trading/Types/QuantityInfoTypeTest.php | 7 +- ...uantityRestrictionPerBuyerInfoTypeTest.php | 7 +- test/Trading/Types/QuantityTypeTest.php | 7 +- .../Types/RateTableDetailsTypeTest.php | 7 +- .../Types/ReasonCodeDetailTypeTest.php | 7 +- test/Trading/Types/RecommendationTypeTest.php | 7 +- .../RecommendationValidationRulesTypeTest.php | 7 +- .../Trading/Types/RecommendationsTypeTest.php | 7 +- .../Types/RecoupmentPolicyConsentTypeTest.php | 7 +- .../Types/RecoupmentPolicyDetailsTypeTest.php | 7 +- test/Trading/Types/RefundArrayTypeTest.php | 7 +- test/Trading/Types/RefundDetailsTypeTest.php | 7 +- .../Types/RefundFailureReasonTypeTest.php | 7 +- .../RefundFundingSourceArrayTypeTest.php | 7 +- .../Types/RefundFundingSourceTypeTest.php | 7 +- .../Types/RefundInformationTypeTest.php | 7 +- .../Trading/Types/RefundLineArrayTypeTest.php | 7 +- test/Trading/Types/RefundLineTypeTest.php | 7 +- .../Types/RefundTransactionArrayTypeTest.php | 7 +- .../Types/RefundTransactionInfoTypeTest.php | 7 +- .../Types/RefundTransactionTypeTest.php | 7 +- test/Trading/Types/RefundTypeTest.php | 7 +- test/Trading/Types/RegionDetailsTypeTest.php | 7 +- .../Types/RegionOfOriginDetailsTypeTest.php | 7 +- .../RegularSubscriptionDefinitionTypeTest.php | 7 +- .../RelistFixedPriceItemRequestTypeTest.php | 7 +- .../RelistFixedPriceItemResponseTypeTest.php | 7 +- .../Types/RelistItemRequestTypeTest.php | 7 +- .../Types/RelistItemResponseTypeTest.php | 7 +- .../Types/ReminderCustomizationTypeTest.php | 7 +- test/Trading/Types/RemindersTypeTest.php | 7 +- .../RemoveFromWatchListRequestTypeTest.php | 7 +- .../RemoveFromWatchListResponseTypeTest.php | 7 +- .../RequiredSellerActionArrayTypeTest.php | 7 +- .../RespondToBestOfferRequestTypeTest.php | 7 +- .../RespondToBestOfferResponseTypeTest.php | 7 +- .../RespondToFeedbackRequestTypeTest.php | 7 +- .../RespondToFeedbackResponseTypeTest.php | 7 +- .../Types/ResponseAttributeSetTypeTest.php | 7 +- .../RestockingFeeValueDetailsTypeTest.php | 7 +- .../Types/ReturnPolicyDetailsTypeTest.php | 7 +- .../ReturnPolicyEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/ReturnPolicyTypeTest.php | 7 +- .../Types/ReturnsAcceptedDetailsTypeTest.php | 7 +- .../Types/ReturnsWithinDetailsTypeTest.php | 7 +- test/Trading/Types/ReviewDetailsTypeTest.php | 7 +- test/Trading/Types/ReviewTypeTest.php | 7 +- .../ReviseCheckoutStatusRequestTypeTest.php | 7 +- .../ReviseCheckoutStatusResponseTypeTest.php | 7 +- .../ReviseFixedPriceItemRequestTypeTest.php | 7 +- .../ReviseFixedPriceItemResponseTypeTest.php | 7 +- .../ReviseInventoryStatusRequestTypeTest.php | 7 +- .../ReviseInventoryStatusResponseTypeTest.php | 7 +- .../Types/ReviseItemRequestTypeTest.php | 7 +- .../Types/ReviseItemResponseTypeTest.php | 7 +- ...ReviseMyMessagesFoldersRequestTypeTest.php | 7 +- ...eviseMyMessagesFoldersResponseTypeTest.php | 7 +- .../Types/ReviseMyMessagesRequestTypeTest.php | 7 +- .../ReviseMyMessagesResponseTypeTest.php | 7 +- .../RevisePriceAllowedDefinitionTypeTest.php | 7 +- ...eviseQuantityAllowedDefinitionTypeTest.php | 7 +- ...gManagerInventoryFolderRequestTypeTest.php | 7 +- ...ManagerInventoryFolderResponseTypeTest.php | 7 +- ...seSellingManagerProductRequestTypeTest.php | 7 +- ...eSellingManagerProductResponseTypeTest.php | 7 +- ...ellingManagerSaleRecordRequestTypeTest.php | 7 +- ...llingManagerSaleRecordResponseTypeTest.php | 7 +- ...eSellingManagerTemplateRequestTypeTest.php | 7 +- ...SellingManagerTemplateResponseTypeTest.php | 7 +- test/Trading/Types/ReviseStatusTypeTest.php | 7 +- .../Types/RevokeTokenRequestTypeTest.php | 7 +- .../Types/RevokeTokenResponseTypeTest.php | 7 +- .../Types/SIFFTASRecommendationsTypeTest.php | 7 +- test/Trading/Types/SKUArrayTypeTest.php | 7 +- .../Trading/Types/SMSSubscriptionTypeTest.php | 7 +- .../SafePaymentRequiredDefinitionTypeTest.php | 7 +- test/Trading/Types/SalesTaxTypeTest.php | 7 +- ...oSellingManagerTemplateRequestTypeTest.php | 7 +- ...SellingManagerTemplateResponseTypeTest.php | 7 +- test/Trading/Types/ScheduleTypeTest.php | 7 +- test/Trading/Types/SchedulingInfoTypeTest.php | 7 +- .../Types/SearchAttributesTypeTest.php | 7 +- test/Trading/Types/SearchDetailsTypeTest.php | 7 +- .../Types/SearchStandingDashboardTypeTest.php | 7 +- .../Types/SellerAccountDashboardTypeTest.php | 7 +- ...ontactDetailsEnabledDefinitionTypeTest.php | 7 +- .../Types/SellerDashboardAlertTypeTest.php | 7 +- test/Trading/Types/SellerDiscountTypeTest.php | 7 +- .../Trading/Types/SellerDiscountsTypeTest.php | 7 +- ...cludeShipToLocationPreferencesTypeTest.php | 7 +- .../SellerFavoriteItemPreferencesTypeTest.php | 7 +- .../SellerFeeDiscountDashboardTypeTest.php | 7 +- .../SellerPaymentPreferencesTypeTest.php | 7 +- .../Types/SellerPaymentProfileTypeTest.php | 7 +- test/Trading/Types/SellerPaymentTypeTest.php | 7 +- .../SellerProfilePreferencesTypeTest.php | 7 +- test/Trading/Types/SellerProfilesTypeTest.php | 7 +- ...ovidedTitleSupportedDefinitionTypeTest.php | 7 +- .../SellerRatingSummaryArrayTypeTest.php | 7 +- .../Types/SellerReturnPreferencesTypeTest.php | 7 +- .../Types/SellerReturnProfileTypeTest.php | 7 +- .../SellerReverseDisputeRequestTypeTest.php | 7 +- .../SellerReverseDisputeResponseTypeTest.php | 7 +- .../Types/SellerRoleMetricsTypeTest.php | 7 +- .../Types/SellerShippingProfileTypeTest.php | 7 +- test/Trading/Types/SellerTypeTest.php | 7 +- ...reBayPaymentProcessConsentCodeTypeTest.php | 7 +- .../Types/SellingManagerAlertTypeTest.php | 7 +- ...gerAutoListAccordingToScheduleTypeTest.php | 7 +- ...gManagerAutoListMinActiveItemsTypeTest.php | 7 +- .../Types/SellingManagerAutoListTypeTest.php | 7 +- .../SellingManagerAutoRelistTypeTest.php | 7 +- ...ngManagerAutoSecondChanceOfferTypeTest.php | 7 +- .../Types/SellingManagerEmailLogTypeTest.php | 7 +- .../SellingManagerFolderDetailsTypeTest.php | 7 +- .../SellingManagerOrderStatusTypeTest.php | 7 +- .../SellingManagerProductDetailsTypeTest.php | 7 +- ...gManagerProductInventoryStatusTypeTest.php | 7 +- ...SellingManagerProductSpecificsTypeTest.php | 7 +- .../Types/SellingManagerProductTypeTest.php | 7 +- .../Types/SellingManagerSearchTypeTest.php | 7 +- .../Types/SellingManagerSoldOrderTypeTest.php | 7 +- .../SellingManagerSoldTransactionTypeTest.php | 7 +- ...ingManagerTemplateDetailsArrayTypeTest.php | 7 +- .../SellingManagerTemplateDetailsTypeTest.php | 7 +- .../SellingManagerVendorDetailsTypeTest.php | 7 +- test/Trading/Types/SellingStatusTypeTest.php | 7 +- test/Trading/Types/SellingSummaryTypeTest.php | 7 +- .../Types/SendInvoiceRequestTypeTest.php | 7 +- .../Types/SendInvoiceResponseTypeTest.php | 7 +- .../SetMessagePreferencesRequestTypeTest.php | 7 +- .../SetMessagePreferencesResponseTypeTest.php | 7 +- ...NotificationPreferencesRequestTypeTest.php | 7 +- ...otificationPreferencesResponseTypeTest.php | 7 +- ...PromotionalSaleListingsRequestTypeTest.php | 7 +- ...romotionalSaleListingsResponseTypeTest.php | 7 +- .../SetPromotionalSaleRequestTypeTest.php | 7 +- .../SetPromotionalSaleResponseTypeTest.php | 7 +- ...gManagerFeedbackOptionsRequestTypeTest.php | 7 +- ...ManagerFeedbackOptionsResponseTypeTest.php | 7 +- ...nagerItemAutomationRuleRequestTypeTest.php | 7 +- ...agerItemAutomationRuleResponseTypeTest.php | 7 +- ...rTemplateAutomationRuleRequestTypeTest.php | 7 +- ...TemplateAutomationRuleResponseTypeTest.php | 7 +- ...hippingDiscountProfilesRequestTypeTest.php | 7 +- ...ippingDiscountProfilesResponseTypeTest.php | 7 +- .../SetStoreCategoriesRequestTypeTest.php | 7 +- .../SetStoreCategoriesResponseTypeTest.php | 7 +- .../SetStoreCustomPageRequestTypeTest.php | 7 +- .../SetStoreCustomPageResponseTypeTest.php | 7 +- .../SetStorePreferencesRequestTypeTest.php | 7 +- .../SetStorePreferencesResponseTypeTest.php | 7 +- .../Trading/Types/SetStoreRequestTypeTest.php | 7 +- .../Types/SetStoreResponseTypeTest.php | 7 +- .../Types/SetTaxTableRequestTypeTest.php | 7 +- .../Types/SetTaxTableResponseTypeTest.php | 7 +- .../Types/SetUserNotesRequestTypeTest.php | 7 +- .../Types/SetUserNotesResponseTypeTest.php | 7 +- .../SetUserPreferencesRequestTypeTest.php | 7 +- .../SetUserPreferencesResponseTypeTest.php | 7 +- .../Types/ShipPackageDetailsTypeTest.php | 7 +- .../Types/ShipmentLineItemTypeTest.php | 7 +- .../Types/ShipmentTrackingDetailsTypeTest.php | 7 +- test/Trading/Types/ShipmentTypeTest.php | 7 +- .../Types/ShippingCarrierDetailsTypeTest.php | 7 +- .../Types/ShippingCategoryDetailsTypeTest.php | 7 +- .../ShippingCostPaidByDetailsTypeTest.php | 7 +- .../Trading/Types/ShippingDetailsTypeTest.php | 7 +- .../ShippingEstimatedDeliveryInfoTypeTest.php | 7 +- .../Types/ShippingInsuranceTypeTest.php | 7 +- .../Types/ShippingLocationDetailsTypeTest.php | 7 +- .../Types/ShippingPackageDetailsTypeTest.php | 7 +- .../Types/ShippingPackageInfoTypeTest.php | 7 +- ...hippingServiceCostOverrideListTypeTest.php | 7 +- .../ShippingServiceCostOverrideTypeTest.php | 7 +- .../Types/ShippingServiceDetailsTypeTest.php | 7 +- .../Types/ShippingServiceOptionsTypeTest.php | 7 +- .../ShippingServicePackageDetailsTypeTest.php | 7 +- ...ShippingTermRequiredDefinitionTypeTest.php | 7 +- .../SiteBuyerRequirementDetailsTypeTest.php | 7 +- test/Trading/Types/SiteDefaultsTypeTest.php | 7 +- test/Trading/Types/SiteDetailsTypeTest.php | 7 +- .../SiteHostedPictureDetailsTypeTest.php | 7 +- test/Trading/Types/SiteLocationTypeTest.php | 7 +- .../Types/SiteWideCharacteristicsTypeTest.php | 7 +- ...TransactionalEnabledDefinitionTypeTest.php | 7 +- ...TransactionalEnabledDefinitionTypeTest.php | 7 +- ...ecialitySubscriptionDefinitionTypeTest.php | 7 +- .../Types/StoreColorSchemeArrayTypeTest.php | 7 +- .../Types/StoreColorSchemeTypeTest.php | 7 +- test/Trading/Types/StoreColorTypeTest.php | 7 +- .../StoreCustomCategoryArrayTypeTest.php | 7 +- .../Types/StoreCustomCategoryTypeTest.php | 7 +- .../StoreCustomListingHeaderLinkTypeTest.php | 7 +- .../StoreCustomListingHeaderTypeTest.php | 7 +- .../Types/StoreCustomPageArrayTypeTest.php | 7 +- .../Trading/Types/StoreCustomPageTypeTest.php | 7 +- test/Trading/Types/StoreFontTypeTest.php | 7 +- ...toreInventoryEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/StoreLogoArrayTypeTest.php | 7 +- test/Trading/Types/StoreLogoTypeTest.php | 7 +- ...ndedListingDurationsDefinitionTypeTest.php | 7 +- ...tingDurationsEnabledDefinitionTypeTest.php | 7 +- ...eOwnerExtendedListingDurationsTypeTest.php | 7 +- .../Types/StorePreferencesTypeTest.php | 7 +- .../Types/StoreSubscriptionArrayTypeTest.php | 7 +- .../Types/StoreSubscriptionTypeTest.php | 7 +- .../Trading/Types/StoreThemeArrayTypeTest.php | 7 +- test/Trading/Types/StoreThemeTypeTest.php | 7 +- test/Trading/Types/StoreTypeTest.php | 7 +- .../StoreVacationPreferencesTypeTest.php | 7 +- test/Trading/Types/StorefrontTypeTest.php | 7 +- test/Trading/Types/SubscriptionTypeTest.php | 7 +- .../Types/SuggestedBidValueTypeTest.php | 7 +- .../Types/SuggestedCategoryArrayTypeTest.php | 7 +- .../Types/SuggestedCategoryTypeTest.php | 7 +- .../Types/SummaryEventScheduleTypeTest.php | 7 +- .../SupportedEventTypesArrayTypeTest.php | 7 +- .../Types/SupportedSellerProfileTypeTest.php | 7 +- .../Types/SupportedSellerProfilesTypeTest.php | 7 +- .../Types/TCREnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/TaxDetailsTypeTest.php | 7 +- .../Types/TaxIdentifierAttributeTypeTest.php | 7 +- test/Trading/Types/TaxIdentifierTypeTest.php | 7 +- .../Trading/Types/TaxJurisdictionTypeTest.php | 7 +- test/Trading/Types/TaxTableTypeTest.php | 7 +- test/Trading/Types/TaxesTypeTest.php | 7 +- test/Trading/Types/ThemeGroupTypeTest.php | 7 +- .../Types/TicketListingDetailsTypeTest.php | 7 +- test/Trading/Types/TimeRangeTypeTest.php | 7 +- .../Trading/Types/TimeZoneDetailsTypeTest.php | 7 +- test/Trading/Types/TokenStatusTypeTest.php | 7 +- .../Types/TopRatedSellerDetailsTypeTest.php | 7 +- .../Types/TransactionArrayTypeTest.php | 7 +- .../Types/TransactionReferenceTypeTest.php | 7 +- .../Types/TransactionStatusTypeTest.php | 7 +- test/Trading/Types/TransactionTypeTest.php | 7 +- .../Types/UPCEnabledDefinitionTypeTest.php | 7 +- ...UPCIdentifierEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/URLDetailsTypeTest.php | 7 +- test/Trading/Types/UnitInfoTypeTest.php | 7 +- .../UnitOfMeasurementDetailsTypeTest.php | 7 +- .../Types/UnitOfMeasurementTypeTest.php | 7 +- ...npaidItemAssistancePreferencesTypeTest.php | 7 +- test/Trading/Types/UnpaidItemTypeTest.php | 7 +- ...ploadSiteHostedPicturesRequestTypeTest.php | 7 +- ...loadSiteHostedPicturesResponseTypeTest.php | 7 +- .../Types/UserAgreementInfoTypeTest.php | 7 +- .../UserConsentRequiredDefinitionTypeTest.php | 7 +- .../Trading/Types/UserDefinedListTypeTest.php | 7 +- test/Trading/Types/UserIDArrayTypeTest.php | 7 +- test/Trading/Types/UserIdPasswordTypeTest.php | 7 +- test/Trading/Types/UserIdentityTypeTest.php | 7 +- test/Trading/Types/UserTypeTest.php | 7 +- test/Trading/Types/VATDetailsTypeTest.php | 7 +- test/Trading/Types/VATRateTypeTest.php | 7 +- .../Types/VINSupportedDefinitionTypeTest.php | 7 +- .../Types/VRMSupportedDefinitionTypeTest.php | 7 +- test/Trading/Types/ValTypeTest.php | 7 +- .../ValidateChallengeInputRequestTypeTest.php | 7 +- ...ValidateChallengeInputResponseTypeTest.php | 7 +- ...ateTestUserRegistrationRequestTypeTest.php | 7 +- ...teTestUserRegistrationResponseTypeTest.php | 7 +- .../Types/ValueCategoryDefinitionTypeTest.php | 7 +- .../ValuePackEnabledDefinitionTypeTest.php | 7 +- .../Types/ValueRecommendationTypeTest.php | 7 +- .../Types/VariationDetailsTypeTest.php | 7 +- test/Trading/Types/VariationKeyTypeTest.php | 7 +- ...VariationProductListingDetailsTypeTest.php | 7 +- .../VariationSpecificPictureSetTypeTest.php | 7 +- test/Trading/Types/VariationTypeTest.php | 7 +- .../VariationsEnabledDefinitionTypeTest.php | 7 +- test/Trading/Types/VariationsTypeTest.php | 7 +- .../Types/VeROReasonCodeDetailsTypeTest.php | 7 +- test/Trading/Types/VeROReportItemTypeTest.php | 7 +- .../Types/VeROReportItemsRequestTypeTest.php | 7 +- .../Types/VeROReportItemsResponseTypeTest.php | 7 +- .../Trading/Types/VeROReportItemsTypeTest.php | 7 +- .../Types/VeROReportedItemDetailsTypeTest.php | 7 +- .../Types/VeROReportedItemTypeTest.php | 7 +- test/Trading/Types/VeROSiteDetailTypeTest.php | 7 +- ...erifiedUserRequirementsDetailsTypeTest.php | 7 +- .../VerifiedUserRequirementsTypeTest.php | 7 +- ...VerifyAddFixedPriceItemRequestTypeTest.php | 7 +- ...erifyAddFixedPriceItemResponseTypeTest.php | 7 +- .../Types/VerifyAddItemRequestTypeTest.php | 7 +- .../Types/VerifyAddItemResponseTypeTest.php | 7 +- ...rifyAddSecondChanceItemRequestTypeTest.php | 7 +- ...ifyAddSecondChanceItemResponseTypeTest.php | 7 +- .../Types/VerifyRelistItemRequestTypeTest.php | 7 +- .../VerifyRelistItemResponseTypeTest.php | 7 +- .../Types/WantItNowPostArrayTypeTest.php | 7 +- test/Trading/Types/WantItNowPostTypeTest.php | 7 +- .../Types/WarrantyDurationDetailsTypeTest.php | 7 +- .../Types/WarrantyOfferedDetailsTypeTest.php | 7 +- .../Types/WarrantyTypeDetailsTypeTest.php | 7 +- .../Types/XMLRequesterCredentialsTypeTest.php | 7 +- test/Trading/Types/XSLFileTypeTest.php | 7 +- test/Types/AmountClassTest.php | 2 + test/Types/AttachmentTest.php | 5 + test/Types/Base64BinaryTypeTest.php | 2 + test/Types/BaseTypeTest.php | 2 + test/Types/BooleanTypeTest.php | 2 + test/Types/ComplexClassTest.php | 43 + test/Types/ConstructTest.php | 51 +- test/Types/DecimalTypeTest.php | 2 + test/Types/DoubleTypeTest.php | 2 + test/Types/IntegerTypeTest.php | 2 + test/Types/RepeatableTypeTest.php | 2 + test/Types/SimpleClassTest.php | 39 +- test/Types/StrictPropertyTypesTest.php | 2 + test/Types/StringTypeTest.php | 2 + test/Types/ToArrayTest.php | 2 + test/Types/TokenTypeTest.php | 2 + test/Types/URITypeTest.php | 2 + test/UriResolverTest.php | 295 +++ 6701 files changed, 137968 insertions(+), 10676 deletions(-) create mode 100644 docs/guide/restful-services.rst create mode 100644 src/Account/Enums/CategoryTypeEnum.php create mode 100644 src/Account/Enums/CountryCodeEnum.php create mode 100644 src/Account/Enums/CurrencyCodeEnum.php create mode 100644 src/Account/Enums/ExternalPaymentMethodTypeEnum.php create mode 100644 src/Account/Enums/MarketplaceIdEnum.php create mode 100644 src/Account/Enums/PaymentInstrumentBrandEnum.php create mode 100644 src/Account/Enums/PaymentMethodTypeEnum.php create mode 100644 src/Account/Enums/ProgramTypeEnum.php create mode 100644 src/Account/Enums/RecipientAccountReferenceTypeEnum.php create mode 100644 src/Account/Enums/RefundMethodEnum.php create mode 100644 src/Account/Enums/RegionTypeEnum.php create mode 100644 src/Account/Enums/ReturnMethodEnum.php create mode 100644 src/Account/Enums/ReturnShippingCostPayerEnum.php create mode 100644 src/Account/Enums/ShippingCostTypeEnum.php create mode 100644 src/Account/Enums/ShippingOptionTypeEnum.php create mode 100644 src/Account/Enums/TimeDurationUnitEnum.php create mode 100644 src/Account/Services/AccountBaseService.php create mode 100644 src/Account/Services/AccountService.php create mode 100644 src/Account/Types/Amount.php create mode 100644 src/Account/Types/CategoryType.php create mode 100644 src/Account/Types/CreateAFulfillmentPolicyRestRequest.php create mode 100644 src/Account/Types/CreateAFulfillmentPolicyRestResponse.php create mode 100644 src/Account/Types/CreateAPaymentPolicyRestRequest.php create mode 100644 src/Account/Types/CreateAPaymentPolicyRestResponse.php create mode 100644 src/Account/Types/CreateAReturnPolicyRestRequest.php create mode 100644 src/Account/Types/CreateAReturnPolicyRestResponse.php create mode 100644 src/Account/Types/CreateASalesTaxTableRestRequest.php create mode 100644 src/Account/Types/CreateASalesTaxTableRestResponse.php create mode 100644 src/Account/Types/DeleteAFulfillmentPolicyRestRequest.php create mode 100644 src/Account/Types/DeleteAFulfillmentPolicyRestResponse.php create mode 100644 src/Account/Types/DeleteAPaymentPolicyRestRequest.php create mode 100644 src/Account/Types/DeleteAPaymentPolicyRestResponse.php create mode 100644 src/Account/Types/DeleteAReturnPolicyRestRequest.php create mode 100644 src/Account/Types/DeleteAReturnPolicyRestResponse.php create mode 100644 src/Account/Types/DeleteASalesTaxTableRestRequest.php create mode 100644 src/Account/Types/DeleteASalesTaxTableRestResponse.php create mode 100644 src/Account/Types/Deposit.php create mode 100644 src/Account/Types/ErrorDetailV3.php create mode 100644 src/Account/Types/ErrorParameterV3.php create mode 100644 src/Account/Types/ExternalPaymentMethod.php create mode 100644 src/Account/Types/FulfillmentPolicy.php create mode 100644 src/Account/Types/FulfillmentPolicyRequest.php create mode 100644 src/Account/Types/FulfillmentPolicyResponse.php create mode 100644 src/Account/Types/GetAFulfillmentPolicyByIDRestRequest.php create mode 100644 src/Account/Types/GetAFulfillmentPolicyByIDRestResponse.php create mode 100644 src/Account/Types/GetAFulfillmentPolicyByNameRestRequest.php create mode 100644 src/Account/Types/GetAFulfillmentPolicyByNameRestResponse.php create mode 100644 src/Account/Types/GetAPaymentPolicyByIDRestRequest.php create mode 100644 src/Account/Types/GetAPaymentPolicyByIDRestResponse.php create mode 100644 src/Account/Types/GetAPaymentPolicyByNameRestRequest.php create mode 100644 src/Account/Types/GetAPaymentPolicyByNameRestResponse.php create mode 100644 src/Account/Types/GetAReturnPolicyByIDRestRequest.php create mode 100644 src/Account/Types/GetAReturnPolicyByIDRestResponse.php create mode 100644 src/Account/Types/GetAReturnPolicyByNameRestRequest.php create mode 100644 src/Account/Types/GetAReturnPolicyByNameRestResponse.php create mode 100644 src/Account/Types/GetASalesTaxTableRestRequest.php create mode 100644 src/Account/Types/GetASalesTaxTableRestResponse.php create mode 100644 src/Account/Types/GetAccountPrivilegesRestResponse.php create mode 100644 src/Account/Types/GetAllSalesTaxTablesRestRequest.php create mode 100644 src/Account/Types/GetAllSalesTaxTablesRestResponse.php create mode 100644 src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequest.php create mode 100644 src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponse.php create mode 100644 src/Account/Types/GetOptedInProgramsRestResponse.php create mode 100644 src/Account/Types/GetPaymentPoliciesByMarketplaceRestRequest.php create mode 100644 src/Account/Types/GetPaymentPoliciesByMarketplaceRestResponse.php create mode 100644 src/Account/Types/GetReturnPoliciesByMarketplaceRestRequest.php create mode 100644 src/Account/Types/GetReturnPoliciesByMarketplaceRestResponse.php create mode 100644 src/Account/Types/InventorySizing.php create mode 100644 src/Account/Types/InventorySnapshot.php create mode 100644 src/Account/Types/LookbackPeriod.php create mode 100644 src/Account/Types/MerchantExternalProfile.php create mode 100644 src/Account/Types/OptInToProgramRestRequest.php create mode 100644 src/Account/Types/OptInToProgramRestResponse.php create mode 100644 src/Account/Types/OptOutOfProgramRestRequest.php create mode 100644 src/Account/Types/OptOutOfProgramRestResponse.php create mode 100644 src/Account/Types/PaymentMethod.php create mode 100644 src/Account/Types/PaymentPolicy.php create mode 100644 src/Account/Types/PaymentPolicyRequest.php create mode 100644 src/Account/Types/PaymentPolicyResponse.php create mode 100644 src/Account/Types/Program.php create mode 100644 src/Account/Types/Programs.php create mode 100644 src/Account/Types/RecipientAccountReference.php create mode 100644 src/Account/Types/Region.php create mode 100644 src/Account/Types/RegionSet.php create mode 100644 src/Account/Types/ReturnPolicy.php create mode 100644 src/Account/Types/ReturnPolicyRequest.php create mode 100644 src/Account/Types/ReturnPolicyResponse.php create mode 100644 src/Account/Types/ReturnSnapshot.php create mode 100644 src/Account/Types/SalesTax.php create mode 100644 src/Account/Types/SalesTaxBase.php create mode 100644 src/Account/Types/SalesTaxes.php create mode 100644 src/Account/Types/SellingLimit.php create mode 100644 src/Account/Types/SellingPrivileges.php create mode 100644 src/Account/Types/SetFulfillmentPolicyResponse.php create mode 100644 src/Account/Types/SetPaymentPolicyResponse.php create mode 100644 src/Account/Types/SetReturnPolicyResponse.php create mode 100644 src/Account/Types/ShippingOption.php create mode 100644 src/Account/Types/ShippingService.php create mode 100644 src/Account/Types/SoldAggregatedMetrics.php create mode 100644 src/Account/Types/TimeDuration.php create mode 100644 src/Account/Types/TransactionSnapshot.php create mode 100644 src/Account/Types/TransactionVolume.php create mode 100644 src/Account/Types/UpdateAFulfillmentPolicyRestRequest.php create mode 100644 src/Account/Types/UpdateAFulfillmentPolicyRestResponse.php create mode 100644 src/Account/Types/UpdateAPaymentPolicyRestRequest.php create mode 100644 src/Account/Types/UpdateAPaymentPolicyRestResponse.php create mode 100644 src/Account/Types/UpdateAReturnPolicyRestRequest.php create mode 100644 src/Account/Types/UpdateAReturnPolicyRestResponse.php create mode 100644 src/Analytics/Enums/CycleTypeEnum.php create mode 100644 src/Analytics/Enums/DataTypeEnum.php create mode 100644 src/Analytics/Enums/ProgramEnum.php create mode 100644 src/Analytics/Enums/StandardsLevelEnum.php create mode 100644 src/Analytics/Services/AnalyticsBaseService.php create mode 100644 src/Analytics/Services/AnalyticsService.php create mode 100644 src/Analytics/Types/Cycle.php create mode 100644 src/Analytics/Types/Definition.php create mode 100644 src/Analytics/Types/ErrorDetailV3.php create mode 100644 src/Analytics/Types/ErrorParameterV3.php create mode 100644 src/Analytics/Types/FilterField.php create mode 100644 src/Analytics/Types/FindSellerStandardsProfilesResponse.php create mode 100644 src/Analytics/Types/GetASpecificSellerProfileRestRequest.php create mode 100644 src/Analytics/Types/GetASpecificSellerProfileRestResponse.php create mode 100644 src/Analytics/Types/GetAllSellerProfilesRestResponse.php create mode 100644 src/Analytics/Types/GetTrafficReportRestRequest.php create mode 100644 src/Analytics/Types/GetTrafficReportRestResponse.php create mode 100644 src/Analytics/Types/Header.php create mode 100644 src/Analytics/Types/Metric.php create mode 100644 src/Analytics/Types/RangeValue.php create mode 100644 src/Analytics/Types/Record.php create mode 100644 src/Analytics/Types/Report.php create mode 100644 src/Analytics/Types/StandardsProfile.php create mode 100644 src/Analytics/Types/Value.php create mode 100644 src/Browse/Enums/AvailabilityStatusEnum.php create mode 100644 src/Browse/Enums/CountryCodeEnum.php create mode 100644 src/Browse/Enums/CurrencyCodeEnum.php create mode 100644 src/Browse/Enums/PriceDisplayConditionEnum.php create mode 100644 src/Browse/Enums/RefundMethodEnum.php create mode 100644 src/Browse/Enums/ReturnMethodEnum.php create mode 100644 src/Browse/Enums/ReturnShippingCostPayerEnum.php create mode 100644 src/Browse/Enums/TimeDurationUnitEnum.php create mode 100644 src/Browse/Enums/ValueTypeEnum.php create mode 100644 src/Browse/Services/BrowseBaseService.php create mode 100644 src/Browse/Services/BrowseService.php create mode 100644 src/Browse/Types/Address.php create mode 100644 src/Browse/Types/Amount.php create mode 100644 src/Browse/Types/Amount_0.php create mode 100644 src/Browse/Types/Category.php create mode 100644 src/Browse/Types/ErrorDetailV3.php create mode 100644 src/Browse/Types/ErrorParameterV3.php create mode 100644 src/Browse/Types/FilterField.php create mode 100644 src/Browse/Types/GetItemFeedRestRequest.php create mode 100644 src/Browse/Types/GetItemFeedRestResponse.php create mode 100644 src/Browse/Types/GetItemGroupRestRequest.php create mode 100644 src/Browse/Types/GetItemGroupRestResponse.php create mode 100644 src/Browse/Types/GetItemRestRequest.php create mode 100644 src/Browse/Types/GetItemRestResponse.php create mode 100644 src/Browse/Types/Image.php create mode 100644 src/Browse/Types/Item.php create mode 100644 src/Browse/Types/ItemDigest.php create mode 100644 src/Browse/Types/ItemFeed.php create mode 100644 src/Browse/Types/ItemFeedResponse.php create mode 100644 src/Browse/Types/ItemGroup.php create mode 100644 src/Browse/Types/ItemLocationImpl.php create mode 100644 src/Browse/Types/ItemReturnTerms.php create mode 100644 src/Browse/Types/ItemSummary.php create mode 100644 src/Browse/Types/MarketingPrice.php create mode 100644 src/Browse/Types/MarketingPrice_0.php create mode 100644 src/Browse/Types/PickupOptionSummary.php create mode 100644 src/Browse/Types/RangeValue.php create mode 100644 src/Browse/Types/RatingHistogram.php create mode 100644 src/Browse/Types/ReviewRating.php create mode 100644 src/Browse/Types/SearchForItemsRestRequest.php create mode 100644 src/Browse/Types/SearchForItemsRestResponse.php create mode 100644 src/Browse/Types/SearchPagedCollection.php create mode 100644 src/Browse/Types/Seller.php create mode 100644 src/Browse/Types/ShippingOption.php create mode 100644 src/Browse/Types/ShippingOptionSummary.php create mode 100644 src/Browse/Types/SortField.php create mode 100644 src/Browse/Types/TargetLocation.php create mode 100644 src/Browse/Types/TimeDuration.php create mode 100644 src/Browse/Types/TypedNameValue.php create mode 100644 src/Constants/MarketplaceIds.php create mode 100644 src/Feedback/Enums/AckValue.php create mode 100644 src/Feedback/Enums/ErrorCategory.php create mode 100644 src/Feedback/Enums/ErrorSeverity.php create mode 100644 src/Feedback/Services/FeedbackBaseService.php create mode 100644 src/Feedback/Services/FeedbackService.php create mode 100644 src/Feedback/Types/BaseServiceRequest.php create mode 100644 src/Feedback/Types/BaseServiceResponse.php create mode 100644 src/Feedback/Types/CreateDSRSummaryByCategoryRequest.php create mode 100644 src/Feedback/Types/CreateDSRSummaryByPeriodRequest.php create mode 100644 src/Feedback/Types/CreateDSRSummaryByShippingDetailRequest.php create mode 100644 src/Feedback/Types/CreateDSRSummaryByTransactionRequest.php create mode 100644 src/Feedback/Types/CreateDSRSummaryResponse.php create mode 100644 src/Feedback/Types/DSRSummary.php create mode 100644 src/Feedback/Types/DateRange.php create mode 100644 src/Feedback/Types/ErrorData.php create mode 100644 src/Feedback/Types/ErrorMessage.php create mode 100644 src/Feedback/Types/ErrorParameter.php create mode 100644 src/Feedback/Types/GetDSRSummaryRequest.php create mode 100644 src/Feedback/Types/GetDSRSummaryResponse.php create mode 100644 src/Feedback/Types/TransactionKey.php create mode 100644 src/Fulfillment/Enums/AcknowledgeStatusEnum.php create mode 100644 src/Fulfillment/Enums/CancelRequestStateEnum.php create mode 100644 src/Fulfillment/Enums/CancelStateEnum.php create mode 100644 src/Fulfillment/Enums/CountryCodeEnum.php create mode 100644 src/Fulfillment/Enums/CurrencyCodeEnum.php create mode 100644 src/Fulfillment/Enums/LineItemFulfillmentStatusEnum.php create mode 100644 src/Fulfillment/Enums/MarketplaceIdEnum.php create mode 100644 src/Fulfillment/Enums/OrderPaymentStatusEnum.php create mode 100644 src/Fulfillment/Enums/PaymentMethodTypeEnum.php create mode 100644 src/Fulfillment/Enums/PaymentStatusEnum.php create mode 100644 src/Fulfillment/Enums/RefundStatusEnum.php create mode 100644 src/Fulfillment/Enums/RefundTypeEnum.php create mode 100644 src/Fulfillment/Enums/SoldFormatEnum.php create mode 100644 src/Fulfillment/Services/FulfillmentBaseService.php create mode 100644 src/Fulfillment/Services/FulfillmentService.php create mode 100644 src/Fulfillment/Types/Address.php create mode 100644 src/Fulfillment/Types/Amount.php create mode 100644 src/Fulfillment/Types/AppliedPromotion.php create mode 100644 src/Fulfillment/Types/Attribute.php create mode 100644 src/Fulfillment/Types/Buyer.php create mode 100644 src/Fulfillment/Types/CancelRequest.php create mode 100644 src/Fulfillment/Types/CancelStatus.php create mode 100644 src/Fulfillment/Types/Contact.php create mode 100644 src/Fulfillment/Types/CreateAShippingFulfillmentRestRequest.php create mode 100644 src/Fulfillment/Types/CreateAShippingFulfillmentRestResponse.php create mode 100644 src/Fulfillment/Types/DeliveryCost.php create mode 100644 src/Fulfillment/Types/ErrorDetailV3.php create mode 100644 src/Fulfillment/Types/ErrorParameterV3.php create mode 100644 src/Fulfillment/Types/Fee.php create mode 100644 src/Fulfillment/Types/FilterField.php create mode 100644 src/Fulfillment/Types/FulfillmentInstructionsType.php create mode 100644 src/Fulfillment/Types/FulfillmentStartInstruction.php create mode 100644 src/Fulfillment/Types/GetAShippingFulfillmentRestRequest.php create mode 100644 src/Fulfillment/Types/GetAShippingFulfillmentRestResponse.php create mode 100644 src/Fulfillment/Types/GetAnOrderRestRequest.php create mode 100644 src/Fulfillment/Types/GetAnOrderRestResponse.php create mode 100644 src/Fulfillment/Types/GetOrdersRestRequest.php create mode 100644 src/Fulfillment/Types/GetOrdersRestResponse.php create mode 100644 src/Fulfillment/Types/GetShippingFulfillmentsRestRequest.php create mode 100644 src/Fulfillment/Types/GetShippingFulfillmentsRestResponse.php create mode 100644 src/Fulfillment/Types/GiftDetails.php create mode 100644 src/Fulfillment/Types/LineItem.php create mode 100644 src/Fulfillment/Types/LineItemProperties.php create mode 100644 src/Fulfillment/Types/LineItemReference.php create mode 100644 src/Fulfillment/Types/Order.php create mode 100644 src/Fulfillment/Types/OrderFulfillmentStatus.php create mode 100644 src/Fulfillment/Types/OrderRefund.php create mode 100644 src/Fulfillment/Types/OrderSearchPagedCollection.php create mode 100644 src/Fulfillment/Types/Payment.php create mode 100644 src/Fulfillment/Types/PaymentHold.php create mode 100644 src/Fulfillment/Types/PaymentSummary.php create mode 100644 src/Fulfillment/Types/PhoneNumber.php create mode 100644 src/Fulfillment/Types/PricingSummary.php create mode 100644 src/Fulfillment/Types/RangeValue.php create mode 100644 src/Fulfillment/Types/SellerActionsToRelease.php create mode 100644 src/Fulfillment/Types/ShippingFulfillment.php create mode 100644 src/Fulfillment/Types/ShippingFulfillmentDetails.php create mode 100644 src/Fulfillment/Types/ShippingFulfillmentPagedCollection.php create mode 100644 src/Fulfillment/Types/ShippingStep.php create mode 100644 src/Fulfillment/Types/Tax.php create mode 100644 src/HttpHeadersTrait.php create mode 100644 src/Inventory/Enums/AvailabilityTypeEnum.php create mode 100644 src/Inventory/Enums/ConditionEnum.php create mode 100644 src/Inventory/Enums/CountryCodeEnum.php create mode 100644 src/Inventory/Enums/DayOfWeekEnum.php create mode 100644 src/Inventory/Enums/FormatTypeEnum.php create mode 100644 src/Inventory/Enums/LengthUnitOfMeasureEnum.php create mode 100644 src/Inventory/Enums/ListingStatusEnum.php create mode 100644 src/Inventory/Enums/MarketplaceEnum.php create mode 100644 src/Inventory/Enums/MinimumAdvertisedPriceHandlingEnum.php create mode 100644 src/Inventory/Enums/OfferStatusEnum.php create mode 100644 src/Inventory/Enums/PackageTypeEnum.php create mode 100644 src/Inventory/Enums/ShippingServiceTypeEnum.php create mode 100644 src/Inventory/Enums/SoldOnEnum.php create mode 100644 src/Inventory/Enums/StatusEnum.php create mode 100644 src/Inventory/Enums/StoreTypeEnum.php create mode 100644 src/Inventory/Enums/TimeDurationUnitEnum.php create mode 100644 src/Inventory/Enums/WeightUnitOfMeasureEnum.php create mode 100644 src/Inventory/Services/InventoryBaseService.php create mode 100644 src/Inventory/Services/InventoryService.php create mode 100644 src/Inventory/Types/Address.php create mode 100644 src/Inventory/Types/Amount.php create mode 100644 src/Inventory/Types/Availability.php create mode 100644 src/Inventory/Types/BaseResponse.php create mode 100644 src/Inventory/Types/BulkPriceQuantity.php create mode 100644 src/Inventory/Types/BulkPriceQuantityResponse.php create mode 100644 src/Inventory/Types/BulkUpdatePriceAndQuantityRestRequest.php create mode 100644 src/Inventory/Types/BulkUpdatePriceAndQuantityRestResponse.php create mode 100644 src/Inventory/Types/Compatibility.php create mode 100644 src/Inventory/Types/CompatibleProduct.php create mode 100644 src/Inventory/Types/CreateInventoryLocationRestRequest.php create mode 100644 src/Inventory/Types/CreateInventoryLocationRestResponse.php create mode 100644 src/Inventory/Types/CreateOfferRestRequest.php create mode 100644 src/Inventory/Types/CreateOfferRestResponse.php create mode 100644 src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequest.php create mode 100644 src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponse.php create mode 100644 src/Inventory/Types/CreateOrReplaceInventoryItemRestRequest.php create mode 100644 src/Inventory/Types/CreateOrReplaceInventoryItemRestResponse.php create mode 100644 src/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequest.php create mode 100644 src/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponse.php create mode 100644 src/Inventory/Types/DeleteInventoryItemGroupRestRequest.php create mode 100644 src/Inventory/Types/DeleteInventoryItemGroupRestResponse.php create mode 100644 src/Inventory/Types/DeleteInventoryItemRestRequest.php create mode 100644 src/Inventory/Types/DeleteInventoryItemRestResponse.php create mode 100644 src/Inventory/Types/DeleteInventoryLocationRestRequest.php create mode 100644 src/Inventory/Types/DeleteInventoryLocationRestResponse.php create mode 100644 src/Inventory/Types/DeleteOfferRestRequest.php create mode 100644 src/Inventory/Types/DeleteOfferRestResponse.php create mode 100644 src/Inventory/Types/DeleteProductCompatibilityRestRequest.php create mode 100644 src/Inventory/Types/DeleteProductCompatibilityRestResponse.php create mode 100644 src/Inventory/Types/Dimension.php create mode 100644 src/Inventory/Types/DisableInventoryLocationRestRequest.php create mode 100644 src/Inventory/Types/DisableInventoryLocationRestResponse.php create mode 100644 src/Inventory/Types/EbayOfferDetailsWithAll.php create mode 100644 src/Inventory/Types/EbayOfferDetailsWithId.php create mode 100644 src/Inventory/Types/EbayOfferDetailsWithKeys.php create mode 100644 src/Inventory/Types/EnableInventoryLocationRestRequest.php create mode 100644 src/Inventory/Types/EnableInventoryLocationRestResponse.php create mode 100644 src/Inventory/Types/ErrorDetailV3.php create mode 100644 src/Inventory/Types/ErrorParameterV3.php create mode 100644 src/Inventory/Types/Fee.php create mode 100644 src/Inventory/Types/FeeSummary.php create mode 100644 src/Inventory/Types/FeesSummaryResponse.php create mode 100644 src/Inventory/Types/GeoCoordinates.php create mode 100644 src/Inventory/Types/GetInventoryItemGroupRestRequest.php create mode 100644 src/Inventory/Types/GetInventoryItemGroupRestResponse.php create mode 100644 src/Inventory/Types/GetInventoryItemRestRequest.php create mode 100644 src/Inventory/Types/GetInventoryItemRestResponse.php create mode 100644 src/Inventory/Types/GetInventoryItemsRestRequest.php create mode 100644 src/Inventory/Types/GetInventoryItemsRestResponse.php create mode 100644 src/Inventory/Types/GetInventoryLocationRestRequest.php create mode 100644 src/Inventory/Types/GetInventoryLocationRestResponse.php create mode 100644 src/Inventory/Types/GetInventoryLocationsRestRequest.php create mode 100644 src/Inventory/Types/GetInventoryLocationsRestResponse.php create mode 100644 src/Inventory/Types/GetListingFeesRestRequest.php create mode 100644 src/Inventory/Types/GetListingFeesRestResponse.php create mode 100644 src/Inventory/Types/GetOfferRestRequest.php create mode 100644 src/Inventory/Types/GetOfferRestResponse.php create mode 100644 src/Inventory/Types/GetOffersRestRequest.php create mode 100644 src/Inventory/Types/GetOffersRestResponse.php create mode 100644 src/Inventory/Types/GetProductCompatibilityRestRequest.php create mode 100644 src/Inventory/Types/GetProductCompatibilityRestResponse.php create mode 100644 src/Inventory/Types/Interval.php create mode 100644 src/Inventory/Types/InventoryItem.php create mode 100644 src/Inventory/Types/InventoryItemGroup.php create mode 100644 src/Inventory/Types/InventoryItems.php create mode 100644 src/Inventory/Types/InventoryLocation.php create mode 100644 src/Inventory/Types/InventoryLocationFull.php create mode 100644 src/Inventory/Types/InventoryLocationResponse.php create mode 100644 src/Inventory/Types/ListingDetails.php create mode 100644 src/Inventory/Types/ListingPolicies.php create mode 100644 src/Inventory/Types/Location.php create mode 100644 src/Inventory/Types/LocationResponse.php create mode 100644 src/Inventory/Types/OfferKeyWithId.php create mode 100644 src/Inventory/Types/OfferKeysWithId.php create mode 100644 src/Inventory/Types/OfferPriceQuantity.php create mode 100644 src/Inventory/Types/OfferResponse.php create mode 100644 src/Inventory/Types/Offers.php create mode 100644 src/Inventory/Types/OperatingHours.php create mode 100644 src/Inventory/Types/PackageWeightAndSize.php create mode 100644 src/Inventory/Types/PickupAtLocationAvailability.php create mode 100644 src/Inventory/Types/PriceQuantity.php create mode 100644 src/Inventory/Types/PriceQuantityResponse.php create mode 100644 src/Inventory/Types/PricingSummary.php create mode 100644 src/Inventory/Types/Product.php create mode 100644 src/Inventory/Types/ProductFamilyProperties.php create mode 100644 src/Inventory/Types/ProductIdentifier.php create mode 100644 src/Inventory/Types/PublishOfferRestRequest.php create mode 100644 src/Inventory/Types/PublishOfferRestResponse.php create mode 100644 src/Inventory/Types/PublishResponse.php create mode 100644 src/Inventory/Types/ShipToLocationAvailability.php create mode 100644 src/Inventory/Types/ShippingCostOverride.php create mode 100644 src/Inventory/Types/SpecialHours.php create mode 100644 src/Inventory/Types/Specification.php create mode 100644 src/Inventory/Types/Tax.php create mode 100644 src/Inventory/Types/TimeDuration.php create mode 100644 src/Inventory/Types/UpdateInventoryLocationRestRequest.php create mode 100644 src/Inventory/Types/UpdateInventoryLocationRestResponse.php create mode 100644 src/Inventory/Types/UpdateOfferRestRequest.php create mode 100644 src/Inventory/Types/UpdateOfferRestResponse.php create mode 100644 src/Inventory/Types/VariesBy.php create mode 100644 src/Inventory/Types/Weight.php create mode 100644 src/Marketing/Enums/CampaignStatusEnum.php create mode 100644 src/Marketing/Enums/CategoryScopeEnum.php create mode 100644 src/Marketing/Enums/CriterionTypeEnum.php create mode 100644 src/Marketing/Enums/CurrencyCodeEnum.php create mode 100644 src/Marketing/Enums/FundingModelEnum.php create mode 100644 src/Marketing/Enums/InventoryCriterionEnum.php create mode 100644 src/Marketing/Enums/InventoryReferenceTypeEnum.php create mode 100644 src/Marketing/Enums/MarketplaceIdEnum.php create mode 100644 src/Marketing/Enums/PromotionPriorityEnum.php create mode 100644 src/Marketing/Enums/PromotionStatusEnum.php create mode 100644 src/Marketing/Services/MarketingBaseService.php create mode 100644 src/Marketing/Services/MarketingService.php create mode 100644 src/Marketing/Types/Ad.php create mode 100644 src/Marketing/Types/AdIds.php create mode 100644 src/Marketing/Types/AdPagedCollection.php create mode 100644 src/Marketing/Types/AdReference.php create mode 100644 src/Marketing/Types/AdReferences.php create mode 100644 src/Marketing/Types/AdResponse.php create mode 100644 src/Marketing/Types/Ads.php create mode 100644 src/Marketing/Types/Amount.php create mode 100644 src/Marketing/Types/BulkAdResponse.php create mode 100644 src/Marketing/Types/BulkCreateAdRequest.php create mode 100644 src/Marketing/Types/BulkCreateAdsByInventoryReferenceRequest.php create mode 100644 src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequest.php create mode 100644 src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponse.php create mode 100644 src/Marketing/Types/BulkCreateAdsByListingIDRestRequest.php create mode 100644 src/Marketing/Types/BulkCreateAdsByListingIDRestResponse.php create mode 100644 src/Marketing/Types/BulkDeleteAdRequest.php create mode 100644 src/Marketing/Types/BulkDeleteAdResponse.php create mode 100644 src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequest.php create mode 100644 src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequest.php create mode 100644 src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponse.php create mode 100644 src/Marketing/Types/BulkDeleteAdsByListingIDRestRequest.php create mode 100644 src/Marketing/Types/BulkDeleteAdsByListingIDRestResponse.php create mode 100644 src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequest.php create mode 100644 src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponse.php create mode 100644 src/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequest.php create mode 100644 src/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponse.php create mode 100644 src/Marketing/Types/Campaign.php create mode 100644 src/Marketing/Types/CampaignCriterion.php create mode 100644 src/Marketing/Types/CampaignPagedCollection.php create mode 100644 src/Marketing/Types/Campaigns.php create mode 100644 src/Marketing/Types/CloneCampaignRequest.php create mode 100644 src/Marketing/Types/CloneCampaignRestRequest.php create mode 100644 src/Marketing/Types/CloneCampaignRestResponse.php create mode 100644 src/Marketing/Types/CreateAdByListingIDRestRequest.php create mode 100644 src/Marketing/Types/CreateAdByListingIDRestResponse.php create mode 100644 src/Marketing/Types/CreateAdRequest.php create mode 100644 src/Marketing/Types/CreateAdsByInventoryReferenceRequest.php create mode 100644 src/Marketing/Types/CreateAdsByInventoryReferenceRestRequest.php create mode 100644 src/Marketing/Types/CreateAdsByInventoryReferenceRestResponse.php create mode 100644 src/Marketing/Types/CreateCampaignRequest.php create mode 100644 src/Marketing/Types/CreateCampaignRestRequest.php create mode 100644 src/Marketing/Types/CreateCampaignRestResponse.php create mode 100644 src/Marketing/Types/CreateItemPromotionRestRequest.php create mode 100644 src/Marketing/Types/CreateItemPromotionRestResponse.php create mode 100644 src/Marketing/Types/DeleteAdByIDRestRequest.php create mode 100644 src/Marketing/Types/DeleteAdByIDRestResponse.php create mode 100644 src/Marketing/Types/DeleteAdRequest.php create mode 100644 src/Marketing/Types/DeleteAdResponse.php create mode 100644 src/Marketing/Types/DeleteAdsByInventoryReferenceRequest.php create mode 100644 src/Marketing/Types/DeleteAdsByInventoryReferenceRestRequest.php create mode 100644 src/Marketing/Types/DeleteAdsByInventoryReferenceRestResponse.php create mode 100644 src/Marketing/Types/DeleteCampaignRestRequest.php create mode 100644 src/Marketing/Types/DeleteCampaignRestResponse.php create mode 100644 src/Marketing/Types/DeleteItemPromotionRestRequest.php create mode 100644 src/Marketing/Types/DeleteItemPromotionRestResponse.php create mode 100644 src/Marketing/Types/DiscountBenefit.php create mode 100644 src/Marketing/Types/DiscountRule.php create mode 100644 src/Marketing/Types/DiscountSpecification.php create mode 100644 src/Marketing/Types/EndCampaignRestRequest.php create mode 100644 src/Marketing/Types/EndCampaignRestResponse.php create mode 100644 src/Marketing/Types/ErrorDetailV3.php create mode 100644 src/Marketing/Types/ErrorParameterV3.php create mode 100644 src/Marketing/Types/FindCampaignByAdReferenceRestRequest.php create mode 100644 src/Marketing/Types/FindCampaignByAdReferenceRestResponse.php create mode 100644 src/Marketing/Types/FundingStrategy.php create mode 100644 src/Marketing/Types/GetAdByIDRestRequest.php create mode 100644 src/Marketing/Types/GetAdByIDRestResponse.php create mode 100644 src/Marketing/Types/GetAdsByInventoryReferenceRestRequest.php create mode 100644 src/Marketing/Types/GetAdsByInventoryReferenceRestResponse.php create mode 100644 src/Marketing/Types/GetAdsRestRequest.php create mode 100644 src/Marketing/Types/GetAdsRestResponse.php create mode 100644 src/Marketing/Types/GetAllCampaignsRestRequest.php create mode 100644 src/Marketing/Types/GetAllCampaignsRestResponse.php create mode 100644 src/Marketing/Types/GetCampaignByIDRestRequest.php create mode 100644 src/Marketing/Types/GetCampaignByIDRestResponse.php create mode 100644 src/Marketing/Types/GetCampaignByNameRestRequest.php create mode 100644 src/Marketing/Types/GetCampaignByNameRestResponse.php create mode 100644 src/Marketing/Types/GetItemPromotionRestRequest.php create mode 100644 src/Marketing/Types/GetItemPromotionRestResponse.php create mode 100644 src/Marketing/Types/GetPromotionSummaryReportRestRequest.php create mode 100644 src/Marketing/Types/GetPromotionSummaryReportRestResponse.php create mode 100644 src/Marketing/Types/GetPromotionsRestRequest.php create mode 100644 src/Marketing/Types/GetPromotionsRestResponse.php create mode 100644 src/Marketing/Types/InventoryCriterion.php create mode 100644 src/Marketing/Types/InventoryItem.php create mode 100644 src/Marketing/Types/ItemPromotion.php create mode 100644 src/Marketing/Types/ItemPromotionResponse.php create mode 100644 src/Marketing/Types/PauseAPromotionRestRequest.php create mode 100644 src/Marketing/Types/PauseAPromotionRestResponse.php create mode 100644 src/Marketing/Types/PauseCampaignRestRequest.php create mode 100644 src/Marketing/Types/PauseCampaignRestResponse.php create mode 100644 src/Marketing/Types/PromotionDetail.php create mode 100644 src/Marketing/Types/PromotionsPagedCollection.php create mode 100644 src/Marketing/Types/ResumeAPromotionRestRequest.php create mode 100644 src/Marketing/Types/ResumeAPromotionRestResponse.php create mode 100644 src/Marketing/Types/ResumeCampaignRestRequest.php create mode 100644 src/Marketing/Types/ResumeCampaignRestResponse.php create mode 100644 src/Marketing/Types/SelectionRule.php create mode 100644 src/Marketing/Types/SortField.php create mode 100644 src/Marketing/Types/SummaryReportResponse.php create mode 100644 src/Marketing/Types/UpdateBidPercentageRequest.php create mode 100644 src/Marketing/Types/UpdateBidRestRequest.php create mode 100644 src/Marketing/Types/UpdateBidRestResponse.php create mode 100644 src/Marketing/Types/UpdateCampaignIDentificationRestRequest.php create mode 100644 src/Marketing/Types/UpdateCampaignIDentificationRestResponse.php create mode 100644 src/Marketing/Types/UpdateCampaignIdentificationRequest.php create mode 100644 src/Marketing/Types/UpdateItemPromotionRestRequest.php create mode 100644 src/Marketing/Types/UpdateItemPromotionRestResponse.php create mode 100644 src/Merchandising/Enums/AckValue.php create mode 100644 src/Merchandising/Enums/ErrorCategory.php create mode 100644 src/Merchandising/Enums/ErrorSeverity.php create mode 100644 src/Merchandising/Enums/ItemFilterType.php create mode 100644 src/Merchandising/Enums/PriceTreatmentEnum.php create mode 100644 src/Merchandising/Services/MerchandisingBaseService.php create mode 100644 src/Merchandising/Services/MerchandisingService.php create mode 100644 src/Merchandising/Types/Affiliate.php create mode 100644 src/Merchandising/Types/Amount.php create mode 100644 src/Merchandising/Types/BaseMerchandisingServiceRequest.php create mode 100644 src/Merchandising/Types/BaseMerchandisingServiceResponse.php create mode 100644 src/Merchandising/Types/BaseServiceRequest.php create mode 100644 src/Merchandising/Types/BaseServiceResponse.php create mode 100644 src/Merchandising/Types/DiscountPriceInfo.php create mode 100644 src/Merchandising/Types/ErrorData.php create mode 100644 src/Merchandising/Types/ErrorMessage.php create mode 100644 src/Merchandising/Types/ErrorParameter.php create mode 100644 src/Merchandising/Types/GetDealsRequest.php create mode 100644 src/Merchandising/Types/GetMostWatchedItemsRequest.php create mode 100644 src/Merchandising/Types/GetRelatedCategoryItemsRequest.php create mode 100644 src/Merchandising/Types/GetSimilarItemsRequest.php create mode 100644 src/Merchandising/Types/GetTopSellingProductsRequest.php create mode 100644 src/Merchandising/Types/GetVersionRequest.php create mode 100644 src/Merchandising/Types/GetVersionResponse.php create mode 100644 src/Merchandising/Types/Item.php create mode 100644 src/Merchandising/Types/ItemFilter.php create mode 100644 src/Merchandising/Types/ItemRecommendations.php create mode 100644 src/Merchandising/Types/MerchandisingServiceItemResponse.php create mode 100644 src/Merchandising/Types/MerchandisingServiceProductResponse.php create mode 100644 src/Merchandising/Types/Product.php create mode 100644 src/Merchandising/Types/ProductId.php create mode 100644 src/Merchandising/Types/ProductRecommendations.php create mode 100644 src/Metadata/Enums/CountryCodeEnum.php create mode 100644 src/Metadata/Services/MetadataBaseService.php create mode 100644 src/Metadata/Services/MetadataService.php create mode 100644 src/Metadata/Types/ErrorDetailV3.php create mode 100644 src/Metadata/Types/ErrorParameterV3.php create mode 100644 src/Metadata/Types/GetSalesTaxJurisdictionsRestRequest.php create mode 100644 src/Metadata/Types/GetSalesTaxJurisdictionsRestResponse.php create mode 100644 src/Metadata/Types/SalesTaxJurisdiction.php create mode 100644 src/Metadata/Types/SalesTaxJurisdictions.php create mode 100644 src/Order/Enums/CountryCodeEnum.php create mode 100644 src/Order/Enums/CurrencyCodeEnum.php create mode 100644 src/Order/Enums/LineItemPaymentStatusEnum.php create mode 100644 src/Order/Enums/LineItemStatusEnum.php create mode 100644 src/Order/Enums/PaymentMethodBrandEnum.php create mode 100644 src/Order/Enums/PaymentMethodTypeEnum.php create mode 100644 src/Order/Enums/PurchaseOrderPaymentStatusEnum.php create mode 100644 src/Order/Enums/PurchaseOrderStatusEnum.php create mode 100644 src/Order/Services/OrderBaseService.php create mode 100644 src/Order/Services/OrderService.php create mode 100644 src/Order/Types/Adjustment.php create mode 100644 src/Order/Types/Adjustment_0.php create mode 100644 src/Order/Types/Amount.php create mode 100644 src/Order/Types/Amount_0.php create mode 100644 src/Order/Types/BillingAddress.php create mode 100644 src/Order/Types/CheckoutSessionResponse.php create mode 100644 src/Order/Types/CreateGuestCheckoutSessionRequest.php create mode 100644 src/Order/Types/CreateSignInCheckoutSessionRequest.php create mode 100644 src/Order/Types/CreditCard.php create mode 100644 src/Order/Types/ErrorDetailV3.php create mode 100644 src/Order/Types/ErrorParameterV3.php create mode 100644 src/Order/Types/GetCheckoutSessionRestRequest.php create mode 100644 src/Order/Types/GetCheckoutSessionRestResponse.php create mode 100644 src/Order/Types/GetGuestCheckoutSessionRestRequest.php create mode 100644 src/Order/Types/GetGuestCheckoutSessionRestResponse.php create mode 100644 src/Order/Types/GetGuestPurchaseOrderRestRequest.php create mode 100644 src/Order/Types/GetGuestPurchaseOrderRestResponse.php create mode 100644 src/Order/Types/GetPurchaseOrderRestRequest.php create mode 100644 src/Order/Types/GetPurchaseOrderRestResponse.php create mode 100644 src/Order/Types/GuestPurchaseOrder.php create mode 100644 src/Order/Types/Image.php create mode 100644 src/Order/Types/InitiateCheckoutSessionRestRequest.php create mode 100644 src/Order/Types/InitiateCheckoutSessionRestResponse.php create mode 100644 src/Order/Types/InitiateGuestCheckoutSessionRestRequest.php create mode 100644 src/Order/Types/InitiateGuestCheckoutSessionRestResponse.php create mode 100644 src/Order/Types/LineItem.php create mode 100644 src/Order/Types/LineItemInput.php create mode 100644 src/Order/Types/LineItemReference.php create mode 100644 src/Order/Types/LineItem_0.php create mode 100644 src/Order/Types/PaymentInstrument.php create mode 100644 src/Order/Types/PaymentInstrumentReference.php create mode 100644 src/Order/Types/PaymentMethod.php create mode 100644 src/Order/Types/PaymentMethodBrand.php create mode 100644 src/Order/Types/PaymentMethodMessage.php create mode 100644 src/Order/Types/PlaceGuestOrderRestRequest.php create mode 100644 src/Order/Types/PlaceGuestOrderRestResponse.php create mode 100644 src/Order/Types/PlaceOrderRestRequest.php create mode 100644 src/Order/Types/PlaceOrderRestResponse.php create mode 100644 src/Order/Types/PricingSummary.php create mode 100644 src/Order/Types/PricingSummary_0.php create mode 100644 src/Order/Types/Promotion.php create mode 100644 src/Order/Types/ProvidedPaymentInstrument.php create mode 100644 src/Order/Types/PurchaseOrder.php create mode 100644 src/Order/Types/PurchaseOrderSummary.php create mode 100644 src/Order/Types/Seller.php create mode 100644 src/Order/Types/ShippingAddress.php create mode 100644 src/Order/Types/ShippingAddressImpl.php create mode 100644 src/Order/Types/ShippingAddress_0.php create mode 100644 src/Order/Types/ShippingDetail.php create mode 100644 src/Order/Types/ShippingFulfillment.php create mode 100644 src/Order/Types/ShippingOption.php create mode 100644 src/Order/Types/UpdateGuestLineItemQuantityRestRequest.php create mode 100644 src/Order/Types/UpdateGuestLineItemQuantityRestResponse.php create mode 100644 src/Order/Types/UpdateGuestLineItemShippingAddressRestRequest.php create mode 100644 src/Order/Types/UpdateGuestLineItemShippingAddressRestResponse.php create mode 100644 src/Order/Types/UpdateGuestPaymentInfoRestRequest.php create mode 100644 src/Order/Types/UpdateGuestPaymentInfoRestResponse.php create mode 100644 src/Order/Types/UpdateGuestShippingOptionRestRequest.php create mode 100644 src/Order/Types/UpdateGuestShippingOptionRestResponse.php create mode 100644 src/Order/Types/UpdatePaymentInfoRestRequest.php create mode 100644 src/Order/Types/UpdatePaymentInfoRestResponse.php create mode 100644 src/Order/Types/UpdatePaymentInformation.php create mode 100644 src/Order/Types/UpdateQuantity.php create mode 100644 src/Order/Types/UpdateQuantityForLineItemRestRequest.php create mode 100644 src/Order/Types/UpdateQuantityForLineItemRestResponse.php create mode 100644 src/Order/Types/UpdateShippingAddressRestRequest.php create mode 100644 src/Order/Types/UpdateShippingAddressRestResponse.php create mode 100644 src/Order/Types/UpdateShippingOption.php create mode 100644 src/Order/Types/UpdateShippingOptionRestRequest.php create mode 100644 src/Order/Types/UpdateShippingOptionRestResponse.php create mode 100644 src/PostOrder/Enums/ActivityOptionEnum.php create mode 100644 src/PostOrder/Enums/AddressTypeEnum.php create mode 100644 src/PostOrder/Enums/AppealCloseReasonEnum.php create mode 100644 src/PostOrder/Enums/AppealGrantStatusEnum.php create mode 100644 src/PostOrder/Enums/AppealStatusEnum.php create mode 100644 src/PostOrder/Enums/BuyerCloseReasonEnum.php create mode 100644 src/PostOrder/Enums/BuyerCloseReturnReasonEnum.php create mode 100644 src/PostOrder/Enums/CancelActivityTypeEnum.php create mode 100644 src/PostOrder/Enums/CancelCloseReasonEnum.php create mode 100644 src/PostOrder/Enums/CancelReasonEnum.php create mode 100644 src/PostOrder/Enums/CancelSortTypeEnum.php create mode 100644 src/PostOrder/Enums/CancelStateEnum.php create mode 100644 src/PostOrder/Enums/CancelStatusEnum.php create mode 100644 src/PostOrder/Enums/CaseCloseReasonEnum.php create mode 100644 src/PostOrder/Enums/CaseSearchFieldGroupEnum.php create mode 100644 src/PostOrder/Enums/CaseStatusEnum.php create mode 100644 src/PostOrder/Enums/CaseTypeEnum.php create mode 100644 src/PostOrder/Enums/CloseReturnReasonEnum.php create mode 100644 src/PostOrder/Enums/CountryCodeEnum.php create mode 100644 src/PostOrder/Enums/CurrencyCodeEnum.php create mode 100644 src/PostOrder/Enums/DecisionEnum.php create mode 100644 src/PostOrder/Enums/DesiredOutcomeTypeEnum.php create mode 100644 src/PostOrder/Enums/DispositionRuleTemplateTypeEnum.php create mode 100644 src/PostOrder/Enums/EligibilityCheckTypeEnum.php create mode 100644 src/PostOrder/Enums/EligibilityFailureReasonEnum.php create mode 100644 src/PostOrder/Enums/EscalateReasonEnum.php create mode 100644 src/PostOrder/Enums/FileFormatEnum.php create mode 100644 src/PostOrder/Enums/FilePurposeEnum.php create mode 100644 src/PostOrder/Enums/FileStatusEnum.php create mode 100644 src/PostOrder/Enums/GetReturnFieldGroupEnum.php create mode 100644 src/PostOrder/Enums/InquiryEligibilityStatusEnum.php create mode 100644 src/PostOrder/Enums/InquiryEscalationReasonEnum.php create mode 100644 src/PostOrder/Enums/InquirySearchFieldGroupEnum.php create mode 100644 src/PostOrder/Enums/InquiryStateEnum.php create mode 100644 src/PostOrder/Enums/InquiryStatusEnum.php create mode 100644 src/PostOrder/Enums/LabelActionEnum.php create mode 100644 src/PostOrder/Enums/LabelPrintStatusEnum.php create mode 100644 src/PostOrder/Enums/LanguageEnum.php create mode 100644 src/PostOrder/Enums/LanguageScriptEnum.php create mode 100644 src/PostOrder/Enums/MarketplaceIdEnum.php create mode 100644 src/PostOrder/Enums/MoneyMovementStatusEnum.php create mode 100644 src/PostOrder/Enums/MoneyMovementTypeEnum.php create mode 100644 src/PostOrder/Enums/NoSellerUploadLabelReasonEnum.php create mode 100644 src/PostOrder/Enums/OrderTypeEnum.php create mode 100644 src/PostOrder/Enums/PartyEnum.php create mode 100644 src/PostOrder/Enums/PaymentDenialReasonEnum.php create mode 100644 src/PostOrder/Enums/PaymentProviderEnum.php create mode 100644 src/PostOrder/Enums/PaymentStatusEnum.php create mode 100644 src/PostOrder/Enums/RefundFeeTypeEnum.php create mode 100644 src/PostOrder/Enums/RefundPaymentTypeEnum.php create mode 100644 src/PostOrder/Enums/RefundStatusEnum.php create mode 100644 src/PostOrder/Enums/RequestTypeEnum.php create mode 100644 src/PostOrder/Enums/ReturnCountFilterEnum.php create mode 100644 src/PostOrder/Enums/ReturnHoldStatusEnum.php create mode 100644 src/PostOrder/Enums/ReturnMetadataKeyEnum.php create mode 100644 src/PostOrder/Enums/ReturnReasonEnum.php create mode 100644 src/PostOrder/Enums/ReturnRefundInitiatorEnum.php create mode 100644 src/PostOrder/Enums/ReturnSortEnum.php create mode 100644 src/PostOrder/Enums/ReturnStateEnum.php create mode 100644 src/PostOrder/Enums/ReturnStatusEnum.php create mode 100644 src/PostOrder/Enums/ReturnTypeEnum.php create mode 100644 src/PostOrder/Enums/ReturnUserRoleEnum.php create mode 100644 src/PostOrder/Enums/RuleListFieldGroupEnum.php create mode 100644 src/PostOrder/Enums/ShippingCarrierEnum.php create mode 100644 src/PostOrder/Enums/ShippingMethodEnum.php create mode 100644 src/PostOrder/Enums/TrackingStatusEnum.php create mode 100644 src/PostOrder/Enums/UserPartyEnum.php create mode 100644 src/PostOrder/Enums/WorldRegionEnum.php create mode 100644 src/PostOrder/Services/PostOrderBaseService.php create mode 100644 src/PostOrder/Services/PostOrderService.php create mode 100644 src/PostOrder/Types/ActionDeadlines.php create mode 100644 src/PostOrder/Types/ActualRefundDetailType.php create mode 100644 src/PostOrder/Types/AddShippingLabelInfoRestRequest.php create mode 100644 src/PostOrder/Types/AddShippingLabelInfoRestResponse.php create mode 100644 src/PostOrder/Types/Address.php create mode 100644 src/PostOrder/Types/Amount.php create mode 100644 src/PostOrder/Types/AppealCaseDecisionRestRequest.php create mode 100644 src/PostOrder/Types/AppealCaseDecisionRestResponse.php create mode 100644 src/PostOrder/Types/AppealDetails.php create mode 100644 src/PostOrder/Types/AppealRequest.php create mode 100644 src/PostOrder/Types/ApproveCancellationRequestRestRequest.php create mode 100644 src/PostOrder/Types/ApproveCancellationRequestRestResponse.php create mode 100644 src/PostOrder/Types/AvailableOptionType.php create mode 100644 src/PostOrder/Types/BuyerCloseCaseRequest.php create mode 100644 src/PostOrder/Types/BuyerCloseInquiryRequest.php create mode 100644 src/PostOrder/Types/CancelActivityHistory.php create mode 100644 src/PostOrder/Types/CancelDetail.php create mode 100644 src/PostOrder/Types/CancelReturnRequestRestRequest.php create mode 100644 src/PostOrder/Types/CancelReturnRequestRestResponse.php create mode 100644 src/PostOrder/Types/CancelSortField.php create mode 100644 src/PostOrder/Types/CancelSummary.php create mode 100644 src/PostOrder/Types/CarrierShippingCostInfoType.php create mode 100644 src/PostOrder/Types/CaseDetails.php create mode 100644 src/PostOrder/Types/CaseDetailsResponse.php create mode 100644 src/PostOrder/Types/CaseSearchResponse.php create mode 100644 src/PostOrder/Types/CaseStatusFilter.php create mode 100644 src/PostOrder/Types/CaseSummaryType.php create mode 100644 src/PostOrder/Types/CaseVoluntaryRefundRequest.php create mode 100644 src/PostOrder/Types/CheckCancellationEligibilityRestRequest.php create mode 100644 src/PostOrder/Types/CheckCancellationEligibilityRestResponse.php create mode 100644 src/PostOrder/Types/CheckEligibilityRequest.php create mode 100644 src/PostOrder/Types/CheckEligibilityResponse.php create mode 100644 src/PostOrder/Types/CheckInquiryEligibilityRequest.php create mode 100644 src/PostOrder/Types/CheckInquiryEligibilityResponse.php create mode 100644 src/PostOrder/Types/CheckInquiryEligibilityRestRequest.php create mode 100644 src/PostOrder/Types/CheckInquiryEligibilityRestResponse.php create mode 100644 src/PostOrder/Types/CheckLabelPrintEligibilityResponse.php create mode 100644 src/PostOrder/Types/CheckReturnEligibilityRestRequest.php create mode 100644 src/PostOrder/Types/CheckReturnEligibilityRestResponse.php create mode 100644 src/PostOrder/Types/CheckShippingLabelEligibilityRestRequest.php create mode 100644 src/PostOrder/Types/CheckShippingLabelEligibilityRestResponse.php create mode 100644 src/PostOrder/Types/ClaimHistoryEventModel.php create mode 100644 src/PostOrder/Types/ClaimHistoryResponse.php create mode 100644 src/PostOrder/Types/CloseCaseRestRequest.php create mode 100644 src/PostOrder/Types/CloseCaseRestResponse.php create mode 100644 src/PostOrder/Types/CloseInquiryRestRequest.php create mode 100644 src/PostOrder/Types/CloseInquiryRestResponse.php create mode 100644 src/PostOrder/Types/CloseReturnRequest.php create mode 100644 src/PostOrder/Types/ConditionDataRangeType.php create mode 100644 src/PostOrder/Types/ConditionListDetailType.php create mode 100644 src/PostOrder/Types/ConfirmCancellationRefundRestRequest.php create mode 100644 src/PostOrder/Types/ConfirmCancellationRefundRestResponse.php create mode 100644 src/PostOrder/Types/ConfirmInquiryRefundRestRequest.php create mode 100644 src/PostOrder/Types/ConfirmInquiryRefundRestResponse.php create mode 100644 src/PostOrder/Types/ConfirmRefundRequest.php create mode 100644 src/PostOrder/Types/CountSummaryType.php create mode 100644 src/PostOrder/Types/CreateCancelRequest.php create mode 100644 src/PostOrder/Types/CreateCancelResponse.php create mode 100644 src/PostOrder/Types/CreateCustomListRequest.php create mode 100644 src/PostOrder/Types/CreateCustomListResponse.php create mode 100644 src/PostOrder/Types/CreateCustomListRestRequest.php create mode 100644 src/PostOrder/Types/CreateCustomListRestResponse.php create mode 100644 src/PostOrder/Types/CreateDispositionRuleRequest.php create mode 100644 src/PostOrder/Types/CreateDispositionRuleResponse.php create mode 100644 src/PostOrder/Types/CreateInquiryRequest.php create mode 100644 src/PostOrder/Types/CreateInquiryRestRequest.php create mode 100644 src/PostOrder/Types/CreateInquiryRestResponse.php create mode 100644 src/PostOrder/Types/CreateReturnDraftRestRequest.php create mode 100644 src/PostOrder/Types/CreateReturnDraftRestResponse.php create mode 100644 src/PostOrder/Types/CreateReturnRequest.php create mode 100644 src/PostOrder/Types/CreateReturnRequestRestRequest.php create mode 100644 src/PostOrder/Types/CreateReturnRequestRestResponse.php create mode 100644 src/PostOrder/Types/CreateReturnResponse.php create mode 100644 src/PostOrder/Types/CreateReturnRulesRestRequest.php create mode 100644 src/PostOrder/Types/CreateReturnRulesRestResponse.php create mode 100644 src/PostOrder/Types/CreateReturnShippingLabelRestRequest.php create mode 100644 src/PostOrder/Types/CreateReturnShippingLabelRestResponse.php create mode 100644 src/PostOrder/Types/CustomListDataType.php create mode 100644 src/PostOrder/Types/CustomListDetailType.php create mode 100644 src/PostOrder/Types/CustomListModificationType.php create mode 100644 src/PostOrder/Types/CustomListType.php create mode 100644 src/PostOrder/Types/DateTime.php create mode 100644 src/PostOrder/Types/DecideReturnRequest.php create mode 100644 src/PostOrder/Types/DecideReturnResponse.php create mode 100644 src/PostOrder/Types/DeleteReturnDraftFileRestRequest.php create mode 100644 src/PostOrder/Types/DeleteReturnDraftFileRestResponse.php create mode 100644 src/PostOrder/Types/DeleteReturnFileRestRequest.php create mode 100644 src/PostOrder/Types/DeleteReturnFileRestResponse.php create mode 100644 src/PostOrder/Types/DispositionRuleDetailType.php create mode 100644 src/PostOrder/Types/EligibilityErrorType.php create mode 100644 src/PostOrder/Types/EligibilityResponseError.php create mode 100644 src/PostOrder/Types/EligibilityResultType.php create mode 100644 src/PostOrder/Types/Error.php create mode 100644 src/PostOrder/Types/ErrorDetailV3.php create mode 100644 src/PostOrder/Types/ErrorMessage.php create mode 100644 src/PostOrder/Types/ErrorParameter.php create mode 100644 src/PostOrder/Types/ErrorParameterV3.php create mode 100644 src/PostOrder/Types/EscalateInquiryRequest.php create mode 100644 src/PostOrder/Types/EscalateInquiryRestRequest.php create mode 100644 src/PostOrder/Types/EscalateInquiryRestResponse.php create mode 100644 src/PostOrder/Types/EscalateRequest.php create mode 100644 src/PostOrder/Types/EscalateResponse.php create mode 100644 src/PostOrder/Types/EscalateReturnRestRequest.php create mode 100644 src/PostOrder/Types/EscalateReturnRestResponse.php create mode 100644 src/PostOrder/Types/EscalationEligibilityInfo.php create mode 100644 src/PostOrder/Types/EscalationInfoType.php create mode 100644 src/PostOrder/Types/EstimatedRefundDetailType.php create mode 100644 src/PostOrder/Types/EstimatedRefundInfoType.php create mode 100644 src/PostOrder/Types/EstimatedRefundType.php create mode 100644 src/PostOrder/Types/EstimatedShippingInfoType.php create mode 100644 src/PostOrder/Types/FindCancelResponse.php create mode 100644 src/PostOrder/Types/GetCancelDetailResponse.php create mode 100644 src/PostOrder/Types/GetCancelFieldGroup.php create mode 100644 src/PostOrder/Types/GetCancellationRestRequest.php create mode 100644 src/PostOrder/Types/GetCancellationRestResponse.php create mode 100644 src/PostOrder/Types/GetCaseRestRequest.php create mode 100644 src/PostOrder/Types/GetCaseRestResponse.php create mode 100644 src/PostOrder/Types/GetCustomListDetailResponse.php create mode 100644 src/PostOrder/Types/GetCustomListRestResponse.php create mode 100644 src/PostOrder/Types/GetCustomListsResponse.php create mode 100644 src/PostOrder/Types/GetCustomListsRestResponse.php create mode 100644 src/PostOrder/Types/GetDetailResponse.php create mode 100644 src/PostOrder/Types/GetDispositionRuleDetailResponse.php create mode 100644 src/PostOrder/Types/GetDispositionRuleTemplatesResponse.php create mode 100644 src/PostOrder/Types/GetDispositionRuleTriggerHistResponse.php create mode 100644 src/PostOrder/Types/GetDispositionRulesResponse.php create mode 100644 src/PostOrder/Types/GetEstimateRequest.php create mode 100644 src/PostOrder/Types/GetEstimateResponse.php create mode 100644 src/PostOrder/Types/GetFileResponse.php create mode 100644 src/PostOrder/Types/GetInquiryRestRequest.php create mode 100644 src/PostOrder/Types/GetInquiryRestResponse.php create mode 100644 src/PostOrder/Types/GetMetadataResponse.php create mode 100644 src/PostOrder/Types/GetReturnCreationSessionResponse.php create mode 100644 src/PostOrder/Types/GetReturnDraftFilesRestRequest.php create mode 100644 src/PostOrder/Types/GetReturnDraftFilesRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnDraftRestRequest.php create mode 100644 src/PostOrder/Types/GetReturnDraftRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnEstimateRestRequest.php create mode 100644 src/PostOrder/Types/GetReturnEstimateRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnFilesRestRequest.php create mode 100644 src/PostOrder/Types/GetReturnFilesRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnMetadataRestRequest.php create mode 100644 src/PostOrder/Types/GetReturnMetadataRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnPreferencesRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnRestRequest.php create mode 100644 src/PostOrder/Types/GetReturnRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnRuleHistoryRestRequest.php create mode 100644 src/PostOrder/Types/GetReturnRuleHistoryRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnRuleRestRequest.php create mode 100644 src/PostOrder/Types/GetReturnRuleRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnRuleTemplatesRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnRulesRestRequest.php create mode 100644 src/PostOrder/Types/GetReturnRulesRestResponse.php create mode 100644 src/PostOrder/Types/GetReturnShippingLabelRestRequest.php create mode 100644 src/PostOrder/Types/GetReturnShippingLabelRestResponse.php create mode 100644 src/PostOrder/Types/GetSellerReturnPreferenceResponse.php create mode 100644 src/PostOrder/Types/GetShipmentTrackingRestRequest.php create mode 100644 src/PostOrder/Types/GetShipmentTrackingRestResponse.php create mode 100644 src/PostOrder/Types/GetShippingLabelResponse.php create mode 100644 src/PostOrder/Types/GetStoreCategoriesRestResponse.php create mode 100644 src/PostOrder/Types/GetStoreCategoryResponse.php create mode 100644 src/PostOrder/Types/GetSummaryResponse.php create mode 100644 src/PostOrder/Types/GetTrackingHistoryResponse.php create mode 100644 src/PostOrder/Types/InitiateShippingLabelResponse.php create mode 100644 src/PostOrder/Types/InquiryDetails.php create mode 100644 src/PostOrder/Types/InquiryDetailsResponse.php create mode 100644 src/PostOrder/Types/InquirySearchResponse.php create mode 100644 src/PostOrder/Types/InquiryStatusFilter.php create mode 100644 src/PostOrder/Types/InquirySummaryType.php create mode 100644 src/PostOrder/Types/InquiryVoluntaryRefundRequest.php create mode 100644 src/PostOrder/Types/IssueCaseRefundRestRequest.php create mode 100644 src/PostOrder/Types/IssueCaseRefundRestResponse.php create mode 100644 src/PostOrder/Types/IssueInquiryRefundRestRequest.php create mode 100644 src/PostOrder/Types/IssueInquiryRefundRestResponse.php create mode 100644 src/PostOrder/Types/IssueRefundRequest.php create mode 100644 src/PostOrder/Types/IssueRefundResponse.php create mode 100644 src/PostOrder/Types/IssueReturnRefundRestRequest.php create mode 100644 src/PostOrder/Types/IssueReturnRefundRestResponse.php create mode 100644 src/PostOrder/Types/ItemDetailType.php create mode 100644 src/PostOrder/Types/ItemDetails.php create mode 100644 src/PostOrder/Types/ItemEligibilityResult.php create mode 100644 src/PostOrder/Types/ItemizedRefundDetailType.php create mode 100644 src/PostOrder/Types/ItemizedReturnShippingCostType.php create mode 100644 src/PostOrder/Types/ListDataType.php create mode 100644 src/PostOrder/Types/MarkAsReceivedRequest.php create mode 100644 src/PostOrder/Types/MarkAsShippedRequest.php create mode 100644 src/PostOrder/Types/MarkRefundSentRequest.php create mode 100644 src/PostOrder/Types/MarkReturnReceivedRestRequest.php create mode 100644 src/PostOrder/Types/MarkReturnReceivedRestResponse.php create mode 100644 src/PostOrder/Types/MarkReturnRefundReceivedRestRequest.php create mode 100644 src/PostOrder/Types/MarkReturnRefundReceivedRestResponse.php create mode 100644 src/PostOrder/Types/MarkReturnRefundSentRestRequest.php create mode 100644 src/PostOrder/Types/MarkReturnRefundSentRestResponse.php create mode 100644 src/PostOrder/Types/MarkReturnShippedRestRequest.php create mode 100644 src/PostOrder/Types/MarkReturnShippedRestResponse.php create mode 100644 src/PostOrder/Types/ModifyCustomListRequest.php create mode 100644 src/PostOrder/Types/ModifyCustomListResponse.php create mode 100644 src/PostOrder/Types/ModifyDispositionRuleRequest.php create mode 100644 src/PostOrder/Types/MoneyMovementDetailType.php create mode 100644 src/PostOrder/Types/MoneyMovementEntries.php create mode 100644 src/PostOrder/Types/MoneyMovementEntry.php create mode 100644 src/PostOrder/Types/MoneyMovementRef.php create mode 100644 src/PostOrder/Types/OrderCancelLineItem.php create mode 100644 src/PostOrder/Types/OrderEligibilityCheckInfo.php create mode 100644 src/PostOrder/Types/OrderEligibilityResult.php create mode 100644 src/PostOrder/Types/PaginationOutput.php create mode 100644 src/PostOrder/Types/PriorityListType.php create mode 100644 src/PostOrder/Types/ProcessReturnRequestRestRequest.php create mode 100644 src/PostOrder/Types/ProcessReturnRequestRestResponse.php create mode 100644 src/PostOrder/Types/ProvideInquiryRefundInfoRestRequest.php create mode 100644 src/PostOrder/Types/ProvideInquiryRefundInfoRestResponse.php create mode 100644 src/PostOrder/Types/ProvideInquiryShipmentInfoRestRequest.php create mode 100644 src/PostOrder/Types/ProvideInquiryShipmentInfoRestResponse.php create mode 100644 src/PostOrder/Types/ProvideLabelRequest.php create mode 100644 src/PostOrder/Types/ProvideLabelResponse.php create mode 100644 src/PostOrder/Types/ProvideReturnShipmentInfoRestRequest.php create mode 100644 src/PostOrder/Types/ProvideReturnShipmentInfoRestResponse.php create mode 100644 src/PostOrder/Types/ProvideShipmentInfoRequest.php create mode 100644 src/PostOrder/Types/ProvidesReturnAddressRestRequest.php create mode 100644 src/PostOrder/Types/ProvidesReturnAddressRestResponse.php create mode 100644 src/PostOrder/Types/RefundAmounts.php create mode 100644 src/PostOrder/Types/RefundDetailType.php create mode 100644 src/PostOrder/Types/RefundInfoType.php create mode 100644 src/PostOrder/Types/RefundType.php create mode 100644 src/PostOrder/Types/RejectCancelRequest.php create mode 100644 src/PostOrder/Types/RejectCancellationRequestRestRequest.php create mode 100644 src/PostOrder/Types/RejectCancellationRequestRestResponse.php create mode 100644 src/PostOrder/Types/ResponseHistoryAttributesType.php create mode 100644 src/PostOrder/Types/ReturnAddress.php create mode 100644 src/PostOrder/Types/ReturnAddressRequest.php create mode 100644 src/PostOrder/Types/ReturnAddressType.php create mode 100644 src/PostOrder/Types/ReturnCloseInfoType.php create mode 100644 src/PostOrder/Types/ReturnCreationInfoType.php create mode 100644 src/PostOrder/Types/ReturnDetailType.php create mode 100644 src/PostOrder/Types/ReturnEligibilityErrorDetailType.php create mode 100644 src/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResult.php create mode 100644 src/PostOrder/Types/ReturnEligibilityItemType.php create mode 100644 src/PostOrder/Types/ReturnEligibilityPerItemType.php create mode 100644 src/PostOrder/Types/ReturnFileType.php create mode 100644 src/PostOrder/Types/ReturnHoldInfoType.php create mode 100644 src/PostOrder/Types/ReturnItemType.php create mode 100644 src/PostOrder/Types/ReturnMetadataType.php create mode 100644 src/PostOrder/Types/ReturnPolicyType.php create mode 100644 src/PostOrder/Types/ReturnRequestType.php create mode 100644 src/PostOrder/Types/ReturnResponseDueType.php create mode 100644 src/PostOrder/Types/ReturnResponseHistoryType.php create mode 100644 src/PostOrder/Types/ReturnShippingCostDetailType.php create mode 100644 src/PostOrder/Types/ReturnShippingCostType.php create mode 100644 src/PostOrder/Types/ReturnSortField.php create mode 100644 src/PostOrder/Types/ReturnSummaryType.php create mode 100644 src/PostOrder/Types/RuleActionDataDetailType.php create mode 100644 src/PostOrder/Types/RuleActionDataType.php create mode 100644 src/PostOrder/Types/RuleActionDetailType.php create mode 100644 src/PostOrder/Types/RuleActionInputType.php create mode 100644 src/PostOrder/Types/RuleConditionDetailType.php create mode 100644 src/PostOrder/Types/RuleConditionInputType.php create mode 100644 src/PostOrder/Types/RuleDetailInputType.php create mode 100644 src/PostOrder/Types/RuleDetailType.php create mode 100644 src/PostOrder/Types/RuleModificationType.php create mode 100644 src/PostOrder/Types/RuleSummaryType.php create mode 100644 src/PostOrder/Types/RuleTemplateDetailType.php create mode 100644 src/PostOrder/Types/RuleTriggerHistDetailType.php create mode 100644 src/PostOrder/Types/ScanDetailType.php create mode 100644 src/PostOrder/Types/SearchCancellationsRestRequest.php create mode 100644 src/PostOrder/Types/SearchCancellationsRestResponse.php create mode 100644 src/PostOrder/Types/SearchCasesRestRequest.php create mode 100644 src/PostOrder/Types/SearchCasesRestResponse.php create mode 100644 src/PostOrder/Types/SearchInquiriesRestRequest.php create mode 100644 src/PostOrder/Types/SearchInquiriesRestResponse.php create mode 100644 src/PostOrder/Types/SearchReturnsRestRequest.php create mode 100644 src/PostOrder/Types/SearchReturnsRestResponse.php create mode 100644 src/PostOrder/Types/SellerProvideRefundInfoRequest.php create mode 100644 src/PostOrder/Types/SendInquiryMessageRestRequest.php create mode 100644 src/PostOrder/Types/SendInquiryMessageRestResponse.php create mode 100644 src/PostOrder/Types/SendMessageRequest.php create mode 100644 src/PostOrder/Types/SendReturnMessageRestRequest.php create mode 100644 src/PostOrder/Types/SendReturnMessageRestResponse.php create mode 100644 src/PostOrder/Types/SendReturnShippingLabelRestRequest.php create mode 100644 src/PostOrder/Types/SendReturnShippingLabelRestResponse.php create mode 100644 src/PostOrder/Types/SendShippingLabelResponse.php create mode 100644 src/PostOrder/Types/SetReturnCreationSessionRequest.php create mode 100644 src/PostOrder/Types/SetReturnCreationSessionResponse.php create mode 100644 src/PostOrder/Types/SetReturnPreferencesRestRequest.php create mode 100644 src/PostOrder/Types/SetReturnPreferencesRestResponse.php create mode 100644 src/PostOrder/Types/SetSellerReturnPreferenceRequest.php create mode 100644 src/PostOrder/Types/ShipmentInfoRequest.php create mode 100644 src/PostOrder/Types/ShipmentTrackingDetailType.php create mode 100644 src/PostOrder/Types/ShipmentTrackingType.php create mode 100644 src/PostOrder/Types/ShipmentType.php create mode 100644 src/PostOrder/Types/StatusType.php create mode 100644 src/PostOrder/Types/StoreCategoryType.php create mode 100644 src/PostOrder/Types/SubmitCancellationRequestRestRequest.php create mode 100644 src/PostOrder/Types/SubmitCancellationRequestRestResponse.php create mode 100644 src/PostOrder/Types/SubmitFileRequest.php create mode 100644 src/PostOrder/Types/SubmitFileResponse.php create mode 100644 src/PostOrder/Types/SubmitReturnFileRestRequest.php create mode 100644 src/PostOrder/Types/SubmitReturnFileRestResponse.php create mode 100644 src/PostOrder/Types/Text.php create mode 100644 src/PostOrder/Types/TotalRefundAmountType.php create mode 100644 src/PostOrder/Types/UpdateCustomListRestRequest.php create mode 100644 src/PostOrder/Types/UpdateCustomListRestResponse.php create mode 100644 src/PostOrder/Types/UpdateReturnDraftRestRequest.php create mode 100644 src/PostOrder/Types/UpdateReturnDraftRestResponse.php create mode 100644 src/PostOrder/Types/UpdateReturnRulesRestRequest.php create mode 100644 src/PostOrder/Types/UpdateReturnRulesRestResponse.php create mode 100644 src/PostOrder/Types/UpdateShipmentTrackingRestRequest.php create mode 100644 src/PostOrder/Types/UpdateShipmentTrackingRestResponse.php create mode 100644 src/PostOrder/Types/UpdateTrackingRequest.php create mode 100644 src/PostOrder/Types/UploadFileRequest.php create mode 100644 src/PostOrder/Types/UploadFileResponse.php create mode 100644 src/PostOrder/Types/UploadReturnDraftFileRestRequest.php create mode 100644 src/PostOrder/Types/UploadReturnDraftFileRestResponse.php create mode 100644 src/PostOrder/Types/UploadReturnFileRestRequest.php create mode 100644 src/PostOrder/Types/UploadReturnFileRestResponse.php create mode 100644 src/PostOrder/Types/VoidLabelRequest.php create mode 100644 src/PostOrder/Types/VoidShippingLabelRestRequest.php create mode 100644 src/PostOrder/Types/VoidShippingLabelRestResponse.php create mode 100644 src/PostOrder/Types/VoluntaryRefundResponse.php create mode 100644 src/PostOrder/Types/VoluntaryRefundResult.php create mode 100644 src/Product/Enums/AckValue.php create mode 100644 src/Product/Enums/ErrorCategory.php create mode 100644 src/Product/Enums/ErrorSeverity.php create mode 100644 src/Product/Enums/MediaType.php create mode 100644 src/Product/Enums/OrderType.php create mode 100644 src/Product/Enums/OutputSelector.php create mode 100644 src/Product/Enums/ProductSubmissionStatusCode.php create mode 100644 src/Product/Enums/SortPriority.php create mode 100644 src/Product/Enums/SortType.php create mode 100644 src/Product/Services/ProductBaseService.php create mode 100644 src/Product/Services/ProductService.php create mode 100644 src/Product/Types/AddProductResponse.php create mode 100644 src/Product/Types/AddProductsRequest.php create mode 100644 src/Product/Types/AddProductsResponse.php create mode 100644 src/Product/Types/BaseServiceRequest.php create mode 100644 src/Product/Types/BaseServiceResponse.php create mode 100644 src/Product/Types/CompatibilityDetails.php create mode 100644 src/Product/Types/CompatibilityPropertyFilter.php create mode 100644 src/Product/Types/CompatibilitySort.php create mode 100644 src/Product/Types/ErrorData.php create mode 100644 src/Product/Types/ErrorMessage.php create mode 100644 src/Product/Types/ErrorParameter.php create mode 100644 src/Product/Types/FindCompatibilitiesBySpecificationRequest.php create mode 100644 src/Product/Types/FindCompatibilitiesBySpecificationResponse.php create mode 100644 src/Product/Types/FindProductsByCompatibilityRequest.php create mode 100644 src/Product/Types/FindProductsRequest.php create mode 100644 src/Product/Types/FindProductsResponse.php create mode 100644 src/Product/Types/GetProductCompatibilitiesRequest.php create mode 100644 src/Product/Types/GetProductCompatiblitiesResponse.php create mode 100644 src/Product/Types/GetProductDetailsRequest.php create mode 100644 src/Product/Types/GetProductDetailsResponse.php create mode 100644 src/Product/Types/GetProductSubmissionsRequest.php create mode 100644 src/Product/Types/GetProductSubmissionsResponse.php create mode 100644 src/Product/Types/Media.php create mode 100644 src/Product/Types/MediaIdentifier.php create mode 100644 src/Product/Types/Notes.php create mode 100644 src/Product/Types/NumericValue.php create mode 100644 src/Product/Types/PaginationInput.php create mode 100644 src/Product/Types/PaginationOutput.php create mode 100644 src/Product/Types/Product.php create mode 100644 src/Product/Types/ProductByCompatibilityRequest.php create mode 100644 src/Product/Types/ProductDetailsRequestType.php rename src/{MerchantData/Types/UserIdPasswordType.php => Product/Types/ProductIdentifier.php} (63%) create mode 100644 src/Product/Types/ProductRequest.php create mode 100644 src/Product/Types/ProductResponse.php create mode 100644 src/Product/Types/ProductStatus.php create mode 100644 src/Product/Types/ProductSubmission.php create mode 100644 src/Product/Types/ProductSubmissionFilter.php create mode 100644 src/Product/Types/ProductSubmissionResult.php create mode 100644 src/Product/Types/ProductSubmissionStatus.php create mode 100644 src/Product/Types/PropertyValue.php create mode 100644 src/Product/Types/SortOption.php create mode 100644 src/Product/Types/SortOrder.php create mode 100644 src/Product/Types/StockPhotoURL.php create mode 100644 src/Product/Types/StringValue.php create mode 100644 src/Product/Types/URIValue.php create mode 100644 src/Product/Types/Value.php create mode 100644 src/ProductMetadata/Enums/AckValue.php create mode 100644 src/ProductMetadata/Enums/DatasetValue.php create mode 100644 src/ProductMetadata/Enums/ErrorCategory.php create mode 100644 src/ProductMetadata/Enums/ErrorSeverity.php create mode 100644 src/ProductMetadata/Enums/OrderType.php create mode 100644 src/ProductMetadata/Services/ProductMetadataBaseService.php create mode 100644 src/ProductMetadata/Services/ProductMetadataService.php create mode 100644 src/ProductMetadata/Types/BaseRequest.php create mode 100644 src/ProductMetadata/Types/BaseResponse.php create mode 100644 src/ProductMetadata/Types/BaseServiceRequest.php create mode 100644 src/ProductMetadata/Types/BaseServiceResponse.php create mode 100644 src/ProductMetadata/Types/ErrorData.php create mode 100644 src/ProductMetadata/Types/ErrorMessage.php create mode 100644 src/ProductMetadata/Types/ErrorParameter.php rename src/{MerchantData/Types/CustomSecurityHeaderType.php => ProductMetadata/Types/ExtensionType.php} (53%) create mode 100644 src/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequest.php create mode 100644 src/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponse.php create mode 100644 src/ProductMetadata/Types/GetCompatibilitySearchNamesRequest.php create mode 100644 src/ProductMetadata/Types/GetCompatibilitySearchNamesResponse.php create mode 100644 src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequest.php create mode 100644 src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponse.php create mode 100644 src/ProductMetadata/Types/GetCompatibilitySearchValuesRequest.php create mode 100644 src/ProductMetadata/Types/GetCompatibilitySearchValuesResponse.php create mode 100644 src/ProductMetadata/Types/GetProductSearchDataVersionRequest.php create mode 100644 src/ProductMetadata/Types/GetProductSearchDataVersionResponse.php create mode 100644 src/ProductMetadata/Types/GetProductSearchNamesRequest.php create mode 100644 src/ProductMetadata/Types/GetProductSearchNamesResponse.php create mode 100644 src/ProductMetadata/Types/GetProductSearchValuesBaseRequest.php create mode 100644 src/ProductMetadata/Types/GetProductSearchValuesBulkRequest.php create mode 100644 src/ProductMetadata/Types/GetProductSearchValuesBulkResponse.php create mode 100644 src/ProductMetadata/Types/GetProductSearchValuesRequest.php create mode 100644 src/ProductMetadata/Types/GetProductSearchValuesResponse.php create mode 100644 src/ProductMetadata/Types/GroupProperties.php create mode 100644 src/ProductMetadata/Types/GroupProperty.php create mode 100644 src/ProductMetadata/Types/MediaTypeSpecificInformation.php create mode 100644 src/ProductMetadata/Types/NumericTypeSpecificInformation.php create mode 100644 src/ProductMetadata/Types/NumericValue.php create mode 100644 src/ProductMetadata/Types/ProductMetadata.php create mode 100644 src/ProductMetadata/Types/ProductMetadataBulkRequest.php create mode 100644 src/ProductMetadata/Types/ProductMetadataBulkResponse.php create mode 100644 src/ProductMetadata/Types/ProductMetadataRequest.php create mode 100644 src/ProductMetadata/Types/ProductMetadataResponse.php create mode 100644 src/ProductMetadata/Types/Properties.php create mode 100644 src/ProductMetadata/Types/Property.php create mode 100644 src/ProductMetadata/Types/PropertyMetadata.php create mode 100644 src/ProductMetadata/Types/PropertyNameMetadata.php create mode 100644 src/ProductMetadata/Types/PropertyNameValue.php create mode 100644 src/ProductMetadata/Types/PropertyValue.php create mode 100644 src/ProductMetadata/Types/SortOrder.php create mode 100644 src/ProductMetadata/Types/StringTypeSpecificInformation.php create mode 100644 src/ProductMetadata/Types/StringValue.php create mode 100644 src/ProductMetadata/Types/Tag.php create mode 100644 src/ProductMetadata/Types/TypeSpecificInformation.php create mode 100644 src/ProductMetadata/Types/URITypeSpecificInformation.php create mode 100644 src/ProductMetadata/Types/URIValue.php create mode 100644 src/ProductMetadata/Types/Value.php create mode 100644 src/ProductMetadata/Types/VersionDetails.php create mode 100644 src/RelatedItemsManagement/Enums/AckValue.php create mode 100644 src/RelatedItemsManagement/Enums/BundleDetailEnum.php create mode 100644 src/RelatedItemsManagement/Enums/BundleStatusEnum.php create mode 100644 src/RelatedItemsManagement/Enums/DiscountTypeEnum.php create mode 100644 src/RelatedItemsManagement/Enums/ErrorCategory.php create mode 100644 src/RelatedItemsManagement/Enums/ErrorSeverity.php create mode 100644 src/RelatedItemsManagement/Services/RelatedItemsManagementBaseService.php create mode 100644 src/RelatedItemsManagement/Services/RelatedItemsManagementService.php create mode 100644 src/RelatedItemsManagement/Types/Amount.php create mode 100644 src/RelatedItemsManagement/Types/BaseRequest.php create mode 100644 src/RelatedItemsManagement/Types/BaseResponse.php create mode 100644 src/RelatedItemsManagement/Types/Bundle.php create mode 100644 src/RelatedItemsManagement/Types/BundleFilter.php create mode 100644 src/RelatedItemsManagement/Types/BundleStatus.php create mode 100644 src/RelatedItemsManagement/Types/BundleStatusMap.php create mode 100644 src/RelatedItemsManagement/Types/CreateBundlesRequest.php create mode 100644 src/RelatedItemsManagement/Types/CreateBundlesResponse.php create mode 100644 src/RelatedItemsManagement/Types/DeleteBundlesRequest.php create mode 100644 src/RelatedItemsManagement/Types/DeleteBundlesResponse.php create mode 100644 src/RelatedItemsManagement/Types/Discount.php create mode 100644 src/RelatedItemsManagement/Types/ErrorData.php create mode 100644 src/RelatedItemsManagement/Types/ErrorMessage.php create mode 100644 src/RelatedItemsManagement/Types/ErrorParameter.php create mode 100644 src/RelatedItemsManagement/Types/ExtensionType.php create mode 100644 src/RelatedItemsManagement/Types/FindBundlesRequest.php create mode 100644 src/RelatedItemsManagement/Types/FindBundlesResponse.php create mode 100644 src/RelatedItemsManagement/Types/GetBundlesRequest.php create mode 100644 src/RelatedItemsManagement/Types/GetBundlesResponse.php create mode 100644 src/RelatedItemsManagement/Types/GetVersionRequest.php create mode 100644 src/RelatedItemsManagement/Types/GetVersionResponse.php create mode 100644 src/RelatedItemsManagement/Types/RelatedProduct.php create mode 100644 src/RelatedItemsManagement/Types/RelatedProductGroup.php create mode 100644 src/RelatedItemsManagement/Types/UpdateBundleStatusRequest.php create mode 100644 src/RelatedItemsManagement/Types/UpdateBundleStatusResponse.php create mode 100644 src/RelatedItemsManagement/Types/UpdateBundlesRequest.php create mode 100644 src/RelatedItemsManagement/Types/UpdateBundlesResponse.php create mode 100644 src/ResolutionCaseManagement/Types/AppealRef.php create mode 100644 src/ResolutionCaseManagement/Types/MoneyMovementRef.php create mode 100644 src/Services/BaseRestService.php create mode 100644 src/StatusCodeTrait.php create mode 100644 src/UriResolver.php create mode 100644 test/Account/Enums/CategoryTypeEnumTest.php create mode 100644 test/Account/Enums/CountryCodeEnumTest.php create mode 100644 test/Account/Enums/CurrencyCodeEnumTest.php create mode 100644 test/Account/Enums/ExternalPaymentMethodTypeEnumTest.php create mode 100644 test/Account/Enums/MarketplaceIdEnumTest.php create mode 100644 test/Account/Enums/PaymentInstrumentBrandEnumTest.php create mode 100644 test/Account/Enums/PaymentMethodTypeEnumTest.php create mode 100644 test/Account/Enums/ProgramTypeEnumTest.php create mode 100644 test/Account/Enums/RecipientAccountReferenceTypeEnumTest.php create mode 100644 test/Account/Enums/RefundMethodEnumTest.php create mode 100644 test/Account/Enums/RegionTypeEnumTest.php create mode 100644 test/Account/Enums/ReturnMethodEnumTest.php create mode 100644 test/Account/Enums/ReturnShippingCostPayerEnumTest.php create mode 100644 test/Account/Enums/ShippingCostTypeEnumTest.php create mode 100644 test/Account/Enums/ShippingOptionTypeEnumTest.php create mode 100644 test/Account/Enums/TimeDurationUnitEnumTest.php create mode 100644 test/Account/Mocks/Service.php create mode 100644 test/Account/Services/ServiceTest.php create mode 100644 test/Account/Types/AmountTest.php create mode 100644 test/Account/Types/CategoryTypeTest.php create mode 100644 test/Account/Types/CreateAFulfillmentPolicyRestRequestTest.php create mode 100644 test/Account/Types/CreateAFulfillmentPolicyRestResponseTest.php create mode 100644 test/Account/Types/CreateAPaymentPolicyRestRequestTest.php create mode 100644 test/Account/Types/CreateAPaymentPolicyRestResponseTest.php create mode 100644 test/Account/Types/CreateAReturnPolicyRestRequestTest.php create mode 100644 test/Account/Types/CreateAReturnPolicyRestResponseTest.php create mode 100644 test/Account/Types/CreateASalesTaxTableRestRequestTest.php create mode 100644 test/Account/Types/CreateASalesTaxTableRestResponseTest.php create mode 100644 test/Account/Types/DeleteAFulfillmentPolicyRestRequestTest.php create mode 100644 test/Account/Types/DeleteAFulfillmentPolicyRestResponseTest.php create mode 100644 test/Account/Types/DeleteAPaymentPolicyRestRequestTest.php create mode 100644 test/Account/Types/DeleteAPaymentPolicyRestResponseTest.php create mode 100644 test/Account/Types/DeleteAReturnPolicyRestRequestTest.php create mode 100644 test/Account/Types/DeleteAReturnPolicyRestResponseTest.php create mode 100644 test/Account/Types/DeleteASalesTaxTableRestRequestTest.php create mode 100644 test/Account/Types/DeleteASalesTaxTableRestResponseTest.php create mode 100644 test/Account/Types/DepositTest.php create mode 100644 test/Account/Types/ErrorDetailV3Test.php create mode 100644 test/Account/Types/ErrorParameterV3Test.php create mode 100644 test/Account/Types/ExternalPaymentMethodTest.php create mode 100644 test/Account/Types/FulfillmentPolicyRequestTest.php create mode 100644 test/Account/Types/FulfillmentPolicyResponseTest.php create mode 100644 test/Account/Types/FulfillmentPolicyTest.php create mode 100644 test/Account/Types/GetAFulfillmentPolicyByIDRestRequestTest.php create mode 100644 test/Account/Types/GetAFulfillmentPolicyByIDRestResponseTest.php create mode 100644 test/Account/Types/GetAFulfillmentPolicyByNameRestRequestTest.php create mode 100644 test/Account/Types/GetAFulfillmentPolicyByNameRestResponseTest.php create mode 100644 test/Account/Types/GetAPaymentPolicyByIDRestRequestTest.php create mode 100644 test/Account/Types/GetAPaymentPolicyByIDRestResponseTest.php create mode 100644 test/Account/Types/GetAPaymentPolicyByNameRestRequestTest.php create mode 100644 test/Account/Types/GetAPaymentPolicyByNameRestResponseTest.php create mode 100644 test/Account/Types/GetAReturnPolicyByIDRestRequestTest.php create mode 100644 test/Account/Types/GetAReturnPolicyByIDRestResponseTest.php create mode 100644 test/Account/Types/GetAReturnPolicyByNameRestRequestTest.php create mode 100644 test/Account/Types/GetAReturnPolicyByNameRestResponseTest.php create mode 100644 test/Account/Types/GetASalesTaxTableRestRequestTest.php create mode 100644 test/Account/Types/GetASalesTaxTableRestResponseTest.php create mode 100644 test/Account/Types/GetAccountPrivilegesRestResponseTest.php create mode 100644 test/Account/Types/GetAllSalesTaxTablesRestRequestTest.php create mode 100644 test/Account/Types/GetAllSalesTaxTablesRestResponseTest.php create mode 100644 test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequestTest.php create mode 100644 test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponseTest.php create mode 100644 test/Account/Types/GetOptedInProgramsRestResponseTest.php create mode 100644 test/Account/Types/GetPaymentPoliciesByMarketplaceRestRequestTest.php create mode 100644 test/Account/Types/GetPaymentPoliciesByMarketplaceRestResponseTest.php create mode 100644 test/Account/Types/GetReturnPoliciesByMarketplaceRestRequestTest.php create mode 100644 test/Account/Types/GetReturnPoliciesByMarketplaceRestResponseTest.php create mode 100644 test/Account/Types/InventorySizingTest.php create mode 100644 test/Account/Types/InventorySnapshotTest.php create mode 100644 test/Account/Types/LookbackPeriodTest.php create mode 100644 test/Account/Types/MerchantExternalProfileTest.php create mode 100644 test/Account/Types/OptInToProgramRestRequestTest.php create mode 100644 test/Account/Types/OptInToProgramRestResponseTest.php create mode 100644 test/Account/Types/OptOutOfProgramRestRequestTest.php create mode 100644 test/Account/Types/OptOutOfProgramRestResponseTest.php create mode 100644 test/Account/Types/PaymentMethodTest.php create mode 100644 test/Account/Types/PaymentPolicyRequestTest.php create mode 100644 test/Account/Types/PaymentPolicyResponseTest.php create mode 100644 test/Account/Types/PaymentPolicyTest.php create mode 100644 test/Account/Types/ProgramTest.php create mode 100644 test/Account/Types/ProgramsTest.php create mode 100644 test/Account/Types/RecipientAccountReferenceTest.php create mode 100644 test/Account/Types/RegionSetTest.php create mode 100644 test/Account/Types/RegionTest.php create mode 100644 test/Account/Types/ReturnPolicyRequestTest.php create mode 100644 test/Account/Types/ReturnPolicyResponseTest.php create mode 100644 test/Account/Types/ReturnPolicyTest.php create mode 100644 test/Account/Types/ReturnSnapshotTest.php create mode 100644 test/Account/Types/SalesTaxBaseTest.php create mode 100644 test/Account/Types/SalesTaxTest.php create mode 100644 test/Account/Types/SalesTaxesTest.php create mode 100644 test/Account/Types/SellingLimitTest.php create mode 100644 test/Account/Types/SellingPrivilegesTest.php create mode 100644 test/Account/Types/SetFulfillmentPolicyResponseTest.php create mode 100644 test/Account/Types/SetPaymentPolicyResponseTest.php create mode 100644 test/Account/Types/SetReturnPolicyResponseTest.php create mode 100644 test/Account/Types/ShippingOptionTest.php create mode 100644 test/Account/Types/ShippingServiceTest.php create mode 100644 test/Account/Types/SoldAggregatedMetricsTest.php create mode 100644 test/Account/Types/TimeDurationTest.php create mode 100644 test/Account/Types/TransactionSnapshotTest.php create mode 100644 test/Account/Types/TransactionVolumeTest.php create mode 100644 test/Account/Types/UpdateAFulfillmentPolicyRestRequestTest.php create mode 100644 test/Account/Types/UpdateAFulfillmentPolicyRestResponseTest.php create mode 100644 test/Account/Types/UpdateAPaymentPolicyRestRequestTest.php create mode 100644 test/Account/Types/UpdateAPaymentPolicyRestResponseTest.php create mode 100644 test/Account/Types/UpdateAReturnPolicyRestRequestTest.php create mode 100644 test/Account/Types/UpdateAReturnPolicyRestResponseTest.php create mode 100644 test/Analytics/Enums/CycleTypeEnumTest.php create mode 100644 test/Analytics/Enums/DataTypeEnumTest.php create mode 100644 test/Analytics/Enums/ProgramEnumTest.php create mode 100644 test/Analytics/Enums/StandardsLevelEnumTest.php create mode 100644 test/Analytics/Mocks/Service.php create mode 100644 test/Analytics/Services/ServiceTest.php create mode 100644 test/Analytics/Types/CycleTest.php create mode 100644 test/Analytics/Types/DefinitionTest.php create mode 100644 test/Analytics/Types/ErrorDetailV3Test.php create mode 100644 test/Analytics/Types/ErrorParameterV3Test.php create mode 100644 test/Analytics/Types/FilterFieldTest.php create mode 100644 test/Analytics/Types/FindSellerStandardsProfilesResponseTest.php create mode 100644 test/Analytics/Types/GetASpecificSellerProfileRestRequestTest.php create mode 100644 test/Analytics/Types/GetASpecificSellerProfileRestResponseTest.php create mode 100644 test/Analytics/Types/GetAllSellerProfilesRestResponseTest.php create mode 100644 test/Analytics/Types/GetTrafficReportRestRequestTest.php create mode 100644 test/Analytics/Types/GetTrafficReportRestResponseTest.php create mode 100644 test/Analytics/Types/HeaderTest.php create mode 100644 test/Analytics/Types/MetricTest.php create mode 100644 test/Analytics/Types/RangeValueTest.php create mode 100644 test/Analytics/Types/RecordTest.php create mode 100644 test/Analytics/Types/ReportTest.php create mode 100644 test/Analytics/Types/StandardsProfileTest.php create mode 100644 test/Analytics/Types/ValueTest.php create mode 100644 test/Browse/Enums/AvailabilityStatusEnumTest.php create mode 100644 test/Browse/Enums/CountryCodeEnumTest.php create mode 100644 test/Browse/Enums/CurrencyCodeEnumTest.php create mode 100644 test/Browse/Enums/PriceDisplayConditionEnumTest.php create mode 100644 test/Browse/Enums/RefundMethodEnumTest.php create mode 100644 test/Browse/Enums/ReturnMethodEnumTest.php create mode 100644 test/Browse/Enums/ReturnShippingCostPayerEnumTest.php create mode 100644 test/Browse/Enums/TimeDurationUnitEnumTest.php create mode 100644 test/Browse/Enums/ValueTypeEnumTest.php create mode 100644 test/Browse/Mocks/Service.php create mode 100644 test/Browse/Services/ServiceTest.php create mode 100644 test/Browse/Types/AddressTest.php create mode 100644 test/Browse/Types/AmountTest.php create mode 100644 test/Browse/Types/Amount_0Test.php create mode 100644 test/Browse/Types/CategoryTest.php create mode 100644 test/Browse/Types/ErrorDetailV3Test.php create mode 100644 test/Browse/Types/ErrorParameterV3Test.php create mode 100644 test/Browse/Types/FilterFieldTest.php create mode 100644 test/Browse/Types/GetItemFeedRestRequestTest.php create mode 100644 test/Browse/Types/GetItemFeedRestResponseTest.php create mode 100644 test/Browse/Types/GetItemGroupRestRequestTest.php create mode 100644 test/Browse/Types/GetItemGroupRestResponseTest.php create mode 100644 test/Browse/Types/GetItemRestRequestTest.php create mode 100644 test/Browse/Types/GetItemRestResponseTest.php create mode 100644 test/Browse/Types/ImageTest.php create mode 100644 test/Browse/Types/ItemDigestTest.php create mode 100644 test/Browse/Types/ItemFeedResponseTest.php create mode 100644 test/Browse/Types/ItemFeedTest.php create mode 100644 test/Browse/Types/ItemGroupTest.php create mode 100644 test/Browse/Types/ItemLocationImplTest.php create mode 100644 test/Browse/Types/ItemReturnTermsTest.php create mode 100644 test/Browse/Types/ItemSummaryTest.php create mode 100644 test/Browse/Types/ItemTest.php create mode 100644 test/Browse/Types/MarketingPriceTest.php create mode 100644 test/Browse/Types/MarketingPrice_0Test.php create mode 100644 test/Browse/Types/PickupOptionSummaryTest.php create mode 100644 test/Browse/Types/RangeValueTest.php create mode 100644 test/Browse/Types/RatingHistogramTest.php create mode 100644 test/Browse/Types/ReviewRatingTest.php create mode 100644 test/Browse/Types/SearchForItemsRestRequestTest.php create mode 100644 test/Browse/Types/SearchForItemsRestResponseTest.php create mode 100644 test/Browse/Types/SearchPagedCollectionTest.php create mode 100644 test/Browse/Types/SellerTest.php create mode 100644 test/Browse/Types/ShippingOptionSummaryTest.php create mode 100644 test/Browse/Types/ShippingOptionTest.php create mode 100644 test/Browse/Types/SortFieldTest.php create mode 100644 test/Browse/Types/TargetLocationTest.php create mode 100644 test/Browse/Types/TimeDurationTest.php create mode 100644 test/Browse/Types/TypedNameValueTest.php create mode 100644 test/Constants/MarketplaceIdsTest.php create mode 100644 test/Feedback/Enums/AckValueTest.php create mode 100644 test/Feedback/Enums/ErrorCategoryTest.php create mode 100644 test/Feedback/Enums/ErrorSeverityTest.php create mode 100644 test/Feedback/Mocks/Service.php create mode 100644 test/Feedback/Services/ServiceTest.php create mode 100644 test/Feedback/Types/BaseServiceRequestTest.php create mode 100644 test/Feedback/Types/BaseServiceResponseTest.php create mode 100644 test/Feedback/Types/CreateDSRSummaryByCategoryRequestTest.php create mode 100644 test/Feedback/Types/CreateDSRSummaryByPeriodRequestTest.php create mode 100644 test/Feedback/Types/CreateDSRSummaryByShippingDetailRequestTest.php create mode 100644 test/Feedback/Types/CreateDSRSummaryByTransactionRequestTest.php create mode 100644 test/Feedback/Types/CreateDSRSummaryResponseTest.php create mode 100644 test/Feedback/Types/DSRSummaryTest.php create mode 100644 test/Feedback/Types/DateRangeTest.php create mode 100644 test/Feedback/Types/ErrorDataTest.php create mode 100644 test/Feedback/Types/ErrorMessageTest.php create mode 100644 test/Feedback/Types/ErrorParameterTest.php create mode 100644 test/Feedback/Types/GetDSRSummaryRequestTest.php create mode 100644 test/Feedback/Types/GetDSRSummaryResponseTest.php create mode 100644 test/Feedback/Types/TransactionKeyTest.php create mode 100644 test/Fulfillment/Enums/AcknowledgeStatusEnumTest.php create mode 100644 test/Fulfillment/Enums/CancelRequestStateEnumTest.php create mode 100644 test/Fulfillment/Enums/CancelStateEnumTest.php create mode 100644 test/Fulfillment/Enums/CountryCodeEnumTest.php create mode 100644 test/Fulfillment/Enums/CurrencyCodeEnumTest.php create mode 100644 test/Fulfillment/Enums/LineItemFulfillmentStatusEnumTest.php create mode 100644 test/Fulfillment/Enums/MarketplaceIdEnumTest.php create mode 100644 test/Fulfillment/Enums/OrderPaymentStatusEnumTest.php create mode 100644 test/Fulfillment/Enums/PaymentMethodTypeEnumTest.php create mode 100644 test/Fulfillment/Enums/PaymentStatusEnumTest.php create mode 100644 test/Fulfillment/Enums/RefundStatusEnumTest.php create mode 100644 test/Fulfillment/Enums/RefundTypeEnumTest.php create mode 100644 test/Fulfillment/Enums/SoldFormatEnumTest.php create mode 100644 test/Fulfillment/Mocks/Service.php create mode 100644 test/Fulfillment/Services/ServiceTest.php create mode 100644 test/Fulfillment/Types/AddressTest.php create mode 100644 test/Fulfillment/Types/AmountTest.php create mode 100644 test/Fulfillment/Types/AppliedPromotionTest.php create mode 100644 test/Fulfillment/Types/AttributeTest.php create mode 100644 test/Fulfillment/Types/BuyerTest.php create mode 100644 test/Fulfillment/Types/CancelRequestTest.php create mode 100644 test/Fulfillment/Types/CancelStatusTest.php create mode 100644 test/Fulfillment/Types/ContactTest.php create mode 100644 test/Fulfillment/Types/CreateAShippingFulfillmentRestRequestTest.php create mode 100644 test/Fulfillment/Types/CreateAShippingFulfillmentRestResponseTest.php create mode 100644 test/Fulfillment/Types/DeliveryCostTest.php create mode 100644 test/Fulfillment/Types/ErrorDetailV3Test.php create mode 100644 test/Fulfillment/Types/ErrorParameterV3Test.php create mode 100644 test/Fulfillment/Types/FeeTest.php create mode 100644 test/Fulfillment/Types/FilterFieldTest.php create mode 100644 test/Fulfillment/Types/FulfillmentInstructionsTypeTest.php create mode 100644 test/Fulfillment/Types/FulfillmentStartInstructionTest.php create mode 100644 test/Fulfillment/Types/GetAShippingFulfillmentRestRequestTest.php create mode 100644 test/Fulfillment/Types/GetAShippingFulfillmentRestResponseTest.php create mode 100644 test/Fulfillment/Types/GetAnOrderRestRequestTest.php create mode 100644 test/Fulfillment/Types/GetAnOrderRestResponseTest.php create mode 100644 test/Fulfillment/Types/GetOrdersRestRequestTest.php create mode 100644 test/Fulfillment/Types/GetOrdersRestResponseTest.php create mode 100644 test/Fulfillment/Types/GetShippingFulfillmentsRestRequestTest.php create mode 100644 test/Fulfillment/Types/GetShippingFulfillmentsRestResponseTest.php create mode 100644 test/Fulfillment/Types/GiftDetailsTest.php create mode 100644 test/Fulfillment/Types/LineItemPropertiesTest.php create mode 100644 test/Fulfillment/Types/LineItemReferenceTest.php create mode 100644 test/Fulfillment/Types/LineItemTest.php create mode 100644 test/Fulfillment/Types/OrderFulfillmentStatusTest.php create mode 100644 test/Fulfillment/Types/OrderRefundTest.php create mode 100644 test/Fulfillment/Types/OrderSearchPagedCollectionTest.php create mode 100644 test/Fulfillment/Types/OrderTest.php create mode 100644 test/Fulfillment/Types/PaymentHoldTest.php create mode 100644 test/Fulfillment/Types/PaymentSummaryTest.php create mode 100644 test/Fulfillment/Types/PaymentTest.php create mode 100644 test/Fulfillment/Types/PhoneNumberTest.php create mode 100644 test/Fulfillment/Types/PricingSummaryTest.php create mode 100644 test/Fulfillment/Types/RangeValueTest.php create mode 100644 test/Fulfillment/Types/SellerActionsToReleaseTest.php create mode 100644 test/Fulfillment/Types/ShippingFulfillmentDetailsTest.php create mode 100644 test/Fulfillment/Types/ShippingFulfillmentPagedCollectionTest.php create mode 100644 test/Fulfillment/Types/ShippingFulfillmentTest.php create mode 100644 test/Fulfillment/Types/ShippingStepTest.php create mode 100644 test/Fulfillment/Types/TaxTest.php create mode 100644 test/HttpHeadersTraitTest.php create mode 100644 test/Inventory/Enums/AvailabilityTypeEnumTest.php create mode 100644 test/Inventory/Enums/ConditionEnumTest.php create mode 100644 test/Inventory/Enums/CountryCodeEnumTest.php create mode 100644 test/Inventory/Enums/DayOfWeekEnumTest.php create mode 100644 test/Inventory/Enums/FormatTypeEnumTest.php create mode 100644 test/Inventory/Enums/LengthUnitOfMeasureEnumTest.php create mode 100644 test/Inventory/Enums/ListingStatusEnumTest.php create mode 100644 test/Inventory/Enums/MarketplaceEnumTest.php create mode 100644 test/Inventory/Enums/MinimumAdvertisedPriceHandlingEnumTest.php create mode 100644 test/Inventory/Enums/OfferStatusEnumTest.php create mode 100644 test/Inventory/Enums/PackageTypeEnumTest.php create mode 100644 test/Inventory/Enums/ShippingServiceTypeEnumTest.php create mode 100644 test/Inventory/Enums/SoldOnEnumTest.php create mode 100644 test/Inventory/Enums/StatusEnumTest.php create mode 100644 test/Inventory/Enums/StoreTypeEnumTest.php create mode 100644 test/Inventory/Enums/TimeDurationUnitEnumTest.php create mode 100644 test/Inventory/Enums/WeightUnitOfMeasureEnumTest.php create mode 100644 test/Inventory/Mocks/Service.php create mode 100644 test/Inventory/Services/ServiceTest.php create mode 100644 test/Inventory/Types/AddressTest.php create mode 100644 test/Inventory/Types/AmountTest.php create mode 100644 test/Inventory/Types/AvailabilityTest.php create mode 100644 test/Inventory/Types/BaseResponseTest.php create mode 100644 test/Inventory/Types/BulkPriceQuantityResponseTest.php create mode 100644 test/Inventory/Types/BulkPriceQuantityTest.php create mode 100644 test/Inventory/Types/BulkUpdatePriceAndQuantityRestRequestTest.php create mode 100644 test/Inventory/Types/BulkUpdatePriceAndQuantityRestResponseTest.php create mode 100644 test/Inventory/Types/CompatibilityTest.php create mode 100644 test/Inventory/Types/CompatibleProductTest.php create mode 100644 test/Inventory/Types/CreateInventoryLocationRestRequestTest.php create mode 100644 test/Inventory/Types/CreateInventoryLocationRestResponseTest.php create mode 100644 test/Inventory/Types/CreateOfferRestRequestTest.php create mode 100644 test/Inventory/Types/CreateOfferRestResponseTest.php create mode 100644 test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequestTest.php create mode 100644 test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponseTest.php create mode 100644 test/Inventory/Types/CreateOrReplaceInventoryItemRestRequestTest.php create mode 100644 test/Inventory/Types/CreateOrReplaceInventoryItemRestResponseTest.php create mode 100644 test/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequestTest.php create mode 100644 test/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponseTest.php create mode 100644 test/Inventory/Types/DeleteInventoryItemGroupRestRequestTest.php create mode 100644 test/Inventory/Types/DeleteInventoryItemGroupRestResponseTest.php create mode 100644 test/Inventory/Types/DeleteInventoryItemRestRequestTest.php create mode 100644 test/Inventory/Types/DeleteInventoryItemRestResponseTest.php create mode 100644 test/Inventory/Types/DeleteInventoryLocationRestRequestTest.php create mode 100644 test/Inventory/Types/DeleteInventoryLocationRestResponseTest.php create mode 100644 test/Inventory/Types/DeleteOfferRestRequestTest.php create mode 100644 test/Inventory/Types/DeleteOfferRestResponseTest.php create mode 100644 test/Inventory/Types/DeleteProductCompatibilityRestRequestTest.php create mode 100644 test/Inventory/Types/DeleteProductCompatibilityRestResponseTest.php create mode 100644 test/Inventory/Types/DimensionTest.php create mode 100644 test/Inventory/Types/DisableInventoryLocationRestRequestTest.php create mode 100644 test/Inventory/Types/DisableInventoryLocationRestResponseTest.php create mode 100644 test/Inventory/Types/EbayOfferDetailsWithAllTest.php create mode 100644 test/Inventory/Types/EbayOfferDetailsWithIdTest.php create mode 100644 test/Inventory/Types/EbayOfferDetailsWithKeysTest.php create mode 100644 test/Inventory/Types/EnableInventoryLocationRestRequestTest.php create mode 100644 test/Inventory/Types/EnableInventoryLocationRestResponseTest.php create mode 100644 test/Inventory/Types/ErrorDetailV3Test.php create mode 100644 test/Inventory/Types/ErrorParameterV3Test.php create mode 100644 test/Inventory/Types/FeeSummaryTest.php create mode 100644 test/Inventory/Types/FeeTest.php create mode 100644 test/Inventory/Types/FeesSummaryResponseTest.php create mode 100644 test/Inventory/Types/GeoCoordinatesTest.php create mode 100644 test/Inventory/Types/GetInventoryItemGroupRestRequestTest.php create mode 100644 test/Inventory/Types/GetInventoryItemGroupRestResponseTest.php create mode 100644 test/Inventory/Types/GetInventoryItemRestRequestTest.php create mode 100644 test/Inventory/Types/GetInventoryItemRestResponseTest.php create mode 100644 test/Inventory/Types/GetInventoryItemsRestRequestTest.php create mode 100644 test/Inventory/Types/GetInventoryItemsRestResponseTest.php create mode 100644 test/Inventory/Types/GetInventoryLocationRestRequestTest.php create mode 100644 test/Inventory/Types/GetInventoryLocationRestResponseTest.php create mode 100644 test/Inventory/Types/GetInventoryLocationsRestRequestTest.php create mode 100644 test/Inventory/Types/GetInventoryLocationsRestResponseTest.php create mode 100644 test/Inventory/Types/GetListingFeesRestRequestTest.php create mode 100644 test/Inventory/Types/GetListingFeesRestResponseTest.php create mode 100644 test/Inventory/Types/GetOfferRestRequestTest.php create mode 100644 test/Inventory/Types/GetOfferRestResponseTest.php create mode 100644 test/Inventory/Types/GetOffersRestRequestTest.php create mode 100644 test/Inventory/Types/GetOffersRestResponseTest.php create mode 100644 test/Inventory/Types/GetProductCompatibilityRestRequestTest.php create mode 100644 test/Inventory/Types/GetProductCompatibilityRestResponseTest.php create mode 100644 test/Inventory/Types/IntervalTest.php create mode 100644 test/Inventory/Types/InventoryItemGroupTest.php create mode 100644 test/Inventory/Types/InventoryItemTest.php create mode 100644 test/Inventory/Types/InventoryItemsTest.php create mode 100644 test/Inventory/Types/InventoryLocationFullTest.php create mode 100644 test/Inventory/Types/InventoryLocationResponseTest.php create mode 100644 test/Inventory/Types/InventoryLocationTest.php create mode 100644 test/Inventory/Types/ListingDetailsTest.php create mode 100644 test/Inventory/Types/ListingPoliciesTest.php create mode 100644 test/Inventory/Types/LocationResponseTest.php create mode 100644 test/Inventory/Types/LocationTest.php create mode 100644 test/Inventory/Types/OfferKeyWithIdTest.php create mode 100644 test/Inventory/Types/OfferKeysWithIdTest.php create mode 100644 test/Inventory/Types/OfferPriceQuantityTest.php create mode 100644 test/Inventory/Types/OfferResponseTest.php create mode 100644 test/Inventory/Types/OffersTest.php create mode 100644 test/Inventory/Types/OperatingHoursTest.php create mode 100644 test/Inventory/Types/PackageWeightAndSizeTest.php create mode 100644 test/Inventory/Types/PickupAtLocationAvailabilityTest.php create mode 100644 test/Inventory/Types/PriceQuantityResponseTest.php create mode 100644 test/Inventory/Types/PriceQuantityTest.php create mode 100644 test/Inventory/Types/PricingSummaryTest.php create mode 100644 test/Inventory/Types/ProductFamilyPropertiesTest.php create mode 100644 test/Inventory/Types/ProductIdentifierTest.php create mode 100644 test/Inventory/Types/ProductTest.php create mode 100644 test/Inventory/Types/PublishOfferRestRequestTest.php create mode 100644 test/Inventory/Types/PublishOfferRestResponseTest.php create mode 100644 test/Inventory/Types/PublishResponseTest.php create mode 100644 test/Inventory/Types/ShipToLocationAvailabilityTest.php create mode 100644 test/Inventory/Types/ShippingCostOverrideTest.php create mode 100644 test/Inventory/Types/SpecialHoursTest.php create mode 100644 test/Inventory/Types/SpecificationTest.php create mode 100644 test/Inventory/Types/TaxTest.php create mode 100644 test/Inventory/Types/TimeDurationTest.php create mode 100644 test/Inventory/Types/UpdateInventoryLocationRestRequestTest.php create mode 100644 test/Inventory/Types/UpdateInventoryLocationRestResponseTest.php create mode 100644 test/Inventory/Types/UpdateOfferRestRequestTest.php create mode 100644 test/Inventory/Types/UpdateOfferRestResponseTest.php create mode 100644 test/Inventory/Types/VariesByTest.php create mode 100644 test/Inventory/Types/WeightTest.php create mode 100644 test/Json/JsonTest.php create mode 100644 test/Marketing/Enums/CampaignStatusEnumTest.php create mode 100644 test/Marketing/Enums/CategoryScopeEnumTest.php create mode 100644 test/Marketing/Enums/CriterionTypeEnumTest.php create mode 100644 test/Marketing/Enums/CurrencyCodeEnumTest.php create mode 100644 test/Marketing/Enums/FundingModelEnumTest.php create mode 100644 test/Marketing/Enums/InventoryCriterionEnumTest.php create mode 100644 test/Marketing/Enums/InventoryReferenceTypeEnumTest.php create mode 100644 test/Marketing/Enums/MarketplaceIdEnumTest.php create mode 100644 test/Marketing/Enums/PromotionPriorityEnumTest.php create mode 100644 test/Marketing/Enums/PromotionStatusEnumTest.php create mode 100644 test/Marketing/Mocks/Service.php create mode 100644 test/Marketing/Services/ServiceTest.php create mode 100644 test/Marketing/Types/AdIdsTest.php create mode 100644 test/Marketing/Types/AdPagedCollectionTest.php create mode 100644 test/Marketing/Types/AdReferenceTest.php create mode 100644 test/Marketing/Types/AdReferencesTest.php create mode 100644 test/Marketing/Types/AdResponseTest.php create mode 100644 test/Marketing/Types/AdTest.php create mode 100644 test/Marketing/Types/AdsTest.php create mode 100644 test/Marketing/Types/AmountTest.php create mode 100644 test/Marketing/Types/BulkAdResponseTest.php create mode 100644 test/Marketing/Types/BulkCreateAdRequestTest.php create mode 100644 test/Marketing/Types/BulkCreateAdsByInventoryReferenceRequestTest.php create mode 100644 test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequestTest.php create mode 100644 test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponseTest.php create mode 100644 test/Marketing/Types/BulkCreateAdsByListingIDRestRequestTest.php create mode 100644 test/Marketing/Types/BulkCreateAdsByListingIDRestResponseTest.php create mode 100644 test/Marketing/Types/BulkDeleteAdRequestTest.php create mode 100644 test/Marketing/Types/BulkDeleteAdResponseTest.php create mode 100644 test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequestTest.php create mode 100644 test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequestTest.php create mode 100644 test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponseTest.php create mode 100644 test/Marketing/Types/BulkDeleteAdsByListingIDRestRequestTest.php create mode 100644 test/Marketing/Types/BulkDeleteAdsByListingIDRestResponseTest.php create mode 100644 test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequestTest.php create mode 100644 test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponseTest.php create mode 100644 test/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequestTest.php create mode 100644 test/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponseTest.php create mode 100644 test/Marketing/Types/CampaignCriterionTest.php create mode 100644 test/Marketing/Types/CampaignPagedCollectionTest.php create mode 100644 test/Marketing/Types/CampaignTest.php create mode 100644 test/Marketing/Types/CampaignsTest.php create mode 100644 test/Marketing/Types/CloneCampaignRequestTest.php create mode 100644 test/Marketing/Types/CloneCampaignRestRequestTest.php create mode 100644 test/Marketing/Types/CloneCampaignRestResponseTest.php create mode 100644 test/Marketing/Types/CreateAdByListingIDRestRequestTest.php create mode 100644 test/Marketing/Types/CreateAdByListingIDRestResponseTest.php create mode 100644 test/Marketing/Types/CreateAdRequestTest.php create mode 100644 test/Marketing/Types/CreateAdsByInventoryReferenceRequestTest.php create mode 100644 test/Marketing/Types/CreateAdsByInventoryReferenceRestRequestTest.php create mode 100644 test/Marketing/Types/CreateAdsByInventoryReferenceRestResponseTest.php create mode 100644 test/Marketing/Types/CreateCampaignRequestTest.php create mode 100644 test/Marketing/Types/CreateCampaignRestRequestTest.php create mode 100644 test/Marketing/Types/CreateCampaignRestResponseTest.php create mode 100644 test/Marketing/Types/CreateItemPromotionRestRequestTest.php create mode 100644 test/Marketing/Types/CreateItemPromotionRestResponseTest.php create mode 100644 test/Marketing/Types/DeleteAdByIDRestRequestTest.php create mode 100644 test/Marketing/Types/DeleteAdByIDRestResponseTest.php create mode 100644 test/Marketing/Types/DeleteAdRequestTest.php create mode 100644 test/Marketing/Types/DeleteAdResponseTest.php create mode 100644 test/Marketing/Types/DeleteAdsByInventoryReferenceRequestTest.php create mode 100644 test/Marketing/Types/DeleteAdsByInventoryReferenceRestRequestTest.php create mode 100644 test/Marketing/Types/DeleteAdsByInventoryReferenceRestResponseTest.php create mode 100644 test/Marketing/Types/DeleteCampaignRestRequestTest.php create mode 100644 test/Marketing/Types/DeleteCampaignRestResponseTest.php create mode 100644 test/Marketing/Types/DeleteItemPromotionRestRequestTest.php create mode 100644 test/Marketing/Types/DeleteItemPromotionRestResponseTest.php create mode 100644 test/Marketing/Types/DiscountBenefitTest.php create mode 100644 test/Marketing/Types/DiscountRuleTest.php create mode 100644 test/Marketing/Types/DiscountSpecificationTest.php create mode 100644 test/Marketing/Types/EndCampaignRestRequestTest.php create mode 100644 test/Marketing/Types/EndCampaignRestResponseTest.php create mode 100644 test/Marketing/Types/ErrorDetailV3Test.php create mode 100644 test/Marketing/Types/ErrorParameterV3Test.php create mode 100644 test/Marketing/Types/FindCampaignByAdReferenceRestRequestTest.php create mode 100644 test/Marketing/Types/FindCampaignByAdReferenceRestResponseTest.php create mode 100644 test/Marketing/Types/FundingStrategyTest.php create mode 100644 test/Marketing/Types/GetAdByIDRestRequestTest.php create mode 100644 test/Marketing/Types/GetAdByIDRestResponseTest.php create mode 100644 test/Marketing/Types/GetAdsByInventoryReferenceRestRequestTest.php create mode 100644 test/Marketing/Types/GetAdsByInventoryReferenceRestResponseTest.php create mode 100644 test/Marketing/Types/GetAdsRestRequestTest.php create mode 100644 test/Marketing/Types/GetAdsRestResponseTest.php create mode 100644 test/Marketing/Types/GetAllCampaignsRestRequestTest.php create mode 100644 test/Marketing/Types/GetAllCampaignsRestResponseTest.php create mode 100644 test/Marketing/Types/GetCampaignByIDRestRequestTest.php create mode 100644 test/Marketing/Types/GetCampaignByIDRestResponseTest.php create mode 100644 test/Marketing/Types/GetCampaignByNameRestRequestTest.php create mode 100644 test/Marketing/Types/GetCampaignByNameRestResponseTest.php create mode 100644 test/Marketing/Types/GetItemPromotionRestRequestTest.php create mode 100644 test/Marketing/Types/GetItemPromotionRestResponseTest.php create mode 100644 test/Marketing/Types/GetPromotionSummaryReportRestRequestTest.php create mode 100644 test/Marketing/Types/GetPromotionSummaryReportRestResponseTest.php create mode 100644 test/Marketing/Types/GetPromotionsRestRequestTest.php create mode 100644 test/Marketing/Types/GetPromotionsRestResponseTest.php create mode 100644 test/Marketing/Types/InventoryCriterionTest.php create mode 100644 test/Marketing/Types/InventoryItemTest.php create mode 100644 test/Marketing/Types/ItemPromotionResponseTest.php create mode 100644 test/Marketing/Types/ItemPromotionTest.php create mode 100644 test/Marketing/Types/PauseAPromotionRestRequestTest.php create mode 100644 test/Marketing/Types/PauseAPromotionRestResponseTest.php create mode 100644 test/Marketing/Types/PauseCampaignRestRequestTest.php create mode 100644 test/Marketing/Types/PauseCampaignRestResponseTest.php create mode 100644 test/Marketing/Types/PromotionDetailTest.php create mode 100644 test/Marketing/Types/PromotionsPagedCollectionTest.php create mode 100644 test/Marketing/Types/ResumeAPromotionRestRequestTest.php create mode 100644 test/Marketing/Types/ResumeAPromotionRestResponseTest.php create mode 100644 test/Marketing/Types/ResumeCampaignRestRequestTest.php create mode 100644 test/Marketing/Types/ResumeCampaignRestResponseTest.php create mode 100644 test/Marketing/Types/SelectionRuleTest.php create mode 100644 test/Marketing/Types/SortFieldTest.php create mode 100644 test/Marketing/Types/SummaryReportResponseTest.php create mode 100644 test/Marketing/Types/UpdateBidPercentageRequestTest.php create mode 100644 test/Marketing/Types/UpdateBidRestRequestTest.php create mode 100644 test/Marketing/Types/UpdateBidRestResponseTest.php create mode 100644 test/Marketing/Types/UpdateCampaignIDentificationRestRequestTest.php create mode 100644 test/Marketing/Types/UpdateCampaignIDentificationRestResponseTest.php create mode 100644 test/Marketing/Types/UpdateCampaignIdentificationRequestTest.php create mode 100644 test/Marketing/Types/UpdateItemPromotionRestRequestTest.php create mode 100644 test/Marketing/Types/UpdateItemPromotionRestResponseTest.php create mode 100644 test/Merchandising/Enums/AckValueTest.php create mode 100644 test/Merchandising/Enums/ErrorCategoryTest.php create mode 100644 test/Merchandising/Enums/ErrorSeverityTest.php create mode 100644 test/Merchandising/Enums/ItemFilterTypeTest.php create mode 100644 test/Merchandising/Enums/PriceTreatmentEnumTest.php create mode 100644 test/Merchandising/Mocks/Service.php create mode 100644 test/Merchandising/Services/ServiceTest.php create mode 100644 test/Merchandising/Types/AffiliateTest.php create mode 100644 test/Merchandising/Types/AmountTest.php create mode 100644 test/Merchandising/Types/BaseMerchandisingServiceRequestTest.php create mode 100644 test/Merchandising/Types/BaseMerchandisingServiceResponseTest.php create mode 100644 test/Merchandising/Types/BaseServiceRequestTest.php create mode 100644 test/Merchandising/Types/BaseServiceResponseTest.php create mode 100644 test/Merchandising/Types/DiscountPriceInfoTest.php create mode 100644 test/Merchandising/Types/ErrorDataTest.php create mode 100644 test/Merchandising/Types/ErrorMessageTest.php create mode 100644 test/Merchandising/Types/ErrorParameterTest.php create mode 100644 test/Merchandising/Types/GetDealsRequestTest.php create mode 100644 test/Merchandising/Types/GetMostWatchedItemsRequestTest.php create mode 100644 test/Merchandising/Types/GetRelatedCategoryItemsRequestTest.php create mode 100644 test/Merchandising/Types/GetSimilarItemsRequestTest.php create mode 100644 test/Merchandising/Types/GetTopSellingProductsRequestTest.php create mode 100644 test/Merchandising/Types/GetVersionRequestTest.php create mode 100644 test/Merchandising/Types/GetVersionResponseTest.php create mode 100644 test/Merchandising/Types/ItemFilterTest.php create mode 100644 test/Merchandising/Types/ItemRecommendationsTest.php create mode 100644 test/Merchandising/Types/ItemTest.php create mode 100644 test/Merchandising/Types/MerchandisingServiceItemResponseTest.php create mode 100644 test/Merchandising/Types/MerchandisingServiceProductResponseTest.php create mode 100644 test/Merchandising/Types/ProductIdTest.php create mode 100644 test/Merchandising/Types/ProductRecommendationsTest.php create mode 100644 test/Merchandising/Types/ProductTest.php delete mode 100644 test/MerchantData/Types/CustomSecurityHeaderTypeTest.php delete mode 100644 test/MerchantData/Types/UserIdPasswordTypeTest.php create mode 100644 test/Metadata/Enums/CountryCodeEnumTest.php create mode 100644 test/Metadata/Mocks/Service.php create mode 100644 test/Metadata/Services/ServiceTest.php create mode 100644 test/Metadata/Types/ErrorDetailV3Test.php create mode 100644 test/Metadata/Types/ErrorParameterV3Test.php create mode 100644 test/Metadata/Types/GetSalesTaxJurisdictionsRestRequestTest.php create mode 100644 test/Metadata/Types/GetSalesTaxJurisdictionsRestResponseTest.php create mode 100644 test/Metadata/Types/SalesTaxJurisdictionTest.php create mode 100644 test/Metadata/Types/SalesTaxJurisdictionsTest.php create mode 100644 test/Mocks/BaseRestService.php create mode 100644 test/Mocks/ComplexClassJson.json create mode 100644 test/Mocks/HttpHeaders.php create mode 100644 test/Mocks/HttpRestHandler.php create mode 100644 test/Mocks/Response.json create mode 100644 test/Mocks/RestResponse.json create mode 100644 test/Mocks/RestService.php create mode 100644 test/Mocks/StatusCode.php create mode 100644 test/Order/Enums/CountryCodeEnumTest.php create mode 100644 test/Order/Enums/CurrencyCodeEnumTest.php create mode 100644 test/Order/Enums/LineItemPaymentStatusEnumTest.php create mode 100644 test/Order/Enums/LineItemStatusEnumTest.php create mode 100644 test/Order/Enums/PaymentMethodBrandEnumTest.php create mode 100644 test/Order/Enums/PaymentMethodTypeEnumTest.php create mode 100644 test/Order/Enums/PurchaseOrderPaymentStatusEnumTest.php create mode 100644 test/Order/Enums/PurchaseOrderStatusEnumTest.php create mode 100644 test/Order/Mocks/Service.php create mode 100644 test/Order/Services/ServiceTest.php create mode 100644 test/Order/Types/AdjustmentTest.php create mode 100644 test/Order/Types/Adjustment_0Test.php create mode 100644 test/Order/Types/AmountTest.php create mode 100644 test/Order/Types/Amount_0Test.php create mode 100644 test/Order/Types/BillingAddressTest.php create mode 100644 test/Order/Types/CheckoutSessionResponseTest.php create mode 100644 test/Order/Types/CreateGuestCheckoutSessionRequestTest.php create mode 100644 test/Order/Types/CreateSignInCheckoutSessionRequestTest.php create mode 100644 test/Order/Types/CreditCardTest.php create mode 100644 test/Order/Types/ErrorDetailV3Test.php create mode 100644 test/Order/Types/ErrorParameterV3Test.php create mode 100644 test/Order/Types/GetCheckoutSessionRestRequestTest.php create mode 100644 test/Order/Types/GetCheckoutSessionRestResponseTest.php create mode 100644 test/Order/Types/GetGuestCheckoutSessionRestRequestTest.php create mode 100644 test/Order/Types/GetGuestCheckoutSessionRestResponseTest.php create mode 100644 test/Order/Types/GetGuestPurchaseOrderRestRequestTest.php create mode 100644 test/Order/Types/GetGuestPurchaseOrderRestResponseTest.php create mode 100644 test/Order/Types/GetPurchaseOrderRestRequestTest.php create mode 100644 test/Order/Types/GetPurchaseOrderRestResponseTest.php create mode 100644 test/Order/Types/GuestPurchaseOrderTest.php create mode 100644 test/Order/Types/ImageTest.php create mode 100644 test/Order/Types/InitiateCheckoutSessionRestRequestTest.php create mode 100644 test/Order/Types/InitiateCheckoutSessionRestResponseTest.php create mode 100644 test/Order/Types/InitiateGuestCheckoutSessionRestRequestTest.php create mode 100644 test/Order/Types/InitiateGuestCheckoutSessionRestResponseTest.php create mode 100644 test/Order/Types/LineItemInputTest.php create mode 100644 test/Order/Types/LineItemReferenceTest.php create mode 100644 test/Order/Types/LineItemTest.php create mode 100644 test/Order/Types/LineItem_0Test.php create mode 100644 test/Order/Types/PaymentInstrumentReferenceTest.php create mode 100644 test/Order/Types/PaymentInstrumentTest.php create mode 100644 test/Order/Types/PaymentMethodBrandTest.php create mode 100644 test/Order/Types/PaymentMethodMessageTest.php create mode 100644 test/Order/Types/PaymentMethodTest.php create mode 100644 test/Order/Types/PlaceGuestOrderRestRequestTest.php create mode 100644 test/Order/Types/PlaceGuestOrderRestResponseTest.php create mode 100644 test/Order/Types/PlaceOrderRestRequestTest.php create mode 100644 test/Order/Types/PlaceOrderRestResponseTest.php create mode 100644 test/Order/Types/PricingSummaryTest.php create mode 100644 test/Order/Types/PricingSummary_0Test.php create mode 100644 test/Order/Types/PromotionTest.php create mode 100644 test/Order/Types/ProvidedPaymentInstrumentTest.php create mode 100644 test/Order/Types/PurchaseOrderSummaryTest.php create mode 100644 test/Order/Types/PurchaseOrderTest.php create mode 100644 test/Order/Types/SellerTest.php create mode 100644 test/Order/Types/ShippingAddressImplTest.php create mode 100644 test/Order/Types/ShippingAddressTest.php create mode 100644 test/Order/Types/ShippingAddress_0Test.php create mode 100644 test/Order/Types/ShippingDetailTest.php create mode 100644 test/Order/Types/ShippingFulfillmentTest.php create mode 100644 test/Order/Types/ShippingOptionTest.php create mode 100644 test/Order/Types/UpdateGuestLineItemQuantityRestRequestTest.php create mode 100644 test/Order/Types/UpdateGuestLineItemQuantityRestResponseTest.php create mode 100644 test/Order/Types/UpdateGuestLineItemShippingAddressRestRequestTest.php create mode 100644 test/Order/Types/UpdateGuestLineItemShippingAddressRestResponseTest.php create mode 100644 test/Order/Types/UpdateGuestPaymentInfoRestRequestTest.php create mode 100644 test/Order/Types/UpdateGuestPaymentInfoRestResponseTest.php create mode 100644 test/Order/Types/UpdateGuestShippingOptionRestRequestTest.php create mode 100644 test/Order/Types/UpdateGuestShippingOptionRestResponseTest.php create mode 100644 test/Order/Types/UpdatePaymentInfoRestRequestTest.php create mode 100644 test/Order/Types/UpdatePaymentInfoRestResponseTest.php create mode 100644 test/Order/Types/UpdatePaymentInformationTest.php create mode 100644 test/Order/Types/UpdateQuantityForLineItemRestRequestTest.php create mode 100644 test/Order/Types/UpdateQuantityForLineItemRestResponseTest.php create mode 100644 test/Order/Types/UpdateQuantityTest.php create mode 100644 test/Order/Types/UpdateShippingAddressRestRequestTest.php create mode 100644 test/Order/Types/UpdateShippingAddressRestResponseTest.php create mode 100644 test/Order/Types/UpdateShippingOptionRestRequestTest.php create mode 100644 test/Order/Types/UpdateShippingOptionRestResponseTest.php create mode 100644 test/Order/Types/UpdateShippingOptionTest.php create mode 100644 test/PostOrder/Enums/ActivityOptionEnumTest.php create mode 100644 test/PostOrder/Enums/AddressTypeEnumTest.php create mode 100644 test/PostOrder/Enums/AppealCloseReasonEnumTest.php create mode 100644 test/PostOrder/Enums/AppealGrantStatusEnumTest.php create mode 100644 test/PostOrder/Enums/AppealStatusEnumTest.php create mode 100644 test/PostOrder/Enums/BuyerCloseReasonEnumTest.php create mode 100644 test/PostOrder/Enums/BuyerCloseReturnReasonEnumTest.php create mode 100644 test/PostOrder/Enums/CancelActivityTypeEnumTest.php create mode 100644 test/PostOrder/Enums/CancelCloseReasonEnumTest.php create mode 100644 test/PostOrder/Enums/CancelReasonEnumTest.php create mode 100644 test/PostOrder/Enums/CancelSortTypeEnumTest.php create mode 100644 test/PostOrder/Enums/CancelStateEnumTest.php create mode 100644 test/PostOrder/Enums/CancelStatusEnumTest.php create mode 100644 test/PostOrder/Enums/CaseCloseReasonEnumTest.php create mode 100644 test/PostOrder/Enums/CaseSearchFieldGroupEnumTest.php create mode 100644 test/PostOrder/Enums/CaseStatusEnumTest.php create mode 100644 test/PostOrder/Enums/CaseTypeEnumTest.php create mode 100644 test/PostOrder/Enums/CloseReturnReasonEnumTest.php create mode 100644 test/PostOrder/Enums/CountryCodeEnumTest.php create mode 100644 test/PostOrder/Enums/CurrencyCodeEnumTest.php create mode 100644 test/PostOrder/Enums/DecisionEnumTest.php create mode 100644 test/PostOrder/Enums/DesiredOutcomeTypeEnumTest.php create mode 100644 test/PostOrder/Enums/DispositionRuleTemplateTypeEnumTest.php create mode 100644 test/PostOrder/Enums/EligibilityCheckTypeEnumTest.php create mode 100644 test/PostOrder/Enums/EligibilityFailureReasonEnumTest.php create mode 100644 test/PostOrder/Enums/EscalateReasonEnumTest.php create mode 100644 test/PostOrder/Enums/FileFormatEnumTest.php create mode 100644 test/PostOrder/Enums/FilePurposeEnumTest.php create mode 100644 test/PostOrder/Enums/FileStatusEnumTest.php create mode 100644 test/PostOrder/Enums/GetReturnFieldGroupEnumTest.php create mode 100644 test/PostOrder/Enums/InquiryEligibilityStatusEnumTest.php create mode 100644 test/PostOrder/Enums/InquiryEscalationReasonEnumTest.php create mode 100644 test/PostOrder/Enums/InquirySearchFieldGroupEnumTest.php create mode 100644 test/PostOrder/Enums/InquiryStateEnumTest.php create mode 100644 test/PostOrder/Enums/InquiryStatusEnumTest.php create mode 100644 test/PostOrder/Enums/LabelActionEnumTest.php create mode 100644 test/PostOrder/Enums/LabelPrintStatusEnumTest.php create mode 100644 test/PostOrder/Enums/LanguageEnumTest.php create mode 100644 test/PostOrder/Enums/LanguageScriptEnumTest.php create mode 100644 test/PostOrder/Enums/MarketplaceIdEnumTest.php create mode 100644 test/PostOrder/Enums/MoneyMovementStatusEnumTest.php create mode 100644 test/PostOrder/Enums/MoneyMovementTypeEnumTest.php create mode 100644 test/PostOrder/Enums/NoSellerUploadLabelReasonEnumTest.php create mode 100644 test/PostOrder/Enums/OrderTypeEnumTest.php create mode 100644 test/PostOrder/Enums/PartyEnumTest.php create mode 100644 test/PostOrder/Enums/PaymentDenialReasonEnumTest.php create mode 100644 test/PostOrder/Enums/PaymentProviderEnumTest.php create mode 100644 test/PostOrder/Enums/PaymentStatusEnumTest.php create mode 100644 test/PostOrder/Enums/RefundFeeTypeEnumTest.php create mode 100644 test/PostOrder/Enums/RefundPaymentTypeEnumTest.php create mode 100644 test/PostOrder/Enums/RefundStatusEnumTest.php create mode 100644 test/PostOrder/Enums/RequestTypeEnumTest.php create mode 100644 test/PostOrder/Enums/ReturnCountFilterEnumTest.php create mode 100644 test/PostOrder/Enums/ReturnHoldStatusEnumTest.php create mode 100644 test/PostOrder/Enums/ReturnMetadataKeyEnumTest.php create mode 100644 test/PostOrder/Enums/ReturnReasonEnumTest.php create mode 100644 test/PostOrder/Enums/ReturnRefundInitiatorEnumTest.php create mode 100644 test/PostOrder/Enums/ReturnSortEnumTest.php create mode 100644 test/PostOrder/Enums/ReturnStateEnumTest.php create mode 100644 test/PostOrder/Enums/ReturnStatusEnumTest.php create mode 100644 test/PostOrder/Enums/ReturnTypeEnumTest.php create mode 100644 test/PostOrder/Enums/ReturnUserRoleEnumTest.php create mode 100644 test/PostOrder/Enums/RuleListFieldGroupEnumTest.php create mode 100644 test/PostOrder/Enums/ShippingCarrierEnumTest.php create mode 100644 test/PostOrder/Enums/ShippingMethodEnumTest.php create mode 100644 test/PostOrder/Enums/TrackingStatusEnumTest.php create mode 100644 test/PostOrder/Enums/UserPartyEnumTest.php create mode 100644 test/PostOrder/Enums/WorldRegionEnumTest.php create mode 100644 test/PostOrder/Mocks/Service.php create mode 100644 test/PostOrder/Services/ServiceTest.php create mode 100644 test/PostOrder/Types/ActionDeadlinesTest.php create mode 100644 test/PostOrder/Types/ActualRefundDetailTypeTest.php create mode 100644 test/PostOrder/Types/AddShippingLabelInfoRestRequestTest.php create mode 100644 test/PostOrder/Types/AddShippingLabelInfoRestResponseTest.php create mode 100644 test/PostOrder/Types/AddressTest.php create mode 100644 test/PostOrder/Types/AmountTest.php create mode 100644 test/PostOrder/Types/AppealCaseDecisionRestRequestTest.php create mode 100644 test/PostOrder/Types/AppealCaseDecisionRestResponseTest.php create mode 100644 test/PostOrder/Types/AppealDetailsTest.php create mode 100644 test/PostOrder/Types/AppealRequestTest.php create mode 100644 test/PostOrder/Types/ApproveCancellationRequestRestRequestTest.php create mode 100644 test/PostOrder/Types/ApproveCancellationRequestRestResponseTest.php create mode 100644 test/PostOrder/Types/AvailableOptionTypeTest.php create mode 100644 test/PostOrder/Types/BuyerCloseCaseRequestTest.php create mode 100644 test/PostOrder/Types/BuyerCloseInquiryRequestTest.php create mode 100644 test/PostOrder/Types/CancelActivityHistoryTest.php create mode 100644 test/PostOrder/Types/CancelDetailTest.php create mode 100644 test/PostOrder/Types/CancelReturnRequestRestRequestTest.php create mode 100644 test/PostOrder/Types/CancelReturnRequestRestResponseTest.php create mode 100644 test/PostOrder/Types/CancelSortFieldTest.php create mode 100644 test/PostOrder/Types/CancelSummaryTest.php create mode 100644 test/PostOrder/Types/CarrierShippingCostInfoTypeTest.php create mode 100644 test/PostOrder/Types/CaseDetailsResponseTest.php create mode 100644 test/PostOrder/Types/CaseDetailsTest.php create mode 100644 test/PostOrder/Types/CaseSearchResponseTest.php create mode 100644 test/PostOrder/Types/CaseStatusFilterTest.php create mode 100644 test/PostOrder/Types/CaseSummaryTypeTest.php create mode 100644 test/PostOrder/Types/CaseVoluntaryRefundRequestTest.php create mode 100644 test/PostOrder/Types/CheckCancellationEligibilityRestRequestTest.php create mode 100644 test/PostOrder/Types/CheckCancellationEligibilityRestResponseTest.php create mode 100644 test/PostOrder/Types/CheckEligibilityRequestTest.php create mode 100644 test/PostOrder/Types/CheckEligibilityResponseTest.php create mode 100644 test/PostOrder/Types/CheckInquiryEligibilityRequestTest.php create mode 100644 test/PostOrder/Types/CheckInquiryEligibilityResponseTest.php create mode 100644 test/PostOrder/Types/CheckInquiryEligibilityRestRequestTest.php create mode 100644 test/PostOrder/Types/CheckInquiryEligibilityRestResponseTest.php create mode 100644 test/PostOrder/Types/CheckLabelPrintEligibilityResponseTest.php create mode 100644 test/PostOrder/Types/CheckReturnEligibilityRestRequestTest.php create mode 100644 test/PostOrder/Types/CheckReturnEligibilityRestResponseTest.php create mode 100644 test/PostOrder/Types/CheckShippingLabelEligibilityRestRequestTest.php create mode 100644 test/PostOrder/Types/CheckShippingLabelEligibilityRestResponseTest.php create mode 100644 test/PostOrder/Types/ClaimHistoryEventModelTest.php create mode 100644 test/PostOrder/Types/ClaimHistoryResponseTest.php create mode 100644 test/PostOrder/Types/CloseCaseRestRequestTest.php create mode 100644 test/PostOrder/Types/CloseCaseRestResponseTest.php create mode 100644 test/PostOrder/Types/CloseInquiryRestRequestTest.php create mode 100644 test/PostOrder/Types/CloseInquiryRestResponseTest.php create mode 100644 test/PostOrder/Types/CloseReturnRequestTest.php create mode 100644 test/PostOrder/Types/ConditionDataRangeTypeTest.php create mode 100644 test/PostOrder/Types/ConditionListDetailTypeTest.php create mode 100644 test/PostOrder/Types/ConfirmCancellationRefundRestRequestTest.php create mode 100644 test/PostOrder/Types/ConfirmCancellationRefundRestResponseTest.php create mode 100644 test/PostOrder/Types/ConfirmInquiryRefundRestRequestTest.php create mode 100644 test/PostOrder/Types/ConfirmInquiryRefundRestResponseTest.php create mode 100644 test/PostOrder/Types/ConfirmRefundRequestTest.php create mode 100644 test/PostOrder/Types/CountSummaryTypeTest.php create mode 100644 test/PostOrder/Types/CreateCancelRequestTest.php create mode 100644 test/PostOrder/Types/CreateCancelResponseTest.php create mode 100644 test/PostOrder/Types/CreateCustomListRequestTest.php create mode 100644 test/PostOrder/Types/CreateCustomListResponseTest.php create mode 100644 test/PostOrder/Types/CreateCustomListRestRequestTest.php create mode 100644 test/PostOrder/Types/CreateCustomListRestResponseTest.php create mode 100644 test/PostOrder/Types/CreateDispositionRuleRequestTest.php create mode 100644 test/PostOrder/Types/CreateDispositionRuleResponseTest.php create mode 100644 test/PostOrder/Types/CreateInquiryRequestTest.php create mode 100644 test/PostOrder/Types/CreateInquiryRestRequestTest.php create mode 100644 test/PostOrder/Types/CreateInquiryRestResponseTest.php create mode 100644 test/PostOrder/Types/CreateReturnDraftRestRequestTest.php create mode 100644 test/PostOrder/Types/CreateReturnDraftRestResponseTest.php create mode 100644 test/PostOrder/Types/CreateReturnRequestRestRequestTest.php create mode 100644 test/PostOrder/Types/CreateReturnRequestRestResponseTest.php create mode 100644 test/PostOrder/Types/CreateReturnRequestTest.php create mode 100644 test/PostOrder/Types/CreateReturnResponseTest.php create mode 100644 test/PostOrder/Types/CreateReturnRulesRestRequestTest.php create mode 100644 test/PostOrder/Types/CreateReturnRulesRestResponseTest.php create mode 100644 test/PostOrder/Types/CreateReturnShippingLabelRestRequestTest.php create mode 100644 test/PostOrder/Types/CreateReturnShippingLabelRestResponseTest.php create mode 100644 test/PostOrder/Types/CustomListDataTypeTest.php create mode 100644 test/PostOrder/Types/CustomListDetailTypeTest.php create mode 100644 test/PostOrder/Types/CustomListModificationTypeTest.php create mode 100644 test/PostOrder/Types/CustomListTypeTest.php create mode 100644 test/PostOrder/Types/DateTimeTest.php create mode 100644 test/PostOrder/Types/DecideReturnRequestTest.php create mode 100644 test/PostOrder/Types/DecideReturnResponseTest.php create mode 100644 test/PostOrder/Types/DeleteReturnDraftFileRestRequestTest.php create mode 100644 test/PostOrder/Types/DeleteReturnDraftFileRestResponseTest.php create mode 100644 test/PostOrder/Types/DeleteReturnFileRestRequestTest.php create mode 100644 test/PostOrder/Types/DeleteReturnFileRestResponseTest.php create mode 100644 test/PostOrder/Types/DispositionRuleDetailTypeTest.php create mode 100644 test/PostOrder/Types/EligibilityErrorTypeTest.php create mode 100644 test/PostOrder/Types/EligibilityResponseErrorTest.php create mode 100644 test/PostOrder/Types/EligibilityResultTypeTest.php create mode 100644 test/PostOrder/Types/ErrorDetailV3Test.php create mode 100644 test/PostOrder/Types/ErrorMessageTest.php create mode 100644 test/PostOrder/Types/ErrorParameterTest.php create mode 100644 test/PostOrder/Types/ErrorParameterV3Test.php create mode 100644 test/PostOrder/Types/ErrorTest.php create mode 100644 test/PostOrder/Types/EscalateInquiryRequestTest.php create mode 100644 test/PostOrder/Types/EscalateInquiryRestRequestTest.php create mode 100644 test/PostOrder/Types/EscalateInquiryRestResponseTest.php create mode 100644 test/PostOrder/Types/EscalateRequestTest.php create mode 100644 test/PostOrder/Types/EscalateResponseTest.php create mode 100644 test/PostOrder/Types/EscalateReturnRestRequestTest.php create mode 100644 test/PostOrder/Types/EscalateReturnRestResponseTest.php create mode 100644 test/PostOrder/Types/EscalationEligibilityInfoTest.php create mode 100644 test/PostOrder/Types/EscalationInfoTypeTest.php create mode 100644 test/PostOrder/Types/EstimatedRefundDetailTypeTest.php create mode 100644 test/PostOrder/Types/EstimatedRefundInfoTypeTest.php create mode 100644 test/PostOrder/Types/EstimatedRefundTypeTest.php create mode 100644 test/PostOrder/Types/EstimatedShippingInfoTypeTest.php create mode 100644 test/PostOrder/Types/FindCancelResponseTest.php create mode 100644 test/PostOrder/Types/GetCancelDetailResponseTest.php create mode 100644 test/PostOrder/Types/GetCancelFieldGroupTest.php create mode 100644 test/PostOrder/Types/GetCancellationRestRequestTest.php create mode 100644 test/PostOrder/Types/GetCancellationRestResponseTest.php create mode 100644 test/PostOrder/Types/GetCaseRestRequestTest.php create mode 100644 test/PostOrder/Types/GetCaseRestResponseTest.php create mode 100644 test/PostOrder/Types/GetCustomListDetailResponseTest.php create mode 100644 test/PostOrder/Types/GetCustomListRestResponseTest.php create mode 100644 test/PostOrder/Types/GetCustomListsResponseTest.php create mode 100644 test/PostOrder/Types/GetCustomListsRestResponseTest.php create mode 100644 test/PostOrder/Types/GetDetailResponseTest.php create mode 100644 test/PostOrder/Types/GetDispositionRuleDetailResponseTest.php create mode 100644 test/PostOrder/Types/GetDispositionRuleTemplatesResponseTest.php create mode 100644 test/PostOrder/Types/GetDispositionRuleTriggerHistResponseTest.php create mode 100644 test/PostOrder/Types/GetDispositionRulesResponseTest.php create mode 100644 test/PostOrder/Types/GetEstimateRequestTest.php create mode 100644 test/PostOrder/Types/GetEstimateResponseTest.php create mode 100644 test/PostOrder/Types/GetFileResponseTest.php create mode 100644 test/PostOrder/Types/GetInquiryRestRequestTest.php create mode 100644 test/PostOrder/Types/GetInquiryRestResponseTest.php create mode 100644 test/PostOrder/Types/GetMetadataResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnCreationSessionResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnDraftFilesRestRequestTest.php create mode 100644 test/PostOrder/Types/GetReturnDraftFilesRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnDraftRestRequestTest.php create mode 100644 test/PostOrder/Types/GetReturnDraftRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnEstimateRestRequestTest.php create mode 100644 test/PostOrder/Types/GetReturnEstimateRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnFilesRestRequestTest.php create mode 100644 test/PostOrder/Types/GetReturnFilesRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnMetadataRestRequestTest.php create mode 100644 test/PostOrder/Types/GetReturnMetadataRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnPreferencesRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnRestRequestTest.php create mode 100644 test/PostOrder/Types/GetReturnRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnRuleHistoryRestRequestTest.php create mode 100644 test/PostOrder/Types/GetReturnRuleHistoryRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnRuleRestRequestTest.php create mode 100644 test/PostOrder/Types/GetReturnRuleRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnRuleTemplatesRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnRulesRestRequestTest.php create mode 100644 test/PostOrder/Types/GetReturnRulesRestResponseTest.php create mode 100644 test/PostOrder/Types/GetReturnShippingLabelRestRequestTest.php create mode 100644 test/PostOrder/Types/GetReturnShippingLabelRestResponseTest.php create mode 100644 test/PostOrder/Types/GetSellerReturnPreferenceResponseTest.php create mode 100644 test/PostOrder/Types/GetShipmentTrackingRestRequestTest.php create mode 100644 test/PostOrder/Types/GetShipmentTrackingRestResponseTest.php create mode 100644 test/PostOrder/Types/GetShippingLabelResponseTest.php create mode 100644 test/PostOrder/Types/GetStoreCategoriesRestResponseTest.php create mode 100644 test/PostOrder/Types/GetStoreCategoryResponseTest.php create mode 100644 test/PostOrder/Types/GetSummaryResponseTest.php create mode 100644 test/PostOrder/Types/GetTrackingHistoryResponseTest.php create mode 100644 test/PostOrder/Types/InitiateShippingLabelResponseTest.php create mode 100644 test/PostOrder/Types/InquiryDetailsResponseTest.php create mode 100644 test/PostOrder/Types/InquiryDetailsTest.php create mode 100644 test/PostOrder/Types/InquirySearchResponseTest.php create mode 100644 test/PostOrder/Types/InquiryStatusFilterTest.php create mode 100644 test/PostOrder/Types/InquirySummaryTypeTest.php create mode 100644 test/PostOrder/Types/InquiryVoluntaryRefundRequestTest.php create mode 100644 test/PostOrder/Types/IssueCaseRefundRestRequestTest.php create mode 100644 test/PostOrder/Types/IssueCaseRefundRestResponseTest.php create mode 100644 test/PostOrder/Types/IssueInquiryRefundRestRequestTest.php create mode 100644 test/PostOrder/Types/IssueInquiryRefundRestResponseTest.php create mode 100644 test/PostOrder/Types/IssueRefundRequestTest.php create mode 100644 test/PostOrder/Types/IssueRefundResponseTest.php create mode 100644 test/PostOrder/Types/IssueReturnRefundRestRequestTest.php create mode 100644 test/PostOrder/Types/IssueReturnRefundRestResponseTest.php create mode 100644 test/PostOrder/Types/ItemDetailTypeTest.php create mode 100644 test/PostOrder/Types/ItemDetailsTest.php create mode 100644 test/PostOrder/Types/ItemEligibilityResultTest.php create mode 100644 test/PostOrder/Types/ItemizedRefundDetailTypeTest.php create mode 100644 test/PostOrder/Types/ItemizedReturnShippingCostTypeTest.php create mode 100644 test/PostOrder/Types/ListDataTypeTest.php create mode 100644 test/PostOrder/Types/MarkAsReceivedRequestTest.php create mode 100644 test/PostOrder/Types/MarkAsShippedRequestTest.php create mode 100644 test/PostOrder/Types/MarkRefundSentRequestTest.php create mode 100644 test/PostOrder/Types/MarkReturnReceivedRestRequestTest.php create mode 100644 test/PostOrder/Types/MarkReturnReceivedRestResponseTest.php create mode 100644 test/PostOrder/Types/MarkReturnRefundReceivedRestRequestTest.php create mode 100644 test/PostOrder/Types/MarkReturnRefundReceivedRestResponseTest.php create mode 100644 test/PostOrder/Types/MarkReturnRefundSentRestRequestTest.php create mode 100644 test/PostOrder/Types/MarkReturnRefundSentRestResponseTest.php create mode 100644 test/PostOrder/Types/MarkReturnShippedRestRequestTest.php create mode 100644 test/PostOrder/Types/MarkReturnShippedRestResponseTest.php create mode 100644 test/PostOrder/Types/ModifyCustomListRequestTest.php create mode 100644 test/PostOrder/Types/ModifyCustomListResponseTest.php create mode 100644 test/PostOrder/Types/ModifyDispositionRuleRequestTest.php create mode 100644 test/PostOrder/Types/MoneyMovementDetailTypeTest.php create mode 100644 test/PostOrder/Types/MoneyMovementEntriesTest.php create mode 100644 test/PostOrder/Types/MoneyMovementEntryTest.php create mode 100644 test/PostOrder/Types/MoneyMovementRefTest.php create mode 100644 test/PostOrder/Types/OrderCancelLineItemTest.php create mode 100644 test/PostOrder/Types/OrderEligibilityCheckInfoTest.php create mode 100644 test/PostOrder/Types/OrderEligibilityResultTest.php create mode 100644 test/PostOrder/Types/PaginationOutputTest.php create mode 100644 test/PostOrder/Types/PriorityListTypeTest.php create mode 100644 test/PostOrder/Types/ProcessReturnRequestRestRequestTest.php create mode 100644 test/PostOrder/Types/ProcessReturnRequestRestResponseTest.php create mode 100644 test/PostOrder/Types/ProvideInquiryRefundInfoRestRequestTest.php create mode 100644 test/PostOrder/Types/ProvideInquiryRefundInfoRestResponseTest.php create mode 100644 test/PostOrder/Types/ProvideInquiryShipmentInfoRestRequestTest.php create mode 100644 test/PostOrder/Types/ProvideInquiryShipmentInfoRestResponseTest.php create mode 100644 test/PostOrder/Types/ProvideLabelRequestTest.php create mode 100644 test/PostOrder/Types/ProvideLabelResponseTest.php create mode 100644 test/PostOrder/Types/ProvideReturnShipmentInfoRestRequestTest.php create mode 100644 test/PostOrder/Types/ProvideReturnShipmentInfoRestResponseTest.php create mode 100644 test/PostOrder/Types/ProvideShipmentInfoRequestTest.php create mode 100644 test/PostOrder/Types/ProvidesReturnAddressRestRequestTest.php create mode 100644 test/PostOrder/Types/ProvidesReturnAddressRestResponseTest.php create mode 100644 test/PostOrder/Types/RefundAmountsTest.php create mode 100644 test/PostOrder/Types/RefundDetailTypeTest.php create mode 100644 test/PostOrder/Types/RefundInfoTypeTest.php create mode 100644 test/PostOrder/Types/RefundTypeTest.php create mode 100644 test/PostOrder/Types/RejectCancelRequestTest.php create mode 100644 test/PostOrder/Types/RejectCancellationRequestRestRequestTest.php create mode 100644 test/PostOrder/Types/RejectCancellationRequestRestResponseTest.php create mode 100644 test/PostOrder/Types/ResponseHistoryAttributesTypeTest.php create mode 100644 test/PostOrder/Types/ReturnAddressRequestTest.php create mode 100644 test/PostOrder/Types/ReturnAddressTest.php create mode 100644 test/PostOrder/Types/ReturnAddressTypeTest.php create mode 100644 test/PostOrder/Types/ReturnCloseInfoTypeTest.php create mode 100644 test/PostOrder/Types/ReturnCreationInfoTypeTest.php create mode 100644 test/PostOrder/Types/ReturnDetailTypeTest.php create mode 100644 test/PostOrder/Types/ReturnEligibilityErrorDetailTypeTest.php create mode 100644 test/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResultTest.php create mode 100644 test/PostOrder/Types/ReturnEligibilityItemTypeTest.php create mode 100644 test/PostOrder/Types/ReturnEligibilityPerItemTypeTest.php create mode 100644 test/PostOrder/Types/ReturnFileTypeTest.php create mode 100644 test/PostOrder/Types/ReturnHoldInfoTypeTest.php create mode 100644 test/PostOrder/Types/ReturnItemTypeTest.php create mode 100644 test/PostOrder/Types/ReturnMetadataTypeTest.php create mode 100644 test/PostOrder/Types/ReturnPolicyTypeTest.php create mode 100644 test/PostOrder/Types/ReturnRequestTypeTest.php create mode 100644 test/PostOrder/Types/ReturnResponseDueTypeTest.php create mode 100644 test/PostOrder/Types/ReturnResponseHistoryTypeTest.php create mode 100644 test/PostOrder/Types/ReturnShippingCostDetailTypeTest.php create mode 100644 test/PostOrder/Types/ReturnShippingCostTypeTest.php create mode 100644 test/PostOrder/Types/ReturnSortFieldTest.php create mode 100644 test/PostOrder/Types/ReturnSummaryTypeTest.php create mode 100644 test/PostOrder/Types/RuleActionDataDetailTypeTest.php create mode 100644 test/PostOrder/Types/RuleActionDataTypeTest.php create mode 100644 test/PostOrder/Types/RuleActionDetailTypeTest.php create mode 100644 test/PostOrder/Types/RuleActionInputTypeTest.php create mode 100644 test/PostOrder/Types/RuleConditionDetailTypeTest.php create mode 100644 test/PostOrder/Types/RuleConditionInputTypeTest.php create mode 100644 test/PostOrder/Types/RuleDetailInputTypeTest.php create mode 100644 test/PostOrder/Types/RuleDetailTypeTest.php create mode 100644 test/PostOrder/Types/RuleModificationTypeTest.php create mode 100644 test/PostOrder/Types/RuleSummaryTypeTest.php create mode 100644 test/PostOrder/Types/RuleTemplateDetailTypeTest.php create mode 100644 test/PostOrder/Types/RuleTriggerHistDetailTypeTest.php create mode 100644 test/PostOrder/Types/ScanDetailTypeTest.php create mode 100644 test/PostOrder/Types/SearchCancellationsRestRequestTest.php create mode 100644 test/PostOrder/Types/SearchCancellationsRestResponseTest.php create mode 100644 test/PostOrder/Types/SearchCasesRestRequestTest.php create mode 100644 test/PostOrder/Types/SearchCasesRestResponseTest.php create mode 100644 test/PostOrder/Types/SearchInquiriesRestRequestTest.php create mode 100644 test/PostOrder/Types/SearchInquiriesRestResponseTest.php create mode 100644 test/PostOrder/Types/SearchReturnsRestRequestTest.php create mode 100644 test/PostOrder/Types/SearchReturnsRestResponseTest.php create mode 100644 test/PostOrder/Types/SellerProvideRefundInfoRequestTest.php create mode 100644 test/PostOrder/Types/SendInquiryMessageRestRequestTest.php create mode 100644 test/PostOrder/Types/SendInquiryMessageRestResponseTest.php create mode 100644 test/PostOrder/Types/SendMessageRequestTest.php create mode 100644 test/PostOrder/Types/SendReturnMessageRestRequestTest.php create mode 100644 test/PostOrder/Types/SendReturnMessageRestResponseTest.php create mode 100644 test/PostOrder/Types/SendReturnShippingLabelRestRequestTest.php create mode 100644 test/PostOrder/Types/SendReturnShippingLabelRestResponseTest.php create mode 100644 test/PostOrder/Types/SendShippingLabelResponseTest.php create mode 100644 test/PostOrder/Types/SetReturnCreationSessionRequestTest.php create mode 100644 test/PostOrder/Types/SetReturnCreationSessionResponseTest.php create mode 100644 test/PostOrder/Types/SetReturnPreferencesRestRequestTest.php create mode 100644 test/PostOrder/Types/SetReturnPreferencesRestResponseTest.php create mode 100644 test/PostOrder/Types/SetSellerReturnPreferenceRequestTest.php create mode 100644 test/PostOrder/Types/ShipmentInfoRequestTest.php create mode 100644 test/PostOrder/Types/ShipmentTrackingDetailTypeTest.php create mode 100644 test/PostOrder/Types/ShipmentTrackingTypeTest.php create mode 100644 test/PostOrder/Types/ShipmentTypeTest.php create mode 100644 test/PostOrder/Types/StatusTypeTest.php create mode 100644 test/PostOrder/Types/StoreCategoryTypeTest.php create mode 100644 test/PostOrder/Types/SubmitCancellationRequestRestRequestTest.php create mode 100644 test/PostOrder/Types/SubmitCancellationRequestRestResponseTest.php create mode 100644 test/PostOrder/Types/SubmitFileRequestTest.php create mode 100644 test/PostOrder/Types/SubmitFileResponseTest.php create mode 100644 test/PostOrder/Types/SubmitReturnFileRestRequestTest.php create mode 100644 test/PostOrder/Types/SubmitReturnFileRestResponseTest.php create mode 100644 test/PostOrder/Types/TextTest.php create mode 100644 test/PostOrder/Types/TotalRefundAmountTypeTest.php create mode 100644 test/PostOrder/Types/UpdateCustomListRestRequestTest.php create mode 100644 test/PostOrder/Types/UpdateCustomListRestResponseTest.php create mode 100644 test/PostOrder/Types/UpdateReturnDraftRestRequestTest.php create mode 100644 test/PostOrder/Types/UpdateReturnDraftRestResponseTest.php create mode 100644 test/PostOrder/Types/UpdateReturnRulesRestRequestTest.php create mode 100644 test/PostOrder/Types/UpdateReturnRulesRestResponseTest.php create mode 100644 test/PostOrder/Types/UpdateShipmentTrackingRestRequestTest.php create mode 100644 test/PostOrder/Types/UpdateShipmentTrackingRestResponseTest.php create mode 100644 test/PostOrder/Types/UpdateTrackingRequestTest.php create mode 100644 test/PostOrder/Types/UploadFileRequestTest.php create mode 100644 test/PostOrder/Types/UploadFileResponseTest.php create mode 100644 test/PostOrder/Types/UploadReturnDraftFileRestRequestTest.php create mode 100644 test/PostOrder/Types/UploadReturnDraftFileRestResponseTest.php create mode 100644 test/PostOrder/Types/UploadReturnFileRestRequestTest.php create mode 100644 test/PostOrder/Types/UploadReturnFileRestResponseTest.php create mode 100644 test/PostOrder/Types/VoidLabelRequestTest.php create mode 100644 test/PostOrder/Types/VoidShippingLabelRestRequestTest.php create mode 100644 test/PostOrder/Types/VoidShippingLabelRestResponseTest.php create mode 100644 test/PostOrder/Types/VoluntaryRefundResponseTest.php create mode 100644 test/PostOrder/Types/VoluntaryRefundResultTest.php create mode 100644 test/Product/Enums/AckValueTest.php create mode 100644 test/Product/Enums/ErrorCategoryTest.php create mode 100644 test/Product/Enums/ErrorSeverityTest.php create mode 100644 test/Product/Enums/MediaTypeTest.php create mode 100644 test/Product/Enums/OrderTypeTest.php create mode 100644 test/Product/Enums/OutputSelectorTest.php create mode 100644 test/Product/Enums/ProductSubmissionStatusCodeTest.php create mode 100644 test/Product/Enums/SortPriorityTest.php create mode 100644 test/Product/Enums/SortTypeTest.php create mode 100644 test/Product/Mocks/Service.php create mode 100644 test/Product/Services/ServiceTest.php create mode 100644 test/Product/Types/AddProductResponseTest.php create mode 100644 test/Product/Types/AddProductsRequestTest.php create mode 100644 test/Product/Types/AddProductsResponseTest.php create mode 100644 test/Product/Types/BaseServiceRequestTest.php create mode 100644 test/Product/Types/BaseServiceResponseTest.php create mode 100644 test/Product/Types/CompatibilityDetailsTest.php create mode 100644 test/Product/Types/CompatibilityPropertyFilterTest.php create mode 100644 test/Product/Types/CompatibilitySortTest.php create mode 100644 test/Product/Types/ErrorDataTest.php create mode 100644 test/Product/Types/ErrorMessageTest.php create mode 100644 test/Product/Types/ErrorParameterTest.php create mode 100644 test/Product/Types/FindCompatibilitiesBySpecificationRequestTest.php create mode 100644 test/Product/Types/FindCompatibilitiesBySpecificationResponseTest.php create mode 100644 test/Product/Types/FindProductsByCompatibilityRequestTest.php create mode 100644 test/Product/Types/FindProductsRequestTest.php create mode 100644 test/Product/Types/FindProductsResponseTest.php create mode 100644 test/Product/Types/GetProductCompatibilitiesRequestTest.php create mode 100644 test/Product/Types/GetProductCompatiblitiesResponseTest.php create mode 100644 test/Product/Types/GetProductDetailsRequestTest.php create mode 100644 test/Product/Types/GetProductDetailsResponseTest.php create mode 100644 test/Product/Types/GetProductSubmissionsRequestTest.php create mode 100644 test/Product/Types/GetProductSubmissionsResponseTest.php create mode 100644 test/Product/Types/MediaIdentifierTest.php create mode 100644 test/Product/Types/MediaTest.php create mode 100644 test/Product/Types/NotesTest.php create mode 100644 test/Product/Types/NumericValueTest.php create mode 100644 test/Product/Types/PaginationInputTest.php create mode 100644 test/Product/Types/PaginationOutputTest.php create mode 100644 test/Product/Types/ProductByCompatibilityRequestTest.php create mode 100644 test/Product/Types/ProductDetailsRequestTypeTest.php create mode 100644 test/Product/Types/ProductIdentifierTest.php create mode 100644 test/Product/Types/ProductRequestTest.php create mode 100644 test/Product/Types/ProductResponseTest.php create mode 100644 test/Product/Types/ProductStatusTest.php create mode 100644 test/Product/Types/ProductSubmissionFilterTest.php create mode 100644 test/Product/Types/ProductSubmissionResultTest.php create mode 100644 test/Product/Types/ProductSubmissionStatusTest.php create mode 100644 test/Product/Types/ProductSubmissionTest.php create mode 100644 test/Product/Types/ProductTest.php create mode 100644 test/Product/Types/PropertyValueTest.php create mode 100644 test/Product/Types/SortOptionTest.php create mode 100644 test/Product/Types/SortOrderTest.php create mode 100644 test/Product/Types/StockPhotoURLTest.php create mode 100644 test/Product/Types/StringValueTest.php create mode 100644 test/Product/Types/URIValueTest.php create mode 100644 test/Product/Types/ValueTest.php create mode 100644 test/ProductMetadata/Enums/AckValueTest.php create mode 100644 test/ProductMetadata/Enums/DatasetValueTest.php create mode 100644 test/ProductMetadata/Enums/ErrorCategoryTest.php create mode 100644 test/ProductMetadata/Enums/ErrorSeverityTest.php create mode 100644 test/ProductMetadata/Enums/OrderTypeTest.php create mode 100644 test/ProductMetadata/Mocks/Service.php create mode 100644 test/ProductMetadata/Services/ServiceTest.php create mode 100644 test/ProductMetadata/Types/BaseRequestTest.php create mode 100644 test/ProductMetadata/Types/BaseResponseTest.php create mode 100644 test/ProductMetadata/Types/BaseServiceRequestTest.php create mode 100644 test/ProductMetadata/Types/BaseServiceResponseTest.php create mode 100644 test/ProductMetadata/Types/ErrorDataTest.php create mode 100644 test/ProductMetadata/Types/ErrorMessageTest.php create mode 100644 test/ProductMetadata/Types/ErrorParameterTest.php create mode 100644 test/ProductMetadata/Types/ExtensionTypeTest.php create mode 100644 test/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequestTest.php create mode 100644 test/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponseTest.php create mode 100644 test/ProductMetadata/Types/GetCompatibilitySearchNamesRequestTest.php create mode 100644 test/ProductMetadata/Types/GetCompatibilitySearchNamesResponseTest.php create mode 100644 test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequestTest.php create mode 100644 test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponseTest.php create mode 100644 test/ProductMetadata/Types/GetCompatibilitySearchValuesRequestTest.php create mode 100644 test/ProductMetadata/Types/GetCompatibilitySearchValuesResponseTest.php create mode 100644 test/ProductMetadata/Types/GetProductSearchDataVersionRequestTest.php create mode 100644 test/ProductMetadata/Types/GetProductSearchDataVersionResponseTest.php create mode 100644 test/ProductMetadata/Types/GetProductSearchNamesRequestTest.php create mode 100644 test/ProductMetadata/Types/GetProductSearchNamesResponseTest.php create mode 100644 test/ProductMetadata/Types/GetProductSearchValuesBaseRequestTest.php create mode 100644 test/ProductMetadata/Types/GetProductSearchValuesBulkRequestTest.php create mode 100644 test/ProductMetadata/Types/GetProductSearchValuesBulkResponseTest.php create mode 100644 test/ProductMetadata/Types/GetProductSearchValuesRequestTest.php create mode 100644 test/ProductMetadata/Types/GetProductSearchValuesResponseTest.php create mode 100644 test/ProductMetadata/Types/GroupPropertiesTest.php create mode 100644 test/ProductMetadata/Types/GroupPropertyTest.php create mode 100644 test/ProductMetadata/Types/MediaTypeSpecificInformationTest.php create mode 100644 test/ProductMetadata/Types/NumericTypeSpecificInformationTest.php create mode 100644 test/ProductMetadata/Types/NumericValueTest.php create mode 100644 test/ProductMetadata/Types/ProductMetadataBulkRequestTest.php create mode 100644 test/ProductMetadata/Types/ProductMetadataBulkResponseTest.php create mode 100644 test/ProductMetadata/Types/ProductMetadataRequestTest.php create mode 100644 test/ProductMetadata/Types/ProductMetadataResponseTest.php create mode 100644 test/ProductMetadata/Types/ProductMetadataTest.php create mode 100644 test/ProductMetadata/Types/PropertiesTest.php create mode 100644 test/ProductMetadata/Types/PropertyMetadataTest.php create mode 100644 test/ProductMetadata/Types/PropertyNameMetadataTest.php create mode 100644 test/ProductMetadata/Types/PropertyNameValueTest.php create mode 100644 test/ProductMetadata/Types/PropertyTest.php create mode 100644 test/ProductMetadata/Types/PropertyValueTest.php create mode 100644 test/ProductMetadata/Types/SortOrderTest.php create mode 100644 test/ProductMetadata/Types/StringTypeSpecificInformationTest.php create mode 100644 test/ProductMetadata/Types/StringValueTest.php create mode 100644 test/ProductMetadata/Types/TagTest.php create mode 100644 test/ProductMetadata/Types/TypeSpecificInformationTest.php create mode 100644 test/ProductMetadata/Types/URITypeSpecificInformationTest.php create mode 100644 test/ProductMetadata/Types/URIValueTest.php create mode 100644 test/ProductMetadata/Types/ValueTest.php create mode 100644 test/ProductMetadata/Types/VersionDetailsTest.php create mode 100644 test/RelatedItemsManagement/Enums/AckValueTest.php create mode 100644 test/RelatedItemsManagement/Enums/BundleDetailEnumTest.php create mode 100644 test/RelatedItemsManagement/Enums/BundleStatusEnumTest.php create mode 100644 test/RelatedItemsManagement/Enums/DiscountTypeEnumTest.php create mode 100644 test/RelatedItemsManagement/Enums/ErrorCategoryTest.php create mode 100644 test/RelatedItemsManagement/Enums/ErrorSeverityTest.php create mode 100644 test/RelatedItemsManagement/Mocks/Service.php create mode 100644 test/RelatedItemsManagement/Services/ServiceTest.php create mode 100644 test/RelatedItemsManagement/Types/AmountTest.php create mode 100644 test/RelatedItemsManagement/Types/BaseRequestTest.php create mode 100644 test/RelatedItemsManagement/Types/BaseResponseTest.php create mode 100644 test/RelatedItemsManagement/Types/BundleFilterTest.php create mode 100644 test/RelatedItemsManagement/Types/BundleStatusMapTest.php create mode 100644 test/RelatedItemsManagement/Types/BundleStatusTest.php create mode 100644 test/RelatedItemsManagement/Types/BundleTest.php create mode 100644 test/RelatedItemsManagement/Types/CreateBundlesRequestTest.php create mode 100644 test/RelatedItemsManagement/Types/CreateBundlesResponseTest.php create mode 100644 test/RelatedItemsManagement/Types/DeleteBundlesRequestTest.php create mode 100644 test/RelatedItemsManagement/Types/DeleteBundlesResponseTest.php create mode 100644 test/RelatedItemsManagement/Types/DiscountTest.php create mode 100644 test/RelatedItemsManagement/Types/ErrorDataTest.php create mode 100644 test/RelatedItemsManagement/Types/ErrorMessageTest.php create mode 100644 test/RelatedItemsManagement/Types/ErrorParameterTest.php create mode 100644 test/RelatedItemsManagement/Types/ExtensionTypeTest.php create mode 100644 test/RelatedItemsManagement/Types/FindBundlesRequestTest.php create mode 100644 test/RelatedItemsManagement/Types/FindBundlesResponseTest.php create mode 100644 test/RelatedItemsManagement/Types/GetBundlesRequestTest.php create mode 100644 test/RelatedItemsManagement/Types/GetBundlesResponseTest.php create mode 100644 test/RelatedItemsManagement/Types/GetVersionRequestTest.php create mode 100644 test/RelatedItemsManagement/Types/GetVersionResponseTest.php create mode 100644 test/RelatedItemsManagement/Types/RelatedProductGroupTest.php create mode 100644 test/RelatedItemsManagement/Types/RelatedProductTest.php create mode 100644 test/RelatedItemsManagement/Types/UpdateBundleStatusRequestTest.php create mode 100644 test/RelatedItemsManagement/Types/UpdateBundleStatusResponseTest.php create mode 100644 test/RelatedItemsManagement/Types/UpdateBundlesRequestTest.php create mode 100644 test/RelatedItemsManagement/Types/UpdateBundlesResponseTest.php create mode 100644 test/ResolutionCaseManagement/Types/AppealRefTest.php create mode 100644 test/ResolutionCaseManagement/Types/MoneyMovementRefTest.php create mode 100644 test/Services/RestServiceTest.php create mode 100644 test/StatusCodeTraitTest.php create mode 100644 test/UriResolverTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c1cd14ae..216501a20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # CHANGELOG +## 8.0.0 - 2017-01-26 + +### Breaking changes + +* Support Shopping API version 983. +* Support Trading API version 983. +* SDK now uses HTTPS service endpoint when available. + +### Features + +* Allow object properties to be any type. +* Support Account API version 1. +* Support Analytics API version 1. +* Support Browse API version 1. +* Support Fulfillment API version 1. +* Support Inventory API version 1. +* Support Marketing API version 1. +* Support Metadata API version 1. +* Support Order API version 1. +* Support Post Order API version 2. +* Support Product API version 1.4.0. +* Support Product Metadata API version 1.3.0. +* Support Merchandising API version 1.5.0. +* Support Feedback API version 1.2.2. +* Support Related Items Management API version 1.0.0. +* Configuration option httpOptions now supports http_errors. +* Configuration option httpOptions now supports curl. +* Oauth Token can be used with the Trading service. + ## 7.0.0 - 2016-09-03 ### Breaking changes diff --git a/Makefile b/Makefile index 0103196cd..009829748 100644 --- a/Makefile +++ b/Makefile @@ -79,6 +79,18 @@ release: check_tag package # Tags the repo and publishes a release. full_release: tag release +sync_account: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Account/src/Account/ src/Account/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Account/test/Account/ test/Account/ + +sync_analytics: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Analytics/src/Analytics/ src/Analytics/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Analytics/test/Analytics/ test/Analytics/ + +sync_browse: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Browse/src/Browse/ src/Browse/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Browse/test/Browse/ test/Browse/ + sync_bulk: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/BulkDataExchange/src/BulkDataExchange/ src/BulkDataExchange/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/BulkDataExchange/test/BulkDataExchange/ test/BulkDataExchange/ @@ -87,6 +99,10 @@ sync_bus: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/BusinessPoliciesManagement/src/BusinessPoliciesManagement/ src/BusinessPoliciesManagement/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/BusinessPoliciesManagement/test/BusinessPoliciesManagement/ test/BusinessPoliciesManagement/ +sync_feedback: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Feedback/src/Feedback/ src/Feedback/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Feedback/test/Feedback/ test/Feedback/ + sync_file: rsync -rtvu --delete --exclude *BaseService.php --exclude Data.php --exclude XopInclude.php ../ebay-api-sdk-php/dist/FileTransfer/src/FileTransfer/ src/FileTransfer/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/FileTransfer/test/FileTransfer/ test/FileTransfer/ @@ -97,14 +113,54 @@ sync_finding: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Finding/src/Finding/ src/Finding/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Finding/test/Finding/ test/Finding/ +sync_fulfillment: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Fulfillment/src/Fulfillment/ src/Fulfillment/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Fulfillment/test/Fulfillment/ test/Fulfillment/ + sync_half: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/HalfFinding/src/HalfFinding/ src/HalfFinding/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/HalfFinding/test/HalfFinding/ test/HalfFinding/ +sync_inventory: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Inventory/src/Inventory/ src/Inventory/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Inventory/test/Inventory/ test/Inventory/ + +sync_marketing: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Marketing/src/Marketing/ src/Marketing/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Marketing/test/Marketing/ test/Marketing/ + +sync_merchand: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Merchandising/src/Merchandising/ src/Merchandising/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Merchandising/test/Merchandising/ test/Merchandising/ + sync_merc: rsync -rtvu --delete --exclude MerchantData.php ../ebay-api-sdk-php/dist/MerchantData/src/MerchantData/ src/MerchantData/ rsync -rtvu --delete --exclude /Mocks/ --exclude MerchantDataTest.php ../ebay-api-sdk-php/dist/MerchantData/test/MerchantData/ test/MerchantData/ +sync_metadata: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Metadata/src/Metadata/ src/Metadata/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Metadata/test/Metadata/ test/Metadata/ + +sync_order: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Order/src/Order/ src/Order/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Order/test/Order/ test/Order/ + +sync_post: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/PostOrder/src/PostOrder/ src/PostOrder/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/PostOrder/test/PostOrder/ test/PostOrder/ + +sync_product: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Product/src/Product/ src/Product/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Product/test/Product/ test/Product/ + +sync_product_metadata: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/ProductMetadata/src/ProductMetadata/ src/ProductMetadata/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/ProductMetadata/test/ProductMetadata/ test/ProductMetadata/ + +sync_related: + rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/RelatedItemsManagement/src/RelatedItemsManagement/ src/RelatedItemsManagement/ + rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/RelatedItemsManagement/test/RelatedItemsManagement/ test/RelatedItemsManagement/ + sync_res: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/ResolutionCaseManagement/src/ResolutionCaseManagement/ src/ResolutionCaseManagement/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/ResolutionCaseManagement/test/ResolutionCaseManagement/ test/ResolutionCaseManagement/ @@ -121,6 +177,29 @@ sync_trade: rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Trading/src/Trading/ src/Trading/ rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Trading/test/Trading/ test/Trading/ -sync_all: sync_bulk sync_bus sync_file sync_finding sync_half sync_merc sync_res sync_return sync_shop sync_trade +sync_all: sync_account \ + sync_analytics \ + sync_browse \ + sync_bulk \ + sync_bus \ + sync_feedback \ + sync_file \ + sync_finding \ + sync_fulfillment \ + sync_half \ + sync_inventory \ + sync_marketing \ + sync_merchand \ + sync_merc \ + sync_metadata \ + sync_order \ + sync_post \ + sync_product \ + sync_product_metadata \ + sync_related \ + sync_res \ + sync_return \ + sync_shop \ + sync_trade .PHONY: test diff --git a/README.md b/README.md index cecda74fd..792840a7b 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ printf("The official eBay time is: %s\n", $response->Timestamp->format('H:i (\G\ - Be well maintained. - Be [well documented](http://devbay.net/sdk/guides/). - - Be [well tested](https://github.com/davidtsadler/ebay-sdk-php/tree/master/test/DTS/eBaySDK). + - Be [well tested](https://github.com/davidtsadler/ebay-sdk-php/tree/master/test). - Be well supported with [working examples](https://github.com/davidtsadler/ebay-sdk-examples). ## License diff --git a/docs/getting-started/supported-services.rst b/docs/getting-started/supported-services.rst index 31e24311d..e54193589 100644 --- a/docs/getting-started/supported-services.rst +++ b/docs/getting-started/supported-services.rst @@ -10,18 +10,46 @@ Namespaces ============================= ======================================== eBay Service SDK Namespace ============================= ======================================== +`Account`_ DTS\\eBaySDK\\Account +----------------------------- ---------------------------------------- +`Analytics`_ DTS\\eBaySDK\\Analytics +----------------------------- ---------------------------------------- +`Browse`_ DTS\\eBaySDK\\Browse +----------------------------- ---------------------------------------- `Bulk Data Exchange`_ DTS\\eBaySDK\\BulkDataExchange ----------------------------- ---------------------------------------- `Business Policies`_ DTS\\eBaySDK\\BusinessPoliciesManagement ----------------------------- ---------------------------------------- +`Feedback`_ DTS\\eBaySDK\\Feedback +----------------------------- ---------------------------------------- `File Transfer`_ DTS\\eBaySDK\\FileTransfer ----------------------------- ---------------------------------------- `Finding`_ DTS\\eBaySDK\\Finding ----------------------------- ---------------------------------------- +`Fulfillment`_ DTS\\eBaySDK\\Fulfillment +----------------------------- ---------------------------------------- `Half Finding`_ DTS\\eBaySDK\\HalfFinding ----------------------------- ---------------------------------------- +`Inventory`_ DTS\\eBaySDK\\Inventory +----------------------------- ---------------------------------------- +`Marketing`_ DTS\\eBaySDK\\Marketing +----------------------------- ---------------------------------------- +`Merchandising`_ DTS\\eBaySDK\\Merchandising +----------------------------- ---------------------------------------- `Merchant Data`_ DTS\\eBaySDK\\MerchantData ----------------------------- ---------------------------------------- +`Metadata`_ DTS\\eBaySDK\\Metadata +----------------------------- ---------------------------------------- +`Order`_ DTS\\eBaySDK\\Order +----------------------------- ---------------------------------------- +`Post Order`_ DTS\\eBaySDK\\PostOrder +----------------------------- ---------------------------------------- +`Product`_ DTS\\eBaySDK\\Product +----------------------------- ---------------------------------------- +`Product Metadata`_ DTS\\eBaySDK\\ProductMetadata +----------------------------- ---------------------------------------- +`Related Items Management`_ DTS\\eBaySDK\\RelatedItemsManagement +----------------------------- ---------------------------------------- `Resolution Case Management`_ DTS\\eBaySDK\\ResolutionCaseManagement ----------------------------- ---------------------------------------- `Return Management`_ DTS\\eBaySDK\\ReturnManagement @@ -31,13 +59,27 @@ eBay Service SDK Namespace `Trading`_ DTS\\eBaySDK\\Trading ============================= ======================================== -.. _Bulk Data Exchange: http://developer.ebay.com/DevZone/bulk-data-exchange/CallRef/index.html -.. _Business Policies: http://developer.ebay.com/Devzone/business-policies/CallRef/index.html -.. _File Transfer: http://developer.ebay.com/DevZone/file-transfer/CallRef/index.html -.. _Finding: http://developer.ebay.com/Devzone/finding/CallRef/index.html -.. _Half Finding: http://developer.ebay.com/devzone/half-finding/CallRef/index.html -.. _Merchant Data: http://developer.ebay.com/DevZone/merchant-data/CallRef/index.html -.. _Resolution Case Management: http://developer.ebay.com/Devzone/resolution-case-management/CallRef/index.html -.. _Return Management: http://developer.ebay.com/Devzone/return-management/CallRef/index.html -.. _Shopping: http://developer.ebay.com/Devzone/shopping/docs/CallRef/index.html -.. _Trading: http://developer.ebay.com/Devzone/XML/docs/Reference/eBay/index.html +.. _Account: http://developer.ebay.com/devzone/rest/api-ref/account/index.html +.. _Analytics: https://developer.ebay.com/devzone/rest/api-ref/analytics/index.html +.. _Browse: https://developer.ebay.com/devzone/rest/api-ref/browse/index.html +.. _Bulk Data Exchange: https://developer.ebay.com/DevZone/bulk-data-exchange/CallRef/index.html +.. _Business Policies: https://developer.ebay.com/Devzone/business-policies/CallRef/index.html +.. _Feedback: https://developer.ebay.com/DevZone/feedback/CallRef/index.html +.. _File Transfer: https://developer.ebay.com/DevZone/file-transfer/CallRef/index.html +.. _Finding: https://developer.ebay.com/Devzone/finding/CallRef/index.html +.. _Fulfillment: https://developer.ebay.com/devzone/rest/api-ref/fulfillment/index.html +.. _Half Finding: https://developer.ebay.com/devzone/half-finding/CallRef/index.html +.. _Inventory: https://developer.ebay.com/devzone/rest/api-ref/inventory/index.html +.. _Marketing: https://developer.ebay.com/devzone/rest/api-ref/marketing/index.html +.. _Merchandising: https://developer.ebay.com/DevZone/merchandising/docs/CallRef/index.html +.. _Merchant Data: https://developer.ebay.com/DevZone/merchant-data/CallRef/index.html +.. _Metadata: https://developer.ebay.com/devzone/rest/api-ref/metadata/index.html +.. _Order: https://developer.ebay.com/devzone/rest/api-ref/order/index.html +.. _Post Order: https://developer.ebay.com/Devzone/post-order/index.html +.. _Product: https://developer.ebay.com/DevZone/product/CallRef/index.html +.. _Product Metadata: https://developer.ebay.com/DevZone/product-metadata/CallRef/index.html +.. _Related Items Management: https://developer.ebay.com/Devzone/related-items/CallRef/index.html +.. _Resolution Case Management: https://developer.ebay.com/Devzone/resolution-case-management/CallRef/index.html +.. _Return Management: https://developer.ebay.com/Devzone/return-management/CallRef/index.html +.. _Shopping: https://developer.ebay.com/Devzone/shopping/docs/CallRef/index.html +.. _Trading: https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/index.html diff --git a/docs/guide/configuration.rst b/docs/guide/configuration.rst index c33c91ec9..1af372392 100644 --- a/docs/guide/configuration.rst +++ b/docs/guide/configuration.rst @@ -73,16 +73,29 @@ If you do not provide a version number the SDK will default to the value that is You should specify an apiVerion in your production code and not leave it to the default value that is provided by the SDK as you code will be dependant upon a value that will changed when the SDK is updated. +authorization +~~~~~~~~~~~~~ + +:Type: ``string`` +:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order``, ``Trading`` +:Required: true, except for the Trading service. + +All eBay RESTful services use OAuth 2.0 access tokens for application authentication and user authorization. The token passed via ``authorization`` can be either an User or Application token. You must ensure that the token has the require scope for the operation that you are calling. + +.. warning:: + + The Trading service can accept both an OAuth and Auth'n'auth token. The OAuth token will be used by the SDK if both are specified. + authToken ~~~~~~~~~ :Type: ``string`` -:Services: ``BulkDataExchange``, ``BusinessPoliciesManagement``, ``FileTransfer``, ``ResolutionCaseManagement``, ``ReturnManagement``, ``Trading``. +:Services: ``BulkDataExchange``, ``BusinessPoliciesManagement``, ``Feedback``, ``FileTransfer``, ``PostOrder``, ``RelatedItemsManagement``, ``ResolutionCaseManagement``, ``ReturnManagement``, ``Trading``. :Required: true, except for the Trading service. -Some services require an authentication token before you can perfrom operations on behalf of an eBay user. This token can be provided via the ``authToken`` option. +Some services require an Auth'n'auth token before you can perform operations on behalf of an eBay user. This token can be provided via the ``authToken`` option. -The Trading service is different to other services in that the auth token can be passed as a configuration option or via the actual request object. Use which ever method is suitable for your project requirements. +The Trading service is different to other services in that the Auth'n'auth token can be passed as a configuration option or via the actual request object. Use which ever method is suitable for your project requirements. .. code-block:: php @@ -105,6 +118,7 @@ credentials ~~~~~~~~~~~ :Type: ``array|DTS\eBaySDK\Credentials\CredentialsInterface|callable`` +:Services: ``BulkDataExchange``, ``BusinessPoliciesManagement``, ``Feedback``, ``FileTransfer``, ``Finding``, ``HalfFinding``, ``Merchandising``, ``Product``, ``ProductMetadata``, ``RelatedItemsManagement``, ``ResolutionCaseManagement``, ``ReturnManagement``, ``Shopping``, ``Trading``. Provide your "Application ID", "Certificate ID", and "Developer ID" credentials that are required when using the eBay API. If you do not provide any credentials the SDK will attempt to load them in the following order: @@ -204,12 +218,11 @@ globalId ~~~~~~~~ :Type: ``string`` -:Services: ``BusinessPoliciesManagement``, ``Finding``, ``HalfFinding``, ``ResolutionCaseManagement``, ``ReturnManagement``. +:Services: ``BusinessPoliciesManagement``, ``Finding``, ``HalfFinding``, ``Merchandising``, ``Product``, ``ProductMeta``, ``RelatedItemsManagement``, ``ResolutionCaseManagement``, ``ReturnManagement``. :Required For: ``BusinessPoliciesManagement`` The unique string identifier for the eBay site your API requests are to be sent to. For example, you would pass the value EBAY-US to specify the eBay US site. A `complete list of eBay global IDs `_ is available. - .. _httpHandler: httpHandler @@ -268,6 +281,30 @@ A float specifying the number of seconds to wait when trying to connect to the A ] ]); +.. _http_options_curl: + +curl +^^^^ + +:Type: ``array`` + +Depending on your project's requirments you may find that you need to set custom cURL options. This can be done by passing an associative array of `CURLOPT_XXX options `_. + +.. code-block:: php + + use DTS\eBaySDK\Finding\Services\FindingService; + + $service = new FindingService([ + 'apiVersion' => '1.13.0', + 'globalId' => 'EBAY-US', + 'httpOptions' => [ + 'curl' => [ + CURLOPT_VERBOSE => true, + CURLOPT_INTERFACE => 'xxx.xxx.xxx.xxx' + ] + ] + ]); + .. _http_options_debug: debug @@ -286,6 +323,15 @@ delay The number of milliseconds to delay before sending the request. +.. _http_options_http_errors: + +http_errors +^^^^^^^^^^^ + +:Type: ``bool`` + +Set to false to disable throwing exceptions on an HTTP protocol errors (i.e., 4xx and 5xx responses). Exceptions are thrown by default when HTTP protocol errors are encountered. + .. _http_options_proxy: proxy @@ -352,10 +398,19 @@ Control the SSL certificate verification behavior of the request. * Set to ``false`` to disable verification. You should not do this in production as the SDK will connect to the API using an insecure connection. * Pass a string that is the path to the CA bundle to be used by the SDK. +marketplaceId +~~~~~~~~~~~~~ + +:Type: ``string`` +:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order`` + +The string identifier for the eBay site your API requests are to be sent to. For example, you would pass the value ``EBAY-UK`` to specify the eBay UK site. + profile ~~~~~~~ :Type: ``string`` +:Services: ``BulkDataExchange``, ``BusinessPoliciesManagement``, ``Feedback``, ``FileTransfer``, ``Finding``, ``HalfFinding``, ``Merchandising``, ``Product``, ``ProductMetadata``, ``RelatedItemsManagement``, ``ResolutionCaseManagement``, ``ReturnManagement``, ``Shopping``, ``Trading``. Specifies the name of a profile within the ini file that is located in your HOME directory. The SDK will attempt to load the credentials from this profile. Note that the ``credentials`` option and ``EBAY_SDK_PROFILE`` environment variable are both ignored if this option is specified. @@ -369,6 +424,22 @@ Specifies the name of a profile within the ini file that is located in your HOME 'profile' => 'production' ]); +requestLanguage +~~~~~~~~~~~~~~~ + +:Type: ``string`` +:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order`` + +This configuration option will set the ``Content-Language`` HTTP header for the request. + +responseLanguage +~~~~~~~~~~~~~~~~ + +:Type: ``string`` +:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order`` + +This configuration option will set the ``Accept-Language`` HTTP header for the request. + sandbox ~~~~~~~ @@ -378,6 +449,7 @@ eBay provides a sandbox environment for testing your API calls. Pass ``true`` to siteId ~~~~~~ + :Type: ``string|integer`` :Services: ``Shopping``, ``Trading``. :Required For: ``Trading`` @@ -394,6 +466,7 @@ Affiliate parameter for applications that have registered on the `eBay Partner N trackingPartnerCode ~~~~~~~~~~~~~~~~~~~ + :Type: ``string`` :Services: ``Shopping`` diff --git a/docs/guide/credentials.rst b/docs/guide/credentials.rst index cec1ffbc6..1856479da 100644 --- a/docs/guide/credentials.rst +++ b/docs/guide/credentials.rst @@ -9,6 +9,10 @@ In order to authenticate requests, eBay services require you to provide your `de #. :ref:`hardcoded_credentials` #. :ref:`credentials_provider` +.. note:: + + The RESTful services do not require any credentials as authentication is done through an OAuth token. Therefore this guide is only applicable to eBay's older XML services. + .. _environment_credentials: Using credentials from environment variables diff --git a/docs/guide/index.rst b/docs/guide/index.rst index 980687b72..87ebc040a 100644 --- a/docs/guide/index.rst +++ b/docs/guide/index.rst @@ -10,6 +10,7 @@ Each of the following guides describe the components that make up the eBay SDK f configuration credentials request-and-response-objects + restful-services uploading-and-downloading-files promises jmespath diff --git a/docs/guide/request-and-response-objects.rst b/docs/guide/request-and-response-objects.rst index 0957ab929..7862a0c05 100644 --- a/docs/guide/request-and-response-objects.rst +++ b/docs/guide/request-and-response-objects.rst @@ -5,7 +5,7 @@ Request and Response objects Introduction ------------ -Working with the eBay API normally involves the sending and receiving of XML. By using the SDK this is hidden from your projects and it allows you to instead work with PHP objects for both the request and the response. +Working with the eBay API normally involves the sending and receiving of XML, or JSON if using eBay's RESTful services. By using the SDK this is hidden from your projects and it allows you to instead work with PHP objects for both the request and the response. Below is an example of a typical XML request to the Finding service. @@ -44,7 +44,7 @@ Instead of constructing this XML you use the SDK to instantiate various objects. $request->paginationInput->entriesPerPage = 10; $request->paginationInput->pageNumber = 1; -Likewise, the SDK creates objects for you by parsing the XML response. The example below shows a response from the Finding service and how you would handle this in your projects. +Likewise, the SDK creates objects for you by parsing the XML/JSON response. The example below shows a response from the Finding service and how you would handle this in your projects. .. code-block:: xml @@ -214,7 +214,7 @@ You can assign HTML to a property. $request->Description = '

Bits & Bobs

Just some <stuff> I found.

'; -The SDK will handle the escaping of it in the XML. +The SDK will handle the escaping of it in the XML/JSON. .. code-block:: xml diff --git a/docs/guide/restful-services.rst b/docs/guide/restful-services.rst new file mode 100644 index 000000000..d057b6d1a --- /dev/null +++ b/docs/guide/restful-services.rst @@ -0,0 +1,142 @@ +================ +RESTful Services +================ + +The SDK supports eBay's `RESTful services `_ in the same way that it supports eBay's older XML services. It will take care of constructing the JSON request and likewise parsing the JSON response. The SDK has some features that help with using the RESTful services. + +.. note:: + + These features are only available to parts of the SDK that deal with the RESTful services. These features may become available to the rest of the SDK in a future release. + +Naming conventions +------------------ + +The names of the classes for the request and response objects follow the patten ``RestRequest`` and ``RestResponse``. That is, the name of the operation followed by either **RestRequest** or **RestResponse**. For example, when using the `Browse `_ service and calling the `GetItem `_ operation, the class name for the request object would be ``GetItemRestRequest`` and likewise the response object's would be ``GetItemRestResponse``. + +.. code-block:: php + + getItem($request); + +URI and query parameters +------------------------ + +Many of the operations in the RESTful services require the usage of URI and query parameters. The SDK exposes these parameters as properties on the request object. + +The URL below uses the 3 query parameters **category_ids**, **q** and **limit**. + +``https://api.ebay.com/buy/browse/v1/item_summary/search?category_ids=29792&q=Harry+Potter&limit=50`` + +Since the SDK exposes these parameters as object properties they can be specified as shown in the below example. + +.. code-block:: php + + category_ids = '29792'; + $request->q = 'Harry Potter'; + $request->limit = '50'; + + $response = $service->getItem($request); + + +HTTP status code +---------------- + +Response objects provide the ``getStatusCode`` method in order to get the HTTP status code of the response. + +.. code-block:: php + + if ($response->getStatusCode() === 200) { + foreach ($response->itemSummaries as $item) { + printf( + "(%s) %s: %s %.2f\n", + $item->itemId, + $item->title, + $item->price->currency, + $item->price->value + ); + } + } + +HTTP headers +------------ + +Response objects provide several methods in order to obtain the HTTP headers of the response. + +getHeaders +~~~~~~~~~~ + +Returns an associative array of headers. Each key will be a header name, and each value will be an array of strings for that header. + +.. code-block:: php + + foreach ($response->getHeaders() as $name => $values) { + printf( + "(%s) %s\n", + $name, + implode(', ', $values) + ); + } + +hasHeader +~~~~~~~~~ + +Returns true if any header names match the given header name using a case-insensitive string comparison. Returns false if no matching header name is found in the response. + +.. code-block:: php + + if ($response->hasHeader('content-length')) { + printf( + "(Content-Length) %s\n", + implode(', ', $response->getHeader('content-length')) + ); + } + +getHeader +~~~~~~~~~ + +Returns an array of string values as provided for the given header. If the header does not appear in the message, this method will return an empty array. + +.. code-block:: php + + printf( + "(Content-Length) %s\n", + implode(', ', $response->getHeader('content-length')) + ); + +getHeaderLine +~~~~~~~~~~~~~ + +Returns a string of values as provided for the given header concatenated together using a comma. If the header does not appear in the message, this method will return an empty string. + +.. code-block:: php + + printf( + "(Content-Length) %s\n", + $response->getHeader('content-length') + ); + +hasHeader +~~~~~~~~~ + +Returns true if any header names match the given header name using a case-insensitive string comparison. Returns false if no matching header name is found in the response. + +.. code-block:: php + + if ($response->hasHeader('content-length')) { + printf( + "(Content-Length) %s\n", + implode(', ', $response->getHeader('content-length')) + ); + } + diff --git a/requirements_check.php b/requirements_check.php index 1d854213a..0845ba6a0 100644 --- a/requirements_check.php +++ b/requirements_check.php @@ -131,6 +131,6 @@ public function endCheck() $check->title('PHP information'); -$check->phpinfo(); +$check->phpInfo(); $check->endCheck(); diff --git a/src/Account/Enums/CategoryTypeEnum.php b/src/Account/Enums/CategoryTypeEnum.php new file mode 100644 index 000000000..952d6c5d1 --- /dev/null +++ b/src/Account/Enums/CategoryTypeEnum.php @@ -0,0 +1,17 @@ + 'https://api.sandbox.ebay.com/sell/account', + 'production' => 'https://api.ebay.com/sell/account' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Account\Services\AccountService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Account/Services/AccountService.php b/src/Account/Services/AccountService.php new file mode 100644 index 000000000..f4cd27614 --- /dev/null +++ b/src/Account/Services/AccountService.php @@ -0,0 +1,776 @@ + [ + 'method' => 'POST', + 'resource' => 'fulfillment_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestResponse', + 'params' => [ + ] + ], + 'DeleteAFulfillmentPolicy' => [ + 'method' => 'DELETE', + 'resource' => 'fulfillment_policy/{fulfillmentPolicyId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestResponse', + 'params' => [ + 'fulfillmentPolicyId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetFulfillmentPoliciesByMarketplace' => [ + 'method' => 'GET', + 'resource' => 'fulfillment_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAFulfillmentPolicyByID' => [ + 'method' => 'GET', + 'resource' => 'fulfillment_policy/{fulfillmentPolicyId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestResponse', + 'params' => [ + 'fulfillmentPolicyId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAFulfillmentPolicyByName' => [ + 'method' => 'GET', + 'resource' => 'fulfillment_policy/get_by_policy_name', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'name' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateAFulfillmentPolicy' => [ + 'method' => 'PUT', + 'resource' => 'fulfillment_policy/{fulfillmentPolicyId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestResponse', + 'params' => [ + 'fulfillmentPolicyId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateAPaymentPolicy' => [ + 'method' => 'POST', + 'resource' => 'payment_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestResponse', + 'params' => [ + ] + ], + 'DeleteAPaymentPolicy' => [ + 'method' => 'DELETE', + 'resource' => 'payment_policy/{payment_policy_id}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestResponse', + 'params' => [ + 'payment_policy_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetPaymentPoliciesByMarketplace' => [ + 'method' => 'GET', + 'resource' => 'payment_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAPaymentPolicyByID' => [ + 'method' => 'GET', + 'resource' => 'payment_policy/{paymentPolicyId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestResponse', + 'params' => [ + 'paymentPolicyId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAPaymentPolicyByName' => [ + 'method' => 'GET', + 'resource' => 'payment_policy/get_by_policy_name', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'name' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateAPaymentPolicy' => [ + 'method' => 'PUT', + 'resource' => 'payment_policy/{payment_policy_id}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestResponse', + 'params' => [ + 'payment_policy_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAccountPrivileges' => [ + 'method' => 'GET', + 'resource' => 'privilege', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAccountPrivilegesRestResponse', + 'params' => [ + ] + ], + 'GetOptedInPrograms' => [ + 'method' => 'GET', + 'resource' => 'program/get_opted_in_programs', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetOptedInProgramsRestResponse', + 'params' => [ + ] + ], + 'OptInToProgram' => [ + 'method' => 'POST', + 'resource' => 'program/opt_in', + 'responseClass' => '\DTS\eBaySDK\Account\Types\OptInToProgramRestResponse', + 'params' => [ + ] + ], + 'OptOutOfProgram' => [ + 'method' => 'POST', + 'resource' => 'program/opt_out', + 'responseClass' => '\DTS\eBaySDK\Account\Types\OptOutOfProgramRestResponse', + 'params' => [ + ] + ], + 'CreateAReturnPolicy' => [ + 'method' => 'POST', + 'resource' => 'return_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestResponse', + 'params' => [ + ] + ], + 'DeleteAReturnPolicy' => [ + 'method' => 'DELETE', + 'resource' => 'return_policy/{return_policy_id}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestResponse', + 'params' => [ + 'return_policy_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnPoliciesByMarketplace' => [ + 'method' => 'GET', + 'resource' => 'return_policy', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAReturnPolicyByID' => [ + 'method' => 'GET', + 'resource' => 'return_policy/{returnPolicyId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestResponse', + 'params' => [ + 'returnPolicyId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAReturnPolicyByName' => [ + 'method' => 'GET', + 'resource' => 'return_policy/get_by_policy_name', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'name' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateAReturnPolicy' => [ + 'method' => 'PUT', + 'resource' => 'return_policy/{return_policy_id}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestResponse', + 'params' => [ + 'return_policy_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateASalesTaxTable' => [ + 'method' => 'PUT', + 'resource' => 'sales_tax/{countryCode}/{jurisdictionId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestResponse', + 'params' => [ + 'countryCode' => [ + 'valid' => ['string'], + 'required' => true + ], + 'jurisdictionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteASalesTaxTable' => [ + 'method' => 'DELETE', + 'resource' => 'sales_tax/{countryCode}/{jurisdictionId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestResponse', + 'params' => [ + 'countryCode' => [ + 'valid' => ['string'], + 'required' => true + ], + 'jurisdictionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetASalesTaxTable' => [ + 'method' => 'GET', + 'resource' => 'sales_tax/{countryCode}/{jurisdictionId}', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetASalesTaxTableRestResponse', + 'params' => [ + 'countryCode' => [ + 'valid' => ['string'], + 'required' => true + ], + 'jurisdictionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAllSalesTaxTables' => [ + 'method' => 'GET', + 'resource' => 'sales_tax', + 'responseClass' => '\DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestResponse', + 'params' => [ + 'country_code' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestResponse + */ + public function createAFulfillmentPolicy(\DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestRequest $request) + { + return $this->createAFulfillmentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAFulfillmentPolicyAsync(\DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestRequest $request) + { + return $this->callOperationAsync('CreateAFulfillmentPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestResponse + */ + public function deleteAFulfillmentPolicy(\DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestRequest $request) + { + return $this->deleteAFulfillmentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteAFulfillmentPolicyAsync(\DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestRequest $request) + { + return $this->callOperationAsync('DeleteAFulfillmentPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestResponse + */ + public function getFulfillmentPoliciesByMarketplace(\DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestRequest $request) + { + return $this->getFulfillmentPoliciesByMarketplaceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFulfillmentPoliciesByMarketplaceAsync(\DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestRequest $request) + { + return $this->callOperationAsync('GetFulfillmentPoliciesByMarketplace', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestResponse + */ + public function getAFulfillmentPolicyByID(\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestRequest $request) + { + return $this->getAFulfillmentPolicyByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAFulfillmentPolicyByIDAsync(\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestRequest $request) + { + return $this->callOperationAsync('GetAFulfillmentPolicyByID', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestResponse + */ + public function getAFulfillmentPolicyByName(\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestRequest $request) + { + return $this->getAFulfillmentPolicyByNameAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAFulfillmentPolicyByNameAsync(\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestRequest $request) + { + return $this->callOperationAsync('GetAFulfillmentPolicyByName', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestResponse + */ + public function updateAFulfillmentPolicy(\DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestRequest $request) + { + return $this->updateAFulfillmentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateAFulfillmentPolicyAsync(\DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestRequest $request) + { + return $this->callOperationAsync('UpdateAFulfillmentPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestResponse + */ + public function createAPaymentPolicy(\DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestRequest $request) + { + return $this->createAPaymentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAPaymentPolicyAsync(\DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestRequest $request) + { + return $this->callOperationAsync('CreateAPaymentPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestResponse + */ + public function deleteAPaymentPolicy(\DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestRequest $request) + { + return $this->deleteAPaymentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteAPaymentPolicyAsync(\DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestRequest $request) + { + return $this->callOperationAsync('DeleteAPaymentPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestResponse + */ + public function getPaymentPoliciesByMarketplace(\DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestRequest $request) + { + return $this->getPaymentPoliciesByMarketplaceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPaymentPoliciesByMarketplaceAsync(\DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestRequest $request) + { + return $this->callOperationAsync('GetPaymentPoliciesByMarketplace', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestResponse + */ + public function getAPaymentPolicyByID(\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestRequest $request) + { + return $this->getAPaymentPolicyByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAPaymentPolicyByIDAsync(\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestRequest $request) + { + return $this->callOperationAsync('GetAPaymentPolicyByID', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestResponse + */ + public function getAPaymentPolicyByName(\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestRequest $request) + { + return $this->getAPaymentPolicyByNameAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAPaymentPolicyByNameAsync(\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestRequest $request) + { + return $this->callOperationAsync('GetAPaymentPolicyByName', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestResponse + */ + public function updateAPaymentPolicy(\DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestRequest $request) + { + return $this->updateAPaymentPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateAPaymentPolicyAsync(\DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestRequest $request) + { + return $this->callOperationAsync('UpdateAPaymentPolicy', $request); + } + + /** + * @return \DTS\eBaySDK\Account\Types\GetAccountPrivilegesRestResponse + */ + public function getAccountPrivileges() + { + return $this->getAccountPrivilegesAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAccountPrivilegesAsync() + { + return $this->callOperationAsync('GetAccountPrivileges'); + } + + /** + * @return \DTS\eBaySDK\Account\Types\GetOptedInProgramsRestResponse + */ + public function getOptedInPrograms() + { + return $this->getOptedInProgramsAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOptedInProgramsAsync() + { + return $this->callOperationAsync('GetOptedInPrograms'); + } + + /** + * @param \DTS\eBaySDK\Account\Types\OptInToProgramRestRequest $request + * @return \DTS\eBaySDK\Account\Types\OptInToProgramRestResponse + */ + public function optInToProgram(\DTS\eBaySDK\Account\Types\OptInToProgramRestRequest $request) + { + return $this->optInToProgramAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\OptInToProgramRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function optInToProgramAsync(\DTS\eBaySDK\Account\Types\OptInToProgramRestRequest $request) + { + return $this->callOperationAsync('OptInToProgram', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\OptOutOfProgramRestRequest $request + * @return \DTS\eBaySDK\Account\Types\OptOutOfProgramRestResponse + */ + public function optOutOfProgram(\DTS\eBaySDK\Account\Types\OptOutOfProgramRestRequest $request) + { + return $this->optOutOfProgramAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\OptOutOfProgramRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function optOutOfProgramAsync(\DTS\eBaySDK\Account\Types\OptOutOfProgramRestRequest $request) + { + return $this->callOperationAsync('OptOutOfProgram', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestResponse + */ + public function createAReturnPolicy(\DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest $request) + { + return $this->createAReturnPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAReturnPolicyAsync(\DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest $request) + { + return $this->callOperationAsync('CreateAReturnPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestResponse + */ + public function deleteAReturnPolicy(\DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestRequest $request) + { + return $this->deleteAReturnPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteAReturnPolicyAsync(\DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestRequest $request) + { + return $this->callOperationAsync('DeleteAReturnPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestResponse + */ + public function getReturnPoliciesByMarketplace(\DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestRequest $request) + { + return $this->getReturnPoliciesByMarketplaceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnPoliciesByMarketplaceAsync(\DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestRequest $request) + { + return $this->callOperationAsync('GetReturnPoliciesByMarketplace', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestResponse + */ + public function getAReturnPolicyByID(\DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestRequest $request) + { + return $this->getAReturnPolicyByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAReturnPolicyByIDAsync(\DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestRequest $request) + { + return $this->callOperationAsync('GetAReturnPolicyByID', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestResponse + */ + public function getAReturnPolicyByName(\DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestRequest $request) + { + return $this->getAReturnPolicyByNameAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAReturnPolicyByNameAsync(\DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestRequest $request) + { + return $this->callOperationAsync('GetAReturnPolicyByName', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestRequest $request + * @return \DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestResponse + */ + public function updateAReturnPolicy(\DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestRequest $request) + { + return $this->updateAReturnPolicyAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateAReturnPolicyAsync(\DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestRequest $request) + { + return $this->callOperationAsync('UpdateAReturnPolicy', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestRequest $request + * @return \DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestResponse + */ + public function createASalesTaxTable(\DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestRequest $request) + { + return $this->createASalesTaxTableAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createASalesTaxTableAsync(\DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestRequest $request) + { + return $this->callOperationAsync('CreateASalesTaxTable', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestRequest $request + * @return \DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestResponse + */ + public function deleteASalesTaxTable(\DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestRequest $request) + { + return $this->deleteASalesTaxTableAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteASalesTaxTableAsync(\DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestRequest $request) + { + return $this->callOperationAsync('DeleteASalesTaxTable', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetASalesTaxTableRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetASalesTaxTableRestResponse + */ + public function getASalesTaxTable(\DTS\eBaySDK\Account\Types\GetASalesTaxTableRestRequest $request) + { + return $this->getASalesTaxTableAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetASalesTaxTableRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getASalesTaxTableAsync(\DTS\eBaySDK\Account\Types\GetASalesTaxTableRestRequest $request) + { + return $this->callOperationAsync('GetASalesTaxTable', $request); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestRequest $request + * @return \DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestResponse + */ + public function getAllSalesTaxTables(\DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestRequest $request) + { + return $this->getAllSalesTaxTablesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAllSalesTaxTablesAsync(\DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestRequest $request) + { + return $this->callOperationAsync('GetAllSalesTaxTables', $request); + } +} diff --git a/src/Account/Types/Amount.php b/src/Account/Types/Amount.php new file mode 100644 index 000000000..d4edfbde7 --- /dev/null +++ b/src/Account/Types/Amount.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CategoryType.php b/src/Account/Types/CategoryType.php new file mode 100644 index 000000000..28024fdfc --- /dev/null +++ b/src/Account/Types/CategoryType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'default' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CreateAFulfillmentPolicyRestRequest.php b/src/Account/Types/CreateAFulfillmentPolicyRestRequest.php new file mode 100644 index 000000000..e9a26fda0 --- /dev/null +++ b/src/Account/Types/CreateAFulfillmentPolicyRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CreateAFulfillmentPolicyRestResponse.php b/src/Account/Types/CreateAFulfillmentPolicyRestResponse.php new file mode 100644 index 000000000..0084967c5 --- /dev/null +++ b/src/Account/Types/CreateAFulfillmentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/CreateAPaymentPolicyRestRequest.php b/src/Account/Types/CreateAPaymentPolicyRestRequest.php new file mode 100644 index 000000000..1f6f49f96 --- /dev/null +++ b/src/Account/Types/CreateAPaymentPolicyRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CreateAPaymentPolicyRestResponse.php b/src/Account/Types/CreateAPaymentPolicyRestResponse.php new file mode 100644 index 000000000..d609ff8bb --- /dev/null +++ b/src/Account/Types/CreateAPaymentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/CreateAReturnPolicyRestRequest.php b/src/Account/Types/CreateAReturnPolicyRestRequest.php new file mode 100644 index 000000000..d2d33048e --- /dev/null +++ b/src/Account/Types/CreateAReturnPolicyRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CreateAReturnPolicyRestResponse.php b/src/Account/Types/CreateAReturnPolicyRestResponse.php new file mode 100644 index 000000000..bf17220eb --- /dev/null +++ b/src/Account/Types/CreateAReturnPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/CreateASalesTaxTableRestRequest.php b/src/Account/Types/CreateASalesTaxTableRestRequest.php new file mode 100644 index 000000000..e7f4a0487 --- /dev/null +++ b/src/Account/Types/CreateASalesTaxTableRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ], + 'jurisdictionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'jurisdictionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/CreateASalesTaxTableRestResponse.php b/src/Account/Types/CreateASalesTaxTableRestResponse.php new file mode 100644 index 000000000..0d901513c --- /dev/null +++ b/src/Account/Types/CreateASalesTaxTableRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/DeleteAFulfillmentPolicyRestRequest.php b/src/Account/Types/DeleteAFulfillmentPolicyRestRequest.php new file mode 100644 index 000000000..cc2980b3b --- /dev/null +++ b/src/Account/Types/DeleteAFulfillmentPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/DeleteAFulfillmentPolicyRestResponse.php b/src/Account/Types/DeleteAFulfillmentPolicyRestResponse.php new file mode 100644 index 000000000..ac1cfc862 --- /dev/null +++ b/src/Account/Types/DeleteAFulfillmentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/DeleteAPaymentPolicyRestRequest.php b/src/Account/Types/DeleteAPaymentPolicyRestRequest.php new file mode 100644 index 000000000..9712a6666 --- /dev/null +++ b/src/Account/Types/DeleteAPaymentPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'payment_policy_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/DeleteAPaymentPolicyRestResponse.php b/src/Account/Types/DeleteAPaymentPolicyRestResponse.php new file mode 100644 index 000000000..5330c7005 --- /dev/null +++ b/src/Account/Types/DeleteAPaymentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/DeleteAReturnPolicyRestRequest.php b/src/Account/Types/DeleteAReturnPolicyRestRequest.php new file mode 100644 index 000000000..36cb6365b --- /dev/null +++ b/src/Account/Types/DeleteAReturnPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_policy_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/DeleteAReturnPolicyRestResponse.php b/src/Account/Types/DeleteAReturnPolicyRestResponse.php new file mode 100644 index 000000000..468c8e414 --- /dev/null +++ b/src/Account/Types/DeleteAReturnPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/DeleteASalesTaxTableRestRequest.php b/src/Account/Types/DeleteASalesTaxTableRestRequest.php new file mode 100644 index 000000000..979f5dbc2 --- /dev/null +++ b/src/Account/Types/DeleteASalesTaxTableRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ], + 'jurisdictionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'jurisdictionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/DeleteASalesTaxTableRestResponse.php b/src/Account/Types/DeleteASalesTaxTableRestResponse.php new file mode 100644 index 000000000..b685e1eb0 --- /dev/null +++ b/src/Account/Types/DeleteASalesTaxTableRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/Deposit.php b/src/Account/Types/Deposit.php new file mode 100644 index 000000000..c7fd41017 --- /dev/null +++ b/src/Account/Types/Deposit.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'dueIn' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dueIn' + ], + 'paymentMethods' => [ + 'type' => 'DTS\eBaySDK\Account\Types\PaymentMethod', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethods' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ErrorDetailV3.php b/src/Account/Types/ErrorDetailV3.php new file mode 100644 index 000000000..89e42a183 --- /dev/null +++ b/src/Account/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ErrorParameterV3.php b/src/Account/Types/ErrorParameterV3.php new file mode 100644 index 000000000..0488dcf0b --- /dev/null +++ b/src/Account/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ExternalPaymentMethod.php b/src/Account/Types/ExternalPaymentMethod.php new file mode 100644 index 000000000..abeea75a8 --- /dev/null +++ b/src/Account/Types/ExternalPaymentMethod.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodName' + ], + 'paymentMethodType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodType' + ], + 'primary' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primary' + ], + 'verified' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'verified' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/FulfillmentPolicy.php b/src/Account/Types/FulfillmentPolicy.php new file mode 100644 index 000000000..94b3e9c71 --- /dev/null +++ b/src/Account/Types/FulfillmentPolicy.php @@ -0,0 +1,123 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'freightShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'freightShipping' + ], + 'fulfillmentPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ], + 'globalShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'globalShipping' + ], + 'handlingTime' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'handlingTime' + ], + 'localPickup' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'localPickup' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'pickupDropOff' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pickupDropOff' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ShippingOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'shipToLocations' => [ + 'type' => 'DTS\eBaySDK\Account\Types\RegionSet', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocations' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/FulfillmentPolicyRequest.php b/src/Account/Types/FulfillmentPolicyRequest.php new file mode 100644 index 000000000..7ab7f6da0 --- /dev/null +++ b/src/Account/Types/FulfillmentPolicyRequest.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'freightShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'freightShipping' + ], + 'globalShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'globalShipping' + ], + 'handlingTime' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'handlingTime' + ], + 'localPickup' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'localPickup' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'pickupDropOff' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pickupDropOff' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ShippingOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'shipToLocations' => [ + 'type' => 'DTS\eBaySDK\Account\Types\RegionSet', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocations' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/FulfillmentPolicyResponse.php b/src/Account/Types/FulfillmentPolicyResponse.php new file mode 100644 index 000000000..7a2855691 --- /dev/null +++ b/src/Account/Types/FulfillmentPolicyResponse.php @@ -0,0 +1,88 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\FulfillmentPolicy', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicies' + ], + 'href' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAFulfillmentPolicyByIDRestRequest.php b/src/Account/Types/GetAFulfillmentPolicyByIDRestRequest.php new file mode 100644 index 000000000..d62896e15 --- /dev/null +++ b/src/Account/Types/GetAFulfillmentPolicyByIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAFulfillmentPolicyByIDRestResponse.php b/src/Account/Types/GetAFulfillmentPolicyByIDRestResponse.php new file mode 100644 index 000000000..ac6667841 --- /dev/null +++ b/src/Account/Types/GetAFulfillmentPolicyByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAFulfillmentPolicyByNameRestRequest.php b/src/Account/Types/GetAFulfillmentPolicyByNameRestRequest.php new file mode 100644 index 000000000..d931366e9 --- /dev/null +++ b/src/Account/Types/GetAFulfillmentPolicyByNameRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAFulfillmentPolicyByNameRestResponse.php b/src/Account/Types/GetAFulfillmentPolicyByNameRestResponse.php new file mode 100644 index 000000000..bf758890c --- /dev/null +++ b/src/Account/Types/GetAFulfillmentPolicyByNameRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAPaymentPolicyByIDRestRequest.php b/src/Account/Types/GetAPaymentPolicyByIDRestRequest.php new file mode 100644 index 000000000..a59b65373 --- /dev/null +++ b/src/Account/Types/GetAPaymentPolicyByIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAPaymentPolicyByIDRestResponse.php b/src/Account/Types/GetAPaymentPolicyByIDRestResponse.php new file mode 100644 index 000000000..938dc0f43 --- /dev/null +++ b/src/Account/Types/GetAPaymentPolicyByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAPaymentPolicyByNameRestRequest.php b/src/Account/Types/GetAPaymentPolicyByNameRestRequest.php new file mode 100644 index 000000000..6a52f0e83 --- /dev/null +++ b/src/Account/Types/GetAPaymentPolicyByNameRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAPaymentPolicyByNameRestResponse.php b/src/Account/Types/GetAPaymentPolicyByNameRestResponse.php new file mode 100644 index 000000000..89f05f95e --- /dev/null +++ b/src/Account/Types/GetAPaymentPolicyByNameRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAReturnPolicyByIDRestRequest.php b/src/Account/Types/GetAReturnPolicyByIDRestRequest.php new file mode 100644 index 000000000..0bc4d7b49 --- /dev/null +++ b/src/Account/Types/GetAReturnPolicyByIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAReturnPolicyByIDRestResponse.php b/src/Account/Types/GetAReturnPolicyByIDRestResponse.php new file mode 100644 index 000000000..c78d121c3 --- /dev/null +++ b/src/Account/Types/GetAReturnPolicyByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAReturnPolicyByNameRestRequest.php b/src/Account/Types/GetAReturnPolicyByNameRestRequest.php new file mode 100644 index 000000000..b21a8695b --- /dev/null +++ b/src/Account/Types/GetAReturnPolicyByNameRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAReturnPolicyByNameRestResponse.php b/src/Account/Types/GetAReturnPolicyByNameRestResponse.php new file mode 100644 index 000000000..1c8d97764 --- /dev/null +++ b/src/Account/Types/GetAReturnPolicyByNameRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetASalesTaxTableRestRequest.php b/src/Account/Types/GetASalesTaxTableRestRequest.php new file mode 100644 index 000000000..ab6ec6fdd --- /dev/null +++ b/src/Account/Types/GetASalesTaxTableRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ], + 'jurisdictionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'jurisdictionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetASalesTaxTableRestResponse.php b/src/Account/Types/GetASalesTaxTableRestResponse.php new file mode 100644 index 000000000..10784a7e1 --- /dev/null +++ b/src/Account/Types/GetASalesTaxTableRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAccountPrivilegesRestResponse.php b/src/Account/Types/GetAccountPrivilegesRestResponse.php new file mode 100644 index 000000000..67fd606f8 --- /dev/null +++ b/src/Account/Types/GetAccountPrivilegesRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetAllSalesTaxTablesRestRequest.php b/src/Account/Types/GetAllSalesTaxTablesRestRequest.php new file mode 100644 index 000000000..c27c8f7c4 --- /dev/null +++ b/src/Account/Types/GetAllSalesTaxTablesRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country_code' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetAllSalesTaxTablesRestResponse.php b/src/Account/Types/GetAllSalesTaxTablesRestResponse.php new file mode 100644 index 000000000..5f7976e33 --- /dev/null +++ b/src/Account/Types/GetAllSalesTaxTablesRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequest.php b/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequest.php new file mode 100644 index 000000000..aa20b02f4 --- /dev/null +++ b/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponse.php b/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponse.php new file mode 100644 index 000000000..f4ba5f6f5 --- /dev/null +++ b/src/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetOptedInProgramsRestResponse.php b/src/Account/Types/GetOptedInProgramsRestResponse.php new file mode 100644 index 000000000..07f18a8f9 --- /dev/null +++ b/src/Account/Types/GetOptedInProgramsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetPaymentPoliciesByMarketplaceRestRequest.php b/src/Account/Types/GetPaymentPoliciesByMarketplaceRestRequest.php new file mode 100644 index 000000000..20dceea96 --- /dev/null +++ b/src/Account/Types/GetPaymentPoliciesByMarketplaceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetPaymentPoliciesByMarketplaceRestResponse.php b/src/Account/Types/GetPaymentPoliciesByMarketplaceRestResponse.php new file mode 100644 index 000000000..231676198 --- /dev/null +++ b/src/Account/Types/GetPaymentPoliciesByMarketplaceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/GetReturnPoliciesByMarketplaceRestRequest.php b/src/Account/Types/GetReturnPoliciesByMarketplaceRestRequest.php new file mode 100644 index 000000000..729b84735 --- /dev/null +++ b/src/Account/Types/GetReturnPoliciesByMarketplaceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/GetReturnPoliciesByMarketplaceRestResponse.php b/src/Account/Types/GetReturnPoliciesByMarketplaceRestResponse.php new file mode 100644 index 000000000..94d92789e --- /dev/null +++ b/src/Account/Types/GetReturnPoliciesByMarketplaceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/InventorySizing.php b/src/Account/Types/InventorySizing.php new file mode 100644 index 000000000..34b7b75cd --- /dev/null +++ b/src/Account/Types/InventorySizing.php @@ -0,0 +1,67 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentAvailableQuantity' + ], + 'currentInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentInventoryValue' + ], + 'inventorySnapshots' => [ + 'type' => 'DTS\eBaySDK\Account\Types\InventorySnapshot', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventorySnapshots' + ], + 'primarySalesCategory' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primarySalesCategory' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/InventorySnapshot.php b/src/Account/Types/InventorySnapshot.php new file mode 100644 index 000000000..bc49ce922 --- /dev/null +++ b/src/Account/Types/InventorySnapshot.php @@ -0,0 +1,88 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cumulativeInventoryValue' + ], + 'cumulativeQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cumulativeQuantity' + ], + 'lookbackPeriod' => [ + 'type' => 'DTS\eBaySDK\Account\Types\LookbackPeriod', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lookbackPeriod' + ], + 'maxAvailableQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxAvailableQuantity' + ], + 'maxInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxInventoryValue' + ], + 'minAvailableQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minAvailableQuantity' + ], + 'minInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minInventoryValue' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/LookbackPeriod.php b/src/Account/Types/LookbackPeriod.php new file mode 100644 index 000000000..6cc5cb2f8 --- /dev/null +++ b/src/Account/Types/LookbackPeriod.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lifetime' + ], + 'timeDuration' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timeDuration' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/MerchantExternalProfile.php b/src/Account/Types/MerchantExternalProfile.php new file mode 100644 index 000000000..ddc6a4b52 --- /dev/null +++ b/src/Account/Types/MerchantExternalProfile.php @@ -0,0 +1,102 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ExternalPaymentMethod', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'acceptedPaymentMethods' + ], + 'accountCreationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'accountCreationDate' + ], + 'billingPaymentMethods' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ExternalPaymentMethod', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'billingPaymentMethods' + ], + 'inventorySizing' => [ + 'type' => 'DTS\eBaySDK\Account\Types\InventorySizing', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventorySizing' + ], + 'merchantCategoryCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantCategoryCode' + ], + 'primaryCurrency' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryCurrency' + ], + 'returnSnapshots' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ReturnSnapshot', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnSnapshots' + ], + 'sicCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sicCode' + ], + 'transactionVolume' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TransactionVolume', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionVolume' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/OptInToProgramRestRequest.php b/src/Account/Types/OptInToProgramRestRequest.php new file mode 100644 index 000000000..4ab396456 --- /dev/null +++ b/src/Account/Types/OptInToProgramRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/OptInToProgramRestResponse.php b/src/Account/Types/OptInToProgramRestResponse.php new file mode 100644 index 000000000..7a078cd88 --- /dev/null +++ b/src/Account/Types/OptInToProgramRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/OptOutOfProgramRestRequest.php b/src/Account/Types/OptOutOfProgramRestRequest.php new file mode 100644 index 000000000..06d977537 --- /dev/null +++ b/src/Account/Types/OptOutOfProgramRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/OptOutOfProgramRestResponse.php b/src/Account/Types/OptOutOfProgramRestResponse.php new file mode 100644 index 000000000..299fb4590 --- /dev/null +++ b/src/Account/Types/OptOutOfProgramRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/PaymentMethod.php b/src/Account/Types/PaymentMethod.php new file mode 100644 index 000000000..d880ecf0a --- /dev/null +++ b/src/Account/Types/PaymentMethod.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'brands' + ], + 'paymentMethodType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodType' + ], + 'recipientAccountReference' => [ + 'type' => 'DTS\eBaySDK\Account\Types\RecipientAccountReference', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recipientAccountReference' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/PaymentPolicy.php b/src/Account/Types/PaymentPolicy.php new file mode 100644 index 000000000..7b19992b4 --- /dev/null +++ b/src/Account/Types/PaymentPolicy.php @@ -0,0 +1,109 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'deposit' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Deposit', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deposit' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'fullPaymentDueIn' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fullPaymentDueIn' + ], + 'immediatePay' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'immediatePay' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'paymentInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentInstructions' + ], + 'paymentMethods' => [ + 'type' => 'DTS\eBaySDK\Account\Types\PaymentMethod', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethods' + ], + 'paymentPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/PaymentPolicyRequest.php b/src/Account/Types/PaymentPolicyRequest.php new file mode 100644 index 000000000..1763c4721 --- /dev/null +++ b/src/Account/Types/PaymentPolicyRequest.php @@ -0,0 +1,102 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'deposit' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Deposit', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deposit' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'fullPaymentDueIn' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fullPaymentDueIn' + ], + 'immediatePay' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'immediatePay' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'paymentInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentInstructions' + ], + 'paymentMethods' => [ + 'type' => 'DTS\eBaySDK\Account\Types\PaymentMethod', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethods' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/PaymentPolicyResponse.php b/src/Account/Types/PaymentPolicyResponse.php new file mode 100644 index 000000000..74483d1ec --- /dev/null +++ b/src/Account/Types/PaymentPolicyResponse.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'paymentPolicies' => [ + 'type' => 'DTS\eBaySDK\Account\Types\PaymentPolicy', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentPolicies' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/Program.php b/src/Account/Types/Program.php new file mode 100644 index 000000000..f9f5be2bf --- /dev/null +++ b/src/Account/Types/Program.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'programType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/Programs.php b/src/Account/Types/Programs.php new file mode 100644 index 000000000..a315a09e0 --- /dev/null +++ b/src/Account/Types/Programs.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Program', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'programs' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/RecipientAccountReference.php b/src/Account/Types/RecipientAccountReference.php new file mode 100644 index 000000000..c043a8945 --- /dev/null +++ b/src/Account/Types/RecipientAccountReference.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'referenceId' + ], + 'referenceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'referenceType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/Region.php b/src/Account/Types/Region.php new file mode 100644 index 000000000..b37beaf00 --- /dev/null +++ b/src/Account/Types/Region.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'regionName' + ], + 'regionType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'regionType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/RegionSet.php b/src/Account/Types/RegionSet.php new file mode 100644 index 000000000..9b379c534 --- /dev/null +++ b/src/Account/Types/RegionSet.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Region', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'regionExcluded' + ], + 'regionIncluded' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Region', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'regionIncluded' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ReturnPolicy.php b/src/Account/Types/ReturnPolicy.php new file mode 100644 index 000000000..e25f6564f --- /dev/null +++ b/src/Account/Types/ReturnPolicy.php @@ -0,0 +1,130 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'extendedHolidayReturnsOffered' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extendedHolidayReturnsOffered' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'refundMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundMethod' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ], + 'returnInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnInstructions' + ], + 'returnMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnMethod' + ], + 'returnPeriod' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPeriod' + ], + 'returnPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPolicyId' + ], + 'returnsAccepted' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnsAccepted' + ], + 'returnShippingCostPayer' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostPayer' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ReturnPolicyRequest.php b/src/Account/Types/ReturnPolicyRequest.php new file mode 100644 index 000000000..39191c2ae --- /dev/null +++ b/src/Account/Types/ReturnPolicyRequest.php @@ -0,0 +1,123 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'extendedHolidayReturnsOffered' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extendedHolidayReturnsOffered' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'refundMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundMethod' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ], + 'returnInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnInstructions' + ], + 'returnMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnMethod' + ], + 'returnPeriod' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPeriod' + ], + 'returnsAccepted' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnsAccepted' + ], + 'returnShippingCostPayer' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostPayer' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ReturnPolicyResponse.php b/src/Account/Types/ReturnPolicyResponse.php new file mode 100644 index 000000000..c83be0700 --- /dev/null +++ b/src/Account/Types/ReturnPolicyResponse.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'returnPolicies' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ReturnPolicy', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'returnPolicies' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ReturnSnapshot.php b/src/Account/Types/ReturnSnapshot.php new file mode 100644 index 000000000..583880ece --- /dev/null +++ b/src/Account/Types/ReturnSnapshot.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\LookbackPeriod', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lookbackPeriod' + ], + 'returnedInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnedInventoryValue' + ], + 'returnedQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnedQuantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SalesTax.php b/src/Account/Types/SalesTax.php new file mode 100644 index 000000000..28546fe7d --- /dev/null +++ b/src/Account/Types/SalesTax.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ], + 'salesTaxJurisdictionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'salesTaxJurisdictionId' + ], + 'salesTaxPercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'salesTaxPercentage' + ], + 'shippingAndHandlingTaxed' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAndHandlingTaxed' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SalesTaxBase.php b/src/Account/Types/SalesTaxBase.php new file mode 100644 index 000000000..bb0dd7119 --- /dev/null +++ b/src/Account/Types/SalesTaxBase.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'salesTaxPercentage' + ], + 'shippingAndHandlingTaxed' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAndHandlingTaxed' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SalesTaxes.php b/src/Account/Types/SalesTaxes.php new file mode 100644 index 000000000..edda94b44 --- /dev/null +++ b/src/Account/Types/SalesTaxes.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\SalesTax', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'salesTaxes' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SellingLimit.php b/src/Account/Types/SellingLimit.php new file mode 100644 index 000000000..71b27866b --- /dev/null +++ b/src/Account/Types/SellingLimit.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SellingPrivileges.php b/src/Account/Types/SellingPrivileges.php new file mode 100644 index 000000000..15510ff5d --- /dev/null +++ b/src/Account/Types/SellingPrivileges.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerRegistrationCompleted' + ], + 'sellingLimit' => [ + 'type' => 'DTS\eBaySDK\Account\Types\SellingLimit', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellingLimit' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SetFulfillmentPolicyResponse.php b/src/Account/Types/SetFulfillmentPolicyResponse.php new file mode 100644 index 000000000..9b3df748e --- /dev/null +++ b/src/Account/Types/SetFulfillmentPolicyResponse.php @@ -0,0 +1,130 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'freightShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'freightShipping' + ], + 'fulfillmentPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ], + 'globalShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'globalShipping' + ], + 'handlingTime' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'handlingTime' + ], + 'localPickup' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'localPickup' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'pickupDropOff' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pickupDropOff' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ShippingOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'shipToLocations' => [ + 'type' => 'DTS\eBaySDK\Account\Types\RegionSet', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocations' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SetPaymentPolicyResponse.php b/src/Account/Types/SetPaymentPolicyResponse.php new file mode 100644 index 000000000..562862930 --- /dev/null +++ b/src/Account/Types/SetPaymentPolicyResponse.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'deposit' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Deposit', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deposit' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'fullPaymentDueIn' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fullPaymentDueIn' + ], + 'immediatePay' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'immediatePay' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'paymentInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentInstructions' + ], + 'paymentMethods' => [ + 'type' => 'DTS\eBaySDK\Account\Types\PaymentMethod', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethods' + ], + 'paymentPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentPolicyId' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SetReturnPolicyResponse.php b/src/Account/Types/SetReturnPolicyResponse.php new file mode 100644 index 000000000..78f380772 --- /dev/null +++ b/src/Account/Types/SetReturnPolicyResponse.php @@ -0,0 +1,137 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\CategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryTypes' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'extendedHolidayReturnsOffered' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extendedHolidayReturnsOffered' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'refundMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundMethod' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ], + 'returnInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnInstructions' + ], + 'returnMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnMethod' + ], + 'returnPeriod' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPeriod' + ], + 'returnPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPolicyId' + ], + 'returnsAccepted' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnsAccepted' + ], + 'returnShippingCostPayer' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostPayer' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ShippingOption.php b/src/Account/Types/ShippingOption.php new file mode 100644 index 000000000..bb7400271 --- /dev/null +++ b/src/Account/Types/ShippingOption.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'costType' + ], + 'insuranceFee' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'insuranceFee' + ], + 'insuranceOffered' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'insuranceOffered' + ], + 'optionType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'optionType' + ], + 'packageHandlingCost' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'packageHandlingCost' + ], + 'shippingServices' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ShippingService', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingServices' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/ShippingService.php b/src/Account/Types/ShippingService.php new file mode 100644 index 000000000..20057a0a7 --- /dev/null +++ b/src/Account/Types/ShippingService.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'additionalShippingCost' + ], + 'buyerResponsibleForPickup' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerResponsibleForPickup' + ], + 'buyerResponsibleForShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerResponsibleForShipping' + ], + 'cashOnDeliveryFee' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cashOnDeliveryFee' + ], + 'freeShipping' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'freeShipping' + ], + 'shippingCarrierCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierCode' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingServiceCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceCode' + ], + 'shipToLocations' => [ + 'type' => 'DTS\eBaySDK\Account\Types\RegionSet', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocations' + ], + 'sortOrder' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortOrder' + ], + 'surcharge' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'surcharge' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/SoldAggregatedMetrics.php b/src/Account/Types/SoldAggregatedMetrics.php new file mode 100644 index 000000000..8ccc3a097 --- /dev/null +++ b/src/Account/Types/SoldAggregatedMetrics.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxSoldInventoryValue' + ], + 'maxSoldQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxSoldQuantity' + ], + 'minSoldInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minSoldInventoryValue' + ], + 'minSoldQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minSoldQuantity' + ], + 'period' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'period' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/TimeDuration.php b/src/Account/Types/TimeDuration.php new file mode 100644 index 000000000..b29bb63e7 --- /dev/null +++ b/src/Account/Types/TimeDuration.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unit' + ], + 'value' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/TransactionSnapshot.php b/src/Account/Types/TransactionSnapshot.php new file mode 100644 index 000000000..8b47cbd25 --- /dev/null +++ b/src/Account/Types/TransactionSnapshot.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\SoldAggregatedMetrics', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'calendarWindowAggregatedMetrics' + ], + 'lookbackPeriod' => [ + 'type' => 'DTS\eBaySDK\Account\Types\LookbackPeriod', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lookbackPeriod' + ], + 'rollingWindowAggregatedMetrics' => [ + 'type' => 'DTS\eBaySDK\Account\Types\SoldAggregatedMetrics', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rollingWindowAggregatedMetrics' + ], + 'soldInventoryValue' => [ + 'type' => 'DTS\eBaySDK\Account\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldInventoryValue' + ], + 'soldQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldQuantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/TransactionVolume.php b/src/Account/Types/TransactionVolume.php new file mode 100644 index 000000000..a0a6c2fd1 --- /dev/null +++ b/src/Account/Types/TransactionVolume.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'firstOrderDate' + ], + 'transactionSnapshots' => [ + 'type' => 'DTS\eBaySDK\Account\Types\TransactionSnapshot', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionSnapshots' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/UpdateAFulfillmentPolicyRestRequest.php b/src/Account/Types/UpdateAFulfillmentPolicyRestRequest.php new file mode 100644 index 000000000..085ac51c1 --- /dev/null +++ b/src/Account/Types/UpdateAFulfillmentPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/UpdateAFulfillmentPolicyRestResponse.php b/src/Account/Types/UpdateAFulfillmentPolicyRestResponse.php new file mode 100644 index 000000000..9dd680ffb --- /dev/null +++ b/src/Account/Types/UpdateAFulfillmentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/UpdateAPaymentPolicyRestRequest.php b/src/Account/Types/UpdateAPaymentPolicyRestRequest.php new file mode 100644 index 000000000..661249702 --- /dev/null +++ b/src/Account/Types/UpdateAPaymentPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'payment_policy_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/UpdateAPaymentPolicyRestResponse.php b/src/Account/Types/UpdateAPaymentPolicyRestResponse.php new file mode 100644 index 000000000..36db18151 --- /dev/null +++ b/src/Account/Types/UpdateAPaymentPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Account/Types/UpdateAReturnPolicyRestRequest.php b/src/Account/Types/UpdateAReturnPolicyRestRequest.php new file mode 100644 index 000000000..1d7211c7c --- /dev/null +++ b/src/Account/Types/UpdateAReturnPolicyRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_policy_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Account/Types/UpdateAReturnPolicyRestResponse.php b/src/Account/Types/UpdateAReturnPolicyRestResponse.php new file mode 100644 index 000000000..1dbd91bea --- /dev/null +++ b/src/Account/Types/UpdateAReturnPolicyRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Analytics/Enums/CycleTypeEnum.php b/src/Analytics/Enums/CycleTypeEnum.php new file mode 100644 index 000000000..7de80679f --- /dev/null +++ b/src/Analytics/Enums/CycleTypeEnum.php @@ -0,0 +1,17 @@ + 'https://api.sandbox.ebay.com/sell/analytics', + 'production' => 'https://api.ebay.com/sell/analytics' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Analytics\Services\AnalyticsService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Analytics/Services/AnalyticsService.php b/src/Analytics/Services/AnalyticsService.php new file mode 100644 index 000000000..93e5da3e0 --- /dev/null +++ b/src/Analytics/Services/AnalyticsService.php @@ -0,0 +1,122 @@ + [ + 'method' => 'GET', + 'resource' => 'seller_standards_profile/{program}/{cycle}', + 'responseClass' => '\DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestResponse', + 'params' => [ + 'cycle' => [ + 'valid' => ['string'], + 'required' => true + ], + 'program' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAllSellerProfiles' => [ + 'method' => 'GET', + 'resource' => 'seller_standards_profile', + 'responseClass' => '\DTS\eBaySDK\Analytics\Types\GetAllSellerProfilesRestResponse', + 'params' => [ + ] + ], + 'GetTrafficReport' => [ + 'method' => 'GET', + 'resource' => 'traffic_report', + 'responseClass' => '\DTS\eBaySDK\Analytics\Types\GetTrafficReportRestResponse', + 'params' => [ + 'dimension' => [ + 'valid' => ['string'], + 'required' => true + ], + 'filter' => [ + 'valid' => ['string'] + ], + 'metric' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestRequest $request + * @return \DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestResponse + */ + public function getASpecificSellerProfile(\DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestRequest $request) + { + return $this->getASpecificSellerProfileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getASpecificSellerProfileAsync(\DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestRequest $request) + { + return $this->callOperationAsync('GetASpecificSellerProfile', $request); + } + + /** + * @return \DTS\eBaySDK\Analytics\Types\GetAllSellerProfilesRestResponse + */ + public function getAllSellerProfiles() + { + return $this->getAllSellerProfilesAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAllSellerProfilesAsync() + { + return $this->callOperationAsync('GetAllSellerProfiles'); + } + + /** + * @param \DTS\eBaySDK\Analytics\Types\GetTrafficReportRestRequest $request + * @return \DTS\eBaySDK\Analytics\Types\GetTrafficReportRestResponse + */ + public function getTrafficReport(\DTS\eBaySDK\Analytics\Types\GetTrafficReportRestRequest $request) + { + return $this->getTrafficReportAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Analytics\Types\GetTrafficReportRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getTrafficReportAsync(\DTS\eBaySDK\Analytics\Types\GetTrafficReportRestRequest $request) + { + return $this->callOperationAsync('GetTrafficReport', $request); + } +} diff --git a/src/Analytics/Types/Cycle.php b/src/Analytics/Types/Cycle.php new file mode 100644 index 000000000..c4be5f646 --- /dev/null +++ b/src/Analytics/Types/Cycle.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cycleType' + ], + 'evaluationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'evaluationDate' + ], + 'evaluationMonth' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'evaluationMonth' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/Definition.php b/src/Analytics/Types/Definition.php new file mode 100644 index 000000000..5e15abc91 --- /dev/null +++ b/src/Analytics/Types/Definition.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataType' + ], + 'key' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'key' + ], + 'localizedName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'localizedName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/ErrorDetailV3.php b/src/Analytics/Types/ErrorDetailV3.php new file mode 100644 index 000000000..8ff198c51 --- /dev/null +++ b/src/Analytics/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/ErrorParameterV3.php b/src/Analytics/Types/ErrorParameterV3.php new file mode 100644 index 000000000..c8499c1d8 --- /dev/null +++ b/src/Analytics/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/FilterField.php b/src/Analytics/Types/FilterField.php new file mode 100644 index 000000000..2954e093b --- /dev/null +++ b/src/Analytics/Types/FilterField.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ], + 'negated' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'negated' + ], + 'range' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\RangeValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'set' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'set' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/FindSellerStandardsProfilesResponse.php b/src/Analytics/Types/FindSellerStandardsProfilesResponse.php new file mode 100644 index 000000000..eb29bf2ac --- /dev/null +++ b/src/Analytics/Types/FindSellerStandardsProfilesResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\StandardsProfile', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'standardsProfiles' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/GetASpecificSellerProfileRestRequest.php b/src/Analytics/Types/GetASpecificSellerProfileRestRequest.php new file mode 100644 index 000000000..3580b28f8 --- /dev/null +++ b/src/Analytics/Types/GetASpecificSellerProfileRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cycle' + ], + 'program' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'program' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/GetASpecificSellerProfileRestResponse.php b/src/Analytics/Types/GetASpecificSellerProfileRestResponse.php new file mode 100644 index 000000000..b72634527 --- /dev/null +++ b/src/Analytics/Types/GetASpecificSellerProfileRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Analytics/Types/GetAllSellerProfilesRestResponse.php b/src/Analytics/Types/GetAllSellerProfilesRestResponse.php new file mode 100644 index 000000000..9ad51590b --- /dev/null +++ b/src/Analytics/Types/GetAllSellerProfilesRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Analytics/Types/GetTrafficReportRestRequest.php b/src/Analytics/Types/GetTrafficReportRestRequest.php new file mode 100644 index 000000000..debf67fae --- /dev/null +++ b/src/Analytics/Types/GetTrafficReportRestRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dimension' + ], + 'filter' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filter' + ], + 'metric' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metric' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/GetTrafficReportRestResponse.php b/src/Analytics/Types/GetTrafficReportRestResponse.php new file mode 100644 index 000000000..5c74acc2a --- /dev/null +++ b/src/Analytics/Types/GetTrafficReportRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Analytics/Types/Header.php b/src/Analytics/Types/Header.php new file mode 100644 index 000000000..95629fb19 --- /dev/null +++ b/src/Analytics/Types/Header.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Definition', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dimensionKeys' + ], + 'metrics' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Definition', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'metrics' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/Metric.php b/src/Analytics/Types/Metric.php new file mode 100644 index 000000000..c8e035d56 --- /dev/null +++ b/src/Analytics/Types/Metric.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'level' + ], + 'lookbackEndDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lookbackEndDate' + ], + 'lookbackStartDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lookbackStartDate' + ], + 'metricKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metricKey' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'thresholdLowerBound' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'thresholdLowerBound' + ], + 'thresholdMetaData' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'thresholdMetaData' + ], + 'thresholdUpperBound' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'thresholdUpperBound' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ], + 'value' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/RangeValue.php b/src/Analytics/Types/RangeValue.php new file mode 100644 index 000000000..b060750f0 --- /dev/null +++ b/src/Analytics/Types/RangeValue.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'end' + ], + 'exclusiveEnd' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveEnd' + ], + 'exclusiveStart' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveStart' + ], + 'range' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'start' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'start' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/Record.php b/src/Analytics/Types/Record.php new file mode 100644 index 000000000..6cfc69525 --- /dev/null +++ b/src/Analytics/Types/Record.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Value', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dimensionValues' + ], + 'metricValues' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Value', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'metricValues' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/Report.php b/src/Analytics/Types/Report.php new file mode 100644 index 000000000..21fdf4e0c --- /dev/null +++ b/src/Analytics/Types/Report.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'header' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Header', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'header' + ], + 'lastUpdatedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastUpdatedDate' + ], + 'records' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Record', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'records' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/StandardsProfile.php b/src/Analytics/Types/StandardsProfile.php new file mode 100644 index 000000000..6ebb0c095 --- /dev/null +++ b/src/Analytics/Types/StandardsProfile.php @@ -0,0 +1,81 @@ + [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Cycle', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cycle' + ], + 'defaultProgram' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'defaultProgram' + ], + 'evaluationReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'evaluationReason' + ], + 'metrics' => [ + 'type' => 'DTS\eBaySDK\Analytics\Types\Metric', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'metrics' + ], + 'program' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'program' + ], + 'standardsLevel' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'standardsLevel' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Analytics/Types/Value.php b/src/Analytics/Types/Value.php new file mode 100644 index 000000000..180c4a3f3 --- /dev/null +++ b/src/Analytics/Types/Value.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'applicable' + ], + 'value' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Enums/AvailabilityStatusEnum.php b/src/Browse/Enums/AvailabilityStatusEnum.php new file mode 100644 index 000000000..a23e9f0ec --- /dev/null +++ b/src/Browse/Enums/AvailabilityStatusEnum.php @@ -0,0 +1,18 @@ + 'https://api.sandbox.ebay.com/buy/browse', + 'production' => 'https://api.ebay.com/buy/browse' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Browse\Services\BrowseService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Browse/Services/BrowseService.php b/src/Browse/Services/BrowseService.php new file mode 100644 index 000000000..8c2574e28 --- /dev/null +++ b/src/Browse/Services/BrowseService.php @@ -0,0 +1,165 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Browse\Types\GetItemRestResponse', + 'params' => [ + 'item_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'getItemFeed' => [ + 'method' => 'GET', + 'resource' => 'item_feed', + 'responseClass' => '\DTS\eBaySDK\Browse\Types\GetItemFeedRestResponse', + 'params' => [ + 'category_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'date' => [ + 'valid' => ['string'], + 'required' => true + ], + 'feed_type' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'getItemGroup' => [ + 'method' => 'GET', + 'resource' => 'item_group/{item_group_id}', + 'responseClass' => '\DTS\eBaySDK\Browse\Types\GetItemGroupRestResponse', + 'params' => [ + 'item_group_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'searchForItems' => [ + 'method' => 'GET', + 'resource' => 'item_summary/search', + 'responseClass' => '\DTS\eBaySDK\Browse\Types\SearchForItemsRestResponse', + 'params' => [ + 'filter' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'q' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemRestRequest $request + * @return \DTS\eBaySDK\Browse\Types\GetItemRestResponse + */ + public function getItem(\DTS\eBaySDK\Browse\Types\GetItemRestRequest $request) + { + return $this->getItemAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getItemAsync(\DTS\eBaySDK\Browse\Types\GetItemRestRequest $request) + { + return $this->callOperationAsync('getItem', $request); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemFeedRestRequest $request + * @return \DTS\eBaySDK\Browse\Types\GetItemFeedRestResponse + */ + public function getItemFeed(\DTS\eBaySDK\Browse\Types\GetItemFeedRestRequest $request) + { + return $this->getItemFeedAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemFeedRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getItemFeedAsync(\DTS\eBaySDK\Browse\Types\GetItemFeedRestRequest $request) + { + return $this->callOperationAsync('getItemFeed', $request); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemGroupRestRequest $request + * @return \DTS\eBaySDK\Browse\Types\GetItemGroupRestResponse + */ + public function getItemGroup(\DTS\eBaySDK\Browse\Types\GetItemGroupRestRequest $request) + { + return $this->getItemGroupAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\GetItemGroupRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getItemGroupAsync(\DTS\eBaySDK\Browse\Types\GetItemGroupRestRequest $request) + { + return $this->callOperationAsync('getItemGroup', $request); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\SearchForItemsRestRequest $request + * @return \DTS\eBaySDK\Browse\Types\SearchForItemsRestResponse + */ + public function searchForItems(\DTS\eBaySDK\Browse\Types\SearchForItemsRestRequest $request) + { + return $this->searchForItemsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Browse\Types\SearchForItemsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function searchForItemsAsync(\DTS\eBaySDK\Browse\Types\SearchForItemsRestRequest $request) + { + return $this->callOperationAsync('searchForItems', $request); + } +} diff --git a/src/Browse/Types/Address.php b/src/Browse/Types/Address.php new file mode 100644 index 000000000..82b9bbc2c --- /dev/null +++ b/src/Browse/Types/Address.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/Amount.php b/src/Browse/Types/Amount.php new file mode 100644 index 000000000..02b07034e --- /dev/null +++ b/src/Browse/Types/Amount.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/Amount_0.php b/src/Browse/Types/Amount_0.php new file mode 100644 index 000000000..21e0927ec --- /dev/null +++ b/src/Browse/Types/Amount_0.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/Category.php b/src/Browse/Types/Category.php new file mode 100644 index 000000000..dd3519562 --- /dev/null +++ b/src/Browse/Types/Category.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ErrorDetailV3.php b/src/Browse/Types/ErrorDetailV3.php new file mode 100644 index 000000000..e9188fc36 --- /dev/null +++ b/src/Browse/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ErrorParameterV3.php b/src/Browse/Types/ErrorParameterV3.php new file mode 100644 index 000000000..e9f6dd292 --- /dev/null +++ b/src/Browse/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/FilterField.php b/src/Browse/Types/FilterField.php new file mode 100644 index 000000000..bf2fe38bc --- /dev/null +++ b/src/Browse/Types/FilterField.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ], + 'negated' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'negated' + ], + 'range' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\RangeValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'set' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'set' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/GetItemFeedRestRequest.php b/src/Browse/Types/GetItemFeedRestRequest.php new file mode 100644 index 000000000..df068dcee --- /dev/null +++ b/src/Browse/Types/GetItemFeedRestRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category_id' + ], + 'date' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'date' + ], + 'feed_type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feed_type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/GetItemFeedRestResponse.php b/src/Browse/Types/GetItemFeedRestResponse.php new file mode 100644 index 000000000..329fc101a --- /dev/null +++ b/src/Browse/Types/GetItemFeedRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Browse/Types/GetItemGroupRestRequest.php b/src/Browse/Types/GetItemGroupRestRequest.php new file mode 100644 index 000000000..e9e57c771 --- /dev/null +++ b/src/Browse/Types/GetItemGroupRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_group_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/GetItemGroupRestResponse.php b/src/Browse/Types/GetItemGroupRestResponse.php new file mode 100644 index 000000000..525b33094 --- /dev/null +++ b/src/Browse/Types/GetItemGroupRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Browse/Types/GetItemRestRequest.php b/src/Browse/Types/GetItemRestRequest.php new file mode 100644 index 000000000..b1a9bd4f9 --- /dev/null +++ b/src/Browse/Types/GetItemRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/GetItemRestResponse.php b/src/Browse/Types/GetItemRestResponse.php new file mode 100644 index 000000000..611ce9bd2 --- /dev/null +++ b/src/Browse/Types/GetItemRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Browse/Types/Image.php b/src/Browse/Types/Image.php new file mode 100644 index 000000000..1f411c937 --- /dev/null +++ b/src/Browse/Types/Image.php @@ -0,0 +1,60 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'height' + ], + 'imageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'imageUrl' + ], + 'width' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'width' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/Item.php b/src/Browse/Types/Item.php new file mode 100644 index 000000000..184569a86 --- /dev/null +++ b/src/Browse/Types/Item.php @@ -0,0 +1,347 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'additionalImages' + ], + 'ageGroup' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ageGroup' + ], + 'availabilityStatusForShipToHome' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availabilityStatusForShipToHome' + ], + 'bidCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidCount' + ], + 'brand' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'buyingOptions' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'buyingOptions' + ], + 'categoryPath' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryPath' + ], + 'color' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'color' + ], + 'condition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'currentBidPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentBidPrice' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'energyEfficiencyClass' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'energyEfficiencyClass' + ], + 'gender' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gender' + ], + 'gtin' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gtin' + ], + 'image' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemAffiliateWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemAffiliateWebUrl' + ], + 'itemEndDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemEndDate' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'itemLocation' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemLocation' + ], + 'itemWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemWebUrl' + ], + 'localizedAspects' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\TypedNameValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'localizedAspects' + ], + 'marketingPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\MarketingPrice', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketingPrice' + ], + 'material' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'material' + ], + 'mpn' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mpn' + ], + 'pattern' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pattern' + ], + 'price' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'price' + ], + 'priceDisplayCondition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceDisplayCondition' + ], + 'primaryItemGroupHref' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryItemGroupHref' + ], + 'primaryItemGroupId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryItemGroupId' + ], + 'primaryProductReviewRating' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ReviewRating', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryProductReviewRating' + ], + 'quantityLimitPerBuyer' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantityLimitPerBuyer' + ], + 'quantitySold' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantitySold' + ], + 'returnTerms' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ItemReturnTerms', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnTerms' + ], + 'seller' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Seller', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ShippingOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'shortDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shortDescription' + ], + 'size' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'size' + ], + 'sizeSystem' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sizeSystem' + ], + 'sizeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sizeType' + ], + 'subtitle' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subtitle' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'topRatedBuyingExperience' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'topRatedBuyingExperience' + ], + 'uniqueBidderCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'uniqueBidderCount' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemDigest.php b/src/Browse/Types/ItemDigest.php new file mode 100644 index 000000000..6691fb79e --- /dev/null +++ b/src/Browse/Types/ItemDigest.php @@ -0,0 +1,165 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ageGroup' + ], + 'availabilityStatusForShipToHome' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availabilityStatusForShipToHome' + ], + 'brand' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'color' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'color' + ], + 'gender' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gender' + ], + 'image' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemHref' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemHref' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'localizedAspects' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\TypedNameValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'localizedAspects' + ], + 'material' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'material' + ], + 'pattern' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pattern' + ], + 'price' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'price' + ], + 'priceDisplayCondition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceDisplayCondition' + ], + 'quantitySold' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantitySold' + ], + 'size' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'size' + ], + 'sizeSystem' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sizeSystem' + ], + 'sizeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sizeType' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemFeed.php b/src/Browse/Types/ItemFeed.php new file mode 100644 index 000000000..4230e420a --- /dev/null +++ b/src/Browse/Types/ItemFeed.php @@ -0,0 +1,221 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'additionalImageUrls' + ], + 'ageGroup' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ageGroup' + ], + 'brand' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'color' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'color' + ], + 'condition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'conditionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'conditionId' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'gender' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gender' + ], + 'gtin' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gtin' + ], + 'imageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'imageUrl' + ], + 'itemEndDate' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemEndDate' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'material' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'material' + ], + 'mpn' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mpn' + ], + 'priceCurrency' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceCurrency' + ], + 'priceValue' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceValue' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ], + 'sellerFeedbackPercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerFeedbackPercentage' + ], + 'sellerFeedbackScore' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerFeedbackScore' + ], + 'sellerUsername' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerUsername' + ], + 'shipsTo' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipsTo' + ], + 'size' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'size' + ], + 'sizeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sizeType' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemFeedResponse.php b/src/Browse/Types/ItemFeedResponse.php new file mode 100644 index 000000000..655818a87 --- /dev/null +++ b/src/Browse/Types/ItemFeedResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\ItemFeed', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemFeed' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemGroup.php b/src/Browse/Types/ItemGroup.php new file mode 100644 index 000000000..a82c4743e --- /dev/null +++ b/src/Browse/Types/ItemGroup.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'additionalImages' + ], + 'categoryPath' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryPath' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'image' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemGroupId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemGroupId' + ], + 'items' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ItemDigest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'items' + ], + 'reviewRating' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ReviewRating', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reviewRating' + ], + 'shortDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shortDescription' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'variesByLocalizedAspects' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\TypedNameValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'variesByLocalizedAspects' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemLocationImpl.php b/src/Browse/Types/ItemLocationImpl.php new file mode 100644 index 000000000..4b165dfbd --- /dev/null +++ b/src/Browse/Types/ItemLocationImpl.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemReturnTerms.php b/src/Browse/Types/ItemReturnTerms.php new file mode 100644 index 000000000..ce722de6b --- /dev/null +++ b/src/Browse/Types/ItemReturnTerms.php @@ -0,0 +1,95 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extendedHolidayReturnsOffered' + ], + 'refundMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundMethod' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ], + 'returnInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnInstructions' + ], + 'returnMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnMethod' + ], + 'returnPeriod' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPeriod' + ], + 'returnsAccepted' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnsAccepted' + ], + 'returnShippingCostPayer' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostPayer' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ItemSummary.php b/src/Browse/Types/ItemSummary.php new file mode 100644 index 000000000..d1d094c62 --- /dev/null +++ b/src/Browse/Types/ItemSummary.php @@ -0,0 +1,193 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'additionalImages' + ], + 'bidCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidCount' + ], + 'buyingOptions' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'buyingOptions' + ], + 'categories' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Category', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categories' + ], + 'condition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'currentBidPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentBidPrice' + ], + 'distanceFromPickupLocation' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\TargetLocation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'distanceFromPickupLocation' + ], + 'energyEfficiencyClass' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'energyEfficiencyClass' + ], + 'image' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemAffiliateWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemAffiliateWebUrl' + ], + 'itemGroupHref' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemGroupHref' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'itemLocation' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ItemLocationImpl', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemLocation' + ], + 'itemWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemWebUrl' + ], + 'marketingPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\MarketingPrice_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketingPrice' + ], + 'pickupOptions' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\PickupOptionSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'pickupOptions' + ], + 'price' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'price' + ], + 'seller' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Seller', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ShippingOptionSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'thumbnailImages' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Image', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'thumbnailImages' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'topRatedBuyingExperience' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'topRatedBuyingExperience' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/MarketingPrice.php b/src/Browse/Types/MarketingPrice.php new file mode 100644 index 000000000..8fb13ba78 --- /dev/null +++ b/src/Browse/Types/MarketingPrice.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountAmount' + ], + 'discountPercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountPercentage' + ], + 'originalPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originalPrice' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/MarketingPrice_0.php b/src/Browse/Types/MarketingPrice_0.php new file mode 100644 index 000000000..374c8cfea --- /dev/null +++ b/src/Browse/Types/MarketingPrice_0.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountAmount' + ], + 'discountPercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountPercentage' + ], + 'originalPrice' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originalPrice' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/PickupOptionSummary.php b/src/Browse/Types/PickupOptionSummary.php new file mode 100644 index 000000000..11f7bf129 --- /dev/null +++ b/src/Browse/Types/PickupOptionSummary.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pickupLocationType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/RangeValue.php b/src/Browse/Types/RangeValue.php new file mode 100644 index 000000000..6a4bffbdd --- /dev/null +++ b/src/Browse/Types/RangeValue.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'end' + ], + 'exclusiveEnd' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveEnd' + ], + 'exclusiveStart' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveStart' + ], + 'range' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'start' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'start' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/RatingHistogram.php b/src/Browse/Types/RatingHistogram.php new file mode 100644 index 000000000..e39cc130c --- /dev/null +++ b/src/Browse/Types/RatingHistogram.php @@ -0,0 +1,53 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'count' + ], + 'rating' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ReviewRating.php b/src/Browse/Types/ReviewRating.php new file mode 100644 index 000000000..ca457cf5d --- /dev/null +++ b/src/Browse/Types/ReviewRating.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'averageRating' + ], + 'ratingHistograms' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\RatingHistogram', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ratingHistograms' + ], + 'reviewCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reviewCount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/SearchForItemsRestRequest.php b/src/Browse/Types/SearchForItemsRestRequest.php new file mode 100644 index 000000000..f8a69afa1 --- /dev/null +++ b/src/Browse/Types/SearchForItemsRestRequest.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filter' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'q' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'q' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/SearchForItemsRestResponse.php b/src/Browse/Types/SearchForItemsRestResponse.php new file mode 100644 index 000000000..79c4afd9a --- /dev/null +++ b/src/Browse/Types/SearchForItemsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Browse/Types/SearchPagedCollection.php b/src/Browse/Types/SearchPagedCollection.php new file mode 100644 index 000000000..7f45ec732 --- /dev/null +++ b/src/Browse/Types/SearchPagedCollection.php @@ -0,0 +1,95 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'itemSummaries' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ItemSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemSummaries' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/Seller.php b/src/Browse/Types/Seller.php new file mode 100644 index 000000000..7b06fd0a5 --- /dev/null +++ b/src/Browse/Types/Seller.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feedbackPercentage' + ], + 'feedbackScore' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feedbackScore' + ], + 'sellerAccountType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerAccountType' + ], + 'username' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'username' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ShippingOption.php b/src/Browse/Types/ShippingOption.php new file mode 100644 index 000000000..bbe0cfb13 --- /dev/null +++ b/src/Browse/Types/ShippingOption.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingServiceName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceName' + ], + 'trademarkSymbol' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trademarkSymbol' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/ShippingOptionSummary.php b/src/Browse/Types/ShippingOptionSummary.php new file mode 100644 index 000000000..0b2688bab --- /dev/null +++ b/src/Browse/Types/ShippingOptionSummary.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Browse\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingCostType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCostType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/SortField.php b/src/Browse/Types/SortField.php new file mode 100644 index 000000000..050553c28 --- /dev/null +++ b/src/Browse/Types/SortField.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ascending' + ], + 'field' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/TargetLocation.php b/src/Browse/Types/TargetLocation.php new file mode 100644 index 000000000..601f55feb --- /dev/null +++ b/src/Browse/Types/TargetLocation.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unitOfMeasure' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/TimeDuration.php b/src/Browse/Types/TimeDuration.php new file mode 100644 index 000000000..b142cae14 --- /dev/null +++ b/src/Browse/Types/TimeDuration.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unit' + ], + 'value' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Browse/Types/TypedNameValue.php b/src/Browse/Types/TypedNameValue.php new file mode 100644 index 000000000..a5342ef89 --- /dev/null +++ b/src/Browse/Types/TypedNameValue.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ], + 'value' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/BulkDataExchange/Enums/AckValue.php b/src/BulkDataExchange/Enums/AckValue.php index 7177dcfe6..617928b80 100644 --- a/src/BulkDataExchange/Enums/AckValue.php +++ b/src/BulkDataExchange/Enums/AckValue.php @@ -1,15 +1,15 @@ [ - 'type' => 'DTS\eBaySDK\BusinessPoliciesManagement\Types\PositiveInteger', + 'type' => 'integer', 'repeatable' => false, 'attribute' => false, 'elementName' => 'id' diff --git a/src/BusinessPoliciesManagement/Types/FreightShipping.php b/src/BusinessPoliciesManagement/Types/FreightShipping.php index b8dd4fc4c..256368b80 100644 --- a/src/BusinessPoliciesManagement/Types/FreightShipping.php +++ b/src/BusinessPoliciesManagement/Types/FreightShipping.php @@ -1,8 +1,11 @@ 'is_array', 'bool' => 'is_bool', @@ -21,7 +25,7 @@ class ConfigurationResolver /** * @param array $definitions Definitions for each configuration option. */ - public function __construct($definitions) + public function __construct(array $definitions) { $this->definitions = $definitions; } @@ -87,7 +91,14 @@ public function resolveOptions(array $configuration) return $configuration; } - private function checkType($valid, $name, $provided) + /** + * @param array $valid Array of valid types. + * @param $name Name of the configuration option. + * @param $provided Value to check the type of. + * + * @throws \InvalidArgumentException. + */ + private function checkType(array $valid, $name, $provided) { foreach ($valid as $check) { if (isset(self::$typeMap[$check])) { @@ -110,7 +121,12 @@ private function checkType($valid, $name, $provided) throw new \InvalidArgumentException($msg); } - private function throwRequired($configuration) + /** + * @param array $configuration Associative array of configuration options. + * + * @throws \InvalidArgumentException. + */ + private function throwRequired(array $configuration) { $missing = []; diff --git a/src/Constants/GlobalIds.php b/src/Constants/GlobalIds.php index 8d45e22a4..8cb9e2ad1 100644 --- a/src/Constants/GlobalIds.php +++ b/src/Constants/GlobalIds.php @@ -48,7 +48,7 @@ class GlobalIds const MY = 'EBAY-MY'; // Canada (French) const FRCA = 'EBAY-FRCA'; - // Philippones + // Philippines const PH = 'EBAY-PH'; // Poland const PL = 'EBAY-PL'; diff --git a/src/Constants/MarketplaceIds.php b/src/Constants/MarketplaceIds.php new file mode 100644 index 000000000..5a079b5bb --- /dev/null +++ b/src/Constants/MarketplaceIds.php @@ -0,0 +1,55 @@ +devId = trim($devId); } + /** + * Returns the application ID. + * + * @return string + */ public function getAppId() { return $this->appId; } + /** + * Returns the certificate ID. + * + * @return string + */ public function getCertId() { return $this->certId; } + /** + * Returns the developer ID. + * + * @return string + */ public function getDevId() { return $this->devId; diff --git a/src/Credentials/CredentialsProvider.php b/src/Credentials/CredentialsProvider.php index 64ea9fa13..68f0ed269 100644 --- a/src/Credentials/CredentialsProvider.php +++ b/src/Credentials/CredentialsProvider.php @@ -1,8 +1,6 @@ 'X-EBAY-SOA-SECURITY-TOKEN: SECURITY-TOKEN', '/^(X-EBAY-SOA-SECURITY-APPNAME:.*)?$/im' => 'X-EBAY-SOA-SECURITY-APPNAME: SECURITY-APPNAME', @@ -24,7 +30,7 @@ class Debugger /** * @param array $config Debug configuration. */ - public function __construct($config) + public function __construct(array $config) { $this->config = $config + [ 'logfn' => function ($msg) { @@ -37,6 +43,9 @@ public function __construct($config) $this->config['scrub_strings'] += self::$credentialsStrings; } + /** + * @param string $info The debug information. + */ public function __invoke($info) { if ($this->config['scrub_credentials']) { diff --git a/src/Exceptions/InvalidPropertyTypeException.php b/src/Exceptions/InvalidPropertyTypeException.php index f1df89228..40d9066bf 100644 --- a/src/Exceptions/InvalidPropertyTypeException.php +++ b/src/Exceptions/InvalidPropertyTypeException.php @@ -6,6 +6,13 @@ */ class InvalidPropertyTypeException extends \LogicException { + /** + * @param string $property The property name. + * @param string $expectedType The excpected type of the value.. + * @param string $actualType The actual type of the value. + * @param int $code|0 + * @param \Exception + */ public function __construct($property, $expectedType, $actualType, $code = 0, \Exception $previous = null) { parent::__construct("Invalid property type provided for $property. Expected $expectedType but got $actualType", $code, $previous); diff --git a/src/Exceptions/UnknownPropertyException.php b/src/Exceptions/UnknownPropertyException.php index 60424bfa1..e1396a646 100644 --- a/src/Exceptions/UnknownPropertyException.php +++ b/src/Exceptions/UnknownPropertyException.php @@ -6,6 +6,11 @@ */ class UnknownPropertyException extends \LogicException { + /** + * @param string $property The property name that does not exist. + * @param int $code|0 + * @param \Exception + */ public function __construct($property, $code = 0, \Exception $previous = null) { parent::__construct("Unknown property $property", $code, $previous); diff --git a/src/Feedback/Enums/AckValue.php b/src/Feedback/Enums/AckValue.php new file mode 100644 index 000000000..54e78cc63 --- /dev/null +++ b/src/Feedback/Enums/AckValue.php @@ -0,0 +1,19 @@ + [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Feedback\Services\FeedbackService::API_VERSION + ], + 'authToken' => [ + 'valid' => ['string'], + 'required' => true + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @param string $operationName The name of the operation been called. + * + * @return array An associative array of eBay http headers. + */ + protected function getEbayHeaders($operationName) + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTH_TOKEN] = $this->getConfig('authToken'); + $headers[self::HDR_OPERATION_NAME] = $operationName; + + // Add optional headers. + if ($this->getConfig('apiVersion')) { + $headers[self::HDR_API_VERSION] = $this->getConfig('apiVersion'); + } + + return $headers; + } +} diff --git a/src/Feedback/Services/FeedbackService.php b/src/Feedback/Services/FeedbackService.php new file mode 100644 index 000000000..8c68048ca --- /dev/null +++ b/src/Feedback/Services/FeedbackService.php @@ -0,0 +1,134 @@ +createDSRSummaryByTransactionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByTransactionRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createDSRSummaryByTransactionAsync(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByTransactionRequest $request) + { + return $this->callOperationAsync( + 'createDSRSummaryByTransaction', + $request, + '\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByPeriodRequest $request + * @return \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse + */ + public function createDSRSummaryByPeriod(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByPeriodRequest $request) + { + return $this->createDSRSummaryByPeriodAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByPeriodRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createDSRSummaryByPeriodAsync(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByPeriodRequest $request) + { + return $this->callOperationAsync( + 'createDSRSummaryByPeriod', + $request, + '\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByCategoryRequest $request + * @return \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse + */ + public function createDSRSummaryByCategory(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByCategoryRequest $request) + { + return $this->createDSRSummaryByCategoryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByCategoryRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createDSRSummaryByCategoryAsync(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByCategoryRequest $request) + { + return $this->callOperationAsync( + 'createDSRSummaryByCategory', + $request, + '\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByShippingDetailRequest $request + * @return \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse + */ + public function createDSRSummaryByShippingDetail(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByShippingDetailRequest $request) + { + return $this->createDSRSummaryByShippingDetailAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByShippingDetailRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createDSRSummaryByShippingDetailAsync(\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByShippingDetailRequest $request) + { + return $this->callOperationAsync( + 'createDSRSummaryByShippingDetail', + $request, + '\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\GetDSRSummaryRequest $request + * @return \DTS\eBaySDK\Feedback\Types\GetDSRSummaryResponse + */ + public function getDSRSummary(\DTS\eBaySDK\Feedback\Types\GetDSRSummaryRequest $request) + { + return $this->getDSRSummaryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Feedback\Types\GetDSRSummaryRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDSRSummaryAsync(\DTS\eBaySDK\Feedback\Types\GetDSRSummaryRequest $request) + { + return $this->callOperationAsync( + 'getDSRSummary', + $request, + '\DTS\eBaySDK\Feedback\Types\GetDSRSummaryResponse' + ); + } +} diff --git a/src/Feedback/Types/BaseServiceRequest.php b/src/Feedback/Types/BaseServiceRequest.php new file mode 100644 index 000000000..cba4817f7 --- /dev/null +++ b/src/Feedback/Types/BaseServiceRequest.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/BaseServiceResponse.php b/src/Feedback/Types/BaseServiceResponse.php new file mode 100644 index 000000000..3f1b8282e --- /dev/null +++ b/src/Feedback/Types/BaseServiceResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\Feedback\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/CreateDSRSummaryByCategoryRequest.php b/src/Feedback/Types/CreateDSRSummaryByCategoryRequest.php new file mode 100644 index 000000000..f6a53bce5 --- /dev/null +++ b/src/Feedback/Types/CreateDSRSummaryByCategoryRequest.php @@ -0,0 +1,68 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\DateRange', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRange' + ], + 'dateRangeEventType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRangeEventType' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'createDSRSummaryByCategoryRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/CreateDSRSummaryByPeriodRequest.php b/src/Feedback/Types/CreateDSRSummaryByPeriodRequest.php new file mode 100644 index 000000000..26acaf7a9 --- /dev/null +++ b/src/Feedback/Types/CreateDSRSummaryByPeriodRequest.php @@ -0,0 +1,61 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\DateRange', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRange' + ], + 'dateRangeEventType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRangeEventType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'createDSRSummaryByPeriodRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/CreateDSRSummaryByShippingDetailRequest.php b/src/Feedback/Types/CreateDSRSummaryByShippingDetailRequest.php new file mode 100644 index 000000000..835c02933 --- /dev/null +++ b/src/Feedback/Types/CreateDSRSummaryByShippingDetailRequest.php @@ -0,0 +1,89 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\DateRange', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRange' + ], + 'dateRangeEventType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateRangeEventType' + ], + 'shippingCostType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCostType' + ], + 'shippingDestinationType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingDestinationType' + ], + 'shipToCountry' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shipToCountry' + ], + 'shippingService' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingService' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'createDSRSummaryByShippingDetailRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/CreateDSRSummaryByTransactionRequest.php b/src/Feedback/Types/CreateDSRSummaryByTransactionRequest.php new file mode 100644 index 000000000..88d9ce57f --- /dev/null +++ b/src/Feedback/Types/CreateDSRSummaryByTransactionRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\TransactionKey', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'transactionKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'createDSRSummaryByTransactionRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/CreateDSRSummaryResponse.php b/src/Feedback/Types/CreateDSRSummaryResponse.php new file mode 100644 index 000000000..be8904f0e --- /dev/null +++ b/src/Feedback/Types/CreateDSRSummaryResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'jobId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/DSRSummary.php b/src/Feedback/Types/DSRSummary.php new file mode 100644 index 000000000..d8287a08a --- /dev/null +++ b/src/Feedback/Types/DSRSummary.php @@ -0,0 +1,99 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'DSRType' + ], + 'DSRAverage' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'DSRAverage' + ], + 'totalRatingCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalRatingCount' + ], + 'rating1Count' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating1Count' + ], + 'rating2Count' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating2Count' + ], + 'rating3Count' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating3Count' + ], + 'rating4Count' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating4Count' + ], + 'rating5Count' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rating5Count' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/DateRange.php b/src/Feedback/Types/DateRange.php new file mode 100644 index 000000000..a8ea50be1 --- /dev/null +++ b/src/Feedback/Types/DateRange.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateFrom' + ], + 'dateTo' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dateTo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/ErrorData.php b/src/Feedback/Types/ErrorData.php new file mode 100644 index 000000000..50a0f5571 --- /dev/null +++ b/src/Feedback/Types/ErrorData.php @@ -0,0 +1,99 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ], + 'exceptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exceptionId' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\Feedback\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/ErrorMessage.php b/src/Feedback/Types/ErrorMessage.php new file mode 100644 index 000000000..fd35842fa --- /dev/null +++ b/src/Feedback/Types/ErrorMessage.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\ErrorData', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/ErrorParameter.php b/src/Feedback/Types/ErrorParameter.php new file mode 100644 index 000000000..cc6c766b5 --- /dev/null +++ b/src/Feedback/Types/ErrorParameter.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/GetDSRSummaryRequest.php b/src/Feedback/Types/GetDSRSummaryRequest.php new file mode 100644 index 000000000..edf08e605 --- /dev/null +++ b/src/Feedback/Types/GetDSRSummaryRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'jobId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getDSRSummaryRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/GetDSRSummaryResponse.php b/src/Feedback/Types/GetDSRSummaryResponse.php new file mode 100644 index 000000000..c0668a07b --- /dev/null +++ b/src/Feedback/Types/GetDSRSummaryResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Feedback\Types\DSRSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'DSRSummary' + ], + 'totalTransactionCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalTransactionCount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Feedback/Types/TransactionKey.php b/src/Feedback/Types/TransactionKey.php new file mode 100644 index 000000000..9f9e85c73 --- /dev/null +++ b/src/Feedback/Types/TransactionKey.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/FileTransfer/Enums/AckValue.php b/src/FileTransfer/Enums/AckValue.php index bb9016f70..21a333c25 100644 --- a/src/FileTransfer/Enums/AckValue.php +++ b/src/FileTransfer/Enums/AckValue.php @@ -1,15 +1,15 @@ hasAttachment()) { /** - Don't modify a request if the file attachment already exists. + * Don't modify a request if the file attachment already exists. */ if (!isset($request->fileAttachment)) { $request->fileAttachment = new \DTS\eBaySDK\FileTransfer\Types\FileAttachment(); @@ -83,7 +93,7 @@ protected function callOperationAsync($name, \DTS\eBaySDK\Types\BaseType $reques } /** - * Build the needed eBay HTTP headers. + * Builds the needed eBay HTTP headers. * * @param string $operationName The name of the operation been called. * diff --git a/src/FileTransfer/Services/FileTransferService.php b/src/FileTransfer/Services/FileTransferService.php index 5a9b2273b..a889dc6b4 100644 --- a/src/FileTransfer/Services/FileTransferService.php +++ b/src/FileTransfer/Services/FileTransferService.php @@ -1,8 +1,11 @@ 'https://api.sandbox.ebay.com/sell/fulfillment', + 'production' => 'https://api.ebay.com/sell/fulfillment' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Fulfillment\Services\FulfillmentService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Fulfillment/Services/FulfillmentService.php b/src/Fulfillment/Services/FulfillmentService.php new file mode 100644 index 000000000..5b0ac37b2 --- /dev/null +++ b/src/Fulfillment/Services/FulfillmentService.php @@ -0,0 +1,187 @@ + [ + 'method' => 'GET', + 'resource' => 'order', + 'responseClass' => '\DTS\eBaySDK\Fulfillment\Types\GetOrdersRestResponse', + 'params' => [ + 'filter' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'orderIds' => [ + 'valid' => ['string'] + ] + ] + ], + 'GetAnOrder' => [ + 'method' => 'GET', + 'resource' => 'order/{orderId}', + 'responseClass' => '\DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestResponse', + 'params' => [ + 'orderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateAShippingFulfillment' => [ + 'method' => 'POST', + 'resource' => 'order/{orderId}/shipping_fulfillment', + 'responseClass' => '\DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestResponse', + 'params' => [ + 'orderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetShippingFulfillments' => [ + 'method' => 'GET', + 'resource' => 'order/{orderId}/shipping_fulfillment', + 'responseClass' => '\DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestResponse', + 'params' => [ + 'orderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAShippingFulfillment' => [ + 'method' => 'GET', + 'resource' => 'order/{orderId}/shipping_fulfillment/{fulfillmentId}', + 'responseClass' => '\DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestResponse', + 'params' => [ + 'fulfillmentId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'orderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetOrdersRestRequest $request + * @return \DTS\eBaySDK\Fulfillment\Types\GetOrdersRestResponse + */ + public function getOrders(\DTS\eBaySDK\Fulfillment\Types\GetOrdersRestRequest $request) + { + return $this->getOrdersAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetOrdersRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrdersAsync(\DTS\eBaySDK\Fulfillment\Types\GetOrdersRestRequest $request) + { + return $this->callOperationAsync('GetOrders', $request); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestRequest $request + * @return \DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestResponse + */ + public function getAnOrder(\DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestRequest $request) + { + return $this->getAnOrderAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAnOrderAsync(\DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestRequest $request) + { + return $this->callOperationAsync('GetAnOrder', $request); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestRequest $request + * @return \DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestResponse + */ + public function createAShippingFulfillment(\DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestRequest $request) + { + return $this->createAShippingFulfillmentAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAShippingFulfillmentAsync(\DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestRequest $request) + { + return $this->callOperationAsync('CreateAShippingFulfillment', $request); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestRequest $request + * @return \DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestResponse + */ + public function getShippingFulfillments(\DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestRequest $request) + { + return $this->getShippingFulfillmentsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getShippingFulfillmentsAsync(\DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestRequest $request) + { + return $this->callOperationAsync('GetShippingFulfillments', $request); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestRequest $request + * @return \DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestResponse + */ + public function getAShippingFulfillment(\DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestRequest $request) + { + return $this->getAShippingFulfillmentAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAShippingFulfillmentAsync(\DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestRequest $request) + { + return $this->callOperationAsync('GetAShippingFulfillment', $request); + } +} diff --git a/src/Fulfillment/Types/Address.php b/src/Fulfillment/Types/Address.php new file mode 100644 index 000000000..e498a4fa9 --- /dev/null +++ b/src/Fulfillment/Types/Address.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'countryCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Amount.php b/src/Fulfillment/Types/Amount.php new file mode 100644 index 000000000..0fc085e96 --- /dev/null +++ b/src/Fulfillment/Types/Amount.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'convertedFromCurrency' + ], + 'convertedFromValue' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'convertedFromValue' + ], + 'currency' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/AppliedPromotion.php b/src/Fulfillment/Types/AppliedPromotion.php new file mode 100644 index 000000000..ca31a2527 --- /dev/null +++ b/src/Fulfillment/Types/AppliedPromotion.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'discountAmount' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountAmount' + ], + 'promotionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Attribute.php b/src/Fulfillment/Types/Attribute.php new file mode 100644 index 000000000..fc45b5ac7 --- /dev/null +++ b/src/Fulfillment/Types/Attribute.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Buyer.php b/src/Fulfillment/Types/Buyer.php new file mode 100644 index 000000000..617143332 --- /dev/null +++ b/src/Fulfillment/Types/Buyer.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'username' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/CancelRequest.php b/src/Fulfillment/Types/CancelRequest.php new file mode 100644 index 000000000..e9bf558ea --- /dev/null +++ b/src/Fulfillment/Types/CancelRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelCompletedDate' + ], + 'cancelInitiator' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelInitiator' + ], + 'cancelReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelReason' + ], + 'cancelRequestedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelRequestedDate' + ], + 'cancelRequestId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelRequestId' + ], + 'cancelRequestState' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelRequestState' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/CancelStatus.php b/src/Fulfillment/Types/CancelStatus.php new file mode 100644 index 000000000..c7bbbe7f6 --- /dev/null +++ b/src/Fulfillment/Types/CancelStatus.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelledDate' + ], + 'cancelRequests' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\CancelRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'cancelRequests' + ], + 'cancelState' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelState' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Contact.php b/src/Fulfillment/Types/Contact.php new file mode 100644 index 000000000..388a59684 --- /dev/null +++ b/src/Fulfillment/Types/Contact.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'companyName' + ], + 'contactAddress' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'contactAddress' + ], + 'fullName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fullName' + ], + 'primaryPhone' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\PhoneNumber', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryPhone' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/CreateAShippingFulfillmentRestRequest.php b/src/Fulfillment/Types/CreateAShippingFulfillmentRestRequest.php new file mode 100644 index 000000000..7c3bbdd6a --- /dev/null +++ b/src/Fulfillment/Types/CreateAShippingFulfillmentRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/CreateAShippingFulfillmentRestResponse.php b/src/Fulfillment/Types/CreateAShippingFulfillmentRestResponse.php new file mode 100644 index 000000000..40840832d --- /dev/null +++ b/src/Fulfillment/Types/CreateAShippingFulfillmentRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Fulfillment/Types/DeliveryCost.php b/src/Fulfillment/Types/DeliveryCost.php new file mode 100644 index 000000000..fd9043c75 --- /dev/null +++ b/src/Fulfillment/Types/DeliveryCost.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'importCharges' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingIntermediationFee' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingIntermediationFee' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ErrorDetailV3.php b/src/Fulfillment/Types/ErrorDetailV3.php new file mode 100644 index 000000000..27b2a2a0d --- /dev/null +++ b/src/Fulfillment/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ErrorParameterV3.php b/src/Fulfillment/Types/ErrorParameterV3.php new file mode 100644 index 000000000..0ac725d00 --- /dev/null +++ b/src/Fulfillment/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Fee.php b/src/Fulfillment/Types/Fee.php new file mode 100644 index 000000000..bb9ca8bfb --- /dev/null +++ b/src/Fulfillment/Types/Fee.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/FilterField.php b/src/Fulfillment/Types/FilterField.php new file mode 100644 index 000000000..4c5a6836f --- /dev/null +++ b/src/Fulfillment/Types/FilterField.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ], + 'range' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\RangeValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'set' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'set' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/FulfillmentInstructionsType.php b/src/Fulfillment/Types/FulfillmentInstructionsType.php new file mode 100644 index 000000000..171ae33d2 --- /dev/null +++ b/src/Fulfillment/Types/FulfillmentInstructionsType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/FulfillmentStartInstruction.php b/src/Fulfillment/Types/FulfillmentStartInstruction.php new file mode 100644 index 000000000..6c457cd42 --- /dev/null +++ b/src/Fulfillment/Types/FulfillmentStartInstruction.php @@ -0,0 +1,81 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ebaySupportedFulfillment' + ], + 'finalDestinationAddress' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'finalDestinationAddress' + ], + 'fulfillmentInstructionsType' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\FulfillmentInstructionsType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentInstructionsType' + ], + 'maxEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxEstimatedDeliveryDate' + ], + 'minEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minEstimatedDeliveryDate' + ], + 'shippingStep' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ShippingStep', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingStep' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/GetAShippingFulfillmentRestRequest.php b/src/Fulfillment/Types/GetAShippingFulfillmentRestRequest.php new file mode 100644 index 000000000..2e17dab41 --- /dev/null +++ b/src/Fulfillment/Types/GetAShippingFulfillmentRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentId' + ], + 'orderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/GetAShippingFulfillmentRestResponse.php b/src/Fulfillment/Types/GetAShippingFulfillmentRestResponse.php new file mode 100644 index 000000000..004bdcfe3 --- /dev/null +++ b/src/Fulfillment/Types/GetAShippingFulfillmentRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Fulfillment/Types/GetAnOrderRestRequest.php b/src/Fulfillment/Types/GetAnOrderRestRequest.php new file mode 100644 index 000000000..0a6775334 --- /dev/null +++ b/src/Fulfillment/Types/GetAnOrderRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/GetAnOrderRestResponse.php b/src/Fulfillment/Types/GetAnOrderRestResponse.php new file mode 100644 index 000000000..3542b4069 --- /dev/null +++ b/src/Fulfillment/Types/GetAnOrderRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Fulfillment/Types/GetOrdersRestRequest.php b/src/Fulfillment/Types/GetOrdersRestRequest.php new file mode 100644 index 000000000..adfb6aa17 --- /dev/null +++ b/src/Fulfillment/Types/GetOrdersRestRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filter' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'orderIds' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderIds' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/GetOrdersRestResponse.php b/src/Fulfillment/Types/GetOrdersRestResponse.php new file mode 100644 index 000000000..13aa3c601 --- /dev/null +++ b/src/Fulfillment/Types/GetOrdersRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Fulfillment/Types/GetShippingFulfillmentsRestRequest.php b/src/Fulfillment/Types/GetShippingFulfillmentsRestRequest.php new file mode 100644 index 000000000..b0de835e1 --- /dev/null +++ b/src/Fulfillment/Types/GetShippingFulfillmentsRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/GetShippingFulfillmentsRestResponse.php b/src/Fulfillment/Types/GetShippingFulfillmentsRestResponse.php new file mode 100644 index 000000000..8511c4f7a --- /dev/null +++ b/src/Fulfillment/Types/GetShippingFulfillmentsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Fulfillment/Types/GiftDetails.php b/src/Fulfillment/Types/GiftDetails.php new file mode 100644 index 000000000..3b2b1cd91 --- /dev/null +++ b/src/Fulfillment/Types/GiftDetails.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'recipientEmail' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recipientEmail' + ], + 'senderName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'senderName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/LineItem.php b/src/Fulfillment/Types/LineItem.php new file mode 100644 index 000000000..40abc0a16 --- /dev/null +++ b/src/Fulfillment/Types/LineItem.php @@ -0,0 +1,165 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\AppliedPromotion', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'appliedPromotions' + ], + 'deliveryCost' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\DeliveryCost', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryCost' + ], + 'discountedLineItemCost' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountedLineItemCost' + ], + 'giftDetails' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\GiftDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'giftDetails' + ], + 'legacyItemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyItemId' + ], + 'legacyVariationId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyVariationId' + ], + 'lineItemCost' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemCost' + ], + 'lineItemFulfillmentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemFulfillmentStatus' + ], + 'lineItemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'listingMarketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingMarketplaceId' + ], + 'properties' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\LineItemProperties', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'properties' + ], + 'purchaseMarketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseMarketplaceId' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ], + 'soldFormat' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldFormat' + ], + 'taxes' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Tax', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'taxes' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'total' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/LineItemProperties.php b/src/Fulfillment/Types/LineItemProperties.php new file mode 100644 index 000000000..c8394d6fc --- /dev/null +++ b/src/Fulfillment/Types/LineItemProperties.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerProtection' + ], + 'fromBestOffer' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fromBestOffer' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/LineItemReference.php b/src/Fulfillment/Types/LineItemReference.php new file mode 100644 index 000000000..c68982a70 --- /dev/null +++ b/src/Fulfillment/Types/LineItemReference.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Order.php b/src/Fulfillment/Types/Order.php new file mode 100644 index 000000000..5ee51e302 --- /dev/null +++ b/src/Fulfillment/Types/Order.php @@ -0,0 +1,137 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Buyer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyer' + ], + 'buyerCheckoutNotes' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerCheckoutNotes' + ], + 'cancelStatus' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\CancelStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelStatus' + ], + 'creationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'fulfillmentHrefs' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'fulfillmentHrefs' + ], + 'fulfillmentStartInstructions' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\FulfillmentStartInstruction', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'fulfillmentStartInstructions' + ], + 'lastModifiedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastModifiedDate' + ], + 'lineItems' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\LineItem', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'orderFulfillmentStatus' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\OrderFulfillmentStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderFulfillmentStatus' + ], + 'orderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderId' + ], + 'orderPaymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderPaymentStatus' + ], + 'paymentSummary' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\PaymentSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentSummary' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\PricingSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'sellerId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/OrderFulfillmentStatus.php b/src/Fulfillment/Types/OrderFulfillmentStatus.php new file mode 100644 index 000000000..0079ffd21 --- /dev/null +++ b/src/Fulfillment/Types/OrderFulfillmentStatus.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/OrderRefund.php b/src/Fulfillment/Types/OrderRefund.php new file mode 100644 index 000000000..091941d06 --- /dev/null +++ b/src/Fulfillment/Types/OrderRefund.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'refundDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDate' + ], + 'refundReferenceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundReferenceId' + ], + 'refundStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/OrderSearchPagedCollection.php b/src/Fulfillment/Types/OrderSearchPagedCollection.php new file mode 100644 index 000000000..afb5f9e8a --- /dev/null +++ b/src/Fulfillment/Types/OrderSearchPagedCollection.php @@ -0,0 +1,95 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'orders' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Order', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'orders' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Payment.php b/src/Fulfillment/Types/Payment.php new file mode 100644 index 000000000..d671196da --- /dev/null +++ b/src/Fulfillment/Types/Payment.php @@ -0,0 +1,81 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'paymentDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentDate' + ], + 'paymentHolds' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\PaymentHold', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentHolds' + ], + 'paymentMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethod' + ], + 'paymentReferenceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentReferenceId' + ], + 'paymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/PaymentHold.php b/src/Fulfillment/Types/PaymentHold.php new file mode 100644 index 000000000..54cc0b68f --- /dev/null +++ b/src/Fulfillment/Types/PaymentHold.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expectedReleaseDate' + ], + 'holdAmount' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdAmount' + ], + 'holdReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdReason' + ], + 'holdState' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdState' + ], + 'releaseDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'releaseDate' + ], + 'sellerActionsToRelease' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\SellerActionsToRelease', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sellerActionsToRelease' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/PaymentSummary.php b/src/Fulfillment/Types/PaymentSummary.php new file mode 100644 index 000000000..774ae6466 --- /dev/null +++ b/src/Fulfillment/Types/PaymentSummary.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Payment', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'payments' + ], + 'refunds' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\OrderRefund', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'refunds' + ], + 'totalDueSeller' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalDueSeller' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/PhoneNumber.php b/src/Fulfillment/Types/PhoneNumber.php new file mode 100644 index 000000000..c25ae4d13 --- /dev/null +++ b/src/Fulfillment/Types/PhoneNumber.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phoneNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/PricingSummary.php b/src/Fulfillment/Types/PricingSummary.php new file mode 100644 index 000000000..370a51683 --- /dev/null +++ b/src/Fulfillment/Types/PricingSummary.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adjustment' + ], + 'deliveryCost' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryCost' + ], + 'deliveryDiscount' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryDiscount' + ], + 'fee' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fee' + ], + 'priceDiscountSubtotal' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceDiscountSubtotal' + ], + 'priceSubtotal' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceSubtotal' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ], + 'total' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/RangeValue.php b/src/Fulfillment/Types/RangeValue.php new file mode 100644 index 000000000..60e477e4b --- /dev/null +++ b/src/Fulfillment/Types/RangeValue.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'end' + ], + 'exclusiveEnd' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveEnd' + ], + 'exclusiveStart' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exclusiveStart' + ], + 'range' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'range' + ], + 'start' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'start' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/SellerActionsToRelease.php b/src/Fulfillment/Types/SellerActionsToRelease.php new file mode 100644 index 000000000..261851dd8 --- /dev/null +++ b/src/Fulfillment/Types/SellerActionsToRelease.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerActionToRelease' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ShippingFulfillment.php b/src/Fulfillment/Types/ShippingFulfillment.php new file mode 100644 index 000000000..24570c128 --- /dev/null +++ b/src/Fulfillment/Types/ShippingFulfillment.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentId' + ], + 'lineItems' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\LineItemReference', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'shipmentTrackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentTrackingNumber' + ], + 'shippedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedDate' + ], + 'shippingCarrierCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierCode' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ShippingFulfillmentDetails.php b/src/Fulfillment/Types/ShippingFulfillmentDetails.php new file mode 100644 index 000000000..de6d5660e --- /dev/null +++ b/src/Fulfillment/Types/ShippingFulfillmentDetails.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\LineItemReference', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'shippedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedDate' + ], + 'shippingCarrierCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierCode' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ShippingFulfillmentPagedCollection.php b/src/Fulfillment/Types/ShippingFulfillmentPagedCollection.php new file mode 100644 index 000000000..ac577a15d --- /dev/null +++ b/src/Fulfillment/Types/ShippingFulfillmentPagedCollection.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ShippingFulfillment', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'fulfillments' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/ShippingStep.php b/src/Fulfillment/Types/ShippingStep.php new file mode 100644 index 000000000..46a748d43 --- /dev/null +++ b/src/Fulfillment/Types/ShippingStep.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierCode' + ], + 'shippingServiceCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceCode' + ], + 'shipTo' => [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Contact', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipTo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Fulfillment/Types/Tax.php b/src/Fulfillment/Types/Tax.php new file mode 100644 index 000000000..51ff37cb2 --- /dev/null +++ b/src/Fulfillment/Types/Tax.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Fulfillment\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/HalfFinding/Enums/AckValue.php b/src/HalfFinding/Enums/AckValue.php index 6281debb7..99285f5c8 100644 --- a/src/HalfFinding/Enums/AckValue.php +++ b/src/HalfFinding/Enums/AckValue.php @@ -1,15 +1,15 @@ [ - 'type' => 'DTS\eBaySDK\HalfFinding\Types\PositiveInteger', + 'type' => 'integer', 'repeatable' => false, 'attribute' => false, 'elementName' => 'id' diff --git a/src/HalfFinding/Types/FindItemsRequest.php b/src/HalfFinding/Types/FindItemsRequest.php index 36e22df31..e44a7ca4f 100644 --- a/src/HalfFinding/Types/FindItemsRequest.php +++ b/src/HalfFinding/Types/FindItemsRequest.php @@ -1,8 +1,11 @@ true, + 'curl' => true, 'debug' => true, 'delay' => true, + 'http_errors' => true, 'proxy' => true, 'timeout' => true, 'verify' => true ]; /** - * @param ClientInterface $client + * @param \GuzzleHttp\ClientInterface $client The client for making the HTTP request. */ public function __construct(ClientInterface $client = null) { @@ -36,12 +38,11 @@ public function __construct(ClientInterface $client = null) } /** - * @param Psr7Request $request - * @param Array $options Http options for the client. + * @param \Psr7Request|RequestInterface $request + * @param array $options Http options for the client. * - * @return GuzzleHttp\Promise\PromiseInterface Promise that will be resolved with a - * Psr\Http\Message\ResponseInterface - * response object. + * @return \GuzzleHttp\Promise\PromiseInterface Promise that will be resolved with a + * Psr\Http\Message\ResponseInterface response object. */ public function __invoke(RequestInterface $request, array $options) { diff --git a/src/HttpHeadersTrait.php b/src/HttpHeadersTrait.php new file mode 100644 index 000000000..9e719364f --- /dev/null +++ b/src/HttpHeadersTrait.php @@ -0,0 +1,155 @@ +getHeaders() as $name => $values) { + * echo $name . ": " . implode(", ", $values); + * } + * + * // Emit headers iteratively: + * foreach ($obj->getHeaders() as $name => $values) { + * foreach ($values as $value) { + * header(sprintf('%s: %s', $name, $value), false); + * } + * } + * + * While header names are not case-sensitive, getHeaders() will preserve the + * exact case in which headers were originally specified. + * + * @return string[][] Returns an associative array of headers. Each + * key will be a header name, and each value will be an array of strings + * for that header. + */ + public function getHeaders() + { + return $this->headers; + } + + /** + * Checks if a header exists by the given case-insensitive name. + * + * @param string $header Case-insensitive header field name. + * + * @return bool Returns true if any header names match the given header + * name using a case-insensitive string comparison. Returns false if + * no matching header name is found in the message. + */ + public function hasHeader($header) + { + return isset($this->headerNames[strtolower($header)]); + } + + /** + * Retrieves a message header value by the given case-insensitive name. + * + * This method returns an array of all the header values of the given + * case-insensitive header name. + * + * If the header does not appear in the message, this method will return an + * empty array. + * + * @param string $header Case-insensitive header field name. + * + * @return string[] An array of string values as provided for the given + * header. If the header does not appear in the message, this method will + * return an empty array. + */ + public function getHeader($header) + { + $header = strtolower($header); + + if (!isset($this->headerNames[$header])) { + return []; + } + + $header = $this->headerNames[$header]; + + return $this->headers[$header]; + } + + /** + * Retrieves a comma-separated string of the values for a single header. + * + * This method returns all of the header values of the given + * case-insensitive header name as a string concatenated together using + * a comma. + * + * NOTE: Not all header values may be appropriately represented using + * comma concatenation. For such headers, use getHeader() instead + * and supply your own delimiter when concatenating. + * + * If the header does not appear in the message, this method will return + * an empty string. + * + * @param string $header Case-insensitive header field name. + * + * @return string A string of values as provided for the given header + * concatenated together using a comma. If the header does not appear in + * the message, this method will return an empty string. + */ + public function getHeaderLine($header) + { + return implode(', ', $this->getHeader($header)); + } + + /** + * Stores the passed HTTP headers. Ensures header values can be access in a case-insenitive way + * while preserving the original case of the header name. + * + * @param array $headers Associative array of HTTP headers. + */ + private function setHeaders(array $headers) + { + $this->headerNames = $this->headers = []; + foreach ($headers as $header => $value) { + if (!is_array($value)) { + $value = [$value]; + } + + $value = $this->trimHeaderValues($value); + $normalized = strtolower($header); + if (isset($this->headerNames[$normalized])) { + $header = $this->headerNames[$normalized]; + $this->headers[$header] = array_merge($this->headers[$header], $value); + } else { + $this->headerNames[$normalized] = $header; + $this->headers[$header] = $value; + } + } + } + + /** + * Trims whitespace from the header values. + * + * @param string[] $values Header values + * + * @return string[] Trimmed header values + */ + private function trimHeaderValues(array $values) + { + return array_map(function ($value) { + return trim($value, " \t"); + }, $values); + } +} diff --git a/src/Inventory/Enums/AvailabilityTypeEnum.php b/src/Inventory/Enums/AvailabilityTypeEnum.php new file mode 100644 index 000000000..7885c7cfc --- /dev/null +++ b/src/Inventory/Enums/AvailabilityTypeEnum.php @@ -0,0 +1,18 @@ + 'https://api.sandbox.ebay.com/sell/inventory', + 'production' => 'https://api.ebay.com/sell/inventory' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Inventory\Services\InventoryService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Inventory/Services/InventoryService.php b/src/Inventory/Services/InventoryService.php new file mode 100644 index 000000000..70a2bba83 --- /dev/null +++ b/src/Inventory/Services/InventoryService.php @@ -0,0 +1,759 @@ + [ + 'method' => 'POST', + 'resource' => 'bulk_update_price_quantity', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestResponse', + 'params' => [ + ] + ], + 'CreateOrReplaceInventoryItem' => [ + 'method' => 'PUT', + 'resource' => 'inventory_item/{sku}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteInventoryItem' => [ + 'method' => 'DELETE', + 'resource' => 'inventory_item/{sku}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInventoryItem' => [ + 'method' => 'GET', + 'resource' => 'inventory_item/{sku}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetInventoryItemRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInventoryItems' => [ + 'method' => 'GET', + 'resource' => 'inventory_item', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestResponse', + 'params' => [ + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ] + ] + ], + 'CreateOrReplaceInventoryItemGroup' => [ + 'method' => 'PUT', + 'resource' => 'inventory_item_group/{inventoryItemGroupKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestResponse', + 'params' => [ + 'inventoryItemGroupKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteInventoryItemGroup' => [ + 'method' => 'DELETE', + 'resource' => 'inventory_item_group/{inventoryItemGroupKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestResponse', + 'params' => [ + 'inventoryItemGroupKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInventoryItemGroup' => [ + 'method' => 'GET', + 'resource' => 'inventory_item_group/{inventoryItemGroupKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestResponse', + 'params' => [ + 'inventoryItemGroupKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateInventoryLocation' => [ + 'method' => 'POST', + 'resource' => 'location/{merchantLocationKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteInventoryLocation' => [ + 'method' => 'DELETE', + 'resource' => 'location/{merchantLocationKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DisableInventoryLocation' => [ + 'method' => 'POST', + 'resource' => 'location/{merchantLocationKey}/disable', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'EnableInventoryLocation' => [ + 'method' => 'POST', + 'resource' => 'location/{merchantLocationKey}/enable', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInventoryLocation' => [ + 'method' => 'GET', + 'resource' => 'location/{merchantLocationKey}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInventoryLocations' => [ + 'method' => 'GET', + 'resource' => 'location', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestResponse', + 'params' => [ + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ] + ] + ], + 'UpdateInventoryLocation' => [ + 'method' => 'POST', + 'resource' => 'location/{merchantLocationKey}/update_location_details', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestResponse', + 'params' => [ + 'merchantLocationKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateOffer' => [ + 'method' => 'POST', + 'resource' => 'offer', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\CreateOfferRestResponse', + 'params' => [ + ] + ], + 'DeleteOffer' => [ + 'method' => 'DELETE', + 'resource' => 'offer/{offerId}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DeleteOfferRestResponse', + 'params' => [ + 'offerId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetListingFees' => [ + 'method' => 'POST', + 'resource' => 'offer/get_listing_fees', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetListingFeesRestResponse', + 'params' => [ + ] + ], + 'GetOffer' => [ + 'method' => 'GET', + 'resource' => 'offer/{offerId}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetOfferRestResponse', + 'params' => [ + 'offerId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetOffers' => [ + 'method' => 'GET', + 'resource' => 'offer', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetOffersRestResponse', + 'params' => [ + 'format' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'marketplace_id' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'PublishOffer' => [ + 'method' => 'POST', + 'resource' => 'offer/{offerId}/publish', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\PublishOfferRestResponse', + 'params' => [ + 'offerId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateOffer' => [ + 'method' => 'PUT', + 'resource' => 'offer/{offer_Id}', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\UpdateOfferRestResponse', + 'params' => [ + 'offerId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateOrReplaceProductCompatibility' => [ + 'method' => 'PUT', + 'resource' => 'inventory_item/{sku}/product_compatibility', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteProductCompatibility' => [ + 'method' => 'DELETE', + 'resource' => 'inventory_item/{sku}/product_compatibility', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetProductCompatibility' => [ + 'method' => 'GET', + 'resource' => 'inventory_item/{sku}/product_compatibility', + 'responseClass' => '\DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestResponse', + 'params' => [ + 'sku' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestResponse + */ + public function bulkUpdatePriceAndQuantity(\DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestRequest $request) + { + return $this->bulkUpdatePriceAndQuantityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkUpdatePriceAndQuantityAsync(\DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestRequest $request) + { + return $this->callOperationAsync('BulkUpdatePriceAndQuantity', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestResponse + */ + public function createOrReplaceInventoryItem(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestRequest $request) + { + return $this->createOrReplaceInventoryItemAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrReplaceInventoryItemAsync(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestRequest $request) + { + return $this->callOperationAsync('CreateOrReplaceInventoryItem', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestResponse + */ + public function deleteInventoryItem(\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestRequest $request) + { + return $this->deleteInventoryItemAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteInventoryItemAsync(\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestRequest $request) + { + return $this->callOperationAsync('DeleteInventoryItem', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetInventoryItemRestResponse + */ + public function getInventoryItem(\DTS\eBaySDK\Inventory\Types\GetInventoryItemRestRequest $request) + { + return $this->getInventoryItemAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInventoryItemAsync(\DTS\eBaySDK\Inventory\Types\GetInventoryItemRestRequest $request) + { + return $this->callOperationAsync('GetInventoryItem', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestResponse + */ + public function getInventoryItems(\DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestRequest $request) + { + return $this->getInventoryItemsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInventoryItemsAsync(\DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestRequest $request) + { + return $this->callOperationAsync('GetInventoryItems', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestResponse + */ + public function createOrReplaceInventoryItemGroup(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestRequest $request) + { + return $this->createOrReplaceInventoryItemGroupAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrReplaceInventoryItemGroupAsync(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestRequest $request) + { + return $this->callOperationAsync('CreateOrReplaceInventoryItemGroup', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestResponse + */ + public function deleteInventoryItemGroup(\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestRequest $request) + { + return $this->deleteInventoryItemGroupAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteInventoryItemGroupAsync(\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestRequest $request) + { + return $this->callOperationAsync('DeleteInventoryItemGroup', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestResponse + */ + public function getInventoryItemGroup(\DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestRequest $request) + { + return $this->getInventoryItemGroupAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInventoryItemGroupAsync(\DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestRequest $request) + { + return $this->callOperationAsync('GetInventoryItemGroup', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestResponse + */ + public function createInventoryLocation(\DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestRequest $request) + { + return $this->createInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('CreateInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestResponse + */ + public function deleteInventoryLocation(\DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestRequest $request) + { + return $this->deleteInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('DeleteInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestResponse + */ + public function disableInventoryLocation(\DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestRequest $request) + { + return $this->disableInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function disableInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('DisableInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestResponse + */ + public function enableInventoryLocation(\DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestRequest $request) + { + return $this->enableInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function enableInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('EnableInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestResponse + */ + public function getInventoryLocation(\DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestRequest $request) + { + return $this->getInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('GetInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestResponse + */ + public function getInventoryLocations(\DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestRequest $request) + { + return $this->getInventoryLocationsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInventoryLocationsAsync(\DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestRequest $request) + { + return $this->callOperationAsync('GetInventoryLocations', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestResponse + */ + public function updateInventoryLocation(\DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestRequest $request) + { + return $this->updateInventoryLocationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateInventoryLocationAsync(\DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestRequest $request) + { + return $this->callOperationAsync('UpdateInventoryLocation', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOfferRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\CreateOfferRestResponse + */ + public function createOffer(\DTS\eBaySDK\Inventory\Types\CreateOfferRestRequest $request) + { + return $this->createOfferAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOfferRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOfferAsync(\DTS\eBaySDK\Inventory\Types\CreateOfferRestRequest $request) + { + return $this->callOperationAsync('CreateOffer', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteOfferRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DeleteOfferRestResponse + */ + public function deleteOffer(\DTS\eBaySDK\Inventory\Types\DeleteOfferRestRequest $request) + { + return $this->deleteOfferAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteOfferRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteOfferAsync(\DTS\eBaySDK\Inventory\Types\DeleteOfferRestRequest $request) + { + return $this->callOperationAsync('DeleteOffer', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetListingFeesRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetListingFeesRestResponse + */ + public function getListingFees(\DTS\eBaySDK\Inventory\Types\GetListingFeesRestRequest $request) + { + return $this->getListingFeesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetListingFeesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getListingFeesAsync(\DTS\eBaySDK\Inventory\Types\GetListingFeesRestRequest $request) + { + return $this->callOperationAsync('GetListingFees', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetOfferRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetOfferRestResponse + */ + public function getOffer(\DTS\eBaySDK\Inventory\Types\GetOfferRestRequest $request) + { + return $this->getOfferAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetOfferRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOfferAsync(\DTS\eBaySDK\Inventory\Types\GetOfferRestRequest $request) + { + return $this->callOperationAsync('GetOffer', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetOffersRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetOffersRestResponse + */ + public function getOffers(\DTS\eBaySDK\Inventory\Types\GetOffersRestRequest $request) + { + return $this->getOffersAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetOffersRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOffersAsync(\DTS\eBaySDK\Inventory\Types\GetOffersRestRequest $request) + { + return $this->callOperationAsync('GetOffers', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\PublishOfferRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\PublishOfferRestResponse + */ + public function publishOffer(\DTS\eBaySDK\Inventory\Types\PublishOfferRestRequest $request) + { + return $this->publishOfferAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\PublishOfferRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function publishOfferAsync(\DTS\eBaySDK\Inventory\Types\PublishOfferRestRequest $request) + { + return $this->callOperationAsync('PublishOffer', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\UpdateOfferRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\UpdateOfferRestResponse + */ + public function updateOffer(\DTS\eBaySDK\Inventory\Types\UpdateOfferRestRequest $request) + { + return $this->updateOfferAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\UpdateOfferRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateOfferAsync(\DTS\eBaySDK\Inventory\Types\UpdateOfferRestRequest $request) + { + return $this->callOperationAsync('UpdateOffer', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestResponse + */ + public function createOrReplaceProductCompatibility(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestRequest $request) + { + return $this->createOrReplaceProductCompatibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrReplaceProductCompatibilityAsync(\DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestRequest $request) + { + return $this->callOperationAsync('CreateOrReplaceProductCompatibility', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestResponse + */ + public function deleteProductCompatibility(\DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestRequest $request) + { + return $this->deleteProductCompatibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteProductCompatibilityAsync(\DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestRequest $request) + { + return $this->callOperationAsync('DeleteProductCompatibility', $request); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestRequest $request + * @return \DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestResponse + */ + public function getProductCompatibility(\DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestRequest $request) + { + return $this->getProductCompatibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductCompatibilityAsync(\DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestRequest $request) + { + return $this->callOperationAsync('GetProductCompatibility', $request); + } +} diff --git a/src/Inventory/Types/Address.php b/src/Inventory/Types/Address.php new file mode 100644 index 000000000..bdd766308 --- /dev/null +++ b/src/Inventory/Types/Address.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Amount.php b/src/Inventory/Types/Amount.php new file mode 100644 index 000000000..73e6b879f --- /dev/null +++ b/src/Inventory/Types/Amount.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Availability.php b/src/Inventory/Types/Availability.php new file mode 100644 index 000000000..2d5e39414 --- /dev/null +++ b/src/Inventory/Types/Availability.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PickupAtLocationAvailability', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'pickupAtLocationAvailability' + ], + 'shipToLocationAvailability' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ShipToLocationAvailability', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocationAvailability' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/BaseResponse.php b/src/Inventory/Types/BaseResponse.php new file mode 100644 index 000000000..1b1326fee --- /dev/null +++ b/src/Inventory/Types/BaseResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/BulkPriceQuantity.php b/src/Inventory/Types/BulkPriceQuantity.php new file mode 100644 index 000000000..2ad48b07a --- /dev/null +++ b/src/Inventory/Types/BulkPriceQuantity.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PriceQuantity', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'requests' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/BulkPriceQuantityResponse.php b/src/Inventory/Types/BulkPriceQuantityResponse.php new file mode 100644 index 000000000..4b27936f1 --- /dev/null +++ b/src/Inventory/Types/BulkPriceQuantityResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PriceQuantityResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'responses' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/BulkUpdatePriceAndQuantityRestRequest.php b/src/Inventory/Types/BulkUpdatePriceAndQuantityRestRequest.php new file mode 100644 index 000000000..5a8b164f9 --- /dev/null +++ b/src/Inventory/Types/BulkUpdatePriceAndQuantityRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/BulkUpdatePriceAndQuantityRestResponse.php b/src/Inventory/Types/BulkUpdatePriceAndQuantityRestResponse.php new file mode 100644 index 000000000..e95e02107 --- /dev/null +++ b/src/Inventory/Types/BulkUpdatePriceAndQuantityRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/Compatibility.php b/src/Inventory/Types/Compatibility.php new file mode 100644 index 000000000..ad0273887 --- /dev/null +++ b/src/Inventory/Types/Compatibility.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\CompatibleProduct', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'compatibleProducts' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CompatibleProduct.php b/src/Inventory/Types/CompatibleProduct.php new file mode 100644 index 000000000..ef74a82c2 --- /dev/null +++ b/src/Inventory/Types/CompatibleProduct.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'notes' + ], + 'productFamilyProperties' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ProductFamilyProperties', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productFamilyProperties' + ], + 'productIdentifier' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ProductIdentifier', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productIdentifier' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateInventoryLocationRestRequest.php b/src/Inventory/Types/CreateInventoryLocationRestRequest.php new file mode 100644 index 000000000..2ed3934b1 --- /dev/null +++ b/src/Inventory/Types/CreateInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateInventoryLocationRestResponse.php b/src/Inventory/Types/CreateInventoryLocationRestResponse.php new file mode 100644 index 000000000..898526adc --- /dev/null +++ b/src/Inventory/Types/CreateInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/CreateOfferRestRequest.php b/src/Inventory/Types/CreateOfferRestRequest.php new file mode 100644 index 000000000..dba4b0037 --- /dev/null +++ b/src/Inventory/Types/CreateOfferRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateOfferRestResponse.php b/src/Inventory/Types/CreateOfferRestResponse.php new file mode 100644 index 000000000..47ef8910c --- /dev/null +++ b/src/Inventory/Types/CreateOfferRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequest.php b/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequest.php new file mode 100644 index 000000000..12405362c --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryItemGroupKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponse.php b/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponse.php new file mode 100644 index 000000000..29dc9cf3b --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceInventoryItemRestRequest.php b/src/Inventory/Types/CreateOrReplaceInventoryItemRestRequest.php new file mode 100644 index 000000000..0c96582d1 --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceInventoryItemRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceInventoryItemRestResponse.php b/src/Inventory/Types/CreateOrReplaceInventoryItemRestResponse.php new file mode 100644 index 000000000..1d9ee2f1f --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceInventoryItemRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequest.php b/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequest.php new file mode 100644 index 000000000..ed9e3893b --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponse.php b/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponse.php new file mode 100644 index 000000000..5fb8aea03 --- /dev/null +++ b/src/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/DeleteInventoryItemGroupRestRequest.php b/src/Inventory/Types/DeleteInventoryItemGroupRestRequest.php new file mode 100644 index 000000000..69dc7ef4e --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryItemGroupRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryItemGroupKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DeleteInventoryItemGroupRestResponse.php b/src/Inventory/Types/DeleteInventoryItemGroupRestResponse.php new file mode 100644 index 000000000..2c6a31ab5 --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryItemGroupRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/DeleteInventoryItemRestRequest.php b/src/Inventory/Types/DeleteInventoryItemRestRequest.php new file mode 100644 index 000000000..68495f252 --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryItemRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DeleteInventoryItemRestResponse.php b/src/Inventory/Types/DeleteInventoryItemRestResponse.php new file mode 100644 index 000000000..88a0dd42c --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryItemRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/DeleteInventoryLocationRestRequest.php b/src/Inventory/Types/DeleteInventoryLocationRestRequest.php new file mode 100644 index 000000000..f57d40623 --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DeleteInventoryLocationRestResponse.php b/src/Inventory/Types/DeleteInventoryLocationRestResponse.php new file mode 100644 index 000000000..c9dd2db90 --- /dev/null +++ b/src/Inventory/Types/DeleteInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/DeleteOfferRestRequest.php b/src/Inventory/Types/DeleteOfferRestRequest.php new file mode 100644 index 000000000..e2155dc52 --- /dev/null +++ b/src/Inventory/Types/DeleteOfferRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DeleteOfferRestResponse.php b/src/Inventory/Types/DeleteOfferRestResponse.php new file mode 100644 index 000000000..e53fabb44 --- /dev/null +++ b/src/Inventory/Types/DeleteOfferRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/DeleteProductCompatibilityRestRequest.php b/src/Inventory/Types/DeleteProductCompatibilityRestRequest.php new file mode 100644 index 000000000..2db4ec5da --- /dev/null +++ b/src/Inventory/Types/DeleteProductCompatibilityRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DeleteProductCompatibilityRestResponse.php b/src/Inventory/Types/DeleteProductCompatibilityRestResponse.php new file mode 100644 index 000000000..d30ac8571 --- /dev/null +++ b/src/Inventory/Types/DeleteProductCompatibilityRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/Dimension.php b/src/Inventory/Types/Dimension.php new file mode 100644 index 000000000..fc3ff9b34 --- /dev/null +++ b/src/Inventory/Types/Dimension.php @@ -0,0 +1,67 @@ + [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'height' + ], + 'length' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'length' + ], + 'unit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unit' + ], + 'width' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'width' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DisableInventoryLocationRestRequest.php b/src/Inventory/Types/DisableInventoryLocationRestRequest.php new file mode 100644 index 000000000..1ab0d9661 --- /dev/null +++ b/src/Inventory/Types/DisableInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/DisableInventoryLocationRestResponse.php b/src/Inventory/Types/DisableInventoryLocationRestResponse.php new file mode 100644 index 000000000..0d877d63f --- /dev/null +++ b/src/Inventory/Types/DisableInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/EbayOfferDetailsWithAll.php b/src/Inventory/Types/EbayOfferDetailsWithAll.php new file mode 100644 index 000000000..e9f819cb9 --- /dev/null +++ b/src/Inventory/Types/EbayOfferDetailsWithAll.php @@ -0,0 +1,144 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availableQuantity' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'format' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'format' + ], + 'listing' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ListingDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listing' + ], + 'listingDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingDescription' + ], + 'listingPolicies' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ListingPolicies', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingPolicies' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'merchantLocationKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ], + 'offerId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PricingSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'quantityLimitPerBuyer' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantityLimitPerBuyer' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ], + 'storeCategoryNames' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'storeCategoryNames' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Tax', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/EbayOfferDetailsWithId.php b/src/Inventory/Types/EbayOfferDetailsWithId.php new file mode 100644 index 000000000..f283df340 --- /dev/null +++ b/src/Inventory/Types/EbayOfferDetailsWithId.php @@ -0,0 +1,102 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availableQuantity' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'listingDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingDescription' + ], + 'listingPolicies' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ListingPolicies', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingPolicies' + ], + 'merchantLocationKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PricingSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'quantityLimitPerBuyer' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantityLimitPerBuyer' + ], + 'storeCategoryNames' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'storeCategoryNames' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Tax', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/EbayOfferDetailsWithKeys.php b/src/Inventory/Types/EbayOfferDetailsWithKeys.php new file mode 100644 index 000000000..c2aed1a71 --- /dev/null +++ b/src/Inventory/Types/EbayOfferDetailsWithKeys.php @@ -0,0 +1,123 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availableQuantity' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'format' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'format' + ], + 'listingDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingDescription' + ], + 'listingPolicies' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ListingPolicies', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingPolicies' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'merchantLocationKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PricingSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'quantityLimitPerBuyer' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantityLimitPerBuyer' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ], + 'storeCategoryNames' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'storeCategoryNames' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Tax', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/EnableInventoryLocationRestRequest.php b/src/Inventory/Types/EnableInventoryLocationRestRequest.php new file mode 100644 index 000000000..c2da4ddea --- /dev/null +++ b/src/Inventory/Types/EnableInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/EnableInventoryLocationRestResponse.php b/src/Inventory/Types/EnableInventoryLocationRestResponse.php new file mode 100644 index 000000000..654f2e32e --- /dev/null +++ b/src/Inventory/Types/EnableInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/ErrorDetailV3.php b/src/Inventory/Types/ErrorDetailV3.php new file mode 100644 index 000000000..8c2fb03f9 --- /dev/null +++ b/src/Inventory/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ErrorParameterV3.php b/src/Inventory/Types/ErrorParameterV3.php new file mode 100644 index 000000000..9c2a422dd --- /dev/null +++ b/src/Inventory/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Fee.php b/src/Inventory/Types/Fee.php new file mode 100644 index 000000000..d6f189189 --- /dev/null +++ b/src/Inventory/Types/Fee.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'feeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feeType' + ], + 'promotionalDiscount' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionalDiscount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/FeeSummary.php b/src/Inventory/Types/FeeSummary.php new file mode 100644 index 000000000..27d68b2db --- /dev/null +++ b/src/Inventory/Types/FeeSummary.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Fee', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'fees' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/FeesSummaryResponse.php b/src/Inventory/Types/FeesSummaryResponse.php new file mode 100644 index 000000000..2891e686a --- /dev/null +++ b/src/Inventory/Types/FeesSummaryResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\FeeSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'feeSummaries' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GeoCoordinates.php b/src/Inventory/Types/GeoCoordinates.php new file mode 100644 index 000000000..f0e999357 --- /dev/null +++ b/src/Inventory/Types/GeoCoordinates.php @@ -0,0 +1,53 @@ + [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'latitude' + ], + 'longitude' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longitude' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryItemGroupRestRequest.php b/src/Inventory/Types/GetInventoryItemGroupRestRequest.php new file mode 100644 index 000000000..41801912d --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemGroupRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryItemGroupKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryItemGroupRestResponse.php b/src/Inventory/Types/GetInventoryItemGroupRestResponse.php new file mode 100644 index 000000000..fdea14dff --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemGroupRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetInventoryItemRestRequest.php b/src/Inventory/Types/GetInventoryItemRestRequest.php new file mode 100644 index 000000000..3335160cb --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryItemRestResponse.php b/src/Inventory/Types/GetInventoryItemRestResponse.php new file mode 100644 index 000000000..16ed30bd0 --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetInventoryItemsRestRequest.php b/src/Inventory/Types/GetInventoryItemsRestRequest.php new file mode 100644 index 000000000..d3d853c24 --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemsRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryItemsRestResponse.php b/src/Inventory/Types/GetInventoryItemsRestResponse.php new file mode 100644 index 000000000..1c56da165 --- /dev/null +++ b/src/Inventory/Types/GetInventoryItemsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetInventoryLocationRestRequest.php b/src/Inventory/Types/GetInventoryLocationRestRequest.php new file mode 100644 index 000000000..e43d36c76 --- /dev/null +++ b/src/Inventory/Types/GetInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryLocationRestResponse.php b/src/Inventory/Types/GetInventoryLocationRestResponse.php new file mode 100644 index 000000000..b1d9c7b63 --- /dev/null +++ b/src/Inventory/Types/GetInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetInventoryLocationsRestRequest.php b/src/Inventory/Types/GetInventoryLocationsRestRequest.php new file mode 100644 index 000000000..75e7ceadd --- /dev/null +++ b/src/Inventory/Types/GetInventoryLocationsRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetInventoryLocationsRestResponse.php b/src/Inventory/Types/GetInventoryLocationsRestResponse.php new file mode 100644 index 000000000..78b67dd59 --- /dev/null +++ b/src/Inventory/Types/GetInventoryLocationsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetListingFeesRestRequest.php b/src/Inventory/Types/GetListingFeesRestRequest.php new file mode 100644 index 000000000..df1ded4b9 --- /dev/null +++ b/src/Inventory/Types/GetListingFeesRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetListingFeesRestResponse.php b/src/Inventory/Types/GetListingFeesRestResponse.php new file mode 100644 index 000000000..c42bc6619 --- /dev/null +++ b/src/Inventory/Types/GetListingFeesRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetOfferRestRequest.php b/src/Inventory/Types/GetOfferRestRequest.php new file mode 100644 index 000000000..4e82e582a --- /dev/null +++ b/src/Inventory/Types/GetOfferRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetOfferRestResponse.php b/src/Inventory/Types/GetOfferRestResponse.php new file mode 100644 index 000000000..fcb592c9a --- /dev/null +++ b/src/Inventory/Types/GetOfferRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetOffersRestRequest.php b/src/Inventory/Types/GetOffersRestRequest.php new file mode 100644 index 000000000..be0ff769a --- /dev/null +++ b/src/Inventory/Types/GetOffersRestRequest.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'format' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'marketplace_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetOffersRestResponse.php b/src/Inventory/Types/GetOffersRestResponse.php new file mode 100644 index 000000000..91bfccc92 --- /dev/null +++ b/src/Inventory/Types/GetOffersRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/GetProductCompatibilityRestRequest.php b/src/Inventory/Types/GetProductCompatibilityRestRequest.php new file mode 100644 index 000000000..667048554 --- /dev/null +++ b/src/Inventory/Types/GetProductCompatibilityRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/GetProductCompatibilityRestResponse.php b/src/Inventory/Types/GetProductCompatibilityRestResponse.php new file mode 100644 index 000000000..17b449be1 --- /dev/null +++ b/src/Inventory/Types/GetProductCompatibilityRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/Interval.php b/src/Inventory/Types/Interval.php new file mode 100644 index 000000000..18f8b035f --- /dev/null +++ b/src/Inventory/Types/Interval.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'close' + ], + 'open' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'open' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryItem.php b/src/Inventory/Types/InventoryItem.php new file mode 100644 index 000000000..d2c91fae8 --- /dev/null +++ b/src/Inventory/Types/InventoryItem.php @@ -0,0 +1,81 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Availability', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availability' + ], + 'condition' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'conditionDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'conditionDescription' + ], + 'packageWeightAndSize' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\PackageWeightAndSize', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'packageWeightAndSize' + ], + 'product' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Product', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'product' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryItemGroup.php b/src/Inventory/Types/InventoryItemGroup.php new file mode 100644 index 000000000..5edc91ae4 --- /dev/null +++ b/src/Inventory/Types/InventoryItemGroup.php @@ -0,0 +1,95 @@ + [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'aspects' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'imageUrls' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'imageUrls' + ], + 'inventoryItemGroupKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryItemGroupKey' + ], + 'subtitle' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subtitle' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'variantSKUs' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'variantSKUs' + ], + 'variesBy' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\VariesBy', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'variesBy' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryItems.php b/src/Inventory/Types/InventoryItems.php new file mode 100644 index 000000000..494d0b1b8 --- /dev/null +++ b/src/Inventory/Types/InventoryItems.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'inventoryItems' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\InventoryItem', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inventoryItems' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'size' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'size' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryLocation.php b/src/Inventory/Types/InventoryLocation.php new file mode 100644 index 000000000..6d1de82bc --- /dev/null +++ b/src/Inventory/Types/InventoryLocation.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationAdditionalInformation' + ], + 'locationInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationInstructions' + ], + 'locationWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationWebUrl' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'operatingHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\OperatingHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'operatingHours' + ], + 'phone' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phone' + ], + 'specialHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\SpecialHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'specialHours' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryLocationFull.php b/src/Inventory/Types/InventoryLocationFull.php new file mode 100644 index 000000000..12b26e084 --- /dev/null +++ b/src/Inventory/Types/InventoryLocationFull.php @@ -0,0 +1,109 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Location', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'location' + ], + 'locationAdditionalInformation' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationAdditionalInformation' + ], + 'locationInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationInstructions' + ], + 'locationTypes' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'locationTypes' + ], + 'locationWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationWebUrl' + ], + 'merchantLocationStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationStatus' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'operatingHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\OperatingHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'operatingHours' + ], + 'phone' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phone' + ], + 'specialHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\SpecialHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'specialHours' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/InventoryLocationResponse.php b/src/Inventory/Types/InventoryLocationResponse.php new file mode 100644 index 000000000..0d629e92d --- /dev/null +++ b/src/Inventory/Types/InventoryLocationResponse.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Location', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'location' + ], + 'locationAdditionalInformation' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationAdditionalInformation' + ], + 'locationInstructions' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationInstructions' + ], + 'locationTypes' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'locationTypes' + ], + 'locationWebUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'locationWebUrl' + ], + 'merchantLocationKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ], + 'merchantLocationStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationStatus' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'operatingHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\OperatingHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'operatingHours' + ], + 'phone' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phone' + ], + 'specialHours' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\SpecialHours', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'specialHours' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ListingDetails.php b/src/Inventory/Types/ListingDetails.php new file mode 100644 index 000000000..f5c17d238 --- /dev/null +++ b/src/Inventory/Types/ListingDetails.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ], + 'listingStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingStatus' + ], + 'soldQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldQuantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ListingPolicies.php b/src/Inventory/Types/ListingPolicies.php new file mode 100644 index 000000000..9d07d6944 --- /dev/null +++ b/src/Inventory/Types/ListingPolicies.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentPolicyId' + ], + 'paymentPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentPolicyId' + ], + 'returnPolicyId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPolicyId' + ], + 'shippingCostOverrides' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ShippingCostOverride', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingCostOverrides' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Location.php b/src/Inventory/Types/Location.php new file mode 100644 index 000000000..09c22f987 --- /dev/null +++ b/src/Inventory/Types/Location.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'address' + ], + 'geoCoordinates' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\GeoCoordinates', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'geoCoordinates' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/LocationResponse.php b/src/Inventory/Types/LocationResponse.php new file mode 100644 index 000000000..b2daa8de9 --- /dev/null +++ b/src/Inventory/Types/LocationResponse.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'locations' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\InventoryLocationResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'locations' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/OfferKeyWithId.php b/src/Inventory/Types/OfferKeyWithId.php new file mode 100644 index 000000000..28d21ff17 --- /dev/null +++ b/src/Inventory/Types/OfferKeyWithId.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/OfferKeysWithId.php b/src/Inventory/Types/OfferKeysWithId.php new file mode 100644 index 000000000..96b4e17fb --- /dev/null +++ b/src/Inventory/Types/OfferKeysWithId.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\OfferKeyWithId', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'offers' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/OfferPriceQuantity.php b/src/Inventory/Types/OfferPriceQuantity.php new file mode 100644 index 000000000..19c5b2525 --- /dev/null +++ b/src/Inventory/Types/OfferPriceQuantity.php @@ -0,0 +1,60 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availableQuantity' + ], + 'offerId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ], + 'price' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'price' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/OfferResponse.php b/src/Inventory/Types/OfferResponse.php new file mode 100644 index 000000000..885183c55 --- /dev/null +++ b/src/Inventory/Types/OfferResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Offers.php b/src/Inventory/Types/Offers.php new file mode 100644 index 000000000..97be4440e --- /dev/null +++ b/src/Inventory/Types/Offers.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offers' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithAll', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'offers' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'size' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'size' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/OperatingHours.php b/src/Inventory/Types/OperatingHours.php new file mode 100644 index 000000000..6773523e7 --- /dev/null +++ b/src/Inventory/Types/OperatingHours.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dayOfWeekEnum' + ], + 'intervals' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Interval', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'intervals' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PackageWeightAndSize.php b/src/Inventory/Types/PackageWeightAndSize.php new file mode 100644 index 000000000..0ad89136d --- /dev/null +++ b/src/Inventory/Types/PackageWeightAndSize.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Dimension', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dimensions' + ], + 'packageType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'packageType' + ], + 'weight' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Weight', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'weight' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PickupAtLocationAvailability.php b/src/Inventory/Types/PickupAtLocationAvailability.php new file mode 100644 index 000000000..bb33ec968 --- /dev/null +++ b/src/Inventory/Types/PickupAtLocationAvailability.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'availabilityType' + ], + 'fulfillmentTime' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\TimeDuration', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fulfillmentTime' + ], + 'merchantLocationKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PriceQuantity.php b/src/Inventory/Types/PriceQuantity.php new file mode 100644 index 000000000..0c355d145 --- /dev/null +++ b/src/Inventory/Types/PriceQuantity.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\OfferPriceQuantity', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'offers' + ], + 'shipToLocationAvailability' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ShipToLocationAvailability', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipToLocationAvailability' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PriceQuantityResponse.php b/src/Inventory/Types/PriceQuantityResponse.php new file mode 100644 index 000000000..524b6936f --- /dev/null +++ b/src/Inventory/Types/PriceQuantityResponse.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'offerId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ], + 'sku' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sku' + ], + 'statusCode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'statusCode' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PricingSummary.php b/src/Inventory/Types/PricingSummary.php new file mode 100644 index 000000000..df361d143 --- /dev/null +++ b/src/Inventory/Types/PricingSummary.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minimumAdvertisedPrice' + ], + 'originallySoldForRetailPriceOn' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originallySoldForRetailPriceOn' + ], + 'originalRetailPrice' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originalRetailPrice' + ], + 'price' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'price' + ], + 'pricingVisibility' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingVisibility' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Product.php b/src/Inventory/Types/Product.php new file mode 100644 index 000000000..c21e4efcc --- /dev/null +++ b/src/Inventory/Types/Product.php @@ -0,0 +1,109 @@ + [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'aspects' + ], + 'brand' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'ean' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ean' + ], + 'imageUrls' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'imageUrls' + ], + 'isbn' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'isbn' + ], + 'mpn' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mpn' + ], + 'subtitle' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subtitle' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'upc' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'upc' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ProductFamilyProperties.php b/src/Inventory/Types/ProductFamilyProperties.php new file mode 100644 index 000000000..0901bc949 --- /dev/null +++ b/src/Inventory/Types/ProductFamilyProperties.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'engine' + ], + 'make' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'make' + ], + 'model' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'model' + ], + 'trim' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trim' + ], + 'year' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'year' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ProductIdentifier.php b/src/Inventory/Types/ProductIdentifier.php new file mode 100644 index 000000000..e939fc143 --- /dev/null +++ b/src/Inventory/Types/ProductIdentifier.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'epid' + ], + 'gtin' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'gtin' + ], + 'ktype' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ktype' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PublishOfferRestRequest.php b/src/Inventory/Types/PublishOfferRestRequest.php new file mode 100644 index 000000000..ff9a7abfc --- /dev/null +++ b/src/Inventory/Types/PublishOfferRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PublishOfferRestResponse.php b/src/Inventory/Types/PublishOfferRestResponse.php new file mode 100644 index 000000000..d890bbc6f --- /dev/null +++ b/src/Inventory/Types/PublishOfferRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/PublishResponse.php b/src/Inventory/Types/PublishResponse.php new file mode 100644 index 000000000..993194a23 --- /dev/null +++ b/src/Inventory/Types/PublishResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ShipToLocationAvailability.php b/src/Inventory/Types/ShipToLocationAvailability.php new file mode 100644 index 000000000..3103530a0 --- /dev/null +++ b/src/Inventory/Types/ShipToLocationAvailability.php @@ -0,0 +1,46 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/ShippingCostOverride.php b/src/Inventory/Types/ShippingCostOverride.php new file mode 100644 index 000000000..06225a25d --- /dev/null +++ b/src/Inventory/Types/ShippingCostOverride.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'additionalShippingCost' + ], + 'priority' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingServiceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceType' + ], + 'surcharge' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'surcharge' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/SpecialHours.php b/src/Inventory/Types/SpecialHours.php new file mode 100644 index 000000000..7d7c14ba7 --- /dev/null +++ b/src/Inventory/Types/SpecialHours.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'date' + ], + 'intervals' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Interval', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'intervals' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Specification.php b/src/Inventory/Types/Specification.php new file mode 100644 index 000000000..7cb1b900a --- /dev/null +++ b/src/Inventory/Types/Specification.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'values' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'values' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Tax.php b/src/Inventory/Types/Tax.php new file mode 100644 index 000000000..6b230158a --- /dev/null +++ b/src/Inventory/Types/Tax.php @@ -0,0 +1,60 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'applyTax' + ], + 'thirdPartyTaxCategory' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'thirdPartyTaxCategory' + ], + 'vatPercentage' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'vatPercentage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/TimeDuration.php b/src/Inventory/Types/TimeDuration.php new file mode 100644 index 000000000..c48592d64 --- /dev/null +++ b/src/Inventory/Types/TimeDuration.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unit' + ], + 'value' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/UpdateInventoryLocationRestRequest.php b/src/Inventory/Types/UpdateInventoryLocationRestRequest.php new file mode 100644 index 000000000..269b7b448 --- /dev/null +++ b/src/Inventory/Types/UpdateInventoryLocationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'merchantLocationKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/UpdateInventoryLocationRestResponse.php b/src/Inventory/Types/UpdateInventoryLocationRestResponse.php new file mode 100644 index 000000000..9958ecea6 --- /dev/null +++ b/src/Inventory/Types/UpdateInventoryLocationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/UpdateOfferRestRequest.php b/src/Inventory/Types/UpdateOfferRestRequest.php new file mode 100644 index 000000000..ac5cb9353 --- /dev/null +++ b/src/Inventory/Types/UpdateOfferRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offerId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/UpdateOfferRestResponse.php b/src/Inventory/Types/UpdateOfferRestResponse.php new file mode 100644 index 000000000..a6a8d3a93 --- /dev/null +++ b/src/Inventory/Types/UpdateOfferRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Inventory/Types/VariesBy.php b/src/Inventory/Types/VariesBy.php new file mode 100644 index 000000000..498472a08 --- /dev/null +++ b/src/Inventory/Types/VariesBy.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'aspectsImageVariesBy' + ], + 'specifications' => [ + 'type' => 'DTS\eBaySDK\Inventory\Types\Specification', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'specifications' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/Weight.php b/src/Inventory/Types/Weight.php new file mode 100644 index 000000000..0d207982a --- /dev/null +++ b/src/Inventory/Types/Weight.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unit' + ], + 'value' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/JmesPath/FnDispatcher.php b/src/JmesPath/FnDispatcher.php index 7289c8d18..ee55b2051 100644 --- a/src/JmesPath/FnDispatcher.php +++ b/src/JmesPath/FnDispatcher.php @@ -422,7 +422,10 @@ private function wrapExpression($from, callable $expr, array $types) }; } - /** @internal Pass function name validation off to runtime */ + /** @internal Pass function name validation off to runtime + * @param $name + * @param $args + */ public function __call($name, $args) { $name = str_replace('fn_', '', $name); diff --git a/src/JmesPath/Parser.php b/src/JmesPath/Parser.php index 0f84e790e..4fe17aec2 100644 --- a/src/JmesPath/Parser.php +++ b/src/JmesPath/Parser.php @@ -515,6 +515,8 @@ private function assertNotToken($type) /** * @internal Handles undefined tokens without paying the cost of validation + * @param $method + * @param $args */ public function __call($method, $args) { diff --git a/src/JmesPath/TreeCompiler.php b/src/JmesPath/TreeCompiler.php index 9a3ec853a..ecdbab34b 100644 --- a/src/JmesPath/TreeCompiler.php +++ b/src/JmesPath/TreeCompiler.php @@ -431,7 +431,10 @@ private function visit_comparator(array $node) return $this; } - /** @internal */ + /** @internal + * @param $method + * @param $args + */ public function __call($method, $args) { throw new \RuntimeException( diff --git a/src/JmesPath/TreeInterpreter.php b/src/JmesPath/TreeInterpreter.php index ccdeaf6b2..7484807ff 100644 --- a/src/JmesPath/TreeInterpreter.php +++ b/src/JmesPath/TreeInterpreter.php @@ -57,6 +57,8 @@ public function visit(array $node, $data) * Recursively traverses an AST using depth-first, pre-order traversal. * The evaluation logic for each node type is embedded into a large switch * statement to avoid the cost of "double dispatch". + * @param array $node + * @param $value * @return mixed */ private function dispatch(array $node, $value) @@ -238,6 +240,9 @@ private function dispatch(array $node, $value) } /** + * @param $left + * @param $right + * @param $cmp * @return bool */ private static function relativeCmp($left, $right, $cmp) diff --git a/src/Marketing/Enums/CampaignStatusEnum.php b/src/Marketing/Enums/CampaignStatusEnum.php new file mode 100644 index 000000000..e450de3c2 --- /dev/null +++ b/src/Marketing/Enums/CampaignStatusEnum.php @@ -0,0 +1,22 @@ + 'https://api.sandbox.ebay.com/sell/marketing', + 'production' => 'https://api.ebay.com/sell/marketing' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Marketing\Services\MarketingService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Marketing/Services/MarketingService.php b/src/Marketing/Services/MarketingService.php new file mode 100644 index 000000000..c047463a9 --- /dev/null +++ b/src/Marketing/Services/MarketingService.php @@ -0,0 +1,1042 @@ + [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/bulk_create_ads_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'BulkCreateAdsByListingID' => [ + 'method' => 'POST', + 'resource' => 'campaign/{campaign_id}/bulk_create_ads_by_listing_id', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'BulkDeleteAdsByInventoryReference' => [ + 'method' => 'POST', + 'resource' => 'campaign/{campaign_id}/bulk_delete_ads_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'BulkDeleteAdsByListingID' => [ + 'method' => 'POST', + 'resource' => 'campaign/{campaign_id}/bulk_delete_ads_by_listing_id', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'BulkUpdateAdBidsByInventoryReference' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/bulk_update_ads_bid_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'BulkUpdateAdBidsByListingID' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/bulk_update_ads_bid_by_listing_id', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateAdByListingID' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/ad', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateAdsByInventoryReference' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/create_ads_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteAdByID' => [ + 'method' => 'DELETE', + 'resource' => 'ad_campaign/{campaign_id}/ad/{ad_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestResponse', + 'params' => [ + 'ad_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteAdsByInventoryReference' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/delete_ads_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAdByID' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/{campaign_id}/ad/{ad_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetAdByIDRestResponse', + 'params' => [ + 'ad_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetAds' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/{campaign_id}/ad', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetAdsRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'listing_ids' => [ + 'valid' => ['string'], + 'required' => true + ], + 'offset' => [ + 'valid' => ['string'] + ] + ] + ], + 'GetAdsByInventoryReference' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/{campaign_id}/get_ads_by_inventory_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'inventory_reference_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'inventory_reference_type' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateBid' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/ad/{ad_id}/update_bid', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\UpdateBidRestResponse', + 'params' => [ + 'ad_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CloneCampaign' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/clone', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\CloneCampaignRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateCampaign' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\CreateCampaignRestResponse', + 'params' => [ + ] + ], + 'DeleteCampaign' => [ + 'method' => 'DELETE', + 'resource' => 'ad_campaign/{campaign_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\DeleteCampaignRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'EndCampaign' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/end', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\EndCampaignRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'FindCampaignByAdReference' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/find_campaign_by_ad_reference', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestResponse', + 'params' => [ + 'inventory_reference_id' => [ + 'valid' => ['string'] + ], + 'inventory_reference_type' => [ + 'valid' => ['string'] + ], + 'listing_id' => [ + 'valid' => ['string'] + ] + ] + ], + 'GetAllCampaigns' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestResponse', + 'params' => [ + 'campaign_name' => [ + 'valid' => ['string'] + ], + 'campaign_status' => [ + 'valid' => ['string'] + ], + 'end_date_range' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'start_date_range' => [ + 'valid' => ['string'] + ] + ] + ], + 'GetCampaignByName' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/get_campaign_by_name', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestResponse', + 'params' => [ + 'campaign_name' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetCampaignByID' => [ + 'method' => 'GET', + 'resource' => 'ad_campaign/{campaign_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'PauseCampaign' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/pause', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\PauseCampaignRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ResumeCampaign' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/resume', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\ResumeCampaignRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateCampaignIDentification' => [ + 'method' => 'POST', + 'resource' => 'ad_campaign/{campaign_id}/update_campaign_identification', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestResponse', + 'params' => [ + 'campaign_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateItemPromotion' => [ + 'method' => 'POST', + 'resource' => 'item_promotion', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestResponse', + 'params' => [ + ] + ], + 'DeleteItemPromotion' => [ + 'method' => 'DELETE', + 'resource' => 'item_promotion/{promotion_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestResponse', + 'params' => [ + 'promotion_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetItemPromotion' => [ + 'method' => 'GET', + 'resource' => 'item_promotion/{promotion_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetItemPromotionRestResponse', + 'params' => [ + 'promotion_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateItemPromotion' => [ + 'method' => 'PUT', + 'resource' => 'item_promotion/{promotion_id}', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestResponse', + 'params' => [ + 'promotion_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetPromotions' => [ + 'method' => 'GET', + 'resource' => 'promotion', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetPromotionsRestResponse', + 'params' => [ + 'limit' => [ + 'valid' => ['string'] + ], + 'marketplace_id' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'promotion_status' => [ + 'valid' => ['string'] + ], + 'q' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ] + ] + ], + 'PauseAPromotion' => [ + 'method' => 'POST', + 'resource' => 'promotion/{promotion_id}/pause', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\PauseAPromotionRestResponse', + 'params' => [ + 'promotion_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ResumeAPromotion' => [ + 'method' => 'POST', + 'resource' => 'promotion/{promotion_id}/resume', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestResponse', + 'params' => [ + 'promotion_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetPromotionSummaryReport' => [ + 'method' => 'GET', + 'resource' => 'promotion_summary_report', + 'responseClass' => '\DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestResponse', + 'params' => [ + 'marketplace_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestResponse + */ + public function bulkCreateAdsByInventoryReference(\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestRequest $request) + { + return $this->bulkCreateAdsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkCreateAdsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('BulkCreateAdsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestResponse + */ + public function bulkCreateAdsByListingID(\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestRequest $request) + { + return $this->bulkCreateAdsByListingIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkCreateAdsByListingIDAsync(\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestRequest $request) + { + return $this->callOperationAsync('BulkCreateAdsByListingID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestResponse + */ + public function bulkDeleteAdsByInventoryReference(\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestRequest $request) + { + return $this->bulkDeleteAdsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkDeleteAdsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('BulkDeleteAdsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestResponse + */ + public function bulkDeleteAdsByListingID(\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestRequest $request) + { + return $this->bulkDeleteAdsByListingIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkDeleteAdsByListingIDAsync(\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestRequest $request) + { + return $this->callOperationAsync('BulkDeleteAdsByListingID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestResponse + */ + public function bulkUpdateAdBidsByInventoryReference(\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestRequest $request) + { + return $this->bulkUpdateAdBidsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkUpdateAdBidsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('BulkUpdateAdBidsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestResponse + */ + public function bulkUpdateAdBidsByListingID(\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestRequest $request) + { + return $this->bulkUpdateAdBidsByListingIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkUpdateAdBidsByListingIDAsync(\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestRequest $request) + { + return $this->callOperationAsync('BulkUpdateAdBidsByListingID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestResponse + */ + public function createAdByListingID(\DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestRequest $request) + { + return $this->createAdByListingIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAdByListingIDAsync(\DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestRequest $request) + { + return $this->callOperationAsync('CreateAdByListingID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestResponse + */ + public function createAdsByInventoryReference(\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestRequest $request) + { + return $this->createAdsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAdsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('CreateAdsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestResponse + */ + public function deleteAdByID(\DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestRequest $request) + { + return $this->deleteAdByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteAdByIDAsync(\DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestRequest $request) + { + return $this->callOperationAsync('DeleteAdByID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestResponse + */ + public function deleteAdsByInventoryReference(\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestRequest $request) + { + return $this->deleteAdsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteAdsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('DeleteAdsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdByIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetAdByIDRestResponse + */ + public function getAdByID(\DTS\eBaySDK\Marketing\Types\GetAdByIDRestRequest $request) + { + return $this->getAdByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAdByIDAsync(\DTS\eBaySDK\Marketing\Types\GetAdByIDRestRequest $request) + { + return $this->callOperationAsync('GetAdByID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdsRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetAdsRestResponse + */ + public function getAds(\DTS\eBaySDK\Marketing\Types\GetAdsRestRequest $request) + { + return $this->getAdsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAdsAsync(\DTS\eBaySDK\Marketing\Types\GetAdsRestRequest $request) + { + return $this->callOperationAsync('GetAds', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestResponse + */ + public function getAdsByInventoryReference(\DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestRequest $request) + { + return $this->getAdsByInventoryReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAdsByInventoryReferenceAsync(\DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestRequest $request) + { + return $this->callOperationAsync('GetAdsByInventoryReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateBidRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\UpdateBidRestResponse + */ + public function updateBid(\DTS\eBaySDK\Marketing\Types\UpdateBidRestRequest $request) + { + return $this->updateBidAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateBidRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateBidAsync(\DTS\eBaySDK\Marketing\Types\UpdateBidRestRequest $request) + { + return $this->callOperationAsync('UpdateBid', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CloneCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\CloneCampaignRestResponse + */ + public function cloneCampaign(\DTS\eBaySDK\Marketing\Types\CloneCampaignRestRequest $request) + { + return $this->cloneCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CloneCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cloneCampaignAsync(\DTS\eBaySDK\Marketing\Types\CloneCampaignRestRequest $request) + { + return $this->callOperationAsync('CloneCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\CreateCampaignRestResponse + */ + public function createCampaign(\DTS\eBaySDK\Marketing\Types\CreateCampaignRestRequest $request) + { + return $this->createCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createCampaignAsync(\DTS\eBaySDK\Marketing\Types\CreateCampaignRestRequest $request) + { + return $this->callOperationAsync('CreateCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\DeleteCampaignRestResponse + */ + public function deleteCampaign(\DTS\eBaySDK\Marketing\Types\DeleteCampaignRestRequest $request) + { + return $this->deleteCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteCampaignAsync(\DTS\eBaySDK\Marketing\Types\DeleteCampaignRestRequest $request) + { + return $this->callOperationAsync('DeleteCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\EndCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\EndCampaignRestResponse + */ + public function endCampaign(\DTS\eBaySDK\Marketing\Types\EndCampaignRestRequest $request) + { + return $this->endCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\EndCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function endCampaignAsync(\DTS\eBaySDK\Marketing\Types\EndCampaignRestRequest $request) + { + return $this->callOperationAsync('EndCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestResponse + */ + public function findCampaignByAdReference(\DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestRequest $request) + { + return $this->findCampaignByAdReferenceAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function findCampaignByAdReferenceAsync(\DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestRequest $request) + { + return $this->callOperationAsync('FindCampaignByAdReference', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestResponse + */ + public function getAllCampaigns(\DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestRequest $request) + { + return $this->getAllCampaignsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAllCampaignsAsync(\DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestRequest $request) + { + return $this->callOperationAsync('GetAllCampaigns', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestResponse + */ + public function getCampaignByName(\DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestRequest $request) + { + return $this->getCampaignByNameAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCampaignByNameAsync(\DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestRequest $request) + { + return $this->callOperationAsync('GetCampaignByName', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestResponse + */ + public function getCampaignByID(\DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestRequest $request) + { + return $this->getCampaignByIDAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCampaignByIDAsync(\DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestRequest $request) + { + return $this->callOperationAsync('GetCampaignByID', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\PauseCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\PauseCampaignRestResponse + */ + public function pauseCampaign(\DTS\eBaySDK\Marketing\Types\PauseCampaignRestRequest $request) + { + return $this->pauseCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\PauseCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function pauseCampaignAsync(\DTS\eBaySDK\Marketing\Types\PauseCampaignRestRequest $request) + { + return $this->callOperationAsync('PauseCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\ResumeCampaignRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\ResumeCampaignRestResponse + */ + public function resumeCampaign(\DTS\eBaySDK\Marketing\Types\ResumeCampaignRestRequest $request) + { + return $this->resumeCampaignAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\ResumeCampaignRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function resumeCampaignAsync(\DTS\eBaySDK\Marketing\Types\ResumeCampaignRestRequest $request) + { + return $this->callOperationAsync('ResumeCampaign', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestResponse + */ + public function updateCampaignIDentification(\DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestRequest $request) + { + return $this->updateCampaignIDentificationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateCampaignIDentificationAsync(\DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestRequest $request) + { + return $this->callOperationAsync('UpdateCampaignIDentification', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestResponse + */ + public function createItemPromotion(\DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestRequest $request) + { + return $this->createItemPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createItemPromotionAsync(\DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestRequest $request) + { + return $this->callOperationAsync('CreateItemPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestResponse + */ + public function deleteItemPromotion(\DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestRequest $request) + { + return $this->deleteItemPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteItemPromotionAsync(\DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestRequest $request) + { + return $this->callOperationAsync('DeleteItemPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetItemPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetItemPromotionRestResponse + */ + public function getItemPromotion(\DTS\eBaySDK\Marketing\Types\GetItemPromotionRestRequest $request) + { + return $this->getItemPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetItemPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getItemPromotionAsync(\DTS\eBaySDK\Marketing\Types\GetItemPromotionRestRequest $request) + { + return $this->callOperationAsync('GetItemPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestResponse + */ + public function updateItemPromotion(\DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestRequest $request) + { + return $this->updateItemPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateItemPromotionAsync(\DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestRequest $request) + { + return $this->callOperationAsync('UpdateItemPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetPromotionsRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetPromotionsRestResponse + */ + public function getPromotions(\DTS\eBaySDK\Marketing\Types\GetPromotionsRestRequest $request) + { + return $this->getPromotionsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetPromotionsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPromotionsAsync(\DTS\eBaySDK\Marketing\Types\GetPromotionsRestRequest $request) + { + return $this->callOperationAsync('GetPromotions', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\PauseAPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\PauseAPromotionRestResponse + */ + public function pauseAPromotion(\DTS\eBaySDK\Marketing\Types\PauseAPromotionRestRequest $request) + { + return $this->pauseAPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\PauseAPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function pauseAPromotionAsync(\DTS\eBaySDK\Marketing\Types\PauseAPromotionRestRequest $request) + { + return $this->callOperationAsync('PauseAPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestResponse + */ + public function resumeAPromotion(\DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestRequest $request) + { + return $this->resumeAPromotionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function resumeAPromotionAsync(\DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestRequest $request) + { + return $this->callOperationAsync('ResumeAPromotion', $request); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestRequest $request + * @return \DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestResponse + */ + public function getPromotionSummaryReport(\DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestRequest $request) + { + return $this->getPromotionSummaryReportAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPromotionSummaryReportAsync(\DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestRequest $request) + { + return $this->callOperationAsync('GetPromotionSummaryReport', $request); + } +} diff --git a/src/Marketing/Types/Ad.php b/src/Marketing/Types/Ad.php new file mode 100644 index 000000000..17f96a494 --- /dev/null +++ b/src/Marketing/Types/Ad.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adId' + ], + 'bidPercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidPercentage' + ], + 'inventoryReferenceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceId' + ], + 'inventoryReferenceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceType' + ], + 'listingId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/AdIds.php b/src/Marketing/Types/AdIds.php new file mode 100644 index 000000000..42d050c6e --- /dev/null +++ b/src/Marketing/Types/AdIds.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'adIds' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/AdPagedCollection.php b/src/Marketing/Types/AdPagedCollection.php new file mode 100644 index 000000000..dcc3cd2ac --- /dev/null +++ b/src/Marketing/Types/AdPagedCollection.php @@ -0,0 +1,88 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Ad', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ads' + ], + 'href' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/AdReference.php b/src/Marketing/Types/AdReference.php new file mode 100644 index 000000000..9ff36d1ce --- /dev/null +++ b/src/Marketing/Types/AdReference.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adId' + ], + 'href' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/AdReferences.php b/src/Marketing/Types/AdReferences.php new file mode 100644 index 000000000..b7be58d60 --- /dev/null +++ b/src/Marketing/Types/AdReferences.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\AdReference', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ads' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/AdResponse.php b/src/Marketing/Types/AdResponse.php new file mode 100644 index 000000000..a2945be32 --- /dev/null +++ b/src/Marketing/Types/AdResponse.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adId' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'href' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'listingId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ], + 'statusCode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'statusCode' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/Ads.php b/src/Marketing/Types/Ads.php new file mode 100644 index 000000000..ea0be1730 --- /dev/null +++ b/src/Marketing/Types/Ads.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Ad', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ads' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/Amount.php b/src/Marketing/Types/Amount.php new file mode 100644 index 000000000..3b8d1e037 --- /dev/null +++ b/src/Marketing/Types/Amount.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkAdResponse.php b/src/Marketing/Types/BulkAdResponse.php new file mode 100644 index 000000000..f51c2e80f --- /dev/null +++ b/src/Marketing/Types/BulkAdResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\AdResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'responses' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkCreateAdRequest.php b/src/Marketing/Types/BulkCreateAdRequest.php new file mode 100644 index 000000000..457799c0b --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\CreateAdRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'requests' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRequest.php b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRequest.php new file mode 100644 index 000000000..b9e37e334 --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'requests' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequest.php b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..ab81bcbd4 --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponse.php b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..74d571fda --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/BulkCreateAdsByListingIDRestRequest.php b/src/Marketing/Types/BulkCreateAdsByListingIDRestRequest.php new file mode 100644 index 000000000..dee02413f --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdsByListingIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkCreateAdsByListingIDRestResponse.php b/src/Marketing/Types/BulkCreateAdsByListingIDRestResponse.php new file mode 100644 index 000000000..9889ede07 --- /dev/null +++ b/src/Marketing/Types/BulkCreateAdsByListingIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdRequest.php b/src/Marketing/Types/BulkDeleteAdRequest.php new file mode 100644 index 000000000..91bb7755d --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DeleteAdRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'requests' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdResponse.php b/src/Marketing/Types/BulkDeleteAdResponse.php new file mode 100644 index 000000000..15a1d8f23 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DeleteAdResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'responses' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequest.php b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequest.php new file mode 100644 index 000000000..deadf68b6 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'requests' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequest.php b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..bd8e87088 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponse.php b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..65f405306 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdsByListingIDRestRequest.php b/src/Marketing/Types/BulkDeleteAdsByListingIDRestRequest.php new file mode 100644 index 000000000..b44b86163 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdsByListingIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkDeleteAdsByListingIDRestResponse.php b/src/Marketing/Types/BulkDeleteAdsByListingIDRestResponse.php new file mode 100644 index 000000000..f84d57e98 --- /dev/null +++ b/src/Marketing/Types/BulkDeleteAdsByListingIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequest.php b/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..ace32e16c --- /dev/null +++ b/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponse.php b/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..8d1e733f3 --- /dev/null +++ b/src/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequest.php b/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequest.php new file mode 100644 index 000000000..28d414fe1 --- /dev/null +++ b/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponse.php b/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponse.php new file mode 100644 index 000000000..337d9bb07 --- /dev/null +++ b/src/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/Campaign.php b/src/Marketing/Types/Campaign.php new file mode 100644 index 000000000..2430eacdc --- /dev/null +++ b/src/Marketing/Types/Campaign.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\CampaignCriterion', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignCriterion' + ], + 'campaignId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignId' + ], + 'campaignName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignName' + ], + 'campaignStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignStatus' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'fundingStrategy' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\FundingStrategy', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fundingStrategy' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CampaignCriterion.php b/src/Marketing/Types/CampaignCriterion.php new file mode 100644 index 000000000..6e418ef82 --- /dev/null +++ b/src/Marketing/Types/CampaignCriterion.php @@ -0,0 +1,60 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'autoSelectFutureInventory' + ], + 'criterionType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'criterionType' + ], + 'selectionRules' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\SelectionRule', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'selectionRules' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CampaignPagedCollection.php b/src/Marketing/Types/CampaignPagedCollection.php new file mode 100644 index 000000000..e68b4acdd --- /dev/null +++ b/src/Marketing/Types/CampaignPagedCollection.php @@ -0,0 +1,88 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Campaign', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'campaigns' + ], + 'href' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/Campaigns.php b/src/Marketing/Types/Campaigns.php new file mode 100644 index 000000000..f186ea4ba --- /dev/null +++ b/src/Marketing/Types/Campaigns.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Campaign', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'campaigns' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CloneCampaignRequest.php b/src/Marketing/Types/CloneCampaignRequest.php new file mode 100644 index 000000000..ca50be745 --- /dev/null +++ b/src/Marketing/Types/CloneCampaignRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignName' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'fundingStrategy' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\FundingStrategy', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fundingStrategy' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CloneCampaignRestRequest.php b/src/Marketing/Types/CloneCampaignRestRequest.php new file mode 100644 index 000000000..12cecff06 --- /dev/null +++ b/src/Marketing/Types/CloneCampaignRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CloneCampaignRestResponse.php b/src/Marketing/Types/CloneCampaignRestResponse.php new file mode 100644 index 000000000..9698235f8 --- /dev/null +++ b/src/Marketing/Types/CloneCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/CreateAdByListingIDRestRequest.php b/src/Marketing/Types/CreateAdByListingIDRestRequest.php new file mode 100644 index 000000000..d3249b58b --- /dev/null +++ b/src/Marketing/Types/CreateAdByListingIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateAdByListingIDRestResponse.php b/src/Marketing/Types/CreateAdByListingIDRestResponse.php new file mode 100644 index 000000000..100659a21 --- /dev/null +++ b/src/Marketing/Types/CreateAdByListingIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/CreateAdRequest.php b/src/Marketing/Types/CreateAdRequest.php new file mode 100644 index 000000000..eaf4a7a4e --- /dev/null +++ b/src/Marketing/Types/CreateAdRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidPercentage' + ], + 'listingId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateAdsByInventoryReferenceRequest.php b/src/Marketing/Types/CreateAdsByInventoryReferenceRequest.php new file mode 100644 index 000000000..da04698b0 --- /dev/null +++ b/src/Marketing/Types/CreateAdsByInventoryReferenceRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidPercentage' + ], + 'inventoryReferenceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceId' + ], + 'inventoryReferenceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateAdsByInventoryReferenceRestRequest.php b/src/Marketing/Types/CreateAdsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..4ab3d080e --- /dev/null +++ b/src/Marketing/Types/CreateAdsByInventoryReferenceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateAdsByInventoryReferenceRestResponse.php b/src/Marketing/Types/CreateAdsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..589bc96bf --- /dev/null +++ b/src/Marketing/Types/CreateAdsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/CreateCampaignRequest.php b/src/Marketing/Types/CreateCampaignRequest.php new file mode 100644 index 000000000..3b5ea1703 --- /dev/null +++ b/src/Marketing/Types/CreateCampaignRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\CampaignCriterion', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignCriterion' + ], + 'campaignName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignName' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'fundingStrategy' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\FundingStrategy', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fundingStrategy' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateCampaignRestRequest.php b/src/Marketing/Types/CreateCampaignRestRequest.php new file mode 100644 index 000000000..f6e9e8359 --- /dev/null +++ b/src/Marketing/Types/CreateCampaignRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateCampaignRestResponse.php b/src/Marketing/Types/CreateCampaignRestResponse.php new file mode 100644 index 000000000..2459fb96e --- /dev/null +++ b/src/Marketing/Types/CreateCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/CreateItemPromotionRestRequest.php b/src/Marketing/Types/CreateItemPromotionRestRequest.php new file mode 100644 index 000000000..53ea4c881 --- /dev/null +++ b/src/Marketing/Types/CreateItemPromotionRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/CreateItemPromotionRestResponse.php b/src/Marketing/Types/CreateItemPromotionRestResponse.php new file mode 100644 index 000000000..43b6e51a5 --- /dev/null +++ b/src/Marketing/Types/CreateItemPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/DeleteAdByIDRestRequest.php b/src/Marketing/Types/DeleteAdByIDRestRequest.php new file mode 100644 index 000000000..06f297354 --- /dev/null +++ b/src/Marketing/Types/DeleteAdByIDRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ad_id' + ], + 'campaign_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteAdByIDRestResponse.php b/src/Marketing/Types/DeleteAdByIDRestResponse.php new file mode 100644 index 000000000..a2e1b3d56 --- /dev/null +++ b/src/Marketing/Types/DeleteAdByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/DeleteAdRequest.php b/src/Marketing/Types/DeleteAdRequest.php new file mode 100644 index 000000000..b2888d7e8 --- /dev/null +++ b/src/Marketing/Types/DeleteAdRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteAdResponse.php b/src/Marketing/Types/DeleteAdResponse.php new file mode 100644 index 000000000..f89164d17 --- /dev/null +++ b/src/Marketing/Types/DeleteAdResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adId' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'listingId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingId' + ], + 'statusCode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'statusCode' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteAdsByInventoryReferenceRequest.php b/src/Marketing/Types/DeleteAdsByInventoryReferenceRequest.php new file mode 100644 index 000000000..0b3f4cb95 --- /dev/null +++ b/src/Marketing/Types/DeleteAdsByInventoryReferenceRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceId' + ], + 'inventoryReferenceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteAdsByInventoryReferenceRestRequest.php b/src/Marketing/Types/DeleteAdsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..0f813e535 --- /dev/null +++ b/src/Marketing/Types/DeleteAdsByInventoryReferenceRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteAdsByInventoryReferenceRestResponse.php b/src/Marketing/Types/DeleteAdsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..e233aa947 --- /dev/null +++ b/src/Marketing/Types/DeleteAdsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/DeleteCampaignRestRequest.php b/src/Marketing/Types/DeleteCampaignRestRequest.php new file mode 100644 index 000000000..3fd9d26b2 --- /dev/null +++ b/src/Marketing/Types/DeleteCampaignRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteCampaignRestResponse.php b/src/Marketing/Types/DeleteCampaignRestResponse.php new file mode 100644 index 000000000..0ec3fed1c --- /dev/null +++ b/src/Marketing/Types/DeleteCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/DeleteItemPromotionRestRequest.php b/src/Marketing/Types/DeleteItemPromotionRestRequest.php new file mode 100644 index 000000000..ba201851a --- /dev/null +++ b/src/Marketing/Types/DeleteItemPromotionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DeleteItemPromotionRestResponse.php b/src/Marketing/Types/DeleteItemPromotionRestResponse.php new file mode 100644 index 000000000..2c382b96d --- /dev/null +++ b/src/Marketing/Types/DeleteItemPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/DiscountBenefit.php b/src/Marketing/Types/DiscountBenefit.php new file mode 100644 index 000000000..ad7c0e0d3 --- /dev/null +++ b/src/Marketing/Types/DiscountBenefit.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amountOffItem' + ], + 'amountOffOrder' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amountOffOrder' + ], + 'percentageOffItem' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'percentageOffItem' + ], + 'percentageOffOrder' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'percentageOffOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DiscountRule.php b/src/Marketing/Types/DiscountRule.php new file mode 100644 index 000000000..34068ec89 --- /dev/null +++ b/src/Marketing/Types/DiscountRule.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DiscountBenefit', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountBenefit' + ], + 'discountSpecification' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DiscountSpecification', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountSpecification' + ], + 'ruleOrder' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/DiscountSpecification.php b/src/Marketing/Types/DiscountSpecification.php new file mode 100644 index 000000000..62a100719 --- /dev/null +++ b/src/Marketing/Types/DiscountSpecification.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'forEachAmount' + ], + 'forEachQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'forEachQuantity' + ], + 'minAmount' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minAmount' + ], + 'minQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minQuantity' + ], + 'numberOfDiscountedItems' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'numberOfDiscountedItems' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/EndCampaignRestRequest.php b/src/Marketing/Types/EndCampaignRestRequest.php new file mode 100644 index 000000000..5dbe7fb85 --- /dev/null +++ b/src/Marketing/Types/EndCampaignRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/EndCampaignRestResponse.php b/src/Marketing/Types/EndCampaignRestResponse.php new file mode 100644 index 000000000..f7c36b8be --- /dev/null +++ b/src/Marketing/Types/EndCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/ErrorDetailV3.php b/src/Marketing/Types/ErrorDetailV3.php new file mode 100644 index 000000000..5db7d47f4 --- /dev/null +++ b/src/Marketing/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ErrorParameterV3.php b/src/Marketing/Types/ErrorParameterV3.php new file mode 100644 index 000000000..ce7be5625 --- /dev/null +++ b/src/Marketing/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/FindCampaignByAdReferenceRestRequest.php b/src/Marketing/Types/FindCampaignByAdReferenceRestRequest.php new file mode 100644 index 000000000..7712c63f1 --- /dev/null +++ b/src/Marketing/Types/FindCampaignByAdReferenceRestRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventory_reference_id' + ], + 'inventory_reference_type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventory_reference_type' + ], + 'listing_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listing_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/FindCampaignByAdReferenceRestResponse.php b/src/Marketing/Types/FindCampaignByAdReferenceRestResponse.php new file mode 100644 index 000000000..cde2cfba7 --- /dev/null +++ b/src/Marketing/Types/FindCampaignByAdReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/FundingStrategy.php b/src/Marketing/Types/FundingStrategy.php new file mode 100644 index 000000000..c5a3dd887 --- /dev/null +++ b/src/Marketing/Types/FundingStrategy.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidPercentage' + ], + 'fundingModel' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fundingModel' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetAdByIDRestRequest.php b/src/Marketing/Types/GetAdByIDRestRequest.php new file mode 100644 index 000000000..f621608ca --- /dev/null +++ b/src/Marketing/Types/GetAdByIDRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ad_id' + ], + 'campaign_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetAdByIDRestResponse.php b/src/Marketing/Types/GetAdByIDRestResponse.php new file mode 100644 index 000000000..9bcf78727 --- /dev/null +++ b/src/Marketing/Types/GetAdByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetAdsByInventoryReferenceRestRequest.php b/src/Marketing/Types/GetAdsByInventoryReferenceRestRequest.php new file mode 100644 index 000000000..6cdc5d3b2 --- /dev/null +++ b/src/Marketing/Types/GetAdsByInventoryReferenceRestRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ], + 'inventory_reference_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventory_reference_id' + ], + 'inventory_reference_type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventory_reference_type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetAdsByInventoryReferenceRestResponse.php b/src/Marketing/Types/GetAdsByInventoryReferenceRestResponse.php new file mode 100644 index 000000000..da30f9607 --- /dev/null +++ b/src/Marketing/Types/GetAdsByInventoryReferenceRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetAdsRestRequest.php b/src/Marketing/Types/GetAdsRestRequest.php new file mode 100644 index 000000000..bc8319129 --- /dev/null +++ b/src/Marketing/Types/GetAdsRestRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'listing_ids' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listing_ids' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetAdsRestResponse.php b/src/Marketing/Types/GetAdsRestResponse.php new file mode 100644 index 000000000..d45778bb8 --- /dev/null +++ b/src/Marketing/Types/GetAdsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetAllCampaignsRestRequest.php b/src/Marketing/Types/GetAllCampaignsRestRequest.php new file mode 100644 index 000000000..58a347c5d --- /dev/null +++ b/src/Marketing/Types/GetAllCampaignsRestRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_name' + ], + 'campaign_status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_status' + ], + 'end_date_range' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'end_date_range' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'start_date_range' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'start_date_range' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetAllCampaignsRestResponse.php b/src/Marketing/Types/GetAllCampaignsRestResponse.php new file mode 100644 index 000000000..14806d59c --- /dev/null +++ b/src/Marketing/Types/GetAllCampaignsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetCampaignByIDRestRequest.php b/src/Marketing/Types/GetCampaignByIDRestRequest.php new file mode 100644 index 000000000..e9a0883a3 --- /dev/null +++ b/src/Marketing/Types/GetCampaignByIDRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetCampaignByIDRestResponse.php b/src/Marketing/Types/GetCampaignByIDRestResponse.php new file mode 100644 index 000000000..eb891d985 --- /dev/null +++ b/src/Marketing/Types/GetCampaignByIDRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetCampaignByNameRestRequest.php b/src/Marketing/Types/GetCampaignByNameRestRequest.php new file mode 100644 index 000000000..65124c9f1 --- /dev/null +++ b/src/Marketing/Types/GetCampaignByNameRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetCampaignByNameRestResponse.php b/src/Marketing/Types/GetCampaignByNameRestResponse.php new file mode 100644 index 000000000..3f3e56a8b --- /dev/null +++ b/src/Marketing/Types/GetCampaignByNameRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetItemPromotionRestRequest.php b/src/Marketing/Types/GetItemPromotionRestRequest.php new file mode 100644 index 000000000..239f01d67 --- /dev/null +++ b/src/Marketing/Types/GetItemPromotionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetItemPromotionRestResponse.php b/src/Marketing/Types/GetItemPromotionRestResponse.php new file mode 100644 index 000000000..fc5cd542a --- /dev/null +++ b/src/Marketing/Types/GetItemPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetPromotionSummaryReportRestRequest.php b/src/Marketing/Types/GetPromotionSummaryReportRestRequest.php new file mode 100644 index 000000000..a553119d6 --- /dev/null +++ b/src/Marketing/Types/GetPromotionSummaryReportRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetPromotionSummaryReportRestResponse.php b/src/Marketing/Types/GetPromotionSummaryReportRestResponse.php new file mode 100644 index 000000000..b516b5db5 --- /dev/null +++ b/src/Marketing/Types/GetPromotionSummaryReportRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/GetPromotionsRestRequest.php b/src/Marketing/Types/GetPromotionsRestRequest.php new file mode 100644 index 000000000..4eaf726e8 --- /dev/null +++ b/src/Marketing/Types/GetPromotionsRestRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'marketplace_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplace_id' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'promotion_status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_status' + ], + 'q' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'q' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/GetPromotionsRestResponse.php b/src/Marketing/Types/GetPromotionsRestResponse.php new file mode 100644 index 000000000..7e699ac34 --- /dev/null +++ b/src/Marketing/Types/GetPromotionsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/InventoryCriterion.php b/src/Marketing/Types/InventoryCriterion.php new file mode 100644 index 000000000..18189ba6a --- /dev/null +++ b/src/Marketing/Types/InventoryCriterion.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryCriterionType' + ], + 'inventoryItems' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\InventoryItem', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inventoryItems' + ], + 'listingIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'listingIds' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/InventoryItem.php b/src/Marketing/Types/InventoryItem.php new file mode 100644 index 000000000..50b301171 --- /dev/null +++ b/src/Marketing/Types/InventoryItem.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceId' + ], + 'inventoryReferenceType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryReferenceType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ItemPromotion.php b/src/Marketing/Types/ItemPromotion.php new file mode 100644 index 000000000..36f7f1a65 --- /dev/null +++ b/src/Marketing/Types/ItemPromotion.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'discountRules' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DiscountRule', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'discountRules' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'inventoryCriterion' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\InventoryCriterion', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryCriterion' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'priority' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ], + 'promotionImageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionImageUrl' + ], + 'promotionStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionStatus' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ItemPromotionResponse.php b/src/Marketing/Types/ItemPromotionResponse.php new file mode 100644 index 000000000..ef948f845 --- /dev/null +++ b/src/Marketing/Types/ItemPromotionResponse.php @@ -0,0 +1,116 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'discountRules' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\DiscountRule', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'discountRules' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'inventoryCriterion' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\InventoryCriterion', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inventoryCriterion' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'priority' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ], + 'promotionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionId' + ], + 'promotionImageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionImageUrl' + ], + 'promotionStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionStatus' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/PauseAPromotionRestRequest.php b/src/Marketing/Types/PauseAPromotionRestRequest.php new file mode 100644 index 000000000..b78f40ebf --- /dev/null +++ b/src/Marketing/Types/PauseAPromotionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/PauseAPromotionRestResponse.php b/src/Marketing/Types/PauseAPromotionRestResponse.php new file mode 100644 index 000000000..030a9ca3f --- /dev/null +++ b/src/Marketing/Types/PauseAPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/PauseCampaignRestRequest.php b/src/Marketing/Types/PauseCampaignRestRequest.php new file mode 100644 index 000000000..13cca2efb --- /dev/null +++ b/src/Marketing/Types/PauseCampaignRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/PauseCampaignRestResponse.php b/src/Marketing/Types/PauseCampaignRestResponse.php new file mode 100644 index 000000000..5ae077c28 --- /dev/null +++ b/src/Marketing/Types/PauseCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/PromotionDetail.php b/src/Marketing/Types/PromotionDetail.php new file mode 100644 index 000000000..2a792d059 --- /dev/null +++ b/src/Marketing/Types/PromotionDetail.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'priority' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ], + 'promotionHref' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionHref' + ], + 'promotionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionId' + ], + 'promotionImageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionImageUrl' + ], + 'promotionStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionStatus' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/PromotionsPagedCollection.php b/src/Marketing/Types/PromotionsPagedCollection.php new file mode 100644 index 000000000..cf3ff792f --- /dev/null +++ b/src/Marketing/Types/PromotionsPagedCollection.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'href' + ], + 'limit' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'next' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'next' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'prev' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'prev' + ], + 'promotions' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\PromotionDetail', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'promotions' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ResumeAPromotionRestRequest.php b/src/Marketing/Types/ResumeAPromotionRestRequest.php new file mode 100644 index 000000000..7234c12ae --- /dev/null +++ b/src/Marketing/Types/ResumeAPromotionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ResumeAPromotionRestResponse.php b/src/Marketing/Types/ResumeAPromotionRestResponse.php new file mode 100644 index 000000000..5c489476d --- /dev/null +++ b/src/Marketing/Types/ResumeAPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/ResumeCampaignRestRequest.php b/src/Marketing/Types/ResumeCampaignRestRequest.php new file mode 100644 index 000000000..faf509d2c --- /dev/null +++ b/src/Marketing/Types/ResumeCampaignRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/ResumeCampaignRestResponse.php b/src/Marketing/Types/ResumeCampaignRestResponse.php new file mode 100644 index 000000000..62866c598 --- /dev/null +++ b/src/Marketing/Types/ResumeCampaignRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/SelectionRule.php b/src/Marketing/Types/SelectionRule.php new file mode 100644 index 000000000..66b0175da --- /dev/null +++ b/src/Marketing/Types/SelectionRule.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'brands' + ], + 'categoryIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryIds' + ], + 'categoryScope' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryScope' + ], + 'listingConditionIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'listingConditionIds' + ], + 'maxPrice' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxPrice' + ], + 'minPrice' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minPrice' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/SortField.php b/src/Marketing/Types/SortField.php new file mode 100644 index 000000000..9d381a965 --- /dev/null +++ b/src/Marketing/Types/SortField.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ascending' + ], + 'field' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/SummaryReportResponse.php b/src/Marketing/Types/SummaryReportResponse.php new file mode 100644 index 000000000..1665acb76 --- /dev/null +++ b/src/Marketing/Types/SummaryReportResponse.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'baseSale' + ], + 'lastUpdated' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastUpdated' + ], + 'percentageSalesLift' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'percentageSalesLift' + ], + 'promotionSale' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionSale' + ], + 'totalSale' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalSale' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateBidPercentageRequest.php b/src/Marketing/Types/UpdateBidPercentageRequest.php new file mode 100644 index 000000000..178075697 --- /dev/null +++ b/src/Marketing/Types/UpdateBidPercentageRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidPercentage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateBidRestRequest.php b/src/Marketing/Types/UpdateBidRestRequest.php new file mode 100644 index 000000000..3bd2e4c37 --- /dev/null +++ b/src/Marketing/Types/UpdateBidRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ad_id' + ], + 'campaign_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateBidRestResponse.php b/src/Marketing/Types/UpdateBidRestResponse.php new file mode 100644 index 000000000..55d285307 --- /dev/null +++ b/src/Marketing/Types/UpdateBidRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/UpdateCampaignIDentificationRestRequest.php b/src/Marketing/Types/UpdateCampaignIDentificationRestRequest.php new file mode 100644 index 000000000..81bb81e42 --- /dev/null +++ b/src/Marketing/Types/UpdateCampaignIDentificationRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaign_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateCampaignIDentificationRestResponse.php b/src/Marketing/Types/UpdateCampaignIDentificationRestResponse.php new file mode 100644 index 000000000..20b058721 --- /dev/null +++ b/src/Marketing/Types/UpdateCampaignIDentificationRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Marketing/Types/UpdateCampaignIdentificationRequest.php b/src/Marketing/Types/UpdateCampaignIdentificationRequest.php new file mode 100644 index 000000000..9a04f8d27 --- /dev/null +++ b/src/Marketing/Types/UpdateCampaignIdentificationRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'campaignName' + ], + 'endDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endDate' + ], + 'startDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateItemPromotionRestRequest.php b/src/Marketing/Types/UpdateItemPromotionRestRequest.php new file mode 100644 index 000000000..111ace935 --- /dev/null +++ b/src/Marketing/Types/UpdateItemPromotionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotion_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Marketing/Types/UpdateItemPromotionRestResponse.php b/src/Marketing/Types/UpdateItemPromotionRestResponse.php new file mode 100644 index 000000000..61e073bf3 --- /dev/null +++ b/src/Marketing/Types/UpdateItemPromotionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Marketing\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Merchandising/Enums/AckValue.php b/src/Merchandising/Enums/AckValue.php new file mode 100644 index 000000000..7be734402 --- /dev/null +++ b/src/Merchandising/Enums/AckValue.php @@ -0,0 +1,19 @@ + [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Merchandising\Services\MerchandisingService::API_VERSION + ], + 'globalId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @param string $operationName The name of the operation been called. + * + * @return array An associative array of eBay http headers. + */ + protected function getEbayHeaders($operationName) + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_APP_ID] = $this->getConfig('credentials')->getAppId(); + $headers[self::HDR_OPERATION_NAME] = $operationName; + + // Add optional headers. + if ($this->getConfig('apiVersion')) { + $headers[self::HDR_API_VERSION] = $this->getConfig('apiVersion'); + } + + if ($this->getConfig('globalId')) { + $headers[self::HDR_GLOBAL_ID] = $this->getConfig('globalId'); + } + + return $headers; + } +} diff --git a/src/Merchandising/Services/MerchandisingService.php b/src/Merchandising/Services/MerchandisingService.php new file mode 100644 index 000000000..87076b821 --- /dev/null +++ b/src/Merchandising/Services/MerchandisingService.php @@ -0,0 +1,156 @@ +getRelatedCategoryItemsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetRelatedCategoryItemsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getRelatedCategoryItemsAsync(\DTS\eBaySDK\Merchandising\Types\GetRelatedCategoryItemsRequest $request) + { + return $this->callOperationAsync( + 'getRelatedCategoryItems', + $request, + '\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetMostWatchedItemsRequest $request + * @return \DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse + */ + public function getMostWatchedItems(\DTS\eBaySDK\Merchandising\Types\GetMostWatchedItemsRequest $request) + { + return $this->getMostWatchedItemsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetMostWatchedItemsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMostWatchedItemsAsync(\DTS\eBaySDK\Merchandising\Types\GetMostWatchedItemsRequest $request) + { + return $this->callOperationAsync( + 'getMostWatchedItems', + $request, + '\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetTopSellingProductsRequest $request + * @return \DTS\eBaySDK\Merchandising\Types\MerchandisingServiceProductResponse + */ + public function getTopSellingProducts(\DTS\eBaySDK\Merchandising\Types\GetTopSellingProductsRequest $request) + { + return $this->getTopSellingProductsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetTopSellingProductsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getTopSellingProductsAsync(\DTS\eBaySDK\Merchandising\Types\GetTopSellingProductsRequest $request) + { + return $this->callOperationAsync( + 'getTopSellingProducts', + $request, + '\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceProductResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetDealsRequest $request + * @return \DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse + */ + public function getDeals(\DTS\eBaySDK\Merchandising\Types\GetDealsRequest $request) + { + return $this->getDealsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetDealsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDealsAsync(\DTS\eBaySDK\Merchandising\Types\GetDealsRequest $request) + { + return $this->callOperationAsync( + 'getDeals', + $request, + '\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetSimilarItemsRequest $request + * @return \DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse + */ + public function getSimilarItems(\DTS\eBaySDK\Merchandising\Types\GetSimilarItemsRequest $request) + { + return $this->getSimilarItemsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetSimilarItemsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSimilarItemsAsync(\DTS\eBaySDK\Merchandising\Types\GetSimilarItemsRequest $request) + { + return $this->callOperationAsync( + 'getSimilarItems', + $request, + '\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetVersionRequest $request + * @return \DTS\eBaySDK\Merchandising\Types\GetVersionResponse + */ + public function getVersion(\DTS\eBaySDK\Merchandising\Types\GetVersionRequest $request) + { + return $this->getVersionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Merchandising\Types\GetVersionRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getVersionAsync(\DTS\eBaySDK\Merchandising\Types\GetVersionRequest $request) + { + return $this->callOperationAsync( + 'getVersion', + $request, + '\DTS\eBaySDK\Merchandising\Types\GetVersionResponse' + ); + } +} diff --git a/src/Merchandising/Types/Affiliate.php b/src/Merchandising/Types/Affiliate.php new file mode 100644 index 000000000..25cecff0e --- /dev/null +++ b/src/Merchandising/Types/Affiliate.php @@ -0,0 +1,64 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingId' + ], + 'networkId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'networkId' + ], + 'customId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'customId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/Amount.php b/src/Merchandising/Types/Amount.php new file mode 100644 index 000000000..ca351b643 --- /dev/null +++ b/src/Merchandising/Types/Amount.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'currencyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/BaseMerchandisingServiceRequest.php b/src/Merchandising/Types/BaseMerchandisingServiceRequest.php new file mode 100644 index 000000000..a01884e47 --- /dev/null +++ b/src/Merchandising/Types/BaseMerchandisingServiceRequest.php @@ -0,0 +1,57 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxResults' + ], + 'affiliate' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Affiliate', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'affiliate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/BaseMerchandisingServiceResponse.php b/src/Merchandising/Types/BaseMerchandisingServiceResponse.php new file mode 100644 index 000000000..244c9032b --- /dev/null +++ b/src/Merchandising/Types/BaseMerchandisingServiceResponse.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/BaseServiceRequest.php b/src/Merchandising/Types/BaseServiceRequest.php new file mode 100644 index 000000000..3b280729a --- /dev/null +++ b/src/Merchandising/Types/BaseServiceRequest.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/BaseServiceResponse.php b/src/Merchandising/Types/BaseServiceResponse.php new file mode 100644 index 000000000..d2dd0a741 --- /dev/null +++ b/src/Merchandising/Types/BaseServiceResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/DiscountPriceInfo.php b/src/Merchandising/Types/DiscountPriceInfo.php new file mode 100644 index 000000000..e7791c1e3 --- /dev/null +++ b/src/Merchandising/Types/DiscountPriceInfo.php @@ -0,0 +1,71 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originalRetailPrice' + ], + 'pricingTreatment' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingTreatment' + ], + 'soldOnEbay' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldOnEbay' + ], + 'soldOffEbay' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'soldOffEbay' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ErrorData.php b/src/Merchandising/Types/ErrorData.php new file mode 100644 index 000000000..a8cddb88d --- /dev/null +++ b/src/Merchandising/Types/ErrorData.php @@ -0,0 +1,99 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ], + 'exceptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exceptionId' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ErrorMessage.php b/src/Merchandising/Types/ErrorMessage.php new file mode 100644 index 000000000..be469f131 --- /dev/null +++ b/src/Merchandising/Types/ErrorMessage.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ErrorData', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ErrorParameter.php b/src/Merchandising/Types/ErrorParameter.php new file mode 100644 index 000000000..f6b09abc8 --- /dev/null +++ b/src/Merchandising/Types/ErrorParameter.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetDealsRequest.php b/src/Merchandising/Types/GetDealsRequest.php new file mode 100644 index 000000000..4beef9595 --- /dev/null +++ b/src/Merchandising/Types/GetDealsRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'keywords' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getDealsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetMostWatchedItemsRequest.php b/src/Merchandising/Types/GetMostWatchedItemsRequest.php new file mode 100644 index 000000000..f080d9b14 --- /dev/null +++ b/src/Merchandising/Types/GetMostWatchedItemsRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getMostWatchedItemsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetRelatedCategoryItemsRequest.php b/src/Merchandising/Types/GetRelatedCategoryItemsRequest.php new file mode 100644 index 000000000..5cd83993e --- /dev/null +++ b/src/Merchandising/Types/GetRelatedCategoryItemsRequest.php @@ -0,0 +1,68 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'itemFilter' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ItemFilter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemFilter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getRelatedCategoryItemsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetSimilarItemsRequest.php b/src/Merchandising/Types/GetSimilarItemsRequest.php new file mode 100644 index 000000000..75a1b5b0c --- /dev/null +++ b/src/Merchandising/Types/GetSimilarItemsRequest.php @@ -0,0 +1,103 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'categoryIdExclude' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categoryIdExclude' + ], + 'listingType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listingType' + ], + 'endTimeTo' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endTimeTo' + ], + 'endTimeFrom' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endTimeFrom' + ], + 'maxPrice' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxPrice' + ], + 'itemFilter' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ItemFilter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemFilter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getSimilarItemsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetTopSellingProductsRequest.php b/src/Merchandising/Types/GetTopSellingProductsRequest.php new file mode 100644 index 000000000..e3afc39a5 --- /dev/null +++ b/src/Merchandising/Types/GetTopSellingProductsRequest.php @@ -0,0 +1,47 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetVersionRequest.php b/src/Merchandising/Types/GetVersionRequest.php new file mode 100644 index 000000000..d3333517c --- /dev/null +++ b/src/Merchandising/Types/GetVersionRequest.php @@ -0,0 +1,47 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/GetVersionResponse.php b/src/Merchandising/Types/GetVersionResponse.php new file mode 100644 index 000000000..0312fc1f9 --- /dev/null +++ b/src/Merchandising/Types/GetVersionResponse.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/Item.php b/src/Merchandising/Types/Item.php new file mode 100644 index 000000000..d0b14618d --- /dev/null +++ b/src/Merchandising/Types/Item.php @@ -0,0 +1,169 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'viewItemURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'viewItemURL' + ], + 'currentPrice' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentPrice' + ], + 'originalPrice' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originalPrice' + ], + 'globalId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'globalId' + ], + 'timeLeft' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timeLeft' + ], + 'primaryCategoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryCategoryId' + ], + 'primaryCategoryName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primaryCategoryName' + ], + 'subtitle' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subtitle' + ], + 'bidCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bidCount' + ], + 'buyItNowPrice' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyItNowPrice' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'imageURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'imageURL' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'shippingType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingType' + ], + 'watchCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'watchCount' + ], + 'discountPriceInfo' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\DiscountPriceInfo', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountPriceInfo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ItemFilter.php b/src/Merchandising/Types/ItemFilter.php new file mode 100644 index 000000000..97e28f65f --- /dev/null +++ b/src/Merchandising/Types/ItemFilter.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paramName' + ], + 'paramValue' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paramValue' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ItemRecommendations.php b/src/Merchandising/Types/ItemRecommendations.php new file mode 100644 index 000000000..5c2d7213a --- /dev/null +++ b/src/Merchandising/Types/ItemRecommendations.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Item', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'item' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/MerchandisingServiceItemResponse.php b/src/Merchandising/Types/MerchandisingServiceItemResponse.php new file mode 100644 index 000000000..d1a6a6ce3 --- /dev/null +++ b/src/Merchandising/Types/MerchandisingServiceItemResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ItemRecommendations', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemRecommendations' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/MerchandisingServiceProductResponse.php b/src/Merchandising/Types/MerchandisingServiceProductResponse.php new file mode 100644 index 000000000..2e444cb79 --- /dev/null +++ b/src/Merchandising/Types/MerchandisingServiceProductResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ProductRecommendations', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productRecommendations' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/Product.php b/src/Merchandising/Types/Product.php new file mode 100644 index 000000000..c0383ece6 --- /dev/null +++ b/src/Merchandising/Types/Product.php @@ -0,0 +1,99 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\ProductId', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productId' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'productURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productURL' + ], + 'catalogName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'catalogName' + ], + 'imageURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'imageURL' + ], + 'reviewCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reviewCount' + ], + 'priceRangeMin' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceRangeMin' + ], + 'priceRangeMax' => [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceRangeMax' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ProductId.php b/src/Merchandising/Types/ProductId.php new file mode 100644 index 000000000..54b9bb420 --- /dev/null +++ b/src/Merchandising/Types/ProductId.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Merchandising/Types/ProductRecommendations.php b/src/Merchandising/Types/ProductRecommendations.php new file mode 100644 index 000000000..c3cc8137e --- /dev/null +++ b/src/Merchandising/Types/ProductRecommendations.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Merchandising\Types\Product', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'product' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/MerchantData/Enums/AckCodeType.php b/src/MerchantData/Enums/AckCodeType.php index c261520d9..fc44cc92f 100644 --- a/src/MerchantData/Enums/AckCodeType.php +++ b/src/MerchantData/Enums/AckCodeType.php @@ -1,15 +1,15 @@ bulkDataExchangeResponses($xml)->VerifyAddItemResponse; } + /** + * @param string $xml + * + * @return \DTS\eBaySDK\MerchantData\Types\BulkDataExchangeResponsesType + */ private function parseXml($xml) { return $this->xmlParser->parse($xml); diff --git a/src/MerchantData/Types/AbstractRequestType.php b/src/MerchantData/Types/AbstractRequestType.php index 09ae67d37..d7c0c0094 100644 --- a/src/MerchantData/Types/AbstractRequestType.php +++ b/src/MerchantData/Types/AbstractRequestType.php @@ -1,16 +1,17 @@ [ - 'type' => 'DTS\eBaySDK\MerchantData\Types\CustomSecurityHeaderType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RequesterCredentials' - ], - 'RequesterCredentials' => [ - 'type' => 'DTS\eBaySDK\MerchantData\Types\XMLRequesterCredentialsType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RequesterCredentials' - ], 'DetailLevel' => [ 'type' => 'string', 'repeatable' => true, diff --git a/src/MerchantData/Types/AbstractResponseType.php b/src/MerchantData/Types/AbstractResponseType.php index 95d92c925..7a2d4e1e9 100644 --- a/src/MerchantData/Types/AbstractResponseType.php +++ b/src/MerchantData/Types/AbstractResponseType.php @@ -1,8 +1,11 @@ 'https://api.sandbox.ebay.com/sell/metadata', + 'production' => 'https://api.ebay.com/sell/metadata' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Metadata\Services\MetadataService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/Metadata/Services/MetadataService.php b/src/Metadata/Services/MetadataService.php new file mode 100644 index 000000000..18fd84588 --- /dev/null +++ b/src/Metadata/Services/MetadataService.php @@ -0,0 +1,59 @@ + [ + 'method' => 'GET', + 'resource' => 'country/{countryCode}/sales_tax_jurisdiction', + 'responseClass' => '\DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestResponse', + 'params' => [ + 'countryCode' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestRequest $request + * @return \DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestResponse + */ + public function getSalesTaxJurisdictions(\DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestRequest $request) + { + return $this->getSalesTaxJurisdictionsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSalesTaxJurisdictionsAsync(\DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestRequest $request) + { + return $this->callOperationAsync('GetSalesTaxJurisdictions', $request); + } +} diff --git a/src/Metadata/Types/ErrorDetailV3.php b/src/Metadata/Types/ErrorDetailV3.php new file mode 100644 index 000000000..e9c116129 --- /dev/null +++ b/src/Metadata/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Metadata\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subDomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subDomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Metadata/Types/ErrorParameterV3.php b/src/Metadata/Types/ErrorParameterV3.php new file mode 100644 index 000000000..0c2540e3c --- /dev/null +++ b/src/Metadata/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Metadata/Types/GetSalesTaxJurisdictionsRestRequest.php b/src/Metadata/Types/GetSalesTaxJurisdictionsRestRequest.php new file mode 100644 index 000000000..e28227d39 --- /dev/null +++ b/src/Metadata/Types/GetSalesTaxJurisdictionsRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countryCode' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Metadata/Types/GetSalesTaxJurisdictionsRestResponse.php b/src/Metadata/Types/GetSalesTaxJurisdictionsRestResponse.php new file mode 100644 index 000000000..7fd18b31d --- /dev/null +++ b/src/Metadata/Types/GetSalesTaxJurisdictionsRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Metadata\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Metadata\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Metadata/Types/SalesTaxJurisdiction.php b/src/Metadata/Types/SalesTaxJurisdiction.php new file mode 100644 index 000000000..142a48be0 --- /dev/null +++ b/src/Metadata/Types/SalesTaxJurisdiction.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'salesTaxJurisdictionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Metadata/Types/SalesTaxJurisdictions.php b/src/Metadata/Types/SalesTaxJurisdictions.php new file mode 100644 index 000000000..820abce9b --- /dev/null +++ b/src/Metadata/Types/SalesTaxJurisdictions.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Metadata\Types\SalesTaxJurisdiction', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'salesTaxJurisdictions' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Enums/CountryCodeEnum.php b/src/Order/Enums/CountryCodeEnum.php new file mode 100644 index 000000000..0730c04de --- /dev/null +++ b/src/Order/Enums/CountryCodeEnum.php @@ -0,0 +1,264 @@ + 'https://api.sandbox.ebay.com/buy/order', + 'production' => 'https://api.ebay.com/buy/order' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTHORIZATION = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * HTTP header constant. This header specifies the risk correlation ID, which is provided by a security software library. + */ + const HDR_END_USER_CTX = 'X-EBAY-C-ENDUSERCTX'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Order\Services\OrderService::API_VERSION, + 'required' => true + ], + 'authorization' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ], + 'riskCorrelationId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTHORIZATION] = 'Bearer '.$this->getConfig('authorization'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + if ($this->getConfig('riskCorrelationId')) { + $headers[self::HDR_END_USER_CTX ] = 'deviceId='.$this->getConfig('riskCorrelationId'); + } + + return $headers; + } +} diff --git a/src/Order/Services/OrderService.php b/src/Order/Services/OrderService.php new file mode 100644 index 000000000..92211705a --- /dev/null +++ b/src/Order/Services/OrderService.php @@ -0,0 +1,486 @@ + [ + 'method' => 'GET', + 'resource' => 'checkout_session/{checkoutSessionId}', + 'responseClass' => '\DTS\eBaySDK\Order\Types\GetCheckoutSessionRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'InitiateCheckoutSession' => [ + 'method' => 'POST', + 'resource' => 'checkout_session/initiate', + 'responseClass' => '\DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestResponse', + 'params' => [ + ] + ], + 'PlaceOrder' => [ + 'method' => 'POST', + 'resource' => 'checkout_session/{checkoutSessionId}/place_order', + 'responseClass' => '\DTS\eBaySDK\Order\Types\PlaceOrderRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdatePaymentInfo' => [ + 'method' => 'POST', + 'resource' => 'checkout_session/{checkoutSessionId}/update_payment_info', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateQuantityForLineItem' => [ + 'method' => 'POST', + 'resource' => 'checkout_session/{checkoutSessionId}/update_quantity', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateShippingAddress' => [ + 'method' => 'POST', + 'resource' => '_session/{checkoutSessionId}/update_shipping_address', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateShippingAddressRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateShippingOption' => [ + 'method' => 'POST', + 'resource' => 'checkout_session/{checkoutSessionId}/update_shipping_option', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateShippingOptionRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetGuestCheckoutSession' => [ + 'method' => 'GET', + 'resource' => 'guest_checkout_session/{checkoutSessionId}', + 'responseClass' => '\DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'InitiateGuestCheckoutSession' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/initiate', + 'responseClass' => '\DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestResponse', + 'params' => [ + ] + ], + 'PlaceGuestOrder' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/{checkoutSessionId}/place_order', + 'responseClass' => '\DTS\eBaySDK\Order\Types\PlaceGuestOrderRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateGuestLineItemQuantity' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/{checkoutSessionId}/update_quantity', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateGuestLineItemShippingAddress' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/{checkoutSessionId}/update_shipping_address', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateGuestPaymentInfo' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/{checkoutSessionId}/update_payment_info', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateGuestShippingOption' => [ + 'method' => 'POST', + 'resource' => 'guest_checkout_session/{checkoutSessionId}/update_shipping_option', + 'responseClass' => '\DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestResponse', + 'params' => [ + 'checkoutSessionId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetGuestPurchaseOrder' => [ + 'method' => 'GET', + 'resource' => 'guest_purchase_order/{purchaseOrderId}', + 'responseClass' => '\DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestResponse', + 'params' => [ + 'purchaseOrderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetPurchaseOrder' => [ + 'method' => 'GET', + 'resource' => 'purchase_order/{purchaseOrderId}', + 'responseClass' => '\DTS\eBaySDK\Order\Types\GetPurchaseOrderRestResponse', + 'params' => [ + 'purchaseOrderId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetCheckoutSessionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\GetCheckoutSessionRestResponse + */ + public function getCheckoutSession(\DTS\eBaySDK\Order\Types\GetCheckoutSessionRestRequest $request) + { + return $this->getCheckoutSessionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetCheckoutSessionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCheckoutSessionAsync(\DTS\eBaySDK\Order\Types\GetCheckoutSessionRestRequest $request) + { + return $this->callOperationAsync('GetCheckoutSession', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestResponse + */ + public function initiateCheckoutSession(\DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestRequest $request) + { + return $this->initiateCheckoutSessionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function initiateCheckoutSessionAsync(\DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestRequest $request) + { + return $this->callOperationAsync('InitiateCheckoutSession', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\PlaceOrderRestRequest $request + * @return \DTS\eBaySDK\Order\Types\PlaceOrderRestResponse + */ + public function placeOrder(\DTS\eBaySDK\Order\Types\PlaceOrderRestRequest $request) + { + return $this->placeOrderAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\PlaceOrderRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function placeOrderAsync(\DTS\eBaySDK\Order\Types\PlaceOrderRestRequest $request) + { + return $this->callOperationAsync('PlaceOrder', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestResponse + */ + public function updatePaymentInfo(\DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestRequest $request) + { + return $this->updatePaymentInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updatePaymentInfoAsync(\DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestRequest $request) + { + return $this->callOperationAsync('UpdatePaymentInfo', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestResponse + */ + public function updateQuantityForLineItem(\DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestRequest $request) + { + return $this->updateQuantityForLineItemAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateQuantityForLineItemAsync(\DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestRequest $request) + { + return $this->callOperationAsync('UpdateQuantityForLineItem', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateShippingAddressRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateShippingAddressRestResponse + */ + public function updateShippingAddress(\DTS\eBaySDK\Order\Types\UpdateShippingAddressRestRequest $request) + { + return $this->updateShippingAddressAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateShippingAddressRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateShippingAddressAsync(\DTS\eBaySDK\Order\Types\UpdateShippingAddressRestRequest $request) + { + return $this->callOperationAsync('UpdateShippingAddress', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateShippingOptionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateShippingOptionRestResponse + */ + public function updateShippingOption(\DTS\eBaySDK\Order\Types\UpdateShippingOptionRestRequest $request) + { + return $this->updateShippingOptionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateShippingOptionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateShippingOptionAsync(\DTS\eBaySDK\Order\Types\UpdateShippingOptionRestRequest $request) + { + return $this->callOperationAsync('UpdateShippingOption', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestResponse + */ + public function getGuestCheckoutSession(\DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestRequest $request) + { + return $this->getGuestCheckoutSessionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGuestCheckoutSessionAsync(\DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestRequest $request) + { + return $this->callOperationAsync('GetGuestCheckoutSession', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestResponse + */ + public function initiateGuestCheckoutSession(\DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestRequest $request) + { + return $this->initiateGuestCheckoutSessionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function initiateGuestCheckoutSessionAsync(\DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestRequest $request) + { + return $this->callOperationAsync('InitiateGuestCheckoutSession', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\PlaceGuestOrderRestRequest $request + * @return \DTS\eBaySDK\Order\Types\PlaceGuestOrderRestResponse + */ + public function placeGuestOrder(\DTS\eBaySDK\Order\Types\PlaceGuestOrderRestRequest $request) + { + return $this->placeGuestOrderAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\PlaceGuestOrderRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function placeGuestOrderAsync(\DTS\eBaySDK\Order\Types\PlaceGuestOrderRestRequest $request) + { + return $this->callOperationAsync('PlaceGuestOrder', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestResponse + */ + public function updateGuestLineItemQuantity(\DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestRequest $request) + { + return $this->updateGuestLineItemQuantityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGuestLineItemQuantityAsync(\DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestRequest $request) + { + return $this->callOperationAsync('UpdateGuestLineItemQuantity', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestResponse + */ + public function updateGuestLineItemShippingAddress(\DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestRequest $request) + { + return $this->updateGuestLineItemShippingAddressAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGuestLineItemShippingAddressAsync(\DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestRequest $request) + { + return $this->callOperationAsync('UpdateGuestLineItemShippingAddress', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestResponse + */ + public function updateGuestPaymentInfo(\DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestRequest $request) + { + return $this->updateGuestPaymentInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGuestPaymentInfoAsync(\DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestRequest $request) + { + return $this->callOperationAsync('UpdateGuestPaymentInfo', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestRequest $request + * @return \DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestResponse + */ + public function updateGuestShippingOption(\DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestRequest $request) + { + return $this->updateGuestShippingOptionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGuestShippingOptionAsync(\DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestRequest $request) + { + return $this->callOperationAsync('UpdateGuestShippingOption', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestRequest $request + * @return \DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestResponse + */ + public function getGuestPurchaseOrder(\DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestRequest $request) + { + return $this->getGuestPurchaseOrderAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGuestPurchaseOrderAsync(\DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestRequest $request) + { + return $this->callOperationAsync('GetGuestPurchaseOrder', $request); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetPurchaseOrderRestRequest $request + * @return \DTS\eBaySDK\Order\Types\GetPurchaseOrderRestResponse + */ + public function getPurchaseOrder(\DTS\eBaySDK\Order\Types\GetPurchaseOrderRestRequest $request) + { + return $this->getPurchaseOrderAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Order\Types\GetPurchaseOrderRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPurchaseOrderAsync(\DTS\eBaySDK\Order\Types\GetPurchaseOrderRestRequest $request) + { + return $this->callOperationAsync('GetPurchaseOrder', $request); + } +} diff --git a/src/Order/Types/Adjustment.php b/src/Order/Types/Adjustment.php new file mode 100644 index 000000000..ede578fc3 --- /dev/null +++ b/src/Order/Types/Adjustment.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'label' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'label' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Adjustment_0.php b/src/Order/Types/Adjustment_0.php new file mode 100644 index 000000000..9066f0e99 --- /dev/null +++ b/src/Order/Types/Adjustment_0.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'label' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'label' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Amount.php b/src/Order/Types/Amount.php new file mode 100644 index 000000000..d356d21bb --- /dev/null +++ b/src/Order/Types/Amount.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Amount_0.php b/src/Order/Types/Amount_0.php new file mode 100644 index 000000000..6e00a534f --- /dev/null +++ b/src/Order/Types/Amount_0.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/BillingAddress.php b/src/Order/Types/BillingAddress.php new file mode 100644 index 000000000..44e98f507 --- /dev/null +++ b/src/Order/Types/BillingAddress.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'firstName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'firstName' + ], + 'lastName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastName' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/CheckoutSessionResponse.php b/src/Order/Types/CheckoutSessionResponse.php new file mode 100644 index 000000000..640fc9327 --- /dev/null +++ b/src/Order/Types/CheckoutSessionResponse.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentMethod', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'acceptedPaymentMethods' + ], + 'checkoutSessionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ], + 'expirationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expirationDate' + ], + 'lineItems' => [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItem', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PricingSummary', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'providedPaymentInstrument' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ProvidedPaymentInstrument', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'providedPaymentInstrument' + ], + 'shippingAddress' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAddress' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/CreateGuestCheckoutSessionRequest.php b/src/Order/Types/CreateGuestCheckoutSessionRequest.php new file mode 100644 index 000000000..d1a3d9094 --- /dev/null +++ b/src/Order/Types/CreateGuestCheckoutSessionRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'contactEmail' + ], + 'contactFirstName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'contactFirstName' + ], + 'contactLastName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'contactLastName' + ], + 'creditCard' => [ + 'type' => 'DTS\eBaySDK\Order\Types\CreditCard', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creditCard' + ], + 'lineItemInputs' => [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItemInput', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItemInputs' + ], + 'shippingAddress' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAddress' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/CreateSignInCheckoutSessionRequest.php b/src/Order/Types/CreateSignInCheckoutSessionRequest.php new file mode 100644 index 000000000..a50dce332 --- /dev/null +++ b/src/Order/Types/CreateSignInCheckoutSessionRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\CreditCard', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creditCard' + ], + 'lineItemInputs' => [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItemInput', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItemInputs' + ], + 'shippingAddress' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAddress' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/CreditCard.php b/src/Order/Types/CreditCard.php new file mode 100644 index 000000000..62d0910b4 --- /dev/null +++ b/src/Order/Types/CreditCard.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'accountHolderName' + ], + 'billingAddress' => [ + 'type' => 'DTS\eBaySDK\Order\Types\BillingAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'billingAddress' + ], + 'brand' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'cardNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cardNumber' + ], + 'cvvNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cvvNumber' + ], + 'expireMonth' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expireMonth' + ], + 'expireYear' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expireYear' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ErrorDetailV3.php b/src/Order/Types/ErrorDetailV3.php new file mode 100644 index 000000000..97dcf2877 --- /dev/null +++ b/src/Order/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ErrorParameterV3.php b/src/Order/Types/ErrorParameterV3.php new file mode 100644 index 000000000..425044e88 --- /dev/null +++ b/src/Order/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/GetCheckoutSessionRestRequest.php b/src/Order/Types/GetCheckoutSessionRestRequest.php new file mode 100644 index 000000000..15b16bf9c --- /dev/null +++ b/src/Order/Types/GetCheckoutSessionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/GetCheckoutSessionRestResponse.php b/src/Order/Types/GetCheckoutSessionRestResponse.php new file mode 100644 index 000000000..bd48bead0 --- /dev/null +++ b/src/Order/Types/GetCheckoutSessionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/GetGuestCheckoutSessionRestRequest.php b/src/Order/Types/GetGuestCheckoutSessionRestRequest.php new file mode 100644 index 000000000..0118ee69d --- /dev/null +++ b/src/Order/Types/GetGuestCheckoutSessionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/GetGuestCheckoutSessionRestResponse.php b/src/Order/Types/GetGuestCheckoutSessionRestResponse.php new file mode 100644 index 000000000..ffef6f753 --- /dev/null +++ b/src/Order/Types/GetGuestCheckoutSessionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/GetGuestPurchaseOrderRestRequest.php b/src/Order/Types/GetGuestPurchaseOrderRestRequest.php new file mode 100644 index 000000000..702b5d426 --- /dev/null +++ b/src/Order/Types/GetGuestPurchaseOrderRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/GetGuestPurchaseOrderRestResponse.php b/src/Order/Types/GetGuestPurchaseOrderRestResponse.php new file mode 100644 index 000000000..f23d7e4dc --- /dev/null +++ b/src/Order/Types/GetGuestPurchaseOrderRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/GetPurchaseOrderRestRequest.php b/src/Order/Types/GetPurchaseOrderRestRequest.php new file mode 100644 index 000000000..3c6b74c4b --- /dev/null +++ b/src/Order/Types/GetPurchaseOrderRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/GetPurchaseOrderRestResponse.php b/src/Order/Types/GetPurchaseOrderRestResponse.php new file mode 100644 index 000000000..12f1c10cc --- /dev/null +++ b/src/Order/Types/GetPurchaseOrderRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/GuestPurchaseOrder.php b/src/Order/Types/GuestPurchaseOrder.php new file mode 100644 index 000000000..99ab6d2f0 --- /dev/null +++ b/src/Order/Types/GuestPurchaseOrder.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItem_0', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PricingSummary_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'purchaseOrderCreationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderCreationDate' + ], + 'purchaseOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderId' + ], + 'purchaseOrderPaymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderPaymentStatus' + ], + 'purchaseOrderStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderStatus' + ], + 'refundedAmount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundedAmount' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Image.php b/src/Order/Types/Image.php new file mode 100644 index 000000000..0f49d0fc6 --- /dev/null +++ b/src/Order/Types/Image.php @@ -0,0 +1,60 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'height' + ], + 'imageUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'imageUrl' + ], + 'width' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'width' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/InitiateCheckoutSessionRestRequest.php b/src/Order/Types/InitiateCheckoutSessionRestRequest.php new file mode 100644 index 000000000..34545f79c --- /dev/null +++ b/src/Order/Types/InitiateCheckoutSessionRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/InitiateCheckoutSessionRestResponse.php b/src/Order/Types/InitiateCheckoutSessionRestResponse.php new file mode 100644 index 000000000..27799663f --- /dev/null +++ b/src/Order/Types/InitiateCheckoutSessionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/InitiateGuestCheckoutSessionRestRequest.php b/src/Order/Types/InitiateGuestCheckoutSessionRestRequest.php new file mode 100644 index 000000000..1fe4c95d0 --- /dev/null +++ b/src/Order/Types/InitiateGuestCheckoutSessionRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/InitiateGuestCheckoutSessionRestResponse.php b/src/Order/Types/InitiateGuestCheckoutSessionRestResponse.php new file mode 100644 index 000000000..217244c4d --- /dev/null +++ b/src/Order/Types/InitiateGuestCheckoutSessionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/LineItem.php b/src/Order/Types/LineItem.php new file mode 100644 index 000000000..65f814f9d --- /dev/null +++ b/src/Order/Types/LineItem.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'baseUnitPrice' + ], + 'image' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'lineItemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'netPrice' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'netPrice' + ], + 'promotions' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Promotion', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'promotions' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ], + 'seller' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Seller', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'shippingOptions' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingOptions' + ], + 'shortDescription' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shortDescription' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/LineItemInput.php b/src/Order/Types/LineItemInput.php new file mode 100644 index 000000000..7e043fbc8 --- /dev/null +++ b/src/Order/Types/LineItemInput.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/LineItemReference.php b/src/Order/Types/LineItemReference.php new file mode 100644 index 000000000..8278c970c --- /dev/null +++ b/src/Order/Types/LineItemReference.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/LineItem_0.php b/src/Order/Types/LineItem_0.php new file mode 100644 index 000000000..b93bd9dca --- /dev/null +++ b/src/Order/Types/LineItem_0.php @@ -0,0 +1,109 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'image' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'lineItemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'lineItemPaymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemPaymentStatus' + ], + 'lineItemStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemStatus' + ], + 'netPrice' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'netPrice' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ], + 'seller' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Seller', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'shippingDetail' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingDetail', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingDetail' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PaymentInstrument.php b/src/Order/Types/PaymentInstrument.php new file mode 100644 index 000000000..0a9001e4a --- /dev/null +++ b/src/Order/Types/PaymentInstrument.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentMethodBrand', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'brand' + ], + 'paymentMethodType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PaymentInstrumentReference.php b/src/Order/Types/PaymentInstrumentReference.php new file mode 100644 index 000000000..c200b7712 --- /dev/null +++ b/src/Order/Types/PaymentInstrumentReference.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastFourDigitForCreditCard' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PaymentMethod.php b/src/Order/Types/PaymentMethod.php new file mode 100644 index 000000000..61d852298 --- /dev/null +++ b/src/Order/Types/PaymentMethod.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'label' + ], + 'logoImage' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'logoImage' + ], + 'paymentMethodBrands' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentMethodBrand', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethodBrands' + ], + 'paymentMethodMessages' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentMethodMessage', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'paymentMethodMessages' + ], + 'paymentMethodType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PaymentMethodBrand.php b/src/Order/Types/PaymentMethodBrand.php new file mode 100644 index 000000000..2ad03e630 --- /dev/null +++ b/src/Order/Types/PaymentMethodBrand.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Image', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'logoImage' + ], + 'paymentMethodBrandType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodBrandType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PaymentMethodMessage.php b/src/Order/Types/PaymentMethodMessage.php new file mode 100644 index 000000000..a577a66f4 --- /dev/null +++ b/src/Order/Types/PaymentMethodMessage.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legalMessage' + ], + 'requiredForUserConfirmation' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requiredForUserConfirmation' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PlaceGuestOrderRestRequest.php b/src/Order/Types/PlaceGuestOrderRestRequest.php new file mode 100644 index 000000000..c251ebcf9 --- /dev/null +++ b/src/Order/Types/PlaceGuestOrderRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PlaceGuestOrderRestResponse.php b/src/Order/Types/PlaceGuestOrderRestResponse.php new file mode 100644 index 000000000..ac1d3276d --- /dev/null +++ b/src/Order/Types/PlaceGuestOrderRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/PlaceOrderRestRequest.php b/src/Order/Types/PlaceOrderRestRequest.php new file mode 100644 index 000000000..c8b1621f2 --- /dev/null +++ b/src/Order/Types/PlaceOrderRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PlaceOrderRestResponse.php b/src/Order/Types/PlaceOrderRestResponse.php new file mode 100644 index 000000000..05e233256 --- /dev/null +++ b/src/Order/Types/PlaceOrderRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/PricingSummary.php b/src/Order/Types/PricingSummary.php new file mode 100644 index 000000000..da95ffa4f --- /dev/null +++ b/src/Order/Types/PricingSummary.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Adjustment', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adjustment' + ], + 'deliveryCost' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryCost' + ], + 'deliveryDiscount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryDiscount' + ], + 'fee' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fee' + ], + 'priceDiscount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceDiscount' + ], + 'priceSubtotal' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceSubtotal' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ], + 'total' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PricingSummary_0.php b/src/Order/Types/PricingSummary_0.php new file mode 100644 index 000000000..5c62d7562 --- /dev/null +++ b/src/Order/Types/PricingSummary_0.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Adjustment_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'adjustment' + ], + 'deliveryCost' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryCost' + ], + 'deliveryDiscount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryDiscount' + ], + 'fee' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fee' + ], + 'priceDiscount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceDiscount' + ], + 'priceSubtotal' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceSubtotal' + ], + 'tax' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tax' + ], + 'total' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Promotion.php b/src/Order/Types/Promotion.php new file mode 100644 index 000000000..7d9da9a4b --- /dev/null +++ b/src/Order/Types/Promotion.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discount' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'promotionCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionCode' + ], + 'promotionType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'promotionType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ProvidedPaymentInstrument.php b/src/Order/Types/ProvidedPaymentInstrument.php new file mode 100644 index 000000000..19be7d65a --- /dev/null +++ b/src/Order/Types/ProvidedPaymentInstrument.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentInstrumentReference', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentInstrumentReference' + ], + 'paymentMethodBrand' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentMethodBrand', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodBrand' + ], + 'paymentMethodType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentMethodType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PurchaseOrder.php b/src/Order/Types/PurchaseOrder.php new file mode 100644 index 000000000..b0ac5287e --- /dev/null +++ b/src/Order/Types/PurchaseOrder.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItem_0', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'paymentInstrument' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PaymentInstrument', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentInstrument' + ], + 'pricingSummary' => [ + 'type' => 'DTS\eBaySDK\Order\Types\PricingSummary_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pricingSummary' + ], + 'purchaseOrderCreationDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderCreationDate' + ], + 'purchaseOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderId' + ], + 'purchaseOrderPaymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderPaymentStatus' + ], + 'purchaseOrderStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderStatus' + ], + 'refundedAmount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundedAmount' + ], + 'shippingAddress' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingAddress_0', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingAddress' + ], + 'shippingFulfillments' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ShippingFulfillment', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'shippingFulfillments' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/PurchaseOrderSummary.php b/src/Order/Types/PurchaseOrderSummary.php new file mode 100644 index 000000000..2b8650c8d --- /dev/null +++ b/src/Order/Types/PurchaseOrderSummary.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderHref' + ], + 'purchaseOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderId' + ], + 'purchaseOrderPaymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'purchaseOrderPaymentStatus' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/Seller.php b/src/Order/Types/Seller.php new file mode 100644 index 000000000..1013ec129 --- /dev/null +++ b/src/Order/Types/Seller.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feedbackPercentage' + ], + 'feedbackScore' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'feedbackScore' + ], + 'sellerAccountType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerAccountType' + ], + 'username' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'username' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingAddress.php b/src/Order/Types/ShippingAddress.php new file mode 100644 index 000000000..6e56d9480 --- /dev/null +++ b/src/Order/Types/ShippingAddress.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'phoneNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phoneNumber' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'recipient' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recipient' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingAddressImpl.php b/src/Order/Types/ShippingAddressImpl.php new file mode 100644 index 000000000..b3595bd6d --- /dev/null +++ b/src/Order/Types/ShippingAddressImpl.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'phoneNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phoneNumber' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'recipient' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recipient' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingAddress_0.php b/src/Order/Types/ShippingAddress_0.php new file mode 100644 index 000000000..f4dede9d1 --- /dev/null +++ b/src/Order/Types/ShippingAddress_0.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'phoneNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'phoneNumber' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'recipient' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recipient' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingDetail.php b/src/Order/Types/ShippingDetail.php new file mode 100644 index 000000000..0d9c7c480 --- /dev/null +++ b/src/Order/Types/ShippingDetail.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxEstimatedDeliveryDate' + ], + 'minEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minEstimatedDeliveryDate' + ], + 'shippingCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'shippingServiceName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingFulfillment.php b/src/Order/Types/ShippingFulfillment.php new file mode 100644 index 000000000..60d627f1d --- /dev/null +++ b/src/Order/Types/ShippingFulfillment.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualDeliveryDate' + ], + 'lineItemReferences' => [ + 'type' => 'DTS\eBaySDK\Order\Types\LineItemReference', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItemReferences' + ], + 'maxEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxEstimatedDeliveryDate' + ], + 'minEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minEstimatedDeliveryDate' + ], + 'shipmentTrackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentTrackingNumber' + ], + 'shipmentTrackingUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentTrackingUrl' + ], + 'shippedDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedDate' + ], + 'shippingCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'shippingServiceName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/ShippingOption.php b/src/Order/Types/ShippingOption.php new file mode 100644 index 000000000..e56de71b7 --- /dev/null +++ b/src/Order/Types/ShippingOption.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'baseDeliveryCost' + ], + 'deliveryDiscount' => [ + 'type' => 'DTS\eBaySDK\Order\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryDiscount' + ], + 'maxEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxEstimatedDeliveryDate' + ], + 'minEstimatedDeliveryDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minEstimatedDeliveryDate' + ], + 'selected' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'selected' + ], + 'shippingCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'shippingOptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingOptionId' + ], + 'shippingServiceName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingServiceName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateGuestLineItemQuantityRestRequest.php b/src/Order/Types/UpdateGuestLineItemQuantityRestRequest.php new file mode 100644 index 000000000..58e1a28f1 --- /dev/null +++ b/src/Order/Types/UpdateGuestLineItemQuantityRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateGuestLineItemQuantityRestResponse.php b/src/Order/Types/UpdateGuestLineItemQuantityRestResponse.php new file mode 100644 index 000000000..59d476fc6 --- /dev/null +++ b/src/Order/Types/UpdateGuestLineItemQuantityRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdateGuestLineItemShippingAddressRestRequest.php b/src/Order/Types/UpdateGuestLineItemShippingAddressRestRequest.php new file mode 100644 index 000000000..3e8e5a8e0 --- /dev/null +++ b/src/Order/Types/UpdateGuestLineItemShippingAddressRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateGuestLineItemShippingAddressRestResponse.php b/src/Order/Types/UpdateGuestLineItemShippingAddressRestResponse.php new file mode 100644 index 000000000..97c862fbd --- /dev/null +++ b/src/Order/Types/UpdateGuestLineItemShippingAddressRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdateGuestPaymentInfoRestRequest.php b/src/Order/Types/UpdateGuestPaymentInfoRestRequest.php new file mode 100644 index 000000000..7fc4b4988 --- /dev/null +++ b/src/Order/Types/UpdateGuestPaymentInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateGuestPaymentInfoRestResponse.php b/src/Order/Types/UpdateGuestPaymentInfoRestResponse.php new file mode 100644 index 000000000..ded889201 --- /dev/null +++ b/src/Order/Types/UpdateGuestPaymentInfoRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdateGuestShippingOptionRestRequest.php b/src/Order/Types/UpdateGuestShippingOptionRestRequest.php new file mode 100644 index 000000000..4905886b3 --- /dev/null +++ b/src/Order/Types/UpdateGuestShippingOptionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateGuestShippingOptionRestResponse.php b/src/Order/Types/UpdateGuestShippingOptionRestResponse.php new file mode 100644 index 000000000..02b802027 --- /dev/null +++ b/src/Order/Types/UpdateGuestShippingOptionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdatePaymentInfoRestRequest.php b/src/Order/Types/UpdatePaymentInfoRestRequest.php new file mode 100644 index 000000000..dd5a3ce4e --- /dev/null +++ b/src/Order/Types/UpdatePaymentInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdatePaymentInfoRestResponse.php b/src/Order/Types/UpdatePaymentInfoRestResponse.php new file mode 100644 index 000000000..be5af7538 --- /dev/null +++ b/src/Order/Types/UpdatePaymentInfoRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdatePaymentInformation.php b/src/Order/Types/UpdatePaymentInformation.php new file mode 100644 index 000000000..423d367b2 --- /dev/null +++ b/src/Order/Types/UpdatePaymentInformation.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\CreditCard', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creditCard' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateQuantity.php b/src/Order/Types/UpdateQuantity.php new file mode 100644 index 000000000..a017128ee --- /dev/null +++ b/src/Order/Types/UpdateQuantity.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'quantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'quantity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateQuantityForLineItemRestRequest.php b/src/Order/Types/UpdateQuantityForLineItemRestRequest.php new file mode 100644 index 000000000..a49db2d2e --- /dev/null +++ b/src/Order/Types/UpdateQuantityForLineItemRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateQuantityForLineItemRestResponse.php b/src/Order/Types/UpdateQuantityForLineItemRestResponse.php new file mode 100644 index 000000000..704cfe0a2 --- /dev/null +++ b/src/Order/Types/UpdateQuantityForLineItemRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdateShippingAddressRestRequest.php b/src/Order/Types/UpdateShippingAddressRestRequest.php new file mode 100644 index 000000000..96eb63d5d --- /dev/null +++ b/src/Order/Types/UpdateShippingAddressRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateShippingAddressRestResponse.php b/src/Order/Types/UpdateShippingAddressRestResponse.php new file mode 100644 index 000000000..c2c7e603c --- /dev/null +++ b/src/Order/Types/UpdateShippingAddressRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Order/Types/UpdateShippingOption.php b/src/Order/Types/UpdateShippingOption.php new file mode 100644 index 000000000..c46c32415 --- /dev/null +++ b/src/Order/Types/UpdateShippingOption.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lineItemId' + ], + 'shippingOptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingOptionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateShippingOptionRestRequest.php b/src/Order/Types/UpdateShippingOptionRestRequest.php new file mode 100644 index 000000000..a3e3a617f --- /dev/null +++ b/src/Order/Types/UpdateShippingOptionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkoutSessionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Order/Types/UpdateShippingOptionRestResponse.php b/src/Order/Types/UpdateShippingOptionRestResponse.php new file mode 100644 index 000000000..e27ce6402 --- /dev/null +++ b/src/Order/Types/UpdateShippingOptionRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Order\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/Parser/XmlParser.php b/src/Parser/XmlParser.php index 2ba15cd89..04e7f69ce 100644 --- a/src/Parser/XmlParser.php +++ b/src/Parser/XmlParser.php @@ -60,7 +60,7 @@ public function parse($xml) * * @param resource $parser Reference to the XML parser calling the handler. * @param string $name The name of the element. - * @param arrary $attributes Associative array of the element's attributes. + * @param array $attributes Associative array of the element's attributes. */ private function startElement($parser, $name, array $attributes) { @@ -114,7 +114,7 @@ private function endElement($parser, $name) /** * Handles element names that may have namespaces in them. * - * @param string Element name. + * @param string $name Element name. * * @return string The element name stripped of any namespaces. */ @@ -131,7 +131,7 @@ private function normalizeElementName($name) } /** - * Returns that parent PHP object. + * Returns the parent PHP object. * * @return mixed The parent PHP object. */ @@ -145,14 +145,14 @@ private function getParentObject() * * Allow the parser to build the required PHP object for an element. * - * @param string $name The name of the element. - * @param arrary $attributes Associative array of the element's attributes. + * @param string $elementName The element name. + * @param array $attributes Associative array of the element's attributes. * - * @return array Associative array containing the PHP meta data. + * @return \stdClass */ - private function getPhpMeta($elementName, $attributes) + private function getPhpMeta($elementName, array $attributes) { - $meta = new \StdClass(); + $meta = new \stdClass(); $meta->propertyName = ''; $meta->phpType = ''; $meta->repeatable = false; @@ -197,11 +197,11 @@ private function getPhpMeta($elementName, $attributes) /** * Builds the required PHP object. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * * @return mixed A new PHP object or null. */ - private function newPhpObject($meta) + private function newPhpObject(\stdClass $meta) { $phpTypes = explode('|', $meta->phpType); @@ -224,11 +224,11 @@ private function newPhpObject($meta) /** * Returns a value that will be assigned to an object's property. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * * @return mixed The value to assign. */ - private function getValueToAssign($meta) + private function getValueToAssign(\stdClass $meta) { if ($this->isSimplePhpType($meta)) { return $this->getValueToAssignToProperty($meta); @@ -243,11 +243,11 @@ private function getValueToAssign($meta) /** * Determines if the type of the property is simple. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * - * @return boolean True if the property type is simple. + * @return bool True if the property type is simple. */ - private function isSimplePhpType($meta) + private function isSimplePhpType(\stdClass $meta) { $phpTypes = explode('|', $meta->phpType); @@ -270,11 +270,11 @@ private function isSimplePhpType($meta) /** * Determines if the the property of an object is set by a _value_ property. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * - * @return boolean True if the property need to be set by _value_. + * @return bool True if the property needs to be set by _value_. */ - private function setByValue($meta) + private function setByValue(\stdClass $meta) { return ( is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\Base64BinaryType', false) || @@ -291,11 +291,11 @@ private function setByValue($meta) /** * Returns a value that will be assigned to an object's property. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * - * @return boolean True if the property type is simlple. + * @return mixed The value to assign. */ - private function getValueToAssignToProperty($meta) + private function getValueToAssignToProperty(\stdClass $meta) { switch ($meta->phpType) { case 'integer': @@ -315,27 +315,27 @@ private function getValueToAssignToProperty($meta) /** * Returns a value that will be assigned to an object's _value_ property. * - * @param array $meta The PHP meta data. + * @param \stdClass $meta The PHP meta data. * * @return mixed The value to assign. */ - private function getValueToAssignToValue($meta) + private function getValueToAssignToValue(\stdClass $meta) { if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\Base64BinaryType', false)) { return $meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\BooleanType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\BooleanType', false)) { return strtolower($meta->strData) === 'true'; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\DecimalType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\DecimalType', false)) { return is_int(0 + $meta->strData) ? (integer)$meta->strData : (double)$meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\DoubleType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\DoubleType', false)) { return (double)$meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\IntegerType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\IntegerType', false)) { return (integer)$meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\StringType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\StringType', false)) { return $meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\TokenType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\TokenType', false)) { return $meta->strData; - } else if (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\URIType', false)) { + } elseif (is_subclass_of($meta->phpObject, '\DTS\eBaySDK\Types\URIType', false)) { return $meta->strData; } diff --git a/src/PostOrder/Enums/ActivityOptionEnum.php b/src/PostOrder/Enums/ActivityOptionEnum.php new file mode 100644 index 000000000..424fa3b68 --- /dev/null +++ b/src/PostOrder/Enums/ActivityOptionEnum.php @@ -0,0 +1,88 @@ + 'https://api.sandbox.ebay.com/post-order', + 'production' => 'https://api.ebay.com/post-order' + ]; + + /** + * HTTP header constant. The Authentication Token that is used to validate the caller has permission to access the eBay servers. + */ + const HDR_AUTH_TOKEN = 'Authorization'; + + /** + * HTTP header constant. The global ID of the eBay site on which the transaction took place. + */ + const HDR_MARKETPLACE_ID = 'X-EBAY-C-MARKETPLACE-ID'; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config) + { + parent::__construct($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\PostOrder\Services\PostOrderService::API_VERSION, + 'required' => true + ], + 'authToken' => [ + 'valid' => ['string'], + 'required' => true + ], + 'marketplaceId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @return array An associative array of eBay HTTP headers. + */ + protected function getEbayHeaders() + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTH_TOKEN] = 'TOKEN '.$this->getConfig('authToken'); + + // Add optional headers. + if ($this->getConfig('marketplaceId')) { + $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId'); + } + + return $headers; + } +} diff --git a/src/PostOrder/Services/PostOrderService.php b/src/PostOrder/Services/PostOrderService.php new file mode 100644 index 000000000..9c1980cbd --- /dev/null +++ b/src/PostOrder/Services/PostOrderService.php @@ -0,0 +1,2153 @@ + [ + 'method' => 'POST', + 'resource' => 'cancellation/{cancelId}/approve', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestResponse', + 'params' => [ + 'cancelId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CheckCancellationEligibility' => [ + 'method' => 'POST', + 'resource' => 'cancellation/check_eligibility', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestResponse', + 'params' => [ + ] + ], + 'ConfirmCancellationRefund' => [ + 'method' => 'POST', + 'resource' => 'cancellation/{cancelId}/confirm', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestResponse', + 'params' => [ + 'cancelId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetCancellation' => [ + 'method' => 'GET', + 'resource' => 'cancellation/{cancelId}?', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetCancellationRestResponse', + 'params' => [ + 'cancelId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'fieldgroups' => [ + 'valid' => ['string'] + ] + ] + ], + 'RejectCancellationRequest' => [ + 'method' => 'POST', + 'resource' => 'cancellation/{cancelId}/reject', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestResponse', + 'params' => [ + 'cancelId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'SearchCancellations' => [ + 'method' => 'GET', + 'resource' => 'cancellation/search', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestResponse', + 'params' => [ + 'buyer_login_name' => [ + 'valid' => ['string'] + ], + 'cancel_id' => [ + 'valid' => ['string'] + ], + 'creation_date_range_from' => [ + 'valid' => ['string'] + ], + 'creation_date_range_to' => [ + 'valid' => ['string'] + ], + 'item_id' => [ + 'valid' => ['string'] + ], + 'legacy_order_id' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'seller_login_name' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ], + 'transaction_id' => [ + 'valid' => ['string'] + ] + ] + ], + 'SubmitCancellationRequest' => [ + 'method' => 'POST', + 'resource' => 'cancellation', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestResponse', + 'params' => [ + ] + ], + 'AppealCaseDecision' => [ + 'method' => 'POST', + 'resource' => 'casemanagement/{caseId}/appeal', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CloseCase' => [ + 'method' => 'POST', + 'resource' => 'casemanagement/{caseId}/close', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CloseCaseRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetCase' => [ + 'method' => 'GET', + 'resource' => 'casemanagement/{caseId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetCaseRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'IssueCaseRefund' => [ + 'method' => 'POST', + 'resource' => 'casemanagement/{caseId}/issue_refund', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ProvideReturnShipmentInfo' => [ + 'method' => 'POST', + 'resource' => 'casemanagement/{caseId}/provide_shipment_info', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ProvidesReturnAddress' => [ + 'method' => 'POST', + 'resource' => 'casemanagement/{caseId}/provide_return_address', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestResponse', + 'params' => [ + 'caseId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'SearchCases' => [ + 'method' => 'GET', + 'resource' => 'casemanagement/search', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SearchCasesRestResponse', + 'params' => [ + 'case_creation_date_range_from' => [ + 'valid' => ['string'] + ], + 'case_creation_date_range_to' => [ + 'valid' => ['string'] + ], + 'case_status_filter' => [ + 'valid' => ['string'] + ], + 'fieldgroups' => [ + 'valid' => ['string'] + ], + 'item_id' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'order_id' => [ + 'valid' => ['string'] + ], + 'return_id' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ], + 'transaction_id' => [ + 'valid' => ['string'] + ] + ] + ], + 'CheckInquiryEligibility' => [ + 'method' => 'POST', + 'resource' => 'inquiry/check_eligibility', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestResponse', + 'params' => [ + ] + ], + 'CloseInquiry' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/close', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CloseInquiryRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ConfirmInquiryRefund' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/confirm_refund', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateInquiry' => [ + 'method' => 'POST', + 'resource' => 'inquiry', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateInquiryRestResponse', + 'params' => [ + ] + ], + 'EscalateInquiry' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/escalate', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetInquiry' => [ + 'method' => 'GET', + 'resource' => 'inquiry/{inquiryId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetInquiryRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'IssueInquiryRefund' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/issue_refund', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ProvideInquiryRefundInfo' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/provide_refund_info', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ProvideInquiryShipmentInfo' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/provide_shipment_info', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'SearchInquiries' => [ + 'method' => 'GET', + 'resource' => 'inquiry/search', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestResponse', + 'params' => [ + 'fieldgroups' => [ + 'valid' => ['string'] + ], + 'inquiry_creation_date_range_from' => [ + 'valid' => ['string'] + ], + 'inquiry_creation_date_range_to' => [ + 'valid' => ['string'] + ], + 'inquiry_status' => [ + 'valid' => ['string'] + ], + 'item_id' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'order_id' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ], + 'transaction_id' => [ + 'valid' => ['string'] + ] + ] + ], + 'SendInquiryMessage' => [ + 'method' => 'POST', + 'resource' => 'inquiry/{inquiryId}/send_message', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestResponse', + 'params' => [ + 'inquiryId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'AddShippingLabelInfo' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/add_shipping_label', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CancelReturnRequest' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/cancel', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CheckReturnEligibility' => [ + 'method' => 'POST', + 'resource' => 'return/check_eligibility', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestResponse', + 'params' => [ + ] + ], + 'CheckShippingLabelEligibility' => [ + 'method' => 'GET', + 'resource' => 'return/{returnId}/check_label_print_eligibility', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateReturnDraft' => [ + 'method' => 'POST', + 'resource' => 'return/draft', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestResponse', + 'params' => [ + ] + ], + 'CreateReturnRequest' => [ + 'method' => 'POST', + 'resource' => 'return', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestResponse', + 'params' => [ + 'fieldgroups' => [ + 'valid' => ['string'] + ] + ] + ], + 'CreateReturnShippingLabel' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/initiate_shipping_label', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteReturnDraftFile' => [ + 'method' => 'DELETE', + 'resource' => 'return/draft/{draftId}/file/{fileId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestResponse', + 'params' => [ + 'draftId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'fileId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'DeleteReturnFile' => [ + 'method' => 'DELETE', + 'resource' => 'return/{returnId}/file/{fileId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestResponse', + 'params' => [ + 'fileId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'EscalateReturn' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/escalate', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\EscalateReturnRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturn' => [ + 'method' => 'GET', + 'resource' => 'return/{returnId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnRestResponse', + 'params' => [ + 'fieldgroups' => [ + 'valid' => ['string'] + ], + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnDraft' => [ + 'method' => 'GET', + 'resource' => 'return/draft/{draftId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestResponse', + 'params' => [ + 'draftId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnDraftFiles' => [ + 'method' => 'GET', + 'resource' => 'return/draft/{draftId}/files', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestResponse', + 'params' => [ + 'draftId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnEstimate' => [ + 'method' => 'POST', + 'resource' => 'return/estimate', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestResponse', + 'params' => [ + ] + ], + 'GetReturnFiles' => [ + 'method' => 'GET', + 'resource' => 'return/{returnId}/files', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnMetadata' => [ + 'method' => 'GET', + 'resource' => 'return/metadata/{metadataKey}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestResponse', + 'params' => [ + 'metadataKey' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnPreferences' => [ + 'method' => 'GET', + 'resource' => 'return/preference', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnPreferencesRestResponse', + 'params' => [ + ] + ], + 'GetReturnShippingLabel' => [ + 'method' => 'GET', + 'resource' => 'return/{returnId}/get_shipping_label', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestResponse', + 'params' => [ + 'return_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetShipmentTracking' => [ + 'method' => 'GET', + 'resource' => 'return/{returnId}/tracking', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestResponse', + 'params' => [ + 'carrier_used' => [ + 'valid' => ['string'], + 'required' => true + ], + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'tracking_number' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'IssueReturnRefund' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/issue_refund', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'MarkReturnReceived' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/mark_as_received', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'MarkReturnRefundReceived' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/mark_refund_received', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'MarkReturnRefundSent' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/mark_refund_sent', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'MarkReturnShipped' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/mark_as_shipped', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'ProcessReturnRequest' => [ + 'method' => 'MET', + 'resource' => 'RES', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'SearchReturns' => [ + 'method' => 'GET', + 'resource' => 'return/search', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SearchReturnsRestResponse', + 'params' => [ + 'creation_date_range_from' => [ + 'valid' => ['string'] + ], + 'creation_date_range_to' => [ + 'valid' => ['string'] + ], + 'item_id' => [ + 'valid' => ['string'] + ], + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'return_state' => [ + 'valid' => ['string'] + ], + 'sort' => [ + 'valid' => ['string'] + ], + 'states' => [ + 'valid' => ['string'] + ], + 'transaction_id' => [ + 'valid' => ['string'] + ] + ] + ], + 'SendReturnMessage' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/send_message', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'SendReturnShippingLabel' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/send_shipping_label', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestResponse', + 'params' => [ + 'return_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'to_email_address' => [ + 'valid' => ['string'] + ] + ] + ], + 'SetReturnPreferences' => [ + 'method' => 'POST', + 'resource' => 'return/preference', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestResponse', + 'params' => [ + ] + ], + 'SubmitReturnFile' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/file/submit', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateReturnDraft' => [ + 'method' => 'PUT', + 'resource' => 'return/draft/{draftId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestResponse', + 'params' => [ + 'draftId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UpdateShipmentTracking' => [ + 'method' => 'PUT', + 'resource' => 'return/{returnId}/update_tracking', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UploadReturnDraftFile' => [ + 'method' => 'POST', + 'resource' => 'return/draft/{draftId}/file/upload', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestResponse', + 'params' => [ + 'draftId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'UploadReturnFile' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/file/upload', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'VoidShippingLabel' => [ + 'method' => 'POST', + 'resource' => 'return/{returnId}/void_shipping_label', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestResponse', + 'params' => [ + 'returnId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'CreateCustomList' => [ + 'method' => 'POST', + 'resource' => 'rules/custom_list', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateCustomListRestResponse', + 'params' => [ + ] + ], + 'CreateReturnRules' => [ + 'method' => 'POST', + 'resource' => 'rules', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestResponse', + 'params' => [ + ] + ], + 'GetCustomList' => [ + 'method' => 'GET', + 'resource' => 'rules/custom_list_detail', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetCustomListRestResponse', + 'params' => [ + ] + ], + 'GetCustomLists' => [ + 'method' => 'GET', + 'resource' => 'rules/custom_list', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetCustomListsRestResponse', + 'params' => [ + ] + ], + 'GetReturnRuleTemplates' => [ + 'method' => 'GET', + 'resource' => 'rules/get_templates', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnRuleTemplatesRestResponse', + 'params' => [ + ] + ], + 'GetStoreCategories' => [ + 'method' => 'GET', + 'resource' => 'rules/get_store_category', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetStoreCategoriesRestResponse', + 'params' => [ + ] + ], + 'GetReturnRule' => [ + 'method' => 'GET', + 'resource' => 'rules/{ruleId}', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestResponse', + 'params' => [ + 'ruleId' => [ + 'valid' => ['string'], + 'required' => true + ] + ] + ], + 'GetReturnRuleHistory' => [ + 'method' => 'GET', + 'resource' => 'rules/{ruleId}/get_trigger_history', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestResponse', + 'params' => [ + 'limit' => [ + 'valid' => ['string'] + ], + 'offset' => [ + 'valid' => ['string'] + ], + 'ruleId' => [ + 'valid' => ['string'], + 'required' => true + ], + 'trigger_date_range_from' => [ + 'valid' => ['string'] + ], + 'trigger_date_range_to' => [ + 'valid' => ['string'] + ] + ] + ], + 'GetReturnRules' => [ + 'method' => 'GET', + 'resource' => 'rules/disposition_rules_list', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestResponse', + 'params' => [ + 'fieldgroups' => [ + 'valid' => ['string'] + ] + ] + ], + 'UpdateCustomList' => [ + 'method' => 'PUT', + 'resource' => 'rules/custom_list', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestResponse', + 'params' => [ + ] + ], + 'UpdateReturnRules' => [ + 'method' => 'PUT', + 'resource' => 'rules', + 'responseClass' => '\DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestResponse', + 'params' => [ + ] + ] + ]; + + /** + * @param array $config Configuration option values. + */ + public function __construct(array $config = []) + { + parent::__construct($config); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestResponse + */ + public function approveCancellationRequest(\DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestRequest $request) + { + return $this->approveCancellationRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function approveCancellationRequestAsync(\DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestRequest $request) + { + return $this->callOperationAsync('ApproveCancellationRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestResponse + */ + public function checkCancellationEligibility(\DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestRequest $request) + { + return $this->checkCancellationEligibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function checkCancellationEligibilityAsync(\DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestRequest $request) + { + return $this->callOperationAsync('CheckCancellationEligibility', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestResponse + */ + public function confirmCancellationRefund(\DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestRequest $request) + { + return $this->confirmCancellationRefundAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function confirmCancellationRefundAsync(\DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestRequest $request) + { + return $this->callOperationAsync('ConfirmCancellationRefund', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetCancellationRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetCancellationRestResponse + */ + public function getCancellation(\DTS\eBaySDK\PostOrder\Types\GetCancellationRestRequest $request) + { + return $this->getCancellationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetCancellationRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCancellationAsync(\DTS\eBaySDK\PostOrder\Types\GetCancellationRestRequest $request) + { + return $this->callOperationAsync('GetCancellation', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestResponse + */ + public function rejectCancellationRequest(\DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestRequest $request) + { + return $this->rejectCancellationRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rejectCancellationRequestAsync(\DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestRequest $request) + { + return $this->callOperationAsync('RejectCancellationRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestResponse + */ + public function searchCancellations(\DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestRequest $request) + { + return $this->searchCancellationsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function searchCancellationsAsync(\DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestRequest $request) + { + return $this->callOperationAsync('SearchCancellations', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestResponse + */ + public function submitCancellationRequest(\DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestRequest $request) + { + return $this->submitCancellationRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitCancellationRequestAsync(\DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestRequest $request) + { + return $this->callOperationAsync('SubmitCancellationRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestResponse + */ + public function appealCaseDecision(\DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestRequest $request) + { + return $this->appealCaseDecisionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function appealCaseDecisionAsync(\DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestRequest $request) + { + return $this->callOperationAsync('AppealCaseDecision', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CloseCaseRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CloseCaseRestResponse + */ + public function closeCase(\DTS\eBaySDK\PostOrder\Types\CloseCaseRestRequest $request) + { + return $this->closeCaseAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CloseCaseRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function closeCaseAsync(\DTS\eBaySDK\PostOrder\Types\CloseCaseRestRequest $request) + { + return $this->callOperationAsync('CloseCase', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetCaseRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetCaseRestResponse + */ + public function getCase(\DTS\eBaySDK\PostOrder\Types\GetCaseRestRequest $request) + { + return $this->getCaseAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetCaseRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCaseAsync(\DTS\eBaySDK\PostOrder\Types\GetCaseRestRequest $request) + { + return $this->callOperationAsync('GetCase', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestResponse + */ + public function issueCaseRefund(\DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestRequest $request) + { + return $this->issueCaseRefundAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function issueCaseRefundAsync(\DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestRequest $request) + { + return $this->callOperationAsync('IssueCaseRefund', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestResponse + */ + public function provideReturnShipmentInfo(\DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestRequest $request) + { + return $this->provideReturnShipmentInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function provideReturnShipmentInfoAsync(\DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestRequest $request) + { + return $this->callOperationAsync('ProvideReturnShipmentInfo', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestResponse + */ + public function providesReturnAddress(\DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestRequest $request) + { + return $this->providesReturnAddressAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function providesReturnAddressAsync(\DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestRequest $request) + { + return $this->callOperationAsync('ProvidesReturnAddress', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchCasesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SearchCasesRestResponse + */ + public function searchCases(\DTS\eBaySDK\PostOrder\Types\SearchCasesRestRequest $request) + { + return $this->searchCasesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchCasesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function searchCasesAsync(\DTS\eBaySDK\PostOrder\Types\SearchCasesRestRequest $request) + { + return $this->callOperationAsync('SearchCases', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestResponse + */ + public function checkInquiryEligibility(\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestRequest $request) + { + return $this->checkInquiryEligibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function checkInquiryEligibilityAsync(\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestRequest $request) + { + return $this->callOperationAsync('CheckInquiryEligibility', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CloseInquiryRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CloseInquiryRestResponse + */ + public function closeInquiry(\DTS\eBaySDK\PostOrder\Types\CloseInquiryRestRequest $request) + { + return $this->closeInquiryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CloseInquiryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function closeInquiryAsync(\DTS\eBaySDK\PostOrder\Types\CloseInquiryRestRequest $request) + { + return $this->callOperationAsync('CloseInquiry', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestResponse + */ + public function confirmInquiryRefund(\DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestRequest $request) + { + return $this->confirmInquiryRefundAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function confirmInquiryRefundAsync(\DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestRequest $request) + { + return $this->callOperationAsync('ConfirmInquiryRefund', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateInquiryRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateInquiryRestResponse + */ + public function createInquiry(\DTS\eBaySDK\PostOrder\Types\CreateInquiryRestRequest $request) + { + return $this->createInquiryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateInquiryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createInquiryAsync(\DTS\eBaySDK\PostOrder\Types\CreateInquiryRestRequest $request) + { + return $this->callOperationAsync('CreateInquiry', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestResponse + */ + public function escalateInquiry(\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestRequest $request) + { + return $this->escalateInquiryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function escalateInquiryAsync(\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestRequest $request) + { + return $this->callOperationAsync('EscalateInquiry', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetInquiryRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetInquiryRestResponse + */ + public function getInquiry(\DTS\eBaySDK\PostOrder\Types\GetInquiryRestRequest $request) + { + return $this->getInquiryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetInquiryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getInquiryAsync(\DTS\eBaySDK\PostOrder\Types\GetInquiryRestRequest $request) + { + return $this->callOperationAsync('GetInquiry', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestResponse + */ + public function issueInquiryRefund(\DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestRequest $request) + { + return $this->issueInquiryRefundAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function issueInquiryRefundAsync(\DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestRequest $request) + { + return $this->callOperationAsync('IssueInquiryRefund', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestResponse + */ + public function provideInquiryRefundInfo(\DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestRequest $request) + { + return $this->provideInquiryRefundInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function provideInquiryRefundInfoAsync(\DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestRequest $request) + { + return $this->callOperationAsync('ProvideInquiryRefundInfo', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestResponse + */ + public function provideInquiryShipmentInfo(\DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestRequest $request) + { + return $this->provideInquiryShipmentInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function provideInquiryShipmentInfoAsync(\DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestRequest $request) + { + return $this->callOperationAsync('ProvideInquiryShipmentInfo', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestResponse + */ + public function searchInquiries(\DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestRequest $request) + { + return $this->searchInquiriesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function searchInquiriesAsync(\DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestRequest $request) + { + return $this->callOperationAsync('SearchInquiries', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestResponse + */ + public function sendInquiryMessage(\DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestRequest $request) + { + return $this->sendInquiryMessageAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function sendInquiryMessageAsync(\DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestRequest $request) + { + return $this->callOperationAsync('SendInquiryMessage', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestResponse + */ + public function addShippingLabelInfo(\DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestRequest $request) + { + return $this->addShippingLabelInfoAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addShippingLabelInfoAsync(\DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestRequest $request) + { + return $this->callOperationAsync('AddShippingLabelInfo', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestResponse + */ + public function cancelReturnRequest(\DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestRequest $request) + { + return $this->cancelReturnRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelReturnRequestAsync(\DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestRequest $request) + { + return $this->callOperationAsync('CancelReturnRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestResponse + */ + public function checkReturnEligibility(\DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestRequest $request) + { + return $this->checkReturnEligibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function checkReturnEligibilityAsync(\DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestRequest $request) + { + return $this->callOperationAsync('CheckReturnEligibility', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestResponse + */ + public function checkShippingLabelEligibility(\DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestRequest $request) + { + return $this->checkShippingLabelEligibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function checkShippingLabelEligibilityAsync(\DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestRequest $request) + { + return $this->callOperationAsync('CheckShippingLabelEligibility', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestResponse + */ + public function createReturnDraft(\DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestRequest $request) + { + return $this->createReturnDraftAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createReturnDraftAsync(\DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestRequest $request) + { + return $this->callOperationAsync('CreateReturnDraft', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestResponse + */ + public function createReturnRequest(\DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestRequest $request) + { + return $this->createReturnRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createReturnRequestAsync(\DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestRequest $request) + { + return $this->callOperationAsync('CreateReturnRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestResponse + */ + public function createReturnShippingLabel(\DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestRequest $request) + { + return $this->createReturnShippingLabelAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createReturnShippingLabelAsync(\DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestRequest $request) + { + return $this->callOperationAsync('CreateReturnShippingLabel', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestResponse + */ + public function deleteReturnDraftFile(\DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestRequest $request) + { + return $this->deleteReturnDraftFileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteReturnDraftFileAsync(\DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestRequest $request) + { + return $this->callOperationAsync('DeleteReturnDraftFile', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestResponse + */ + public function deleteReturnFile(\DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestRequest $request) + { + return $this->deleteReturnFileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteReturnFileAsync(\DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestRequest $request) + { + return $this->callOperationAsync('DeleteReturnFile', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\EscalateReturnRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\EscalateReturnRestResponse + */ + public function escalateReturn(\DTS\eBaySDK\PostOrder\Types\EscalateReturnRestRequest $request) + { + return $this->escalateReturnAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\EscalateReturnRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function escalateReturnAsync(\DTS\eBaySDK\PostOrder\Types\EscalateReturnRestRequest $request) + { + return $this->callOperationAsync('EscalateReturn', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnRestResponse + */ + public function getReturn(\DTS\eBaySDK\PostOrder\Types\GetReturnRestRequest $request) + { + return $this->getReturnAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnRestRequest $request) + { + return $this->callOperationAsync('GetReturn', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestResponse + */ + public function getReturnDraft(\DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestRequest $request) + { + return $this->getReturnDraftAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnDraftAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestRequest $request) + { + return $this->callOperationAsync('GetReturnDraft', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestResponse + */ + public function getReturnDraftFiles(\DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestRequest $request) + { + return $this->getReturnDraftFilesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnDraftFilesAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestRequest $request) + { + return $this->callOperationAsync('GetReturnDraftFiles', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestResponse + */ + public function getReturnEstimate(\DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestRequest $request) + { + return $this->getReturnEstimateAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnEstimateAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestRequest $request) + { + return $this->callOperationAsync('GetReturnEstimate', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestResponse + */ + public function getReturnFiles(\DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestRequest $request) + { + return $this->getReturnFilesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnFilesAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestRequest $request) + { + return $this->callOperationAsync('GetReturnFiles', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestResponse + */ + public function getReturnMetadata(\DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestRequest $request) + { + return $this->getReturnMetadataAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnMetadataAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestRequest $request) + { + return $this->callOperationAsync('GetReturnMetadata', $request); + } + + /** + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnPreferencesRestResponse + */ + public function getReturnPreferences() + { + return $this->getReturnPreferencesAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnPreferencesAsync() + { + return $this->callOperationAsync('GetReturnPreferences'); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestResponse + */ + public function getReturnShippingLabel(\DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestRequest $request) + { + return $this->getReturnShippingLabelAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnShippingLabelAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestRequest $request) + { + return $this->callOperationAsync('GetReturnShippingLabel', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestResponse + */ + public function getShipmentTracking(\DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestRequest $request) + { + return $this->getShipmentTrackingAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getShipmentTrackingAsync(\DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestRequest $request) + { + return $this->callOperationAsync('GetShipmentTracking', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestResponse + */ + public function issueReturnRefund(\DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestRequest $request) + { + return $this->issueReturnRefundAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function issueReturnRefundAsync(\DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestRequest $request) + { + return $this->callOperationAsync('IssueReturnRefund', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestResponse + */ + public function markReturnReceived(\DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestRequest $request) + { + return $this->markReturnReceivedAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function markReturnReceivedAsync(\DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestRequest $request) + { + return $this->callOperationAsync('MarkReturnReceived', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestResponse + */ + public function markReturnRefundReceived(\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestRequest $request) + { + return $this->markReturnRefundReceivedAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function markReturnRefundReceivedAsync(\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestRequest $request) + { + return $this->callOperationAsync('MarkReturnRefundReceived', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestResponse + */ + public function markReturnRefundSent(\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestRequest $request) + { + return $this->markReturnRefundSentAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function markReturnRefundSentAsync(\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestRequest $request) + { + return $this->callOperationAsync('MarkReturnRefundSent', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestResponse + */ + public function markReturnShipped(\DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestRequest $request) + { + return $this->markReturnShippedAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function markReturnShippedAsync(\DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestRequest $request) + { + return $this->callOperationAsync('MarkReturnShipped', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestResponse + */ + public function processReturnRequest(\DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestRequest $request) + { + return $this->processReturnRequestAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function processReturnRequestAsync(\DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestRequest $request) + { + return $this->callOperationAsync('ProcessReturnRequest', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchReturnsRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SearchReturnsRestResponse + */ + public function searchReturns(\DTS\eBaySDK\PostOrder\Types\SearchReturnsRestRequest $request) + { + return $this->searchReturnsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SearchReturnsRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function searchReturnsAsync(\DTS\eBaySDK\PostOrder\Types\SearchReturnsRestRequest $request) + { + return $this->callOperationAsync('SearchReturns', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestResponse + */ + public function sendReturnMessage(\DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestRequest $request) + { + return $this->sendReturnMessageAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function sendReturnMessageAsync(\DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestRequest $request) + { + return $this->callOperationAsync('SendReturnMessage', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestResponse + */ + public function sendReturnShippingLabel(\DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestRequest $request) + { + return $this->sendReturnShippingLabelAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function sendReturnShippingLabelAsync(\DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestRequest $request) + { + return $this->callOperationAsync('SendReturnShippingLabel', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestResponse + */ + public function setReturnPreferences(\DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestRequest $request) + { + return $this->setReturnPreferencesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setReturnPreferencesAsync(\DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestRequest $request) + { + return $this->callOperationAsync('SetReturnPreferences', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestResponse + */ + public function submitReturnFile(\DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestRequest $request) + { + return $this->submitReturnFileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitReturnFileAsync(\DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestRequest $request) + { + return $this->callOperationAsync('SubmitReturnFile', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestResponse + */ + public function updateReturnDraft(\DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestRequest $request) + { + return $this->updateReturnDraftAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateReturnDraftAsync(\DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestRequest $request) + { + return $this->callOperationAsync('UpdateReturnDraft', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestResponse + */ + public function updateShipmentTracking(\DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestRequest $request) + { + return $this->updateShipmentTrackingAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateShipmentTrackingAsync(\DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestRequest $request) + { + return $this->callOperationAsync('UpdateShipmentTracking', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestResponse + */ + public function uploadReturnDraftFile(\DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestRequest $request) + { + return $this->uploadReturnDraftFileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadReturnDraftFileAsync(\DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestRequest $request) + { + return $this->callOperationAsync('UploadReturnDraftFile', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestResponse + */ + public function uploadReturnFile(\DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestRequest $request) + { + return $this->uploadReturnFileAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadReturnFileAsync(\DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestRequest $request) + { + return $this->callOperationAsync('UploadReturnFile', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestResponse + */ + public function voidShippingLabel(\DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestRequest $request) + { + return $this->voidShippingLabelAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function voidShippingLabelAsync(\DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestRequest $request) + { + return $this->callOperationAsync('VoidShippingLabel', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateCustomListRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateCustomListRestResponse + */ + public function createCustomList(\DTS\eBaySDK\PostOrder\Types\CreateCustomListRestRequest $request) + { + return $this->createCustomListAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateCustomListRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createCustomListAsync(\DTS\eBaySDK\PostOrder\Types\CreateCustomListRestRequest $request) + { + return $this->callOperationAsync('CreateCustomList', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestResponse + */ + public function createReturnRules(\DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestRequest $request) + { + return $this->createReturnRulesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createReturnRulesAsync(\DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestRequest $request) + { + return $this->callOperationAsync('CreateReturnRules', $request); + } + + /** + * @return \DTS\eBaySDK\PostOrder\Types\GetCustomListRestResponse + */ + public function getCustomList() + { + return $this->getCustomListAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCustomListAsync() + { + return $this->callOperationAsync('GetCustomList'); + } + + /** + * @return \DTS\eBaySDK\PostOrder\Types\GetCustomListsRestResponse + */ + public function getCustomLists() + { + return $this->getCustomListsAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCustomListsAsync() + { + return $this->callOperationAsync('GetCustomLists'); + } + + /** + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnRuleTemplatesRestResponse + */ + public function getReturnRuleTemplates() + { + return $this->getReturnRuleTemplatesAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnRuleTemplatesAsync() + { + return $this->callOperationAsync('GetReturnRuleTemplates'); + } + + /** + * @return \DTS\eBaySDK\PostOrder\Types\GetStoreCategoriesRestResponse + */ + public function getStoreCategories() + { + return $this->getStoreCategoriesAsync()->wait(); + } + + /** + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStoreCategoriesAsync() + { + return $this->callOperationAsync('GetStoreCategories'); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestResponse + */ + public function getReturnRule(\DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestRequest $request) + { + return $this->getReturnRuleAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnRuleAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestRequest $request) + { + return $this->callOperationAsync('GetReturnRule', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestResponse + */ + public function getReturnRuleHistory(\DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestRequest $request) + { + return $this->getReturnRuleHistoryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnRuleHistoryAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestRequest $request) + { + return $this->callOperationAsync('GetReturnRuleHistory', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestResponse + */ + public function getReturnRules(\DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestRequest $request) + { + return $this->getReturnRulesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getReturnRulesAsync(\DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestRequest $request) + { + return $this->callOperationAsync('GetReturnRules', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestResponse + */ + public function updateCustomList(\DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestRequest $request) + { + return $this->updateCustomListAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateCustomListAsync(\DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestRequest $request) + { + return $this->callOperationAsync('UpdateCustomList', $request); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestRequest $request + * @return \DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestResponse + */ + public function updateReturnRules(\DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestRequest $request) + { + return $this->updateReturnRulesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateReturnRulesAsync(\DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestRequest $request) + { + return $this->callOperationAsync('UpdateReturnRules', $request); + } +} diff --git a/src/PostOrder/Types/ActionDeadlines.php b/src/PostOrder/Types/ActionDeadlines.php new file mode 100644 index 000000000..2b210e296 --- /dev/null +++ b/src/PostOrder/Types/ActionDeadlines.php @@ -0,0 +1,74 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'daysForBuyerToProvideProofOfShipment' + ], + 'daysToExpireWithoutResponse' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'daysToExpireWithoutResponse' + ], + 'daysToExpireWithResponse' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'daysToExpireWithResponse' + ], + 'daysToReturnItem' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'daysToReturnItem' + ], + 'maxDaysToFileClaim' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxDaysToFileClaim' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ActualRefundDetailType.php b/src/PostOrder/Types/ActualRefundDetailType.php new file mode 100644 index 000000000..00b28c0f5 --- /dev/null +++ b/src/PostOrder/Types/ActualRefundDetailType.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualRefund' + ], + 'refundInitiationType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundInitiationType' + ], + 'refundIssuedDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundIssuedDate' + ], + 'refundStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/AddShippingLabelInfoRestRequest.php b/src/PostOrder/Types/AddShippingLabelInfoRestRequest.php new file mode 100644 index 000000000..c0eea9822 --- /dev/null +++ b/src/PostOrder/Types/AddShippingLabelInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/AddShippingLabelInfoRestResponse.php b/src/PostOrder/Types/AddShippingLabelInfoRestResponse.php new file mode 100644 index 000000000..b7e0a70e3 --- /dev/null +++ b/src/PostOrder/Types/AddShippingLabelInfoRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/Address.php b/src/PostOrder/Types/Address.php new file mode 100644 index 000000000..6020aa9c6 --- /dev/null +++ b/src/PostOrder/Types/Address.php @@ -0,0 +1,130 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine1' + ], + 'addressLine2' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressLine2' + ], + 'addressType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'addressType' + ], + 'city' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'city' + ], + 'country' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'country' + ], + 'county' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'county' + ], + 'isTransliterated' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isTransliterated' + ], + 'nationalRegion' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'nationalRegion' + ], + 'postalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'postalCode' + ], + 'script' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'script' + ], + 'stateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateOrProvince' + ], + 'transliteratedFromScript' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transliteratedFromScript' + ], + 'worldRegion' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'worldRegion' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/Amount.php b/src/PostOrder/Types/Amount.php new file mode 100644 index 000000000..3e70459a2 --- /dev/null +++ b/src/PostOrder/Types/Amount.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'convertedFromCurrency' + ], + 'convertedFromValue' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'convertedFromValue' + ], + 'currency' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currency' + ], + 'value' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/AppealCaseDecisionRestRequest.php b/src/PostOrder/Types/AppealCaseDecisionRestRequest.php new file mode 100644 index 000000000..3b1d593c4 --- /dev/null +++ b/src/PostOrder/Types/AppealCaseDecisionRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/AppealCaseDecisionRestResponse.php b/src/PostOrder/Types/AppealCaseDecisionRestResponse.php new file mode 100644 index 000000000..bd2bed8ad --- /dev/null +++ b/src/PostOrder/Types/AppealCaseDecisionRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/AppealDetails.php b/src/PostOrder/Types/AppealDetails.php new file mode 100644 index 000000000..63bd3d237 --- /dev/null +++ b/src/PostOrder/Types/AppealDetails.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealCloseReasonEnum' + ], + 'appealDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealDate' + ], + 'appealReasonCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealReasonCode' + ], + 'appealStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealStatus' + ], + 'appealStatusEnum' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealStatusEnum' + ], + 'eligibleForAppeal' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibleForAppeal' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/AppealRequest.php b/src/PostOrder/Types/AppealRequest.php new file mode 100644 index 000000000..678e323fe --- /dev/null +++ b/src/PostOrder/Types/AppealRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ApproveCancellationRequestRestRequest.php b/src/PostOrder/Types/ApproveCancellationRequestRestRequest.php new file mode 100644 index 000000000..627c160e8 --- /dev/null +++ b/src/PostOrder/Types/ApproveCancellationRequestRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ApproveCancellationRequestRestResponse.php b/src/PostOrder/Types/ApproveCancellationRequestRestResponse.php new file mode 100644 index 000000000..33ddfd137 --- /dev/null +++ b/src/PostOrder/Types/ApproveCancellationRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/AvailableOptionType.php b/src/PostOrder/Types/AvailableOptionType.php new file mode 100644 index 000000000..1cf2f8595 --- /dev/null +++ b/src/PostOrder/Types/AvailableOptionType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionType' + ], + 'actionURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionURL' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/BuyerCloseCaseRequest.php b/src/PostOrder/Types/BuyerCloseCaseRequest.php new file mode 100644 index 000000000..8e2663251 --- /dev/null +++ b/src/PostOrder/Types/BuyerCloseCaseRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'closeReason' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/BuyerCloseInquiryRequest.php b/src/PostOrder/Types/BuyerCloseInquiryRequest.php new file mode 100644 index 000000000..efcc120e2 --- /dev/null +++ b/src/PostOrder/Types/BuyerCloseInquiryRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'closeReason' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CancelActivityHistory.php b/src/PostOrder/Types/CancelActivityHistory.php new file mode 100644 index 000000000..6586bb05d --- /dev/null +++ b/src/PostOrder/Types/CancelActivityHistory.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDate' + ], + 'activityParty' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'activityParty' + ], + 'activityType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'activityType' + ], + 'stateFrom' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateFrom' + ], + 'stateTo' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stateTo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CancelDetail.php b/src/PostOrder/Types/CancelDetail.php new file mode 100644 index 000000000..3a1e31b66 --- /dev/null +++ b/src/PostOrder/Types/CancelDetail.php @@ -0,0 +1,172 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CancelActivityHistory', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'activityHistories' + ], + 'buyerResponseDueDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerResponseDueDate' + ], + 'cancelCloseDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelCloseDate' + ], + 'cancelCloseReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelCloseReason' + ], + 'cancelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ], + 'cancelReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelReason' + ], + 'cancelRequestDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelRequestDate' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'legacyOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyOrderId' + ], + 'lineItems' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\OrderCancelLineItem', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'lineItems' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'paymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentStatus' + ], + 'requestorType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestorType' + ], + 'requestRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestRefundAmount' + ], + 'sellerResponseDueDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerResponseDueDate' + ], + 'shipmentDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentDate' + ], + 'state' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'state' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CancelReturnRequestRestRequest.php b/src/PostOrder/Types/CancelReturnRequestRestRequest.php new file mode 100644 index 000000000..be463fb26 --- /dev/null +++ b/src/PostOrder/Types/CancelReturnRequestRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CancelReturnRequestRestResponse.php b/src/PostOrder/Types/CancelReturnRequestRestResponse.php new file mode 100644 index 000000000..2fbaecd8e --- /dev/null +++ b/src/PostOrder/Types/CancelReturnRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CancelSortField.php b/src/PostOrder/Types/CancelSortField.php new file mode 100644 index 000000000..68800309b --- /dev/null +++ b/src/PostOrder/Types/CancelSortField.php @@ -0,0 +1,53 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ascending' + ], + 'enumValue' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'enumValue' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CancelSummary.php b/src/PostOrder/Types/CancelSummary.php new file mode 100644 index 000000000..8800601ee --- /dev/null +++ b/src/PostOrder/Types/CancelSummary.php @@ -0,0 +1,144 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerResponseDueDate' + ], + 'cancelCloseDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelCloseDate' + ], + 'cancelCloseReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelCloseReason' + ], + 'cancelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ], + 'cancelReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelReason' + ], + 'cancelRequestDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelRequestDate' + ], + 'legacyOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyOrderId' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'paymentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentStatus' + ], + 'requestorType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestorType' + ], + 'requestRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestRefundAmount' + ], + 'sellerResponseDueDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerResponseDueDate' + ], + 'shipmentDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentDate' + ], + 'state' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'state' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CarrierShippingCostInfoType.php b/src/PostOrder/Types/CarrierShippingCostInfoType.php new file mode 100644 index 000000000..fc4cb0a18 --- /dev/null +++ b/src/PostOrder/Types/CarrierShippingCostInfoType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnShippingCostDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseDetails.php b/src/PostOrder/Types/CaseDetails.php new file mode 100644 index 000000000..f496c5686 --- /dev/null +++ b/src/PostOrder/Types/CaseDetails.php @@ -0,0 +1,116 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerFinalAcceptResolution' + ], + 'buyerInitExpectResolution' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerInitExpectResolution' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'escalationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalationDate' + ], + 'expirationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expirationDate' + ], + 'lastBuyerRespDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastBuyerRespDate' + ], + 'lastSellerRespDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastSellerRespDate' + ], + 'paypalPaid' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paypalPaid' + ], + 'refundAmounts' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundAmounts', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundAmounts' + ], + 'refundDeadlineDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDeadlineDate' + ], + 'refundType' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseDetailsResponse.php b/src/PostOrder/Types/CaseDetailsResponse.php new file mode 100644 index 000000000..fb5280059 --- /dev/null +++ b/src/PostOrder/Types/CaseDetailsResponse.php @@ -0,0 +1,242 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ActionDeadlines', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDeadlines' + ], + 'appealDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\AppealDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealDetails' + ], + 'buyerClosureReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerClosureReason' + ], + 'buyerProtectedProgramLink' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerProtectedProgramLink' + ], + 'caseDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CaseDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseDetails' + ], + 'caseHistoryDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ClaimHistoryResponse', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseHistoryDetails' + ], + 'caseId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ], + 'caseQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseQuantity' + ], + 'caseType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseType' + ], + 'claimAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'claimAmount' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'escalatedBy' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalatedBy' + ], + 'escalateReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalateReason' + ], + 'eventTicketsLink' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventTicketsLink' + ], + 'extTransactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extTransactionId' + ], + 'fsnadDaysToAddTrackingAfterShippingItem' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fsnadDaysToAddTrackingAfterShippingItem' + ], + 'fsnadShipToSellerByDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fsnadShipToSellerByDate' + ], + 'initiator' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'initiator' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'lastModifiedDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastModifiedDate' + ], + 'payForItemLink' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'payForItemLink' + ], + 'priceSignatureConfirmationAmount' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priceSignatureConfirmationAmount' + ], + 'recalledItemLink' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'recalledItemLink' + ], + 'returnDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnDetails' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ], + 'sellerClosureReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerClosureReason' + ], + 'shippingFee' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingFee' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseSearchResponse.php b/src/PostOrder/Types/CaseSearchResponse.php new file mode 100644 index 000000000..b34d5dea8 --- /dev/null +++ b/src/PostOrder/Types/CaseSearchResponse.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CaseSummaryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'members' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'totalNumberOfCases' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalNumberOfCases' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseStatusFilter.php b/src/PostOrder/Types/CaseStatusFilter.php new file mode 100644 index 000000000..6ae3ea086 --- /dev/null +++ b/src/PostOrder/Types/CaseStatusFilter.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseSummaryType.php b/src/PostOrder/Types/CaseSummaryType.php new file mode 100644 index 000000000..c4459f7e4 --- /dev/null +++ b/src/PostOrder/Types/CaseSummaryType.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyer' + ], + 'caseId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ], + 'caseStatusEnum' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Rsp:CaseStatusEnum', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseStatusEnum' + ], + 'claimAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'claimAmount' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'itemId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'lastModifiedDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastModifiedDate' + ], + 'respondByDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'respondByDate' + ], + 'seller' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'transactionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CaseVoluntaryRefundRequest.php b/src/PostOrder/Types/CaseVoluntaryRefundRequest.php new file mode 100644 index 000000000..73583d583 --- /dev/null +++ b/src/PostOrder/Types/CaseVoluntaryRefundRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckCancellationEligibilityRestRequest.php b/src/PostOrder/Types/CheckCancellationEligibilityRestRequest.php new file mode 100644 index 000000000..cd03cdbb6 --- /dev/null +++ b/src/PostOrder/Types/CheckCancellationEligibilityRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckCancellationEligibilityRestResponse.php b/src/PostOrder/Types/CheckCancellationEligibilityRestResponse.php new file mode 100644 index 000000000..eecf5deb0 --- /dev/null +++ b/src/PostOrder/Types/CheckCancellationEligibilityRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CheckEligibilityRequest.php b/src/PostOrder/Types/CheckEligibilityRequest.php new file mode 100644 index 000000000..67dd3421f --- /dev/null +++ b/src/PostOrder/Types/CheckEligibilityRequest.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'checkTypes' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckEligibilityResponse.php b/src/PostOrder/Types/CheckEligibilityResponse.php new file mode 100644 index 000000000..8a54c4142 --- /dev/null +++ b/src/PostOrder/Types/CheckEligibilityResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnEligibilityPerItemType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibilityResultPerItem' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckInquiryEligibilityRequest.php b/src/PostOrder/Types/CheckInquiryEligibilityRequest.php new file mode 100644 index 000000000..69adcc6b6 --- /dev/null +++ b/src/PostOrder/Types/CheckInquiryEligibilityRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckInquiryEligibilityResponse.php b/src/PostOrder/Types/CheckInquiryEligibilityResponse.php new file mode 100644 index 000000000..44d3f70c9 --- /dev/null +++ b/src/PostOrder/Types/CheckInquiryEligibilityResponse.php @@ -0,0 +1,116 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'earliestPossibleFilingDate' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EligibilityResponseError', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'estimatedDeliveryDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimatedDeliveryDate' + ], + 'inquiryEligibilityStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryEligibilityStatus' + ], + 'inquiryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ], + 'latestPossibleFilingDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'latestPossibleFilingDate' + ], + 'nonOverridableErrors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EligibilityResponseError', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'nonOverridableErrors' + ], + 'paypalReasonToDenyRequestFiling' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paypalReasonToDenyRequestFiling' + ], + 'returnFilingDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnFilingDate' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EligibilityResponseError', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckInquiryEligibilityRestRequest.php b/src/PostOrder/Types/CheckInquiryEligibilityRestRequest.php new file mode 100644 index 000000000..acfe78e94 --- /dev/null +++ b/src/PostOrder/Types/CheckInquiryEligibilityRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckInquiryEligibilityRestResponse.php b/src/PostOrder/Types/CheckInquiryEligibilityRestResponse.php new file mode 100644 index 000000000..5efc69665 --- /dev/null +++ b/src/PostOrder/Types/CheckInquiryEligibilityRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CheckLabelPrintEligibilityResponse.php b/src/PostOrder/Types/CheckLabelPrintEligibilityResponse.php new file mode 100644 index 000000000..f23c720f6 --- /dev/null +++ b/src/PostOrder/Types/CheckLabelPrintEligibilityResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'printLabelValid' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckReturnEligibilityRestRequest.php b/src/PostOrder/Types/CheckReturnEligibilityRestRequest.php new file mode 100644 index 000000000..19c22295d --- /dev/null +++ b/src/PostOrder/Types/CheckReturnEligibilityRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckReturnEligibilityRestResponse.php b/src/PostOrder/Types/CheckReturnEligibilityRestResponse.php new file mode 100644 index 000000000..10a5b44d1 --- /dev/null +++ b/src/PostOrder/Types/CheckReturnEligibilityRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CheckShippingLabelEligibilityRestRequest.php b/src/PostOrder/Types/CheckShippingLabelEligibilityRestRequest.php new file mode 100644 index 000000000..d5230dfa2 --- /dev/null +++ b/src/PostOrder/Types/CheckShippingLabelEligibilityRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CheckShippingLabelEligibilityRestResponse.php b/src/PostOrder/Types/CheckShippingLabelEligibilityRestResponse.php new file mode 100644 index 000000000..f0e30e310 --- /dev/null +++ b/src/PostOrder/Types/CheckShippingLabelEligibilityRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ClaimHistoryEventModel.php b/src/PostOrder/Types/ClaimHistoryEventModel.php new file mode 100644 index 000000000..ae5f9d0fe --- /dev/null +++ b/src/PostOrder/Types/ClaimHistoryEventModel.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'action' + ], + 'actor' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actor' + ], + 'date' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'date' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ], + 'moneyMovement' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\MoneyMovementEntries', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'moneyMovement' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ClaimHistoryResponse.php b/src/PostOrder/Types/ClaimHistoryResponse.php new file mode 100644 index 000000000..2c85ad9ae --- /dev/null +++ b/src/PostOrder/Types/ClaimHistoryResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ClaimHistoryEventModel', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'history' + ], + 'shipmentTrackingDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ShipmentTrackingDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentTrackingDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CloseCaseRestRequest.php b/src/PostOrder/Types/CloseCaseRestRequest.php new file mode 100644 index 000000000..545fe7f73 --- /dev/null +++ b/src/PostOrder/Types/CloseCaseRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CloseCaseRestResponse.php b/src/PostOrder/Types/CloseCaseRestResponse.php new file mode 100644 index 000000000..87a1ab022 --- /dev/null +++ b/src/PostOrder/Types/CloseCaseRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CloseInquiryRestRequest.php b/src/PostOrder/Types/CloseInquiryRestRequest.php new file mode 100644 index 000000000..be7ec5ed7 --- /dev/null +++ b/src/PostOrder/Types/CloseInquiryRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CloseInquiryRestResponse.php b/src/PostOrder/Types/CloseInquiryRestResponse.php new file mode 100644 index 000000000..6c45f048f --- /dev/null +++ b/src/PostOrder/Types/CloseInquiryRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CloseReturnRequest.php b/src/PostOrder/Types/CloseReturnRequest.php new file mode 100644 index 000000000..020d4a73e --- /dev/null +++ b/src/PostOrder/Types/CloseReturnRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerCloseReason' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ConditionDataRangeType.php b/src/PostOrder/Types/ConditionDataRangeType.php new file mode 100644 index 000000000..dbf5cce67 --- /dev/null +++ b/src/PostOrder/Types/ConditionDataRangeType.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Mrk:Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ConditionListDetailType.php b/src/PostOrder/Types/ConditionListDetailType.php new file mode 100644 index 000000000..aaeee722f --- /dev/null +++ b/src/PostOrder/Types/ConditionListDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ListDataType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'all' + ], + 'isMultiple' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isMultiple' + ], + 'selected' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ListDataType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'selected' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ConfirmCancellationRefundRestRequest.php b/src/PostOrder/Types/ConfirmCancellationRefundRestRequest.php new file mode 100644 index 000000000..a0c336170 --- /dev/null +++ b/src/PostOrder/Types/ConfirmCancellationRefundRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ConfirmCancellationRefundRestResponse.php b/src/PostOrder/Types/ConfirmCancellationRefundRestResponse.php new file mode 100644 index 000000000..4e93b702c --- /dev/null +++ b/src/PostOrder/Types/ConfirmCancellationRefundRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ConfirmInquiryRefundRestRequest.php b/src/PostOrder/Types/ConfirmInquiryRefundRestRequest.php new file mode 100644 index 000000000..51d54e4b0 --- /dev/null +++ b/src/PostOrder/Types/ConfirmInquiryRefundRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ConfirmInquiryRefundRestResponse.php b/src/PostOrder/Types/ConfirmInquiryRefundRestResponse.php new file mode 100644 index 000000000..2abf2e20e --- /dev/null +++ b/src/PostOrder/Types/ConfirmInquiryRefundRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ConfirmRefundRequest.php b/src/PostOrder/Types/ConfirmRefundRequest.php new file mode 100644 index 000000000..c049f1d47 --- /dev/null +++ b/src/PostOrder/Types/ConfirmRefundRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDate' + ], + 'unpaidOrder' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unpaidOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CountSummaryType.php b/src/PostOrder/Types/CountSummaryType.php new file mode 100644 index 000000000..7fb6e6ee5 --- /dev/null +++ b/src/PostOrder/Types/CountSummaryType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'count' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCancelRequest.php b/src/PostOrder/Types/CreateCancelRequest.php new file mode 100644 index 000000000..d04a1f549 --- /dev/null +++ b/src/PostOrder/Types/CreateCancelRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerPaid' + ], + 'buyerPaidDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerPaidDate' + ], + 'cancelReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelReason' + ], + 'legacyOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyOrderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCancelResponse.php b/src/PostOrder/Types/CreateCancelResponse.php new file mode 100644 index 000000000..7bd003f5f --- /dev/null +++ b/src/PostOrder/Types/CreateCancelResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ], + 'orderEligibilityResult' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\OrderEligibilityResult', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'orderEligibilityResult' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCustomListRequest.php b/src/PostOrder/Types/CreateCustomListRequest.php new file mode 100644 index 000000000..8c2bbd3bb --- /dev/null +++ b/src/PostOrder/Types/CreateCustomListRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'customListDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCustomListResponse.php b/src/PostOrder/Types/CreateCustomListResponse.php new file mode 100644 index 000000000..c11330cf5 --- /dev/null +++ b/src/PostOrder/Types/CreateCustomListResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCustomListRestRequest.php b/src/PostOrder/Types/CreateCustomListRestRequest.php new file mode 100644 index 000000000..4f7298ffb --- /dev/null +++ b/src/PostOrder/Types/CreateCustomListRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateCustomListRestResponse.php b/src/PostOrder/Types/CreateCustomListRestResponse.php new file mode 100644 index 000000000..7c7394376 --- /dev/null +++ b/src/PostOrder/Types/CreateCustomListRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CreateDispositionRuleRequest.php b/src/PostOrder/Types/CreateDispositionRuleRequest.php new file mode 100644 index 000000000..3185a82a4 --- /dev/null +++ b/src/PostOrder/Types/CreateDispositionRuleRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleDetailInputType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateDispositionRuleResponse.php b/src/PostOrder/Types/CreateDispositionRuleResponse.php new file mode 100644 index 000000000..9b80a5d58 --- /dev/null +++ b/src/PostOrder/Types/CreateDispositionRuleResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateInquiryRequest.php b/src/PostOrder/Types/CreateInquiryRequest.php new file mode 100644 index 000000000..0276642e2 --- /dev/null +++ b/src/PostOrder/Types/CreateInquiryRequest.php @@ -0,0 +1,74 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'claimQuantity' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'desiredOutcome' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'desiredOutcome' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateInquiryRestRequest.php b/src/PostOrder/Types/CreateInquiryRestRequest.php new file mode 100644 index 000000000..77667689c --- /dev/null +++ b/src/PostOrder/Types/CreateInquiryRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateInquiryRestResponse.php b/src/PostOrder/Types/CreateInquiryRestResponse.php new file mode 100644 index 000000000..4a19dd3b4 --- /dev/null +++ b/src/PostOrder/Types/CreateInquiryRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CreateReturnDraftRestRequest.php b/src/PostOrder/Types/CreateReturnDraftRestRequest.php new file mode 100644 index 000000000..3bdd9d3f5 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnDraftRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnDraftRestResponse.php b/src/PostOrder/Types/CreateReturnDraftRestResponse.php new file mode 100644 index 000000000..968dc9483 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnDraftRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CreateReturnRequest.php b/src/PostOrder/Types/CreateReturnRequest.php new file mode 100644 index 000000000..d1e97527c --- /dev/null +++ b/src/PostOrder/Types/CreateReturnRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ], + 'returnRequest' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnRequestType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnRequest' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnRequestRestRequest.php b/src/PostOrder/Types/CreateReturnRequestRestRequest.php new file mode 100644 index 000000000..f94cb979d --- /dev/null +++ b/src/PostOrder/Types/CreateReturnRequestRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnRequestRestResponse.php b/src/PostOrder/Types/CreateReturnRequestRestResponse.php new file mode 100644 index 000000000..44dbf86a6 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CreateReturnResponse.php b/src/PostOrder/Types/CreateReturnResponse.php new file mode 100644 index 000000000..156087a6d --- /dev/null +++ b/src/PostOrder/Types/CreateReturnResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\GetDetailResponse', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'detail' + ], + 'eligibilityResult' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnEligibilityPerItemType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibilityResult' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ], + 'summary' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnSummaryType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'summary' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnRulesRestRequest.php b/src/PostOrder/Types/CreateReturnRulesRestRequest.php new file mode 100644 index 000000000..f33fe93a5 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnRulesRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnRulesRestResponse.php b/src/PostOrder/Types/CreateReturnRulesRestResponse.php new file mode 100644 index 000000000..ac873bb47 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnRulesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CreateReturnShippingLabelRestRequest.php b/src/PostOrder/Types/CreateReturnShippingLabelRestRequest.php new file mode 100644 index 000000000..3557f725e --- /dev/null +++ b/src/PostOrder/Types/CreateReturnShippingLabelRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CreateReturnShippingLabelRestResponse.php b/src/PostOrder/Types/CreateReturnShippingLabelRestResponse.php new file mode 100644 index 000000000..5e28ad1e1 --- /dev/null +++ b/src/PostOrder/Types/CreateReturnShippingLabelRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/CustomListDataType.php b/src/PostOrder/Types/CustomListDataType.php new file mode 100644 index 000000000..8707381f9 --- /dev/null +++ b/src/PostOrder/Types/CustomListDataType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'id' + ], + 'identify' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'identify' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CustomListDetailType.php b/src/PostOrder/Types/CustomListDetailType.php new file mode 100644 index 000000000..6317c723b --- /dev/null +++ b/src/PostOrder/Types/CustomListDetailType.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListDataType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'listData' + ], + 'listId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listId' + ], + 'listName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listName' + ], + 'listType' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CustomListModificationType.php b/src/PostOrder/Types/CustomListModificationType.php new file mode 100644 index 000000000..be79a832a --- /dev/null +++ b/src/PostOrder/Types/CustomListModificationType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/CustomListType.php b/src/PostOrder/Types/CustomListType.php new file mode 100644 index 000000000..f7cc489f6 --- /dev/null +++ b/src/PostOrder/Types/CustomListType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DateTime.php b/src/PostOrder/Types/DateTime.php new file mode 100644 index 000000000..2b6bfc031 --- /dev/null +++ b/src/PostOrder/Types/DateTime.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'formattedValue' + ], + 'value' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DecideReturnRequest.php b/src/PostOrder/Types/DecideReturnRequest.php new file mode 100644 index 000000000..627912569 --- /dev/null +++ b/src/PostOrder/Types/DecideReturnRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'decision' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'decision' + ], + 'partialRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'partialRefundAmount' + ], + 'RMANumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMANumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DecideReturnResponse.php b/src/PostOrder/Types/DecideReturnResponse.php new file mode 100644 index 000000000..f871998b9 --- /dev/null +++ b/src/PostOrder/Types/DecideReturnResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DeleteReturnDraftFileRestRequest.php b/src/PostOrder/Types/DeleteReturnDraftFileRestRequest.php new file mode 100644 index 000000000..1f9e8cc54 --- /dev/null +++ b/src/PostOrder/Types/DeleteReturnDraftFileRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ], + 'fileId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DeleteReturnDraftFileRestResponse.php b/src/PostOrder/Types/DeleteReturnDraftFileRestResponse.php new file mode 100644 index 000000000..845b1ea57 --- /dev/null +++ b/src/PostOrder/Types/DeleteReturnDraftFileRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/DeleteReturnFileRestRequest.php b/src/PostOrder/Types/DeleteReturnFileRestRequest.php new file mode 100644 index 000000000..1b9aa1259 --- /dev/null +++ b/src/PostOrder/Types/DeleteReturnFileRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileId' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/DeleteReturnFileRestResponse.php b/src/PostOrder/Types/DeleteReturnFileRestResponse.php new file mode 100644 index 000000000..e05ac41e0 --- /dev/null +++ b/src/PostOrder/Types/DeleteReturnFileRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/DispositionRuleDetailType.php b/src/PostOrder/Types/DispositionRuleDetailType.php new file mode 100644 index 000000000..d66daea4e --- /dev/null +++ b/src/PostOrder/Types/DispositionRuleDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleId' + ], + 'ruleName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleName' + ], + 'ruleTemplate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleTemplate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EligibilityErrorType.php b/src/PostOrder/Types/EligibilityErrorType.php new file mode 100644 index 000000000..5ec92f6d5 --- /dev/null +++ b/src/PostOrder/Types/EligibilityErrorType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'code' + ], + 'content' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'content' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EligibilityResponseError.php b/src/PostOrder/Types/EligibilityResponseError.php new file mode 100644 index 000000000..16851e21a --- /dev/null +++ b/src/PostOrder/Types/EligibilityResponseError.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'id' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EligibilityResultType.php b/src/PostOrder/Types/EligibilityResultType.php new file mode 100644 index 000000000..a3be05880 --- /dev/null +++ b/src/PostOrder/Types/EligibilityResultType.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ], + 'eligibilityErrorDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnEligibilityErrorDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'eligibilityErrorDetail' + ], + 'eligibilityStatus' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\StatusType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibilityStatus' + ], + 'eligibleStartDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibleStartDate' + ], + 'returnCreationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnCreationDate' + ], + 'returnDeadline' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnDeadline' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/Error.php b/src/PostOrder/Types/Error.php new file mode 100644 index 000000000..8e837c5e9 --- /dev/null +++ b/src/PostOrder/Types/Error.php @@ -0,0 +1,95 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'httpStatusCode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'httpStatusCode' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ErrorDetailV3.php b/src/PostOrder/Types/ErrorDetailV3.php new file mode 100644 index 000000000..16f3050a9 --- /dev/null +++ b/src/PostOrder/Types/ErrorDetailV3.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'errorId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'inputRefIds' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inputRefIds' + ], + 'longMessage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'longMessage' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'outputRefIds' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'outputRefIds' + ], + 'parameters' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorParameterV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameters' + ], + 'subDomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subDomain' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ErrorMessage.php b/src/PostOrder/Types/ErrorMessage.php new file mode 100644 index 000000000..f42777da1 --- /dev/null +++ b/src/PostOrder/Types/ErrorMessage.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ErrorParameter.php b/src/PostOrder/Types/ErrorParameter.php new file mode 100644 index 000000000..09391c6c2 --- /dev/null +++ b/src/PostOrder/Types/ErrorParameter.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ErrorParameterV3.php b/src/PostOrder/Types/ErrorParameterV3.php new file mode 100644 index 000000000..2bbd1a841 --- /dev/null +++ b/src/PostOrder/Types/ErrorParameterV3.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateInquiryRequest.php b/src/PostOrder/Types/EscalateInquiryRequest.php new file mode 100644 index 000000000..b46da9e8a --- /dev/null +++ b/src/PostOrder/Types/EscalateInquiryRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'escalationReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalationReason' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateInquiryRestRequest.php b/src/PostOrder/Types/EscalateInquiryRestRequest.php new file mode 100644 index 000000000..a5d87956b --- /dev/null +++ b/src/PostOrder/Types/EscalateInquiryRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateInquiryRestResponse.php b/src/PostOrder/Types/EscalateInquiryRestResponse.php new file mode 100644 index 000000000..0f3ed303d --- /dev/null +++ b/src/PostOrder/Types/EscalateInquiryRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/EscalateRequest.php b/src/PostOrder/Types/EscalateRequest.php new file mode 100644 index 000000000..e38f82f33 --- /dev/null +++ b/src/PostOrder/Types/EscalateRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateResponse.php b/src/PostOrder/Types/EscalateResponse.php new file mode 100644 index 000000000..1ef646146 --- /dev/null +++ b/src/PostOrder/Types/EscalateResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateReturnRestRequest.php b/src/PostOrder/Types/EscalateReturnRestRequest.php new file mode 100644 index 000000000..301482c3f --- /dev/null +++ b/src/PostOrder/Types/EscalateReturnRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalateReturnRestResponse.php b/src/PostOrder/Types/EscalateReturnRestResponse.php new file mode 100644 index 000000000..235ed9b61 --- /dev/null +++ b/src/PostOrder/Types/EscalateReturnRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/EscalationEligibilityInfo.php b/src/PostOrder/Types/EscalationEligibilityInfo.php new file mode 100644 index 000000000..a1615318e --- /dev/null +++ b/src/PostOrder/Types/EscalationEligibilityInfo.php @@ -0,0 +1,60 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligible' + ], + 'endTime' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'endTime' + ], + 'startTime' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'startTime' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EscalationInfoType.php b/src/PostOrder/Types/EscalationInfoType.php new file mode 100644 index 000000000..e72a98750 --- /dev/null +++ b/src/PostOrder/Types/EscalationInfoType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EscalationEligibilityInfo', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerEscalationEligibilityInfo' + ], + 'caseId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ], + 'sellerEscalationEligibilityInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EscalationEligibilityInfo', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerEscalationEligibilityInfo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EstimatedRefundDetailType.php b/src/PostOrder/Types/EstimatedRefundDetailType.php new file mode 100644 index 000000000..fb2dc3d5f --- /dev/null +++ b/src/PostOrder/Types/EstimatedRefundDetailType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedRefundType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemizedRefundDetails' + ], + 'optionalRefundLineItems' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedRefundType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'optionalRefundLineItems' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EstimatedRefundInfoType.php b/src/PostOrder/Types/EstimatedRefundInfoType.php new file mode 100644 index 000000000..dcd5cab8c --- /dev/null +++ b/src/PostOrder/Types/EstimatedRefundInfoType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerTotalAmount' + ], + 'estimatedRefundDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedRefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimatedRefundDetail' + ], + 'sellerTotalAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerTotalAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EstimatedRefundType.php b/src/PostOrder/Types/EstimatedRefundType.php new file mode 100644 index 000000000..e85d2ae84 --- /dev/null +++ b/src/PostOrder/Types/EstimatedRefundType.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimatedAmount' + ], + 'maxAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxAmount' + ], + 'minAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minAmount' + ], + 'refundFeeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundFeeType' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/EstimatedShippingInfoType.php b/src/PostOrder/Types/EstimatedShippingInfoType.php new file mode 100644 index 000000000..d5f6097ca --- /dev/null +++ b/src/PostOrder/Types/EstimatedShippingInfoType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CarrierShippingCostInfoType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'carriers' + ], + 'returnShipmentPayer' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShipmentPayer' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/FindCancelResponse.php b/src/PostOrder/Types/FindCancelResponse.php new file mode 100644 index 000000000..bdc78948f --- /dev/null +++ b/src/PostOrder/Types/FindCancelResponse.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CancelSummary', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'cancellations' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCancelDetailResponse.php b/src/PostOrder/Types/GetCancelDetailResponse.php new file mode 100644 index 000000000..3febae596 --- /dev/null +++ b/src/PostOrder/Types/GetCancelDetailResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CancelDetail', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCancelFieldGroup.php b/src/PostOrder/Types/GetCancelFieldGroup.php new file mode 100644 index 000000000..600825450 --- /dev/null +++ b/src/PostOrder/Types/GetCancelFieldGroup.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCancellationRestRequest.php b/src/PostOrder/Types/GetCancellationRestRequest.php new file mode 100644 index 000000000..20cfb0007 --- /dev/null +++ b/src/PostOrder/Types/GetCancellationRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ], + 'fieldgroups' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCancellationRestResponse.php b/src/PostOrder/Types/GetCancellationRestResponse.php new file mode 100644 index 000000000..27cb3c080 --- /dev/null +++ b/src/PostOrder/Types/GetCancellationRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetCaseRestRequest.php b/src/PostOrder/Types/GetCaseRestRequest.php new file mode 100644 index 000000000..6863a7b83 --- /dev/null +++ b/src/PostOrder/Types/GetCaseRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCaseRestResponse.php b/src/PostOrder/Types/GetCaseRestResponse.php new file mode 100644 index 000000000..1a264175c --- /dev/null +++ b/src/PostOrder/Types/GetCaseRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetCustomListDetailResponse.php b/src/PostOrder/Types/GetCustomListDetailResponse.php new file mode 100644 index 000000000..c3b2e0df4 --- /dev/null +++ b/src/PostOrder/Types/GetCustomListDetailResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCustomListRestResponse.php b/src/PostOrder/Types/GetCustomListRestResponse.php new file mode 100644 index 000000000..1995a5734 --- /dev/null +++ b/src/PostOrder/Types/GetCustomListRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetCustomListsResponse.php b/src/PostOrder/Types/GetCustomListsResponse.php new file mode 100644 index 000000000..845ec02f6 --- /dev/null +++ b/src/PostOrder/Types/GetCustomListsResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'listDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetCustomListsRestResponse.php b/src/PostOrder/Types/GetCustomListsRestResponse.php new file mode 100644 index 000000000..fc9be6d9e --- /dev/null +++ b/src/PostOrder/Types/GetCustomListsRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetDetailResponse.php b/src/PostOrder/Types/GetDetailResponse.php new file mode 100644 index 000000000..12844916e --- /dev/null +++ b/src/PostOrder/Types/GetDetailResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'detail' + ], + 'summary' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnSummaryType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'summary' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetDispositionRuleDetailResponse.php b/src/PostOrder/Types/GetDispositionRuleDetailResponse.php new file mode 100644 index 000000000..1995663aa --- /dev/null +++ b/src/PostOrder/Types/GetDispositionRuleDetailResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleDetail' + ], + 'versionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'versionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetDispositionRuleTemplatesResponse.php b/src/PostOrder/Types/GetDispositionRuleTemplatesResponse.php new file mode 100644 index 000000000..a6a690140 --- /dev/null +++ b/src/PostOrder/Types/GetDispositionRuleTemplatesResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleTemplateDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ruleTemplates' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetDispositionRuleTriggerHistResponse.php b/src/PostOrder/Types/GetDispositionRuleTriggerHistResponse.php new file mode 100644 index 000000000..8da1a6d33 --- /dev/null +++ b/src/PostOrder/Types/GetDispositionRuleTriggerHistResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleTriggerHistDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'historyDetail' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetDispositionRulesResponse.php b/src/PostOrder/Types/GetDispositionRulesResponse.php new file mode 100644 index 000000000..3f628f037 --- /dev/null +++ b/src/PostOrder/Types/GetDispositionRulesResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDisabled' + ], + 'rule' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'rule' + ], + 'totalNumRules' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalNumRules' + ], + 'versionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'versionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetEstimateRequest.php b/src/PostOrder/Types/GetEstimateRequest.php new file mode 100644 index 000000000..bef344c33 --- /dev/null +++ b/src/PostOrder/Types/GetEstimateRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetEstimateResponse.php b/src/PostOrder/Types/GetEstimateResponse.php new file mode 100644 index 000000000..d24e35ce0 --- /dev/null +++ b/src/PostOrder/Types/GetEstimateResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedRefundInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundInfo' + ], + 'returnShippingCostInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedShippingInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostInfo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetFileResponse.php b/src/PostOrder/Types/GetFileResponse.php new file mode 100644 index 000000000..616ccff41 --- /dev/null +++ b/src/PostOrder/Types/GetFileResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnFileType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'files' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetInquiryRestRequest.php b/src/PostOrder/Types/GetInquiryRestRequest.php new file mode 100644 index 000000000..1cd7ba8c8 --- /dev/null +++ b/src/PostOrder/Types/GetInquiryRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetInquiryRestResponse.php b/src/PostOrder/Types/GetInquiryRestResponse.php new file mode 100644 index 000000000..f97ca3576 --- /dev/null +++ b/src/PostOrder/Types/GetInquiryRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetMetadataResponse.php b/src/PostOrder/Types/GetMetadataResponse.php new file mode 100644 index 000000000..687caa724 --- /dev/null +++ b/src/PostOrder/Types/GetMetadataResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnMetadataType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'metadata' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnCreationSessionResponse.php b/src/PostOrder/Types/GetReturnCreationSessionResponse.php new file mode 100644 index 000000000..05d7a2f38 --- /dev/null +++ b/src/PostOrder/Types/GetReturnCreationSessionResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnRequestType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnRequest' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnDraftFilesRestRequest.php b/src/PostOrder/Types/GetReturnDraftFilesRestRequest.php new file mode 100644 index 000000000..a81e2f98c --- /dev/null +++ b/src/PostOrder/Types/GetReturnDraftFilesRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnDraftFilesRestResponse.php b/src/PostOrder/Types/GetReturnDraftFilesRestResponse.php new file mode 100644 index 000000000..8586efbc8 --- /dev/null +++ b/src/PostOrder/Types/GetReturnDraftFilesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnDraftRestRequest.php b/src/PostOrder/Types/GetReturnDraftRestRequest.php new file mode 100644 index 000000000..cd24eff9a --- /dev/null +++ b/src/PostOrder/Types/GetReturnDraftRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnDraftRestResponse.php b/src/PostOrder/Types/GetReturnDraftRestResponse.php new file mode 100644 index 000000000..9d4c9fedd --- /dev/null +++ b/src/PostOrder/Types/GetReturnDraftRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnEstimateRestRequest.php b/src/PostOrder/Types/GetReturnEstimateRestRequest.php new file mode 100644 index 000000000..7d49cfa0e --- /dev/null +++ b/src/PostOrder/Types/GetReturnEstimateRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnEstimateRestResponse.php b/src/PostOrder/Types/GetReturnEstimateRestResponse.php new file mode 100644 index 000000000..e96e7c4d7 --- /dev/null +++ b/src/PostOrder/Types/GetReturnEstimateRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnFilesRestRequest.php b/src/PostOrder/Types/GetReturnFilesRestRequest.php new file mode 100644 index 000000000..51e97bb77 --- /dev/null +++ b/src/PostOrder/Types/GetReturnFilesRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnFilesRestResponse.php b/src/PostOrder/Types/GetReturnFilesRestResponse.php new file mode 100644 index 000000000..b003ab337 --- /dev/null +++ b/src/PostOrder/Types/GetReturnFilesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnMetadataRestRequest.php b/src/PostOrder/Types/GetReturnMetadataRestRequest.php new file mode 100644 index 000000000..c9fba9561 --- /dev/null +++ b/src/PostOrder/Types/GetReturnMetadataRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metadataKey' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnMetadataRestResponse.php b/src/PostOrder/Types/GetReturnMetadataRestResponse.php new file mode 100644 index 000000000..d699913a9 --- /dev/null +++ b/src/PostOrder/Types/GetReturnMetadataRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnPreferencesRestResponse.php b/src/PostOrder/Types/GetReturnPreferencesRestResponse.php new file mode 100644 index 000000000..5a85f2034 --- /dev/null +++ b/src/PostOrder/Types/GetReturnPreferencesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnRestRequest.php b/src/PostOrder/Types/GetReturnRestRequest.php new file mode 100644 index 000000000..24bcfabe9 --- /dev/null +++ b/src/PostOrder/Types/GetReturnRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnRestResponse.php b/src/PostOrder/Types/GetReturnRestResponse.php new file mode 100644 index 000000000..db263904c --- /dev/null +++ b/src/PostOrder/Types/GetReturnRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnRuleHistoryRestRequest.php b/src/PostOrder/Types/GetReturnRuleHistoryRestRequest.php new file mode 100644 index 000000000..6dba6c668 --- /dev/null +++ b/src/PostOrder/Types/GetReturnRuleHistoryRestRequest.php @@ -0,0 +1,74 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'ruleId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleId' + ], + 'trigger_date_range_from' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trigger_date_range_from' + ], + 'trigger_date_range_to' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trigger_date_range_to' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnRuleHistoryRestResponse.php b/src/PostOrder/Types/GetReturnRuleHistoryRestResponse.php new file mode 100644 index 000000000..cf35d4b83 --- /dev/null +++ b/src/PostOrder/Types/GetReturnRuleHistoryRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnRuleRestRequest.php b/src/PostOrder/Types/GetReturnRuleRestRequest.php new file mode 100644 index 000000000..574543fcb --- /dev/null +++ b/src/PostOrder/Types/GetReturnRuleRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnRuleRestResponse.php b/src/PostOrder/Types/GetReturnRuleRestResponse.php new file mode 100644 index 000000000..06ea38e92 --- /dev/null +++ b/src/PostOrder/Types/GetReturnRuleRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnRuleTemplatesRestResponse.php b/src/PostOrder/Types/GetReturnRuleTemplatesRestResponse.php new file mode 100644 index 000000000..6d634a94e --- /dev/null +++ b/src/PostOrder/Types/GetReturnRuleTemplatesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnRulesRestRequest.php b/src/PostOrder/Types/GetReturnRulesRestRequest.php new file mode 100644 index 000000000..752ab4227 --- /dev/null +++ b/src/PostOrder/Types/GetReturnRulesRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnRulesRestResponse.php b/src/PostOrder/Types/GetReturnRulesRestResponse.php new file mode 100644 index 000000000..b71dc9b3d --- /dev/null +++ b/src/PostOrder/Types/GetReturnRulesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetReturnShippingLabelRestRequest.php b/src/PostOrder/Types/GetReturnShippingLabelRestRequest.php new file mode 100644 index 000000000..3f2651a66 --- /dev/null +++ b/src/PostOrder/Types/GetReturnShippingLabelRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetReturnShippingLabelRestResponse.php b/src/PostOrder/Types/GetReturnShippingLabelRestResponse.php new file mode 100644 index 000000000..417c72bb8 --- /dev/null +++ b/src/PostOrder/Types/GetReturnShippingLabelRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetSellerReturnPreferenceResponse.php b/src/PostOrder/Types/GetSellerReturnPreferenceResponse.php new file mode 100644 index 000000000..8d8e55a9f --- /dev/null +++ b/src/PostOrder/Types/GetSellerReturnPreferenceResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'advanceRulesEnabled' + ], + 'basicRules' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'basicRules' + ], + 'RMARequired' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMARequired' + ], + 'versionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'versionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetShipmentTrackingRestRequest.php b/src/PostOrder/Types/GetShipmentTrackingRestRequest.php new file mode 100644 index 000000000..eeefa0b5b --- /dev/null +++ b/src/PostOrder/Types/GetShipmentTrackingRestRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier_used' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ], + 'tracking_number' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'tracking_number' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetShipmentTrackingRestResponse.php b/src/PostOrder/Types/GetShipmentTrackingRestResponse.php new file mode 100644 index 000000000..abcf11496 --- /dev/null +++ b/src/PostOrder/Types/GetShipmentTrackingRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetShippingLabelResponse.php b/src/PostOrder/Types/GetShippingLabelResponse.php new file mode 100644 index 000000000..3c658da58 --- /dev/null +++ b/src/PostOrder/Types/GetShippingLabelResponse.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier' + ], + 'labelContent' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelContent' + ], + 'labelCost' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelCost' + ], + 'labelPrintStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelPrintStatus' + ], + 'labelURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelURL' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetStoreCategoriesRestResponse.php b/src/PostOrder/Types/GetStoreCategoriesRestResponse.php new file mode 100644 index 000000000..2277a7799 --- /dev/null +++ b/src/PostOrder/Types/GetStoreCategoriesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/GetStoreCategoryResponse.php b/src/PostOrder/Types/GetStoreCategoryResponse.php new file mode 100644 index 000000000..87067ce54 --- /dev/null +++ b/src/PostOrder/Types/GetStoreCategoryResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\StoreCategoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'categories' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetSummaryResponse.php b/src/PostOrder/Types/GetSummaryResponse.php new file mode 100644 index 000000000..89962872c --- /dev/null +++ b/src/PostOrder/Types/GetSummaryResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CountSummaryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'countSummary' + ], + 'members' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnSummaryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'members' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'total' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'total' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/GetTrackingHistoryResponse.php b/src/PostOrder/Types/GetTrackingHistoryResponse.php new file mode 100644 index 000000000..b9874ecf1 --- /dev/null +++ b/src/PostOrder/Types/GetTrackingHistoryResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierUsed' + ], + 'scanHistory' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ScanDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'scanHistory' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ], + 'trackingStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InitiateShippingLabelResponse.php b/src/PostOrder/Types/InitiateShippingLabelResponse.php new file mode 100644 index 000000000..57b0930e8 --- /dev/null +++ b/src/PostOrder/Types/InitiateShippingLabelResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier' + ], + 'labelData' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelData' + ], + 'labelURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelURL' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquiryDetails.php b/src/PostOrder/Types/InquiryDetails.php new file mode 100644 index 000000000..2800ad55e --- /dev/null +++ b/src/PostOrder/Types/InquiryDetails.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\AppealDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'appealDetails' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'escalationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalationDate' + ], + 'expirationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'expirationDate' + ], + 'lastBuyerRespDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastBuyerRespDate' + ], + 'refundAmounts' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundAmounts', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundAmounts' + ], + 'refundDeadlineDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDeadlineDate' + ], + 'totalAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquiryDetailsResponse.php b/src/PostOrder/Types/InquiryDetailsResponse.php new file mode 100644 index 000000000..3c6536048 --- /dev/null +++ b/src/PostOrder/Types/InquiryDetailsResponse.php @@ -0,0 +1,151 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'claimAmount' + ], + 'extTransactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'extTransactionId' + ], + 'initiator' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'initiator' + ], + 'inquiryDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\InquiryDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryDetails' + ], + 'inquiryHistoryDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ClaimHistoryResponse', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryHistoryDetails' + ], + 'inquiryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ], + 'inquiryQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryQuantity' + ], + 'itemDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ItemDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemDetails' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'returnDetails' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddress', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnDetails' + ], + 'sellerMakeItRightByDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerMakeItRightByDate' + ], + 'shippingCost' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCost' + ], + 'state' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'state' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ], + 'viewPPTrasanctionUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'viewPPTrasanctionUrl' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquirySearchResponse.php b/src/PostOrder/Types/InquirySearchResponse.php new file mode 100644 index 000000000..e84faa5b7 --- /dev/null +++ b/src/PostOrder/Types/InquirySearchResponse.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\InquirySummaryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'members' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'totalNumberOfInquiries' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalNumberOfInquiries' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquiryStatusFilter.php b/src/PostOrder/Types/InquiryStatusFilter.php new file mode 100644 index 000000000..9bf0aa6c8 --- /dev/null +++ b/src/PostOrder/Types/InquiryStatusFilter.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquirySummaryType.php b/src/PostOrder/Types/InquirySummaryType.php new file mode 100644 index 000000000..b9a5d45a7 --- /dev/null +++ b/src/PostOrder/Types/InquirySummaryType.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyer' + ], + 'claimAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'claimAmount' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'inquiryId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ], + 'inquiryStatusEnum' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryStatusEnum' + ], + 'itemId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'lastModifiedDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastModifiedDate' + ], + 'respondByDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'respondByDate' + ], + 'seller' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller' + ], + 'transactionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/InquiryVoluntaryRefundRequest.php b/src/PostOrder/Types/InquiryVoluntaryRefundRequest.php new file mode 100644 index 000000000..7c8964eba --- /dev/null +++ b/src/PostOrder/Types/InquiryVoluntaryRefundRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueCaseRefundRestRequest.php b/src/PostOrder/Types/IssueCaseRefundRestRequest.php new file mode 100644 index 000000000..a5f7c732f --- /dev/null +++ b/src/PostOrder/Types/IssueCaseRefundRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueCaseRefundRestResponse.php b/src/PostOrder/Types/IssueCaseRefundRestResponse.php new file mode 100644 index 000000000..3cadc4cae --- /dev/null +++ b/src/PostOrder/Types/IssueCaseRefundRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/IssueInquiryRefundRestRequest.php b/src/PostOrder/Types/IssueInquiryRefundRestRequest.php new file mode 100644 index 000000000..950c29570 --- /dev/null +++ b/src/PostOrder/Types/IssueInquiryRefundRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueInquiryRefundRestResponse.php b/src/PostOrder/Types/IssueInquiryRefundRestResponse.php new file mode 100644 index 000000000..7cff5b831 --- /dev/null +++ b/src/PostOrder/Types/IssueInquiryRefundRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/IssueRefundRequest.php b/src/PostOrder/Types/IssueRefundRequest.php new file mode 100644 index 000000000..ba1fb14fd --- /dev/null +++ b/src/PostOrder/Types/IssueRefundRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'refundDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueRefundResponse.php b/src/PostOrder/Types/IssueRefundResponse.php new file mode 100644 index 000000000..1ccce5744 --- /dev/null +++ b/src/PostOrder/Types/IssueRefundResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueReturnRefundRestRequest.php b/src/PostOrder/Types/IssueReturnRefundRestRequest.php new file mode 100644 index 000000000..477d39a19 --- /dev/null +++ b/src/PostOrder/Types/IssueReturnRefundRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/IssueReturnRefundRestResponse.php b/src/PostOrder/Types/IssueReturnRefundRestResponse.php new file mode 100644 index 000000000..d9398fc38 --- /dev/null +++ b/src/PostOrder/Types/IssueReturnRefundRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ItemDetailType.php b/src/PostOrder/Types/ItemDetailType.php new file mode 100644 index 000000000..7462ca012 --- /dev/null +++ b/src/PostOrder/Types/ItemDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ItemDetails.php b/src/PostOrder/Types/ItemDetails.php new file mode 100644 index 000000000..26298277e --- /dev/null +++ b/src/PostOrder/Types/ItemDetails.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemPictureUrl' + ], + 'itemPrice' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemPrice' + ], + 'itemTitle' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemTitle' + ], + 'viewPurchasedItemUrl' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'viewPurchasedItemUrl' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ItemEligibilityResult.php b/src/PostOrder/Types/ItemEligibilityResult.php new file mode 100644 index 000000000..ffdf7fa5a --- /dev/null +++ b/src/PostOrder/Types/ItemEligibilityResult.php @@ -0,0 +1,67 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligible' + ], + 'failureReason' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'failureReason' + ], + 'itemId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'transactionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ItemizedRefundDetailType.php b/src/PostOrder/Types/ItemizedRefundDetailType.php new file mode 100644 index 000000000..7916c9517 --- /dev/null +++ b/src/PostOrder/Types/ItemizedRefundDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundAmount' + ], + 'refundFeeType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundFeeType' + ], + 'restockingFeePercentage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'restockingFeePercentage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ItemizedReturnShippingCostType.php b/src/PostOrder/Types/ItemizedReturnShippingCostType.php new file mode 100644 index 000000000..701613ccb --- /dev/null +++ b/src/PostOrder/Types/ItemizedReturnShippingCostType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'returnShippingCostType' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnShippingCostType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShippingCostType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ListDataType.php b/src/PostOrder/Types/ListDataType.php new file mode 100644 index 000000000..74b9d1d79 --- /dev/null +++ b/src/PostOrder/Types/ListDataType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'id' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkAsReceivedRequest.php b/src/PostOrder/Types/MarkAsReceivedRequest.php new file mode 100644 index 000000000..f7abe8a5a --- /dev/null +++ b/src/PostOrder/Types/MarkAsReceivedRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkAsShippedRequest.php b/src/PostOrder/Types/MarkAsShippedRequest.php new file mode 100644 index 000000000..8bad946c3 --- /dev/null +++ b/src/PostOrder/Types/MarkAsShippedRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierEnum' + ], + 'carrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierName' + ], + 'carrierUsed' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierUsed' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'shippedDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedDate' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkRefundSentRequest.php b/src/PostOrder/Types/MarkRefundSentRequest.php new file mode 100644 index 000000000..066e86808 --- /dev/null +++ b/src/PostOrder/Types/MarkRefundSentRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'partialRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'partialRefundAmount' + ], + 'refundDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkReturnReceivedRestRequest.php b/src/PostOrder/Types/MarkReturnReceivedRestRequest.php new file mode 100644 index 000000000..5fae8d9f5 --- /dev/null +++ b/src/PostOrder/Types/MarkReturnReceivedRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkReturnReceivedRestResponse.php b/src/PostOrder/Types/MarkReturnReceivedRestResponse.php new file mode 100644 index 000000000..4bfafc890 --- /dev/null +++ b/src/PostOrder/Types/MarkReturnReceivedRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/MarkReturnRefundReceivedRestRequest.php b/src/PostOrder/Types/MarkReturnRefundReceivedRestRequest.php new file mode 100644 index 000000000..703c1d5bd --- /dev/null +++ b/src/PostOrder/Types/MarkReturnRefundReceivedRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkReturnRefundReceivedRestResponse.php b/src/PostOrder/Types/MarkReturnRefundReceivedRestResponse.php new file mode 100644 index 000000000..72994e100 --- /dev/null +++ b/src/PostOrder/Types/MarkReturnRefundReceivedRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/MarkReturnRefundSentRestRequest.php b/src/PostOrder/Types/MarkReturnRefundSentRestRequest.php new file mode 100644 index 000000000..370a449cb --- /dev/null +++ b/src/PostOrder/Types/MarkReturnRefundSentRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkReturnRefundSentRestResponse.php b/src/PostOrder/Types/MarkReturnRefundSentRestResponse.php new file mode 100644 index 000000000..ff8061822 --- /dev/null +++ b/src/PostOrder/Types/MarkReturnRefundSentRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/MarkReturnShippedRestRequest.php b/src/PostOrder/Types/MarkReturnShippedRestRequest.php new file mode 100644 index 000000000..1aeac76f8 --- /dev/null +++ b/src/PostOrder/Types/MarkReturnShippedRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MarkReturnShippedRestResponse.php b/src/PostOrder/Types/MarkReturnShippedRestResponse.php new file mode 100644 index 000000000..09456ac9b --- /dev/null +++ b/src/PostOrder/Types/MarkReturnShippedRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ModifyCustomListRequest.php b/src/PostOrder/Types/ModifyCustomListRequest.php new file mode 100644 index 000000000..2dad2d5ba --- /dev/null +++ b/src/PostOrder/Types/ModifyCustomListRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'customListDetail' + ], + 'forceDelete' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'forceDelete' + ], + 'operation' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\CustomListModificationType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'operation' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ModifyCustomListResponse.php b/src/PostOrder/Types/ModifyCustomListResponse.php new file mode 100644 index 000000000..864167503 --- /dev/null +++ b/src/PostOrder/Types/ModifyCustomListResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listId' + ], + 'ruleAffected' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleSummaryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ruleAffected' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ModifyDispositionRuleRequest.php b/src/PostOrder/Types/ModifyDispositionRuleRequest.php new file mode 100644 index 000000000..ea8d2270c --- /dev/null +++ b/src/PostOrder/Types/ModifyDispositionRuleRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleModificationType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'operation' + ], + 'priorityList' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\PriorityListType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priorityList' + ], + 'ruleDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleDetailInputType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleDetail' + ], + 'versionId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'versionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MoneyMovementDetailType.php b/src/PostOrder/Types/MoneyMovementDetailType.php new file mode 100644 index 000000000..71b29ba93 --- /dev/null +++ b/src/PostOrder/Types/MoneyMovementDetailType.php @@ -0,0 +1,88 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualAmount' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'externalPaymentId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'externalPaymentId' + ], + 'moneyMovementType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'moneyMovementType' + ], + 'paymentProvider' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paymentProvider' + ], + 'requestedAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestedAmount' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MoneyMovementEntries.php b/src/PostOrder/Types/MoneyMovementEntries.php new file mode 100644 index 000000000..9a7ce0b86 --- /dev/null +++ b/src/PostOrder/Types/MoneyMovementEntries.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\MoneyMovementEntry', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'moneyMovementEntryList' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MoneyMovementEntry.php b/src/PostOrder/Types/MoneyMovementEntry.php new file mode 100644 index 000000000..19efe59f9 --- /dev/null +++ b/src/PostOrder/Types/MoneyMovementEntry.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'amount' + ], + 'date' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'date' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/MoneyMovementRef.php b/src/PostOrder/Types/MoneyMovementRef.php new file mode 100644 index 000000000..02b98dcb6 --- /dev/null +++ b/src/PostOrder/Types/MoneyMovementRef.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'idref' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/OrderCancelLineItem.php b/src/PostOrder/Types/OrderCancelLineItem.php new file mode 100644 index 000000000..703e802a7 --- /dev/null +++ b/src/PostOrder/Types/OrderCancelLineItem.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/OrderEligibilityCheckInfo.php b/src/PostOrder/Types/OrderEligibilityCheckInfo.php new file mode 100644 index 000000000..b451be3a1 --- /dev/null +++ b/src/PostOrder/Types/OrderEligibilityCheckInfo.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyOrderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/OrderEligibilityResult.php b/src/PostOrder/Types/OrderEligibilityResult.php new file mode 100644 index 000000000..879c35c7b --- /dev/null +++ b/src/PostOrder/Types/OrderEligibilityResult.php @@ -0,0 +1,74 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligible' + ], + 'eligibleCancelReason' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'eligibleCancelReason' + ], + 'failureReason' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'failureReason' + ], + 'itemEligibilityResult' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ItemEligibilityResult', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemEligibilityResult' + ], + 'legacyOrderId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacyOrderId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/PaginationOutput.php b/src/PostOrder/Types/PaginationOutput.php new file mode 100644 index 000000000..d3660e8ce --- /dev/null +++ b/src/PostOrder/Types/PaginationOutput.php @@ -0,0 +1,67 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'totalEntries' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalEntries' + ], + 'totalPages' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalPages' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/PriorityListType.php b/src/PostOrder/Types/PriorityListType.php new file mode 100644 index 000000000..a5e63c500 --- /dev/null +++ b/src/PostOrder/Types/PriorityListType.php @@ -0,0 +1,46 @@ + [ + 'type' => 'integer', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ruleId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProcessReturnRequestRestRequest.php b/src/PostOrder/Types/ProcessReturnRequestRestRequest.php new file mode 100644 index 000000000..aee621431 --- /dev/null +++ b/src/PostOrder/Types/ProcessReturnRequestRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProcessReturnRequestRestResponse.php b/src/PostOrder/Types/ProcessReturnRequestRestResponse.php new file mode 100644 index 000000000..4705e1378 --- /dev/null +++ b/src/PostOrder/Types/ProcessReturnRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ProvideInquiryRefundInfoRestRequest.php b/src/PostOrder/Types/ProvideInquiryRefundInfoRestRequest.php new file mode 100644 index 000000000..50315c5bc --- /dev/null +++ b/src/PostOrder/Types/ProvideInquiryRefundInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvideInquiryRefundInfoRestResponse.php b/src/PostOrder/Types/ProvideInquiryRefundInfoRestResponse.php new file mode 100644 index 000000000..5edb84a4b --- /dev/null +++ b/src/PostOrder/Types/ProvideInquiryRefundInfoRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ProvideInquiryShipmentInfoRestRequest.php b/src/PostOrder/Types/ProvideInquiryShipmentInfoRestRequest.php new file mode 100644 index 000000000..fa8f95629 --- /dev/null +++ b/src/PostOrder/Types/ProvideInquiryShipmentInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvideInquiryShipmentInfoRestResponse.php b/src/PostOrder/Types/ProvideInquiryShipmentInfoRestResponse.php new file mode 100644 index 000000000..efee5adf8 --- /dev/null +++ b/src/PostOrder/Types/ProvideInquiryShipmentInfoRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ProvideLabelRequest.php b/src/PostOrder/Types/ProvideLabelRequest.php new file mode 100644 index 000000000..108134c3c --- /dev/null +++ b/src/PostOrder/Types/ProvideLabelRequest.php @@ -0,0 +1,116 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierEnum' + ], + 'carrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierName' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'fileId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileId' + ], + 'forwardShippingLabelProvided' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'forwardShippingLabelProvided' + ], + 'labelAction' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelAction' + ], + 'labelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelId' + ], + 'labelSentDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelSentDate' + ], + 'noLabelReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'noLabelReason' + ], + 'returnLabelCost' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\B:Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnLabelCost' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvideLabelResponse.php b/src/PostOrder/Types/ProvideLabelResponse.php new file mode 100644 index 000000000..94dffa5fc --- /dev/null +++ b/src/PostOrder/Types/ProvideLabelResponse.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelData' + ], + 'labelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelId' + ], + 'labelURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelURL' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvideReturnShipmentInfoRestRequest.php b/src/PostOrder/Types/ProvideReturnShipmentInfoRestRequest.php new file mode 100644 index 000000000..cb92e06af --- /dev/null +++ b/src/PostOrder/Types/ProvideReturnShipmentInfoRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvideReturnShipmentInfoRestResponse.php b/src/PostOrder/Types/ProvideReturnShipmentInfoRestResponse.php new file mode 100644 index 000000000..3a6876632 --- /dev/null +++ b/src/PostOrder/Types/ProvideReturnShipmentInfoRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ProvideShipmentInfoRequest.php b/src/PostOrder/Types/ProvideShipmentInfoRequest.php new file mode 100644 index 000000000..c8e07ad41 --- /dev/null +++ b/src/PostOrder/Types/ProvideShipmentInfoRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvidesReturnAddressRestRequest.php b/src/PostOrder/Types/ProvidesReturnAddressRestRequest.php new file mode 100644 index 000000000..6dddd9dcf --- /dev/null +++ b/src/PostOrder/Types/ProvidesReturnAddressRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'caseId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ProvidesReturnAddressRestResponse.php b/src/PostOrder/Types/ProvidesReturnAddressRestResponse.php new file mode 100644 index 000000000..c45bdd6e9 --- /dev/null +++ b/src/PostOrder/Types/ProvidesReturnAddressRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/RefundAmounts.php b/src/PostOrder/Types/RefundAmounts.php new file mode 100644 index 000000000..b4da9179f --- /dev/null +++ b/src/PostOrder/Types/RefundAmounts.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerFinalAcceptRefundAmt' + ], + 'buyerInitExpectRefundAmt' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerInitExpectRefundAmt' + ], + 'internationalRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'internationalRefundAmount' + ], + 'refundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RefundDetailType.php b/src/PostOrder/Types/RefundDetailType.php new file mode 100644 index 000000000..7788fb3d9 --- /dev/null +++ b/src/PostOrder/Types/RefundDetailType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ItemizedRefundDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemizedRefundDetail' + ], + 'totalAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RefundInfoType.php b/src/PostOrder/Types/RefundInfoType.php new file mode 100644 index 000000000..3be2dbf26 --- /dev/null +++ b/src/PostOrder/Types/RefundInfoType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ActualRefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualRefundDetail' + ], + 'estimatedRefundDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EstimatedRefundDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimatedRefundDetail' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RefundType.php b/src/PostOrder/Types/RefundType.php new file mode 100644 index 000000000..9a5dfbd62 --- /dev/null +++ b/src/PostOrder/Types/RefundType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RejectCancelRequest.php b/src/PostOrder/Types/RejectCancelRequest.php new file mode 100644 index 000000000..fb5b72322 --- /dev/null +++ b/src/PostOrder/Types/RejectCancelRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentDate' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RejectCancellationRequestRestRequest.php b/src/PostOrder/Types/RejectCancellationRequestRestRequest.php new file mode 100644 index 000000000..468af0efb --- /dev/null +++ b/src/PostOrder/Types/RejectCancellationRequestRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancelId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RejectCancellationRequestRestResponse.php b/src/PostOrder/Types/RejectCancellationRequestRestResponse.php new file mode 100644 index 000000000..eeaecee76 --- /dev/null +++ b/src/PostOrder/Types/RejectCancellationRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/ResponseHistoryAttributesType.php b/src/PostOrder/Types/ResponseHistoryAttributesType.php new file mode 100644 index 000000000..87fdd70b2 --- /dev/null +++ b/src/PostOrder/Types/ResponseHistoryAttributesType.php @@ -0,0 +1,95 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierUsed' + ], + 'escalateReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalateReason' + ], + 'moneyMovementRef' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\MoneyMovementRef', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'moneyMovementRef' + ], + 'partialRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'partialRefundAmount' + ], + 'RMA' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMA' + ], + 'sellerReturnAddress' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddressType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerReturnAddress' + ], + 'toEmailAddress' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'toEmailAddress' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnAddress.php b/src/PostOrder/Types/ReturnAddress.php new file mode 100644 index 000000000..a308a850f --- /dev/null +++ b/src/PostOrder/Types/ReturnAddress.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'address' + ], + 'editable' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'editable' + ], + 'firstName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'firstName' + ], + 'lastName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastName' + ], + 'RMA' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMA' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnAddressRequest.php b/src/PostOrder/Types/ReturnAddressRequest.php new file mode 100644 index 000000000..9984e7eb5 --- /dev/null +++ b/src/PostOrder/Types/ReturnAddressRequest.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'firstName' + ], + 'lastName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastName' + ], + 'returnAddress' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnAddress' + ], + 'RMA' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMA' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnAddressType.php b/src/PostOrder/Types/ReturnAddressType.php new file mode 100644 index 000000000..9aa1fff18 --- /dev/null +++ b/src/PostOrder/Types/ReturnAddressType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Address', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'address' + ], + 'name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnCloseInfoType.php b/src/PostOrder/Types/ReturnCloseInfoType.php new file mode 100644 index 000000000..3593fa40c --- /dev/null +++ b/src/PostOrder/Types/ReturnCloseInfoType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerCloseComment' + ], + 'buyerCloseReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerCloseReason' + ], + 'returnCloseReason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnCloseReason' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnCreationInfoType.php b/src/PostOrder/Types/ReturnCreationInfoType.php new file mode 100644 index 000000000..4ff55145d --- /dev/null +++ b/src/PostOrder/Types/ReturnCreationInfoType.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'item' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnItemType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnDetailType.php b/src/PostOrder/Types/ReturnDetailType.php new file mode 100644 index 000000000..113f76bcb --- /dev/null +++ b/src/PostOrder/Types/ReturnDetailType.php @@ -0,0 +1,151 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddressType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerAddress' + ], + 'buyerLoginName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerLoginName' + ], + 'closeInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnCloseInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'closeInfo' + ], + 'dispositionRuleDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DispositionRuleDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dispositionRuleDetail' + ], + 'files' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnFileType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'files' + ], + 'holdInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnHoldInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdInfo' + ], + 'itemDetail' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ItemDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemDetail' + ], + 'marketplaceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'marketplaceId' + ], + 'moneyMovementInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\MoneyMovementDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'moneyMovementInfo' + ], + 'refundInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RefundInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundInfo' + ], + 'replacementShipmentInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ShipmentType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'replacementShipmentInfo' + ], + 'responseHistory' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnResponseHistoryType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'responseHistory' + ], + 'returnShipmentInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ShipmentType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnShipmentInfo' + ], + 'RMANumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMANumber' + ], + 'sellerAddress' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddressType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerAddress' + ], + 'sellerLoginName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerLoginName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnEligibilityErrorDetailType.php b/src/PostOrder/Types/ReturnEligibilityErrorDetailType.php new file mode 100644 index 000000000..4d9a26f59 --- /dev/null +++ b/src/PostOrder/Types/ReturnEligibilityErrorDetailType.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EligibilityErrorType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibilityError' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResult.php b/src/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResult.php new file mode 100644 index 000000000..f5947bee7 --- /dev/null +++ b/src/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResult.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'checkType' + ], + 'eligibilityInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EligibilityResultType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eligibilityInfo' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnEligibilityItemType.php b/src/PostOrder/Types/ReturnEligibilityItemType.php new file mode 100644 index 000000000..8e4f73eb2 --- /dev/null +++ b/src/PostOrder/Types/ReturnEligibilityItemType.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnEligibilityPerItemType.php b/src/PostOrder/Types/ReturnEligibilityPerItemType.php new file mode 100644 index 000000000..ada87a646 --- /dev/null +++ b/src/PostOrder/Types/ReturnEligibilityPerItemType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnEligibilityItemPerCheckTypeResult', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'eligibilityResultsPerCheckType' + ], + 'returnItem' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnEligibilityItemType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnItem' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnFileType.php b/src/PostOrder/Types/ReturnFileType.php new file mode 100644 index 000000000..ab5319f0f --- /dev/null +++ b/src/PostOrder/Types/ReturnFileType.php @@ -0,0 +1,95 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'fileData' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileData' + ], + 'fileFormat' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileFormat' + ], + 'fileId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileId' + ], + 'filePurpose' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filePurpose' + ], + 'fileStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileStatus' + ], + 'resizedFileData' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'resizedFileData' + ], + 'submitter' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'submitter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnHoldInfoType.php b/src/PostOrder/Types/ReturnHoldInfoType.php new file mode 100644 index 000000000..7f11c83b7 --- /dev/null +++ b/src/PostOrder/Types/ReturnHoldInfoType.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdCreationDate' + ], + 'holdReferenceId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdReferenceId' + ], + 'holdReleaseDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdReleaseDate' + ], + 'holdStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdStatus' + ], + 'holdTransactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'holdTransactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnItemType.php b/src/PostOrder/Types/ReturnItemType.php new file mode 100644 index 000000000..5a94c3c36 --- /dev/null +++ b/src/PostOrder/Types/ReturnItemType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnMetadataType.php b/src/PostOrder/Types/ReturnMetadataType.php new file mode 100644 index 000000000..bf0b88ac5 --- /dev/null +++ b/src/PostOrder/Types/ReturnMetadataType.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataType' + ], + 'isArray' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isArray' + ], + 'siteMetadataKey' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'siteMetadataKey' + ], + 'values' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'values' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnPolicyType.php b/src/PostOrder/Types/ReturnPolicyType.php new file mode 100644 index 000000000..dcca246e9 --- /dev/null +++ b/src/PostOrder/Types/ReturnPolicyType.php @@ -0,0 +1,46 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMARequired' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnRequestType.php b/src/PostOrder/Types/ReturnRequestType.php new file mode 100644 index 000000000..136f9b4e3 --- /dev/null +++ b/src/PostOrder/Types/ReturnRequestType.php @@ -0,0 +1,95 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier' + ], + 'comments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'itemId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'reason' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'reason' + ], + 'requestType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestType' + ], + 'returnQuantity' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnQuantity' + ], + 'transactionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transactionId' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnResponseDueType.php b/src/PostOrder/Types/ReturnResponseDueType.php new file mode 100644 index 000000000..a3ecbc070 --- /dev/null +++ b/src/PostOrder/Types/ReturnResponseDueType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'activityDue' + ], + 'respondByDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'respondByDate' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnResponseHistoryType.php b/src/PostOrder/Types/ReturnResponseHistoryType.php new file mode 100644 index 000000000..0bbd9c62e --- /dev/null +++ b/src/PostOrder/Types/ReturnResponseHistoryType.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'activity' + ], + 'attributes' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ResponseHistoryAttributesType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'attributes' + ], + 'author' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'author' + ], + 'creationDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationDate' + ], + 'fromState' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fromState' + ], + 'notes' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'notes' + ], + 'toState' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'toState' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnShippingCostDetailType.php b/src/PostOrder/Types/ReturnShippingCostDetailType.php new file mode 100644 index 000000000..9cf0f1ae9 --- /dev/null +++ b/src/PostOrder/Types/ReturnShippingCostDetailType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ItemizedReturnShippingCostType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'itemizedReturnShippingCost' + ], + 'totalAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnShippingCostType.php b/src/PostOrder/Types/ReturnShippingCostType.php new file mode 100644 index 000000000..987c93f98 --- /dev/null +++ b/src/PostOrder/Types/ReturnShippingCostType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnSortField.php b/src/PostOrder/Types/ReturnSortField.php new file mode 100644 index 000000000..c3dba73ce --- /dev/null +++ b/src/PostOrder/Types/ReturnSortField.php @@ -0,0 +1,60 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ascending' + ], + 'enumValue' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'enumValue' + ], + 'field' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'field' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ReturnSummaryType.php b/src/PostOrder/Types/ReturnSummaryType.php new file mode 100644 index 000000000..d592fdd43 --- /dev/null +++ b/src/PostOrder/Types/ReturnSummaryType.php @@ -0,0 +1,151 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\AvailableOptionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'buyerAvailableOptions' + ], + 'buyerLoginName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerLoginName' + ], + 'buyerResponseDue' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnResponseDueType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerResponseDue' + ], + 'buyerTotalRefund' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\TotalRefundAmountType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyerTotalRefund' + ], + 'creationInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnCreationInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creationInfo' + ], + 'currentType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentType' + ], + 'dispositionRuleTriggered' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dispositionRuleTriggered' + ], + 'escalationInfo' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\EscalationInfoType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'escalationInfo' + ], + 'returnId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ], + 'returnPolicy' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnPolicyType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnPolicy' + ], + 'sellerAvailableOptions' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\AvailableOptionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sellerAvailableOptions' + ], + 'sellerLoginName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerLoginName' + ], + 'sellerResponseDue' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnResponseDueType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerResponseDue' + ], + 'sellerTotalRefund' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\TotalRefundAmountType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerTotalRefund' + ], + 'state' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'state' + ], + 'status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleActionDataDetailType.php b/src/PostOrder/Types/RuleActionDataDetailType.php new file mode 100644 index 000000000..ab61b7b82 --- /dev/null +++ b/src/PostOrder/Types/RuleActionDataDetailType.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleActionDataType.php b/src/PostOrder/Types/RuleActionDataType.php new file mode 100644 index 000000000..2cd89e7f4 --- /dev/null +++ b/src/PostOrder/Types/RuleActionDataType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleActionDetailType.php b/src/PostOrder/Types/RuleActionDetailType.php new file mode 100644 index 000000000..9620ef952 --- /dev/null +++ b/src/PostOrder/Types/RuleActionDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDataDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'actionData' + ], + 'dataType' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDataType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataType' + ], + 'isInvalid' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isInvalid' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleActionInputType.php b/src/PostOrder/Types/RuleActionInputType.php new file mode 100644 index 000000000..fae14a1ba --- /dev/null +++ b/src/PostOrder/Types/RuleActionInputType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDataDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'actionData' + ], + 'actionDataType' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDataType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDataType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleConditionDetailType.php b/src/PostOrder/Types/RuleConditionDetailType.php new file mode 100644 index 000000000..ef0c263df --- /dev/null +++ b/src/PostOrder/Types/RuleConditionDetailType.php @@ -0,0 +1,81 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ConditionListDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataList' + ], + 'isChecked' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isChecked' + ], + 'isEbayPlus' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isEbayPlus' + ], + 'isInvalid' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isInvalid' + ], + 'storeCategory' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'storeCategory' + ], + 'storeId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'storeId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleConditionInputType.php b/src/PostOrder/Types/RuleConditionInputType.php new file mode 100644 index 000000000..8597222b2 --- /dev/null +++ b/src/PostOrder/Types/RuleConditionInputType.php @@ -0,0 +1,74 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ListDataType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataList' + ], + 'dataRange' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ConditionDataRangeType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataRange' + ], + 'isEbayPlus' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isEbayPlus' + ], + 'storeCategory' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'storeCategory' + ], + 'storeId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'storeId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleDetailInputType.php b/src/PostOrder/Types/RuleDetailInputType.php new file mode 100644 index 000000000..675a4c373 --- /dev/null +++ b/src/PostOrder/Types/RuleDetailInputType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionInputType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDetail' + ], + 'condition' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleConditionInputType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'priority' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleDetailType.php b/src/PostOrder/Types/RuleDetailType.php new file mode 100644 index 000000000..42746304d --- /dev/null +++ b/src/PostOrder/Types/RuleDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDetail' + ], + 'condition' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleConditionDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'condition' + ], + 'ruleSummary' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleSummaryType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ruleSummary' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleModificationType.php b/src/PostOrder/Types/RuleModificationType.php new file mode 100644 index 000000000..5e0d2210b --- /dev/null +++ b/src/PostOrder/Types/RuleModificationType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleSummaryType.php b/src/PostOrder/Types/RuleSummaryType.php new file mode 100644 index 000000000..c196cde70 --- /dev/null +++ b/src/PostOrder/Types/RuleSummaryType.php @@ -0,0 +1,81 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'count' + ], + 'countInTestMode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'countInTestMode' + ], + 'invalidAction' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'invalidAction' + ], + 'invalidConditions' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleConditionDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'invalidConditions' + ], + 'lastModifiedDate' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'lastModifiedDate' + ], + 'priority' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'priority' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleTemplateDetailType.php b/src/PostOrder/Types/RuleTemplateDetailType.php new file mode 100644 index 000000000..d30c81caf --- /dev/null +++ b/src/PostOrder/Types/RuleTemplateDetailType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleActionDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actionDetail' + ], + 'condition' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\RuleConditionDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'condition' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/RuleTriggerHistDetailType.php b/src/PostOrder/Types/RuleTriggerHistDetailType.php new file mode 100644 index 000000000..9c92accec --- /dev/null +++ b/src/PostOrder/Types/RuleTriggerHistDetailType.php @@ -0,0 +1,60 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemId' + ], + 'returnDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Java:XMLGregorianCalendar', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnDate' + ], + 'returnId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ScanDetailType.php b/src/PostOrder/Types/ScanDetailType.php new file mode 100644 index 000000000..92c53b34f --- /dev/null +++ b/src/PostOrder/Types/ScanDetailType.php @@ -0,0 +1,88 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventCity' + ], + 'eventCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventCode' + ], + 'eventDesc' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventDesc' + ], + 'eventPostalCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventPostalCode' + ], + 'eventStateOrProvince' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventStateOrProvince' + ], + 'eventStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventStatus' + ], + 'eventTime' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'eventTime' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SearchCancellationsRestRequest.php b/src/PostOrder/Types/SearchCancellationsRestRequest.php new file mode 100644 index 000000000..fffdbc28c --- /dev/null +++ b/src/PostOrder/Types/SearchCancellationsRestRequest.php @@ -0,0 +1,116 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'buyer_login_name' + ], + 'cancel_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'cancel_id' + ], + 'creation_date_range_from' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creation_date_range_from' + ], + 'creation_date_range_to' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creation_date_range_to' + ], + 'item_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_id' + ], + 'legacy_order_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'legacy_order_id' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'seller_login_name' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'seller_login_name' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ], + 'transaction_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transaction_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SearchCancellationsRestResponse.php b/src/PostOrder/Types/SearchCancellationsRestResponse.php new file mode 100644 index 000000000..43917b67b --- /dev/null +++ b/src/PostOrder/Types/SearchCancellationsRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SearchCasesRestRequest.php b/src/PostOrder/Types/SearchCasesRestRequest.php new file mode 100644 index 000000000..c327b8443 --- /dev/null +++ b/src/PostOrder/Types/SearchCasesRestRequest.php @@ -0,0 +1,116 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'case_creation_date_range_from' + ], + 'case_creation_date_range_to' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'case_creation_date_range_to' + ], + 'case_status_filter' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'case_status_filter' + ], + 'fieldgroups' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ], + 'item_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_id' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'order_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'order_id' + ], + 'return_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_id' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ], + 'transaction_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transaction_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SearchCasesRestResponse.php b/src/PostOrder/Types/SearchCasesRestResponse.php new file mode 100644 index 000000000..5934c6396 --- /dev/null +++ b/src/PostOrder/Types/SearchCasesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SearchInquiriesRestRequest.php b/src/PostOrder/Types/SearchInquiriesRestRequest.php new file mode 100644 index 000000000..5c5104c18 --- /dev/null +++ b/src/PostOrder/Types/SearchInquiriesRestRequest.php @@ -0,0 +1,109 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fieldgroups' + ], + 'inquiry_creation_date_range_from' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiry_creation_date_range_from' + ], + 'inquiry_creation_date_range_to' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiry_creation_date_range_to' + ], + 'inquiry_status' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiry_status' + ], + 'item_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_id' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'order_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'order_id' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ], + 'transaction_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transaction_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SearchInquiriesRestResponse.php b/src/PostOrder/Types/SearchInquiriesRestResponse.php new file mode 100644 index 000000000..c2f7f0aab --- /dev/null +++ b/src/PostOrder/Types/SearchInquiriesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SearchReturnsRestRequest.php b/src/PostOrder/Types/SearchReturnsRestRequest.php new file mode 100644 index 000000000..f874be88d --- /dev/null +++ b/src/PostOrder/Types/SearchReturnsRestRequest.php @@ -0,0 +1,102 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creation_date_range_from' + ], + 'creation_date_range_to' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'creation_date_range_to' + ], + 'item_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'item_id' + ], + 'limit' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'limit' + ], + 'offset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'offset' + ], + 'return_state' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_state' + ], + 'sort' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sort' + ], + 'states' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'states' + ], + 'transaction_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'transaction_id' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SearchReturnsRestResponse.php b/src/PostOrder/Types/SearchReturnsRestResponse.php new file mode 100644 index 000000000..e06f24fb8 --- /dev/null +++ b/src/PostOrder/Types/SearchReturnsRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SellerProvideRefundInfoRequest.php b/src/PostOrder/Types/SellerProvideRefundInfoRequest.php new file mode 100644 index 000000000..d3c6788bc --- /dev/null +++ b/src/PostOrder/Types/SellerProvideRefundInfoRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SendInquiryMessageRestRequest.php b/src/PostOrder/Types/SendInquiryMessageRestRequest.php new file mode 100644 index 000000000..782eaa8ad --- /dev/null +++ b/src/PostOrder/Types/SendInquiryMessageRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'inquiryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SendInquiryMessageRestResponse.php b/src/PostOrder/Types/SendInquiryMessageRestResponse.php new file mode 100644 index 000000000..cc8ae3492 --- /dev/null +++ b/src/PostOrder/Types/SendInquiryMessageRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SendMessageRequest.php b/src/PostOrder/Types/SendMessageRequest.php new file mode 100644 index 000000000..aeac0b59a --- /dev/null +++ b/src/PostOrder/Types/SendMessageRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SendReturnMessageRestRequest.php b/src/PostOrder/Types/SendReturnMessageRestRequest.php new file mode 100644 index 000000000..99226419f --- /dev/null +++ b/src/PostOrder/Types/SendReturnMessageRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SendReturnMessageRestResponse.php b/src/PostOrder/Types/SendReturnMessageRestResponse.php new file mode 100644 index 000000000..3e760e8ae --- /dev/null +++ b/src/PostOrder/Types/SendReturnMessageRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SendReturnShippingLabelRestRequest.php b/src/PostOrder/Types/SendReturnShippingLabelRestRequest.php new file mode 100644 index 000000000..22b39561a --- /dev/null +++ b/src/PostOrder/Types/SendReturnShippingLabelRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'return_id' + ], + 'to_email_address' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'to_email_address' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SendReturnShippingLabelRestResponse.php b/src/PostOrder/Types/SendReturnShippingLabelRestResponse.php new file mode 100644 index 000000000..b32ffb9db --- /dev/null +++ b/src/PostOrder/Types/SendReturnShippingLabelRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SendShippingLabelResponse.php b/src/PostOrder/Types/SendShippingLabelResponse.php new file mode 100644 index 000000000..3cb0992f2 --- /dev/null +++ b/src/PostOrder/Types/SendShippingLabelResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelURL' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SetReturnCreationSessionRequest.php b/src/PostOrder/Types/SetReturnCreationSessionRequest.php new file mode 100644 index 000000000..8f594c2a2 --- /dev/null +++ b/src/PostOrder/Types/SetReturnCreationSessionRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnRequestType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnRequest' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SetReturnCreationSessionResponse.php b/src/PostOrder/Types/SetReturnCreationSessionResponse.php new file mode 100644 index 000000000..1eb5dd5ca --- /dev/null +++ b/src/PostOrder/Types/SetReturnCreationSessionResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SetReturnPreferencesRestRequest.php b/src/PostOrder/Types/SetReturnPreferencesRestRequest.php new file mode 100644 index 000000000..7351e26f4 --- /dev/null +++ b/src/PostOrder/Types/SetReturnPreferencesRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SetReturnPreferencesRestResponse.php b/src/PostOrder/Types/SetReturnPreferencesRestResponse.php new file mode 100644 index 000000000..78e20139d --- /dev/null +++ b/src/PostOrder/Types/SetReturnPreferencesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SetSellerReturnPreferenceRequest.php b/src/PostOrder/Types/SetSellerReturnPreferenceRequest.php new file mode 100644 index 000000000..993fd47d0 --- /dev/null +++ b/src/PostOrder/Types/SetSellerReturnPreferenceRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'RMARequired' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ShipmentInfoRequest.php b/src/PostOrder/Types/ShipmentInfoRequest.php new file mode 100644 index 000000000..e9f0aa876 --- /dev/null +++ b/src/PostOrder/Types/ShipmentInfoRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'proofOfShipmentUploaded' + ], + 'sellerComments' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sellerComments' + ], + 'shippedWithTracking' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedWithTracking' + ], + 'shippingCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingCarrierName' + ], + 'shippingDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingDate' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ShipmentTrackingDetailType.php b/src/PostOrder/Types/ShipmentTrackingDetailType.php new file mode 100644 index 000000000..d099c87eb --- /dev/null +++ b/src/PostOrder/Types/ShipmentTrackingDetailType.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrier' + ], + 'currentStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'currentStatus' + ], + 'estimateFromDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimateFromDate' + ], + 'estimateToDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimateToDate' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ], + 'trackingURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingURL' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ShipmentTrackingType.php b/src/PostOrder/Types/ShipmentTrackingType.php new file mode 100644 index 000000000..e7c2aaf5e --- /dev/null +++ b/src/PostOrder/Types/ShipmentTrackingType.php @@ -0,0 +1,214 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'active' + ], + 'actualDeliveryDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualDeliveryDate' + ], + 'actualShipDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualShipDate' + ], + 'carrierEnum' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierEnum' + ], + 'carrierId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierId' + ], + 'carrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierName' + ], + 'carrierUsed' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'carrierUsed' + ], + 'deliveryDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryDate' + ], + 'deliveryStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'deliveryStatus' + ], + 'destinationAddress' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddressType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'destinationAddress' + ], + 'errorCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorCode' + ], + 'labelAvailableUntilDate' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelAvailableUntilDate' + ], + 'labelDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelDate' + ], + 'labelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelId' + ], + 'labelPrintExpired' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelPrintExpired' + ], + 'labelVoidExpired' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelVoidExpired' + ], + 'markAsReceived' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'markAsReceived' + ], + 'maxDeliveryEstimate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxDeliveryEstimate' + ], + 'minDeliveryEstimate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'minDeliveryEstimate' + ], + 'originAddress' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnAddressType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'originAddress' + ], + 'shipDate' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipDate' + ], + 'shipmentId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentId' + ], + 'shippedBy' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippedBy' + ], + 'shippingMethod' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingMethod' + ], + 'trackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'trackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/ShipmentType.php b/src/PostOrder/Types/ShipmentType.php new file mode 100644 index 000000000..b9d14ed1e --- /dev/null +++ b/src/PostOrder/Types/ShipmentType.php @@ -0,0 +1,67 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ShipmentTrackingType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'allShipmentTrackings' + ], + 'payee' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'payee' + ], + 'shipmentTracking' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ShipmentTrackingType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shipmentTracking' + ], + 'shippingLabelCost' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ReturnShippingCostDetailType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'shippingLabelCost' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/StatusType.php b/src/PostOrder/Types/StatusType.php new file mode 100644 index 000000000..502968131 --- /dev/null +++ b/src/PostOrder/Types/StatusType.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/StoreCategoryType.php b/src/PostOrder/Types/StoreCategoryType.php new file mode 100644 index 000000000..dfe998067 --- /dev/null +++ b/src/PostOrder/Types/StoreCategoryType.php @@ -0,0 +1,74 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'categoryName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryName' + ], + 'isLeaf' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isLeaf' + ], + 'isPseudo' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isPseudo' + ], + 'storeId' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'storeId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SubmitCancellationRequestRestRequest.php b/src/PostOrder/Types/SubmitCancellationRequestRestRequest.php new file mode 100644 index 000000000..a93fb4945 --- /dev/null +++ b/src/PostOrder/Types/SubmitCancellationRequestRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SubmitCancellationRequestRestResponse.php b/src/PostOrder/Types/SubmitCancellationRequestRestResponse.php new file mode 100644 index 000000000..e214409c4 --- /dev/null +++ b/src/PostOrder/Types/SubmitCancellationRequestRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/SubmitFileRequest.php b/src/PostOrder/Types/SubmitFileRequest.php new file mode 100644 index 000000000..7245434ef --- /dev/null +++ b/src/PostOrder/Types/SubmitFileRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filePurpose' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SubmitFileResponse.php b/src/PostOrder/Types/SubmitFileResponse.php new file mode 100644 index 000000000..1ead440ea --- /dev/null +++ b/src/PostOrder/Types/SubmitFileResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'removedFileIds' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SubmitReturnFileRestRequest.php b/src/PostOrder/Types/SubmitReturnFileRestRequest.php new file mode 100644 index 000000000..e61a7410e --- /dev/null +++ b/src/PostOrder/Types/SubmitReturnFileRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/SubmitReturnFileRestResponse.php b/src/PostOrder/Types/SubmitReturnFileRestResponse.php new file mode 100644 index 000000000..1a81251c0 --- /dev/null +++ b/src/PostOrder/Types/SubmitReturnFileRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/Text.php b/src/PostOrder/Types/Text.php new file mode 100644 index 000000000..4af15a8dd --- /dev/null +++ b/src/PostOrder/Types/Text.php @@ -0,0 +1,67 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'content' + ], + 'language' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'language' + ], + 'translatedFromContent' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'translatedFromContent' + ], + 'translatedFromLanguage' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'translatedFromLanguage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/TotalRefundAmountType.php b/src/PostOrder/Types/TotalRefundAmountType.php new file mode 100644 index 000000000..5d496a684 --- /dev/null +++ b/src/PostOrder/Types/TotalRefundAmountType.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'actualRefundAmount' + ], + 'estimatedRefundAmount' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'estimatedRefundAmount' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UpdateCustomListRestRequest.php b/src/PostOrder/Types/UpdateCustomListRestRequest.php new file mode 100644 index 000000000..6f3641da5 --- /dev/null +++ b/src/PostOrder/Types/UpdateCustomListRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UpdateCustomListRestResponse.php b/src/PostOrder/Types/UpdateCustomListRestResponse.php new file mode 100644 index 000000000..95014dbc5 --- /dev/null +++ b/src/PostOrder/Types/UpdateCustomListRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/UpdateReturnDraftRestRequest.php b/src/PostOrder/Types/UpdateReturnDraftRestRequest.php new file mode 100644 index 000000000..e606a09e9 --- /dev/null +++ b/src/PostOrder/Types/UpdateReturnDraftRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UpdateReturnDraftRestResponse.php b/src/PostOrder/Types/UpdateReturnDraftRestResponse.php new file mode 100644 index 000000000..73d880485 --- /dev/null +++ b/src/PostOrder/Types/UpdateReturnDraftRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/UpdateReturnRulesRestRequest.php b/src/PostOrder/Types/UpdateReturnRulesRestRequest.php new file mode 100644 index 000000000..7360badbf --- /dev/null +++ b/src/PostOrder/Types/UpdateReturnRulesRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UpdateReturnRulesRestResponse.php b/src/PostOrder/Types/UpdateReturnRulesRestResponse.php new file mode 100644 index 000000000..a7fa2358a --- /dev/null +++ b/src/PostOrder/Types/UpdateReturnRulesRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/UpdateShipmentTrackingRestRequest.php b/src/PostOrder/Types/UpdateShipmentTrackingRestRequest.php new file mode 100644 index 000000000..8b067bdf8 --- /dev/null +++ b/src/PostOrder/Types/UpdateShipmentTrackingRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UpdateShipmentTrackingRestResponse.php b/src/PostOrder/Types/UpdateShipmentTrackingRestResponse.php new file mode 100644 index 000000000..98eb1c4ea --- /dev/null +++ b/src/PostOrder/Types/UpdateShipmentTrackingRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/UpdateTrackingRequest.php b/src/PostOrder/Types/UpdateTrackingRequest.php new file mode 100644 index 000000000..59689f6ae --- /dev/null +++ b/src/PostOrder/Types/UpdateTrackingRequest.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'newCarrierEnum' + ], + 'newCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'newCarrierName' + ], + 'newTrackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'newTrackingNumber' + ], + 'usedCarrierEnum' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'usedCarrierEnum' + ], + 'usedCarrierName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'usedCarrierName' + ], + 'usedTrackingNumber' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'usedTrackingNumber' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UploadFileRequest.php b/src/PostOrder/Types/UploadFileRequest.php new file mode 100644 index 000000000..52a663808 --- /dev/null +++ b/src/PostOrder/Types/UploadFileRequest.php @@ -0,0 +1,60 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'data' + ], + 'fileName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileName' + ], + 'filePurpose' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filePurpose' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UploadFileResponse.php b/src/PostOrder/Types/UploadFileResponse.php new file mode 100644 index 000000000..9205d69e2 --- /dev/null +++ b/src/PostOrder/Types/UploadFileResponse.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'compressedFileData' + ], + 'fileId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'fileId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UploadReturnDraftFileRestRequest.php b/src/PostOrder/Types/UploadReturnDraftFileRestRequest.php new file mode 100644 index 000000000..ae7f5fcc7 --- /dev/null +++ b/src/PostOrder/Types/UploadReturnDraftFileRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'draftId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UploadReturnDraftFileRestResponse.php b/src/PostOrder/Types/UploadReturnDraftFileRestResponse.php new file mode 100644 index 000000000..8242fa319 --- /dev/null +++ b/src/PostOrder/Types/UploadReturnDraftFileRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/UploadReturnFileRestRequest.php b/src/PostOrder/Types/UploadReturnFileRestRequest.php new file mode 100644 index 000000000..819c61b1a --- /dev/null +++ b/src/PostOrder/Types/UploadReturnFileRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/UploadReturnFileRestResponse.php b/src/PostOrder/Types/UploadReturnFileRestResponse.php new file mode 100644 index 000000000..99d84801c --- /dev/null +++ b/src/PostOrder/Types/UploadReturnFileRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/VoidLabelRequest.php b/src/PostOrder/Types/VoidLabelRequest.php new file mode 100644 index 000000000..7b5a63bc0 --- /dev/null +++ b/src/PostOrder/Types/VoidLabelRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Text', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'comments' + ], + 'labelId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'labelId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/VoidShippingLabelRestRequest.php b/src/PostOrder/Types/VoidShippingLabelRestRequest.php new file mode 100644 index 000000000..4134eec3f --- /dev/null +++ b/src/PostOrder/Types/VoidShippingLabelRestRequest.php @@ -0,0 +1,46 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'returnId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/VoidShippingLabelRestResponse.php b/src/PostOrder/Types/VoidShippingLabelRestResponse.php new file mode 100644 index 000000000..d9ed20105 --- /dev/null +++ b/src/PostOrder/Types/VoidShippingLabelRestResponse.php @@ -0,0 +1,72 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\Error', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ], + 'errors' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'warnings' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + * @param int $statusCode Status code + * @param array $headers HTTP Response headers. + */ + public function __construct(array $values = [], $statusCode = 200, array $headers = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + + $this->statusCode = (int)$statusCode; + + $this->setHeaders($headers); + } +} diff --git a/src/PostOrder/Types/VoluntaryRefundResponse.php b/src/PostOrder/Types/VoluntaryRefundResponse.php new file mode 100644 index 000000000..e9badbcf0 --- /dev/null +++ b/src/PostOrder/Types/VoluntaryRefundResponse.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\PostOrder\Types\VoluntaryRefundResult', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundResult' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/PostOrder/Types/VoluntaryRefundResult.php b/src/PostOrder/Types/VoluntaryRefundResult.php new file mode 100644 index 000000000..8663ebdef --- /dev/null +++ b/src/PostOrder/Types/VoluntaryRefundResult.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundSource' + ], + 'refundStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'refundStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Enums/AckValue.php b/src/Product/Enums/AckValue.php new file mode 100644 index 000000000..566f1fe45 --- /dev/null +++ b/src/Product/Enums/AckValue.php @@ -0,0 +1,19 @@ + [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\Product\Services\ProductService::API_VERSION + ], + 'globalId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @param string $operationName The name of the operation been called. + * + * @return array An associative array of eBay http headers. + */ + protected function getEbayHeaders($operationName) + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_APP_ID] = $this->getConfig('credentials')->getAppId(); + $headers[self::HDR_OPERATION_NAME] = $operationName; + + // Add optional headers. + if ($this->getConfig('apiVersion')) { + $headers[self::HDR_API_VERSION] = $this->getConfig('apiVersion'); + } + + if ($this->getConfig('globalId')) { + $headers[self::HDR_GLOBAL_ID] = $this->getConfig('globalId'); + } + + return $headers; + } +} diff --git a/src/Product/Services/ProductService.php b/src/Product/Services/ProductService.php new file mode 100644 index 000000000..1d400b9d0 --- /dev/null +++ b/src/Product/Services/ProductService.php @@ -0,0 +1,178 @@ +findProductsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\FindProductsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function findProductsAsync(\DTS\eBaySDK\Product\Types\FindProductsRequest $request) + { + return $this->callOperationAsync( + 'findProducts', + $request, + '\DTS\eBaySDK\Product\Types\FindProductsResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\FindProductsByCompatibilityRequest $request + * @return \DTS\eBaySDK\Product\Types\FindProductsResponse + */ + public function findProductsByCompatibility(\DTS\eBaySDK\Product\Types\FindProductsByCompatibilityRequest $request) + { + return $this->findProductsByCompatibilityAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\FindProductsByCompatibilityRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function findProductsByCompatibilityAsync(\DTS\eBaySDK\Product\Types\FindProductsByCompatibilityRequest $request) + { + return $this->callOperationAsync( + 'findProductsByCompatibility', + $request, + '\DTS\eBaySDK\Product\Types\FindProductsResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductDetailsRequest $request + * @return \DTS\eBaySDK\Product\Types\GetProductDetailsResponse + */ + public function getProductDetails(\DTS\eBaySDK\Product\Types\GetProductDetailsRequest $request) + { + return $this->getProductDetailsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductDetailsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductDetailsAsync(\DTS\eBaySDK\Product\Types\GetProductDetailsRequest $request) + { + return $this->callOperationAsync( + 'getProductDetails', + $request, + '\DTS\eBaySDK\Product\Types\GetProductDetailsResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductCompatibilitiesRequest $request + * @return \DTS\eBaySDK\Product\Types\GetProductCompatiblitiesResponse + */ + public function getProductCompatibilities(\DTS\eBaySDK\Product\Types\GetProductCompatibilitiesRequest $request) + { + return $this->getProductCompatibilitiesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductCompatibilitiesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductCompatibilitiesAsync(\DTS\eBaySDK\Product\Types\GetProductCompatibilitiesRequest $request) + { + return $this->callOperationAsync( + 'getProductCompatibilities', + $request, + '\DTS\eBaySDK\Product\Types\GetProductCompatiblitiesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationRequest $request + * @return \DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationResponse + */ + public function findCompatibilitiesBySpecification(\DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationRequest $request) + { + return $this->findCompatibilitiesBySpecificationAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function findCompatibilitiesBySpecificationAsync(\DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationRequest $request) + { + return $this->callOperationAsync( + 'findCompatibilitiesBySpecification', + $request, + '\DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\AddProductsRequest $request + * @return \DTS\eBaySDK\Product\Types\AddProductsResponse + */ + public function addProducts(\DTS\eBaySDK\Product\Types\AddProductsRequest $request) + { + return $this->addProductsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\AddProductsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addProductsAsync(\DTS\eBaySDK\Product\Types\AddProductsRequest $request) + { + return $this->callOperationAsync( + 'addProducts', + $request, + '\DTS\eBaySDK\Product\Types\AddProductsResponse' + ); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductSubmissionsRequest $request + * @return \DTS\eBaySDK\Product\Types\GetProductSubmissionsResponse + */ + public function getProductSubmissions(\DTS\eBaySDK\Product\Types\GetProductSubmissionsRequest $request) + { + return $this->getProductSubmissionsAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Product\Types\GetProductSubmissionsRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductSubmissionsAsync(\DTS\eBaySDK\Product\Types\GetProductSubmissionsRequest $request) + { + return $this->callOperationAsync( + 'getProductSubmissions', + $request, + '\DTS\eBaySDK\Product\Types\GetProductSubmissionsResponse' + ); + } +} diff --git a/src/Product/Types/AddProductResponse.php b/src/Product/Types/AddProductResponse.php new file mode 100644 index 000000000..b8d8ec5cc --- /dev/null +++ b/src/Product/Types/AddProductResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'invocationId' + ], + 'status' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmissionStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/AddProductsRequest.php b/src/Product/Types/AddProductsRequest.php new file mode 100644 index 000000000..487a05367 --- /dev/null +++ b/src/Product/Types/AddProductsRequest.php @@ -0,0 +1,61 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmission', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'addProductRequest' + ], + 'clientBatchId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'clientBatchId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'addProductsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/AddProductsResponse.php b/src/Product/Types/AddProductsResponse.php new file mode 100644 index 000000000..1bb4f5a8e --- /dev/null +++ b/src/Product/Types/AddProductsResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\AddProductResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'addProductResponse' + ], + 'clientBatchId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'clientBatchId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/BaseServiceRequest.php b/src/Product/Types/BaseServiceRequest.php new file mode 100644 index 000000000..b84f967a3 --- /dev/null +++ b/src/Product/Types/BaseServiceRequest.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/BaseServiceResponse.php b/src/Product/Types/BaseServiceResponse.php new file mode 100644 index 000000000..db7eb27ff --- /dev/null +++ b/src/Product/Types/BaseServiceResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/CompatibilityDetails.php b/src/Product/Types/CompatibilityDetails.php new file mode 100644 index 000000000..0c6a2caca --- /dev/null +++ b/src/Product/Types/CompatibilityDetails.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'compatibilityProperty' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/CompatibilityPropertyFilter.php b/src/Product/Types/CompatibilityPropertyFilter.php new file mode 100644 index 000000000..01a73ca27 --- /dev/null +++ b/src/Product/Types/CompatibilityPropertyFilter.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyFilter' + ], + 'AAIA' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'AAIA' + ], + 'HSNTSN' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'HSNTSN' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/CompatibilitySort.php b/src/Product/Types/CompatibilitySort.php new file mode 100644 index 000000000..a438aed54 --- /dev/null +++ b/src/Product/Types/CompatibilitySort.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\SortOrder', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortOrder' + ], + 'sortPriority' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortPriority' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ErrorData.php b/src/Product/Types/ErrorData.php new file mode 100644 index 000000000..f51881494 --- /dev/null +++ b/src/Product/Types/ErrorData.php @@ -0,0 +1,99 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'exceptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exceptionId' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ErrorMessage.php b/src/Product/Types/ErrorMessage.php new file mode 100644 index 000000000..7f9e60f41 --- /dev/null +++ b/src/Product/Types/ErrorMessage.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ErrorData', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ErrorParameter.php b/src/Product/Types/ErrorParameter.php new file mode 100644 index 000000000..ced5a792f --- /dev/null +++ b/src/Product/Types/ErrorParameter.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/FindCompatibilitiesBySpecificationRequest.php b/src/Product/Types/FindCompatibilitiesBySpecificationRequest.php new file mode 100644 index 000000000..576cf98e6 --- /dev/null +++ b/src/Product/Types/FindCompatibilitiesBySpecificationRequest.php @@ -0,0 +1,103 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'compatibilityPropertyFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'compatibilityPropertyFilter' + ], + 'specification' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'specification' + ], + 'dataSet' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataSet' + ], + 'datasetPropertyName' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'datasetPropertyName' + ], + 'exactMatch' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exactMatch' + ], + 'paginationInput' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationInput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationInput' + ], + 'sortOrder' => [ + 'type' => 'DTS\eBaySDK\Product\Types\CompatibilitySort', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sortOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'findCompatibilitiesBySpecificationRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/FindCompatibilitiesBySpecificationResponse.php b/src/Product/Types/FindCompatibilitiesBySpecificationResponse.php new file mode 100644 index 000000000..fd9052f47 --- /dev/null +++ b/src/Product/Types/FindCompatibilitiesBySpecificationResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'compatibilityDetails' => [ + 'type' => 'DTS\eBaySDK\Product\Types\CompatibilityDetails', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'compatibilityDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/FindProductsByCompatibilityRequest.php b/src/Product/Types/FindProductsByCompatibilityRequest.php new file mode 100644 index 000000000..a67cc8673 --- /dev/null +++ b/src/Product/Types/FindProductsByCompatibilityRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductByCompatibilityRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productByCompatibilitySearch' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'findProductsByCompatibilityRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/FindProductsRequest.php b/src/Product/Types/FindProductsRequest.php new file mode 100644 index 000000000..ac3713b74 --- /dev/null +++ b/src/Product/Types/FindProductsRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productSearch' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'findProductsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/FindProductsResponse.php b/src/Product/Types/FindProductsResponse.php new file mode 100644 index 000000000..ec09dd183 --- /dev/null +++ b/src/Product/Types/FindProductsResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productSearchResult' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductCompatibilitiesRequest.php b/src/Product/Types/GetProductCompatibilitiesRequest.php new file mode 100644 index 000000000..84ad262c3 --- /dev/null +++ b/src/Product/Types/GetProductCompatibilitiesRequest.php @@ -0,0 +1,96 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductIdentifier', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productIdentifier' + ], + 'paginationInput' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationInput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationInput' + ], + 'applicationPropertyFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'applicationPropertyFilter' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataset' + ], + 'sortOrder' => [ + 'type' => 'DTS\eBaySDK\Product\Types\CompatibilitySort', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sortOrder' + ], + 'disabledProductFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'disabledProductFilter' + ], + 'datasetPropertyName' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'datasetPropertyName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductCompatibilitiesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductCompatiblitiesResponse.php b/src/Product/Types/GetProductCompatiblitiesResponse.php new file mode 100644 index 000000000..aa0e253a5 --- /dev/null +++ b/src/Product/Types/GetProductCompatiblitiesResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'compatibilityDetails' => [ + 'type' => 'DTS\eBaySDK\Product\Types\Product', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'compatibilityDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductDetailsRequest.php b/src/Product/Types/GetProductDetailsRequest.php new file mode 100644 index 000000000..791be715c --- /dev/null +++ b/src/Product/Types/GetProductDetailsRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductDetailsRequestType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productDetailsRequest' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductDetailsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductDetailsResponse.php b/src/Product/Types/GetProductDetailsResponse.php new file mode 100644 index 000000000..9e10dcb0d --- /dev/null +++ b/src/Product/Types/GetProductDetailsResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\Product', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'product' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductSubmissionsRequest.php b/src/Product/Types/GetProductSubmissionsRequest.php new file mode 100644 index 000000000..8ef8bea7d --- /dev/null +++ b/src/Product/Types/GetProductSubmissionsRequest.php @@ -0,0 +1,75 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmissionFilter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productSubmissionFilter' + ], + 'outputSelector' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'outputSelector' + ], + 'paginationInput' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationInput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationInput' + ], + 'sortOption' => [ + 'type' => 'DTS\eBaySDK\Product\Types\SortOption', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sortOption' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductSubmissionsRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/GetProductSubmissionsResponse.php b/src/Product/Types/GetProductSubmissionsResponse.php new file mode 100644 index 000000000..6c221ad3e --- /dev/null +++ b/src/Product/Types/GetProductSubmissionsResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'productSubmissionResponse' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmissionResult', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productSubmissionResponse' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/Media.php b/src/Product/Types/Media.php new file mode 100644 index 000000000..d3a93b38f --- /dev/null +++ b/src/Product/Types/Media.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\MediaIdentifier', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mediaIdentifier' + ], + 'mediaType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mediaType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/MediaIdentifier.php b/src/Product/Types/MediaIdentifier.php new file mode 100644 index 000000000..116090b73 --- /dev/null +++ b/src/Product/Types/MediaIdentifier.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'url' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/Notes.php b/src/Product/Types/Notes.php new file mode 100644 index 000000000..b434ffa69 --- /dev/null +++ b/src/Product/Types/Notes.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'noteDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/NumericValue.php b/src/Product/Types/NumericValue.php new file mode 100644 index 000000000..eec5d712c --- /dev/null +++ b/src/Product/Types/NumericValue.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ], + 'unitOfMeasurement' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unitOfMeasurement' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/PaginationInput.php b/src/Product/Types/PaginationInput.php new file mode 100644 index 000000000..f49a4ea91 --- /dev/null +++ b/src/Product/Types/PaginationInput.php @@ -0,0 +1,57 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pageNumber' + ], + 'entriesPerPage' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'entriesPerPage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/PaginationOutput.php b/src/Product/Types/PaginationOutput.php new file mode 100644 index 000000000..11dae53d5 --- /dev/null +++ b/src/Product/Types/PaginationOutput.php @@ -0,0 +1,71 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalPages' + ], + 'totalEntries' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'totalEntries' + ], + 'pageNumber' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'pageNumber' + ], + 'entriesPerPage' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'entriesPerPage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/Product.php b/src/Product/Types/Product.php new file mode 100644 index 000000000..eb0ccd8c7 --- /dev/null +++ b/src/Product/Types/Product.php @@ -0,0 +1,92 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductIdentifier', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productIdentifier' + ], + 'stockPhotoURL' => [ + 'type' => 'DTS\eBaySDK\Product\Types\StockPhotoURL', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stockPhotoURL' + ], + 'productDetails' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productDetails' + ], + 'productStatus' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productStatus' + ], + 'compatibilityCount' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'compatibilityCount' + ], + 'type' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'type' + ], + 'notes' => [ + 'type' => 'DTS\eBaySDK\Product\Types\Notes', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'notes' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductByCompatibilityRequest.php b/src/Product/Types/ProductByCompatibilityRequest.php new file mode 100644 index 000000000..094fa7f97 --- /dev/null +++ b/src/Product/Types/ProductByCompatibilityRequest.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\CompatibilityPropertyFilter', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'applicationPropertyFilter' + ], + 'productSearch' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductRequest', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productSearch' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductDetailsRequestType.php b/src/Product/Types/ProductDetailsRequestType.php new file mode 100644 index 000000000..c1b62a591 --- /dev/null +++ b/src/Product/Types/ProductDetailsRequestType.php @@ -0,0 +1,71 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductIdentifier', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productIdentifier' + ], + 'datasetPropertyName' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'datasetPropertyName' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataset' + ], + 'productStatusFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productStatusFilter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/MerchantData/Types/UserIdPasswordType.php b/src/Product/Types/ProductIdentifier.php similarity index 63% rename from src/MerchantData/Types/UserIdPasswordType.php rename to src/Product/Types/ProductIdentifier.php index 6c2cce6cd..fadd514d1 100644 --- a/src/MerchantData/Types/UserIdPasswordType.php +++ b/src/Product/Types/ProductIdentifier.php @@ -1,55 +1,58 @@ [ + 'ePID' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'AppId' + 'elementName' => 'ePID' ], - 'DevId' => [ + 'ISBN' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'DevId' + 'elementName' => 'ISBN' ], - 'AuthCert' => [ + 'UPC' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'AuthCert' + 'elementName' => 'UPC' ], - 'Username' => [ + 'EAN' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'Username' + 'elementName' => 'EAN' ], - 'Password' => [ + 'productId' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'Password' + 'elementName' => 'productId' ] ]; @@ -67,7 +70,7 @@ public function __construct(array $values = []) } if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { - self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"'; + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; } $this->setValues(__CLASS__, $childValues); diff --git a/src/Product/Types/ProductRequest.php b/src/Product/Types/ProductRequest.php new file mode 100644 index 000000000..ab083b923 --- /dev/null +++ b/src/Product/Types/ProductRequest.php @@ -0,0 +1,106 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'invocationId' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'keywords' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'keywords' + ], + 'propertyFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyFilter' + ], + 'sortOrder' => [ + 'type' => 'DTS\eBaySDK\Product\Types\SortOrder', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortOrder' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataset' + ], + 'datasetPropertyName' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'datasetPropertyName' + ], + 'paginationInput' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationInput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationInput' + ], + 'productStatusFilter' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productStatusFilter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductResponse.php b/src/Product/Types/ProductResponse.php new file mode 100644 index 000000000..93cd39736 --- /dev/null +++ b/src/Product/Types/ProductResponse.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\Product', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'products' + ], + 'paginationOutput' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PaginationOutput', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'paginationOutput' + ], + 'invocationId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'invocationId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductStatus.php b/src/Product/Types/ProductStatus.php new file mode 100644 index 000000000..73e3aa649 --- /dev/null +++ b/src/Product/Types/ProductStatus.php @@ -0,0 +1,64 @@ + [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'excludeForeBaySelling' + ], + 'excludeForeBayReviews' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'excludeForeBayReviews' + ], + 'excludeForHalfSelling' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'excludeForHalfSelling' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductSubmission.php b/src/Product/Types/ProductSubmission.php new file mode 100644 index 000000000..6de70c7bc --- /dev/null +++ b/src/Product/Types/ProductSubmission.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'invocationId' + ], + 'categoryId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'productPropertyValue' => [ + 'type' => 'DTS\eBaySDK\Product\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productPropertyValue' + ], + 'media' => [ + 'type' => 'DTS\eBaySDK\Product\Types\Media', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'media' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductSubmissionFilter.php b/src/Product/Types/ProductSubmissionFilter.php new file mode 100644 index 000000000..2b766b568 --- /dev/null +++ b/src/Product/Types/ProductSubmissionFilter.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'filterName' + ], + 'filterValue' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'filterValue' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductSubmissionResult.php b/src/Product/Types/ProductSubmissionResult.php new file mode 100644 index 000000000..8865444e4 --- /dev/null +++ b/src/Product/Types/ProductSubmissionResult.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmission', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productSubmission' + ], + 'status' => [ + 'type' => 'DTS\eBaySDK\Product\Types\ProductSubmissionStatus', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'status' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/ProductSubmissionStatus.php b/src/Product/Types/ProductSubmissionStatus.php new file mode 100644 index 000000000..0cc73ed6b --- /dev/null +++ b/src/Product/Types/ProductSubmissionStatus.php @@ -0,0 +1,64 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productSubmissionId' + ], + 'statusCode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'statusCode' + ], + 'ePID' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'ePID' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/PropertyValue.php b/src/Product/Types/PropertyValue.php new file mode 100644 index 000000000..2aeedfbd6 --- /dev/null +++ b/src/Product/Types/PropertyValue.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'value' => [ + 'type' => 'DTS\eBaySDK\Product\Types\Value', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/SortOption.php b/src/Product/Types/SortOption.php new file mode 100644 index 000000000..be04d96ea --- /dev/null +++ b/src/Product/Types/SortOption.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortType' + ], + 'sortOrder' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'sortOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/SortOrder.php b/src/Product/Types/SortOrder.php new file mode 100644 index 000000000..5b340977b --- /dev/null +++ b/src/Product/Types/SortOrder.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'order' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'order' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/StockPhotoURL.php b/src/Product/Types/StockPhotoURL.php new file mode 100644 index 000000000..f015d270d --- /dev/null +++ b/src/Product/Types/StockPhotoURL.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\URIValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'thumbnail' + ], + 'standard' => [ + 'type' => 'DTS\eBaySDK\Product\Types\URIValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'standard' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/StringValue.php b/src/Product/Types/StringValue.php new file mode 100644 index 000000000..3f10c1430 --- /dev/null +++ b/src/Product/Types/StringValue.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/URIValue.php b/src/Product/Types/URIValue.php new file mode 100644 index 000000000..b50bb35b3 --- /dev/null +++ b/src/Product/Types/URIValue.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/Product/Types/Value.php b/src/Product/Types/Value.php new file mode 100644 index 000000000..86614d6f0 --- /dev/null +++ b/src/Product/Types/Value.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\Product\Types\StringValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'text' + ], + 'number' => [ + 'type' => 'DTS\eBaySDK\Product\Types\NumericValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'number' + ], + 'URL' => [ + 'type' => 'DTS\eBaySDK\Product\Types\URIValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'URL' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Enums/AckValue.php b/src/ProductMetadata/Enums/AckValue.php new file mode 100644 index 000000000..264bd7193 --- /dev/null +++ b/src/ProductMetadata/Enums/AckValue.php @@ -0,0 +1,19 @@ + [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\ProductMetadata\Services\ProductMetadataService::API_VERSION + ], + 'globalId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @param string $operationName The name of the operation been called. + * + * @return array An associative array of eBay http headers. + */ + protected function getEbayHeaders($operationName) + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_APP_ID] = $this->getConfig('credentials')->getAppId(); + $headers[self::HDR_OPERATION_NAME] = $operationName; + + // Add optional headers. + if ($this->getConfig('apiVersion')) { + $headers[self::HDR_API_VERSION] = $this->getConfig('apiVersion'); + } + + if ($this->getConfig('globalId')) { + $headers[self::HDR_GLOBAL_ID] = $this->getConfig('globalId'); + } + + return $headers; + } +} diff --git a/src/ProductMetadata/Services/ProductMetadataService.php b/src/ProductMetadata/Services/ProductMetadataService.php new file mode 100644 index 000000000..4530289be --- /dev/null +++ b/src/ProductMetadata/Services/ProductMetadataService.php @@ -0,0 +1,222 @@ +getProductSearchNamesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchNamesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductSearchNamesAsync(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchNamesRequest $request) + { + return $this->callOperationAsync( + 'getProductSearchNames', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchNamesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesResponse + */ + public function getCompatibilitySearchNames(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesRequest $request) + { + return $this->getCompatibilitySearchNamesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCompatibilitySearchNamesAsync(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesRequest $request) + { + return $this->callOperationAsync( + 'getCompatibilitySearchNames', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesResponse + */ + public function getProductSearchValues(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesRequest $request) + { + return $this->getProductSearchValuesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductSearchValuesAsync(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesRequest $request) + { + return $this->callOperationAsync( + 'getProductSearchValues', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkResponse + */ + public function getProductSearchValuesBulk(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkRequest $request) + { + return $this->getProductSearchValuesBulkAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductSearchValuesBulkAsync(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkRequest $request) + { + return $this->callOperationAsync( + 'getProductSearchValuesBulk', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesResponse + */ + public function getCompatibilitySearchValues(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesRequest $request) + { + return $this->getCompatibilitySearchValuesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCompatibilitySearchValuesAsync(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesRequest $request) + { + return $this->callOperationAsync( + 'getCompatibilitySearchValues', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkResponse + */ + public function getCompatibilitySearchValuesBulk(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkRequest $request) + { + return $this->getCompatibilitySearchValuesBulkAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCompatibilitySearchValuesBulkAsync(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkRequest $request) + { + return $this->callOperationAsync( + 'getCompatibilitySearchValuesBulk', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionResponse + */ + public function getProductSearchDataVersion(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionRequest $request) + { + return $this->getProductSearchDataVersionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductSearchDataVersionAsync(\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionRequest $request) + { + return $this->callOperationAsync( + 'getProductSearchDataVersion', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionResponse + */ + public function getCompatibilitySearchDataVersion(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionRequest $request) + { + return $this->getCompatibilitySearchDataVersionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCompatibilitySearchDataVersionAsync(\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionRequest $request) + { + return $this->callOperationAsync( + 'getCompatibilitySearchDataVersion', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionResponse' + ); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkRequest $request + * @return \DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkResponse + */ + public function getProductMetadataBulk(\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkRequest $request) + { + return $this->getProductMetadataBulkAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProductMetadataBulkAsync(\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkRequest $request) + { + return $this->callOperationAsync( + 'getProductMetadataBulk', + $request, + '\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkResponse' + ); + } +} diff --git a/src/ProductMetadata/Types/BaseRequest.php b/src/ProductMetadata/Types/BaseRequest.php new file mode 100644 index 000000000..0859eee53 --- /dev/null +++ b/src/ProductMetadata/Types/BaseRequest.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ExtensionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'extension' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/BaseResponse.php b/src/ProductMetadata/Types/BaseResponse.php new file mode 100644 index 000000000..6d0de46a7 --- /dev/null +++ b/src/ProductMetadata/Types/BaseResponse.php @@ -0,0 +1,78 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ], + 'extension' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ExtensionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'extension' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/BaseServiceRequest.php b/src/ProductMetadata/Types/BaseServiceRequest.php new file mode 100644 index 000000000..5eafedc3d --- /dev/null +++ b/src/ProductMetadata/Types/BaseServiceRequest.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/BaseServiceResponse.php b/src/ProductMetadata/Types/BaseServiceResponse.php new file mode 100644 index 000000000..8191ed12c --- /dev/null +++ b/src/ProductMetadata/Types/BaseServiceResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ErrorData.php b/src/ProductMetadata/Types/ErrorData.php new file mode 100644 index 000000000..cc73933d7 --- /dev/null +++ b/src/ProductMetadata/Types/ErrorData.php @@ -0,0 +1,99 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'exceptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exceptionId' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ErrorMessage.php b/src/ProductMetadata/Types/ErrorMessage.php new file mode 100644 index 000000000..2fafe3d9b --- /dev/null +++ b/src/ProductMetadata/Types/ErrorMessage.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ErrorData', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ErrorParameter.php b/src/ProductMetadata/Types/ErrorParameter.php new file mode 100644 index 000000000..2ccdf0752 --- /dev/null +++ b/src/ProductMetadata/Types/ErrorParameter.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/MerchantData/Types/CustomSecurityHeaderType.php b/src/ProductMetadata/Types/ExtensionType.php similarity index 53% rename from src/MerchantData/Types/CustomSecurityHeaderType.php rename to src/ProductMetadata/Types/ExtensionType.php index 16da37454..7bf2a28e6 100644 --- a/src/MerchantData/Types/CustomSecurityHeaderType.php +++ b/src/ProductMetadata/Types/ExtensionType.php @@ -1,48 +1,51 @@ [ - 'type' => 'string', + 'id' => [ + 'type' => 'integer', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'eBayAuthToken' + 'elementName' => 'id' ], - 'HardExpirationWarning' => [ + 'version' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'HardExpirationWarning' + 'elementName' => 'version' ], - 'Credentials' => [ - 'type' => 'DTS\eBaySDK\MerchantData\Types\UserIdPasswordType', + 'contentType' => [ + 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'Credentials' + 'elementName' => 'contentType' ], - 'NotificationSignature' => [ + 'value' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'NotificationSignature' + 'elementName' => 'value' ] ]; @@ -60,11 +63,7 @@ public function __construct(array $values = []) } if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { - self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"'; - } - - if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { - self::$requestXmlRootElementNames[__CLASS__] = 'RequesterCredentials'; + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; } $this->setValues(__CLASS__, $childValues); diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequest.php b/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequest.php new file mode 100644 index 000000000..5e03afb22 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getCompatibilitySearchDataVersionRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponse.php b/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponse.php new file mode 100644 index 000000000..8966dbb50 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\VersionDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'namesDetails' + ], + 'valueDetails' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\VersionDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'valueDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchNamesRequest.php b/src/ProductMetadata/Types/GetCompatibilitySearchNamesRequest.php new file mode 100644 index 000000000..e929da214 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchNamesRequest.php @@ -0,0 +1,61 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getCompatibilitySearchNamesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchNamesResponse.php b/src/ProductMetadata/Types/GetCompatibilitySearchNamesResponse.php new file mode 100644 index 000000000..da2e167bb --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchNamesResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'properties' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Properties', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'properties' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequest.php b/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequest.php new file mode 100644 index 000000000..5f6b871e9 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getCompatibilitySearchValuesBulkRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponse.php b/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponse.php new file mode 100644 index 000000000..039f38138 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'medataDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchValuesRequest.php b/src/ProductMetadata/Types/GetCompatibilitySearchValuesRequest.php new file mode 100644 index 000000000..35c6c83e3 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchValuesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getCompatibilitySearchValuesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetCompatibilitySearchValuesResponse.php b/src/ProductMetadata/Types/GetCompatibilitySearchValuesResponse.php new file mode 100644 index 000000000..e2bba8671 --- /dev/null +++ b/src/ProductMetadata/Types/GetCompatibilitySearchValuesResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metadataVersion' + ], + 'propertyValues' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyValues' + ], + 'propertyValuesTree' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyNameValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyValuesTree' + ], + 'treeFormat' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'treeFormat' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchDataVersionRequest.php b/src/ProductMetadata/Types/GetProductSearchDataVersionRequest.php new file mode 100644 index 000000000..439d4ef24 --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchDataVersionRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductSearchDataVersionRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchDataVersionResponse.php b/src/ProductMetadata/Types/GetProductSearchDataVersionResponse.php new file mode 100644 index 000000000..a186a5703 --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchDataVersionResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\VersionDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'namesDetails' + ], + 'valueDetails' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\VersionDetails', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'valueDetails' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchNamesRequest.php b/src/ProductMetadata/Types/GetProductSearchNamesRequest.php new file mode 100644 index 000000000..8e5d9b5ed --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchNamesRequest.php @@ -0,0 +1,61 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'dataset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductSearchNamesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchNamesResponse.php b/src/ProductMetadata/Types/GetProductSearchNamesResponse.php new file mode 100644 index 000000000..25754384a --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchNamesResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'properties' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Properties', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'properties' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchValuesBaseRequest.php b/src/ProductMetadata/Types/GetProductSearchValuesBaseRequest.php new file mode 100644 index 000000000..4dda7d9e2 --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchValuesBaseRequest.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'propertyFilter' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyFilter' + ], + 'listFormatOnly' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'listFormatOnly' + ], + 'sortOrder' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\SortOrder', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'sortOrder' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchValuesBulkRequest.php b/src/ProductMetadata/Types/GetProductSearchValuesBulkRequest.php new file mode 100644 index 000000000..0d9b2f55c --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchValuesBulkRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductSearchValuesBulkRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchValuesBulkResponse.php b/src/ProductMetadata/Types/GetProductSearchValuesBulkResponse.php new file mode 100644 index 000000000..2d6a70998 --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchValuesBulkResponse.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchValuesRequest.php b/src/ProductMetadata/Types/GetProductSearchValuesRequest.php new file mode 100644 index 000000000..a1874bc91 --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchValuesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductSearchValuesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GetProductSearchValuesResponse.php b/src/ProductMetadata/Types/GetProductSearchValuesResponse.php new file mode 100644 index 000000000..fe927269e --- /dev/null +++ b/src/ProductMetadata/Types/GetProductSearchValuesResponse.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metadataVersion' + ], + 'propertyValues' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyValues' + ], + 'propertyValuesTree' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyNameValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyValuesTree' + ], + 'treeFormat' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'treeFormat' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GroupProperties.php b/src/ProductMetadata/Types/GroupProperties.php new file mode 100644 index 000000000..6dfaf8464 --- /dev/null +++ b/src/ProductMetadata/Types/GroupProperties.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'groupType' + ], + 'groupName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'groupName' + ], + 'groupProperty' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\GroupProperty', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'groupProperty' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/GroupProperty.php b/src/ProductMetadata/Types/GroupProperty.php new file mode 100644 index 000000000..4c952e072 --- /dev/null +++ b/src/ProductMetadata/Types/GroupProperty.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'tag' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Tag', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'tag' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/MediaTypeSpecificInformation.php b/src/ProductMetadata/Types/MediaTypeSpecificInformation.php new file mode 100644 index 000000000..857bf2345 --- /dev/null +++ b/src/ProductMetadata/Types/MediaTypeSpecificInformation.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/NumericTypeSpecificInformation.php b/src/ProductMetadata/Types/NumericTypeSpecificInformation.php new file mode 100644 index 000000000..141091cc8 --- /dev/null +++ b/src/ProductMetadata/Types/NumericTypeSpecificInformation.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unitOfMeasurement' + ], + 'maximumValueAllowed' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maximumValueAllowed' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/NumericValue.php b/src/ProductMetadata/Types/NumericValue.php new file mode 100644 index 000000000..de1fb449e --- /dev/null +++ b/src/ProductMetadata/Types/NumericValue.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ], + 'unitOfMeasurement' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'unitOfMeasurement' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ProductMetadata.php b/src/ProductMetadata/Types/ProductMetadata.php new file mode 100644 index 000000000..8900ab1af --- /dev/null +++ b/src/ProductMetadata/Types/ProductMetadata.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyMetadata', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyMetadata' + ], + 'groupProperties' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\GroupProperties', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'groupProperties' + ], + 'productMetadataVersion' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productMetadataVersion' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ProductMetadataBulkRequest.php b/src/ProductMetadata/Types/ProductMetadataBulkRequest.php new file mode 100644 index 000000000..ccebb0c1e --- /dev/null +++ b/src/ProductMetadata/Types/ProductMetadataBulkRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ProductMetadataRequest', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productMetadataRequest' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getProductMetadataBulkRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ProductMetadataBulkResponse.php b/src/ProductMetadata/Types/ProductMetadataBulkResponse.php new file mode 100644 index 000000000..a13319dac --- /dev/null +++ b/src/ProductMetadata/Types/ProductMetadataBulkResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ProductMetadataResponse', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'productMetadataResponse' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ProductMetadataRequest.php b/src/ProductMetadata/Types/ProductMetadataRequest.php new file mode 100644 index 000000000..34f338077 --- /dev/null +++ b/src/ProductMetadata/Types/ProductMetadataRequest.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'categoryId' + ], + 'includeManagedValues' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'includeManagedValues' + ], + 'includeGroupPropertiesOnly' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'includeGroupPropertiesOnly' + ], + 'groupType' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'groupType' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/ProductMetadataResponse.php b/src/ProductMetadata/Types/ProductMetadataResponse.php new file mode 100644 index 000000000..506abf7b3 --- /dev/null +++ b/src/ProductMetadata/Types/ProductMetadataResponse.php @@ -0,0 +1,57 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ProductMetadata', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'productMetadata' + ], + 'requestInformation' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\ProductMetadataRequest', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'requestInformation' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/Properties.php b/src/ProductMetadata/Types/Properties.php new file mode 100644 index 000000000..b7bd7f821 --- /dev/null +++ b/src/ProductMetadata/Types/Properties.php @@ -0,0 +1,64 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'metadataVersion' + ], + 'propertyName' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Property', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'dataset' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataset' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/Property.php b/src/ProductMetadata/Types/Property.php new file mode 100644 index 000000000..b4fe6555d --- /dev/null +++ b/src/ProductMetadata/Types/Property.php @@ -0,0 +1,64 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'propertyNameMetadata' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyNameMetadata', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyNameMetadata' + ], + 'propertyDisplayName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyDisplayName' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/PropertyMetadata.php b/src/ProductMetadata/Types/PropertyMetadata.php new file mode 100644 index 000000000..86c48023e --- /dev/null +++ b/src/ProductMetadata/Types/PropertyMetadata.php @@ -0,0 +1,99 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'alternatePropertyName' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'alternatePropertyName' + ], + 'dataType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataType' + ], + 'typeSpecificInformation' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\TypeSpecificInformation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'typeSpecificInformation' + ], + 'multiValued' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'multiValued' + ], + 'canonicalName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'canonicalName' + ], + 'propertyTags' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Tag', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'propertyTags' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/PropertyNameMetadata.php b/src/ProductMetadata/Types/PropertyNameMetadata.php new file mode 100644 index 000000000..3b92f8141 --- /dev/null +++ b/src/ProductMetadata/Types/PropertyNameMetadata.php @@ -0,0 +1,50 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'displaySequence' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/PropertyNameValue.php b/src/ProductMetadata/Types/PropertyNameValue.php new file mode 100644 index 000000000..c50507767 --- /dev/null +++ b/src/ProductMetadata/Types/PropertyNameValue.php @@ -0,0 +1,64 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'value' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Value', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ], + 'childPropertyNameValue' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\PropertyNameValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'childPropertyNameValue' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/PropertyValue.php b/src/ProductMetadata/Types/PropertyValue.php new file mode 100644 index 000000000..32261fa14 --- /dev/null +++ b/src/ProductMetadata/Types/PropertyValue.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'value' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\Value', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/SortOrder.php b/src/ProductMetadata/Types/SortOrder.php new file mode 100644 index 000000000..6c3cec1ce --- /dev/null +++ b/src/ProductMetadata/Types/SortOrder.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'propertyName' + ], + 'order' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'order' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/StringTypeSpecificInformation.php b/src/ProductMetadata/Types/StringTypeSpecificInformation.php new file mode 100644 index 000000000..e6d1c6b7a --- /dev/null +++ b/src/ProductMetadata/Types/StringTypeSpecificInformation.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'managedValue' + ], + 'maximumCharactersAllowed' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maximumCharactersAllowed' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/StringValue.php b/src/ProductMetadata/Types/StringValue.php new file mode 100644 index 000000000..475252e17 --- /dev/null +++ b/src/ProductMetadata/Types/StringValue.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/Tag.php b/src/ProductMetadata/Types/Tag.php new file mode 100644 index 000000000..4e4f76dab --- /dev/null +++ b/src/ProductMetadata/Types/Tag.php @@ -0,0 +1,71 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'name' + ], + 'dataType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'dataType' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'value' + ], + 'description' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'description' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/TypeSpecificInformation.php b/src/ProductMetadata/Types/TypeSpecificInformation.php new file mode 100644 index 000000000..3aa6d1057 --- /dev/null +++ b/src/ProductMetadata/Types/TypeSpecificInformation.php @@ -0,0 +1,71 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\URITypeSpecificInformation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'uriTypeSpecificInformation' + ], + 'numericTypeSpecificInformation' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\NumericTypeSpecificInformation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'numericTypeSpecificInformation' + ], + 'mediaTypeSpecificInformation' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\MediaTypeSpecificInformation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'mediaTypeSpecificInformation' + ], + 'stringTypeSpecificInformation' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\StringTypeSpecificInformation', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'stringTypeSpecificInformation' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/URITypeSpecificInformation.php b/src/ProductMetadata/Types/URITypeSpecificInformation.php new file mode 100644 index 000000000..40b92adfb --- /dev/null +++ b/src/ProductMetadata/Types/URITypeSpecificInformation.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/URIValue.php b/src/ProductMetadata/Types/URIValue.php new file mode 100644 index 000000000..69f032dad --- /dev/null +++ b/src/ProductMetadata/Types/URIValue.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/Value.php b/src/ProductMetadata/Types/Value.php new file mode 100644 index 000000000..f459f6175 --- /dev/null +++ b/src/ProductMetadata/Types/Value.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\StringValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'text' + ], + 'number' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\NumericValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'number' + ], + 'URL' => [ + 'type' => 'DTS\eBaySDK\ProductMetadata\Types\URIValue', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'URL' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ProductMetadata/Types/VersionDetails.php b/src/ProductMetadata/Types/VersionDetails.php new file mode 100644 index 000000000..7a81c60e7 --- /dev/null +++ b/src/ProductMetadata/Types/VersionDetails.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'updateTime' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'updateTime' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Enums/AckValue.php b/src/RelatedItemsManagement/Enums/AckValue.php new file mode 100644 index 000000000..1d2bb291d --- /dev/null +++ b/src/RelatedItemsManagement/Enums/AckValue.php @@ -0,0 +1,19 @@ + [ + 'valid' => ['string'], + 'default' => \DTS\eBaySDK\RelatedItemsManagement\Services\RelatedItemsManagementService::API_VERSION + ], + 'authToken' => [ + 'valid' => ['string'], + 'required' => true + ], + 'globalId' => [ + 'valid' => ['string'] + ] + ]; + } + + /** + * Builds the needed eBay HTTP headers. + * + * @param string $operationName The name of the operation been called. + * + * @return array An associative array of eBay http headers. + */ + protected function getEbayHeaders($operationName) + { + $headers = []; + + // Add required headers first. + $headers[self::HDR_AUTH_TOKEN] = $this->getConfig('authToken'); + $headers[self::HDR_OPERATION_NAME] = $operationName; + + // Add optional headers. + if ($this->getConfig('apiVersion')) { + $headers[self::HDR_API_VERSION] = $this->getConfig('apiVersion'); + } + + if ($this->getConfig('globalId')) { + $headers[self::HDR_GLOBAL_ID] = $this->getConfig('globalId'); + } + + return $headers; + } +} diff --git a/src/RelatedItemsManagement/Services/RelatedItemsManagementService.php b/src/RelatedItemsManagement/Services/RelatedItemsManagementService.php new file mode 100644 index 000000000..6f2dd93ed --- /dev/null +++ b/src/RelatedItemsManagement/Services/RelatedItemsManagementService.php @@ -0,0 +1,178 @@ +createBundlesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\CreateBundlesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createBundlesAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\CreateBundlesRequest $request) + { + return $this->callOperationAsync( + 'createBundles', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\CreateBundlesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesResponse + */ + public function findBundles(\DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesRequest $request) + { + return $this->findBundlesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function findBundlesAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesRequest $request) + { + return $this->callOperationAsync( + 'findBundles', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesResponse + */ + public function getBundles(\DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesRequest $request) + { + return $this->getBundlesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getBundlesAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesRequest $request) + { + return $this->callOperationAsync( + 'getBundles', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesResponse + */ + public function updateBundles(\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesRequest $request) + { + return $this->updateBundlesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateBundlesAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesRequest $request) + { + return $this->callOperationAsync( + 'updateBundles', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusResponse + */ + public function updateBundleStatus(\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusRequest $request) + { + return $this->updateBundleStatusAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateBundleStatusAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusRequest $request) + { + return $this->callOperationAsync( + 'updateBundleStatus', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesResponse + */ + public function deleteBundles(\DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesRequest $request) + { + return $this->deleteBundlesAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteBundlesAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesRequest $request) + { + return $this->callOperationAsync( + 'deleteBundles', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesResponse' + ); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionRequest $request + * @return \DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionResponse + */ + public function getVersion(\DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionRequest $request) + { + return $this->getVersionAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getVersionAsync(\DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionRequest $request) + { + return $this->callOperationAsync( + 'getVersion', + $request, + '\DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionResponse' + ); + } +} diff --git a/src/RelatedItemsManagement/Types/Amount.php b/src/RelatedItemsManagement/Types/Amount.php new file mode 100644 index 000000000..fb5ded532 --- /dev/null +++ b/src/RelatedItemsManagement/Types/Amount.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'currencyId' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/BaseRequest.php b/src/RelatedItemsManagement/Types/BaseRequest.php new file mode 100644 index 000000000..abe71044a --- /dev/null +++ b/src/RelatedItemsManagement/Types/BaseRequest.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ExtensionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'extension' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/BaseResponse.php b/src/RelatedItemsManagement/Types/BaseResponse.php new file mode 100644 index 000000000..7293b4ffe --- /dev/null +++ b/src/RelatedItemsManagement/Types/BaseResponse.php @@ -0,0 +1,78 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'timestamp' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'timestamp' + ], + 'extension' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ExtensionType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'extension' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/Bundle.php b/src/RelatedItemsManagement/Types/Bundle.php new file mode 100644 index 000000000..0e3300f49 --- /dev/null +++ b/src/RelatedItemsManagement/Types/Bundle.php @@ -0,0 +1,106 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleID' + ], + 'bundleName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleName' + ], + 'primarySKU' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'primarySKU' + ], + 'scheduledStartTime' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'scheduledStartTime' + ], + 'scheduledEndTime' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'scheduledEndTime' + ], + 'relatedProductGroup' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\RelatedProductGroup', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'relatedProductGroup' + ], + 'bundleStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ], + 'isoCurrencyCode' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'isoCurrencyCode' + ], + 'site' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'site' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/BundleFilter.php b/src/RelatedItemsManagement/Types/BundleFilter.php new file mode 100644 index 000000000..8bea6079d --- /dev/null +++ b/src/RelatedItemsManagement/Types/BundleFilter.php @@ -0,0 +1,57 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'primarySKU' + ], + 'bundleID' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleID' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/BundleStatus.php b/src/RelatedItemsManagement/Types/BundleStatus.php new file mode 100644 index 000000000..06a7c4c00 --- /dev/null +++ b/src/RelatedItemsManagement/Types/BundleStatus.php @@ -0,0 +1,78 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleName' + ], + 'primarySKU' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'primarySKU' + ], + 'bundleID' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleID' + ], + 'ack' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ack' + ], + 'errorMessage' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ErrorMessage', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorMessage' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/BundleStatusMap.php b/src/RelatedItemsManagement/Types/BundleStatusMap.php new file mode 100644 index 000000000..907ebef7d --- /dev/null +++ b/src/RelatedItemsManagement/Types/BundleStatusMap.php @@ -0,0 +1,57 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleID' + ], + 'bundleStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/CreateBundlesRequest.php b/src/RelatedItemsManagement/Types/CreateBundlesRequest.php new file mode 100644 index 000000000..0fe119ed3 --- /dev/null +++ b/src/RelatedItemsManagement/Types/CreateBundlesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Bundle', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundle' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'createBundlesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/CreateBundlesResponse.php b/src/RelatedItemsManagement/Types/CreateBundlesResponse.php new file mode 100644 index 000000000..d9508c066 --- /dev/null +++ b/src/RelatedItemsManagement/Types/CreateBundlesResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatus', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/DeleteBundlesRequest.php b/src/RelatedItemsManagement/Types/DeleteBundlesRequest.php new file mode 100644 index 000000000..3fe7fe285 --- /dev/null +++ b/src/RelatedItemsManagement/Types/DeleteBundlesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'integer', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleID' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'deleteBundlesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/DeleteBundlesResponse.php b/src/RelatedItemsManagement/Types/DeleteBundlesResponse.php new file mode 100644 index 000000000..d1b72b3df --- /dev/null +++ b/src/RelatedItemsManagement/Types/DeleteBundlesResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatus', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/Discount.php b/src/RelatedItemsManagement/Types/Discount.php new file mode 100644 index 000000000..7e3a12bad --- /dev/null +++ b/src/RelatedItemsManagement/Types/Discount.php @@ -0,0 +1,64 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Amount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountAmount' + ], + 'discountType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountType' + ], + 'discountPercent' => [ + 'type' => 'double', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discountPercent' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/ErrorData.php b/src/RelatedItemsManagement/Types/ErrorData.php new file mode 100644 index 000000000..7ff26b1eb --- /dev/null +++ b/src/RelatedItemsManagement/Types/ErrorData.php @@ -0,0 +1,99 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'errorId' + ], + 'domain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'domain' + ], + 'subdomain' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'subdomain' + ], + 'severity' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'severity' + ], + 'category' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category' + ], + 'message' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'message' + ], + 'exceptionId' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'exceptionId' + ], + 'parameter' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ErrorParameter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'parameter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/ErrorMessage.php b/src/RelatedItemsManagement/Types/ErrorMessage.php new file mode 100644 index 000000000..b5c386014 --- /dev/null +++ b/src/RelatedItemsManagement/Types/ErrorMessage.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\ErrorData', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'error' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/ErrorParameter.php b/src/RelatedItemsManagement/Types/ErrorParameter.php new file mode 100644 index 000000000..fd4383c27 --- /dev/null +++ b/src/RelatedItemsManagement/Types/ErrorParameter.php @@ -0,0 +1,50 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'name' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/ExtensionType.php b/src/RelatedItemsManagement/Types/ExtensionType.php new file mode 100644 index 000000000..5844ec509 --- /dev/null +++ b/src/RelatedItemsManagement/Types/ExtensionType.php @@ -0,0 +1,71 @@ + [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'id' + ], + 'version' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'version' + ], + 'contentType' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'contentType' + ], + 'value' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'value' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/FindBundlesRequest.php b/src/RelatedItemsManagement/Types/FindBundlesRequest.php new file mode 100644 index 000000000..1f7c78f64 --- /dev/null +++ b/src/RelatedItemsManagement/Types/FindBundlesRequest.php @@ -0,0 +1,68 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'bundleDetailSelector' + ], + 'findAllByStatus' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'findAllByStatus' + ], + 'bundleFilter' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleFilter', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleFilter' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'findBundlesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/FindBundlesResponse.php b/src/RelatedItemsManagement/Types/FindBundlesResponse.php new file mode 100644 index 000000000..abb0d86be --- /dev/null +++ b/src/RelatedItemsManagement/Types/FindBundlesResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Bundle', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundle' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/GetBundlesRequest.php b/src/RelatedItemsManagement/Types/GetBundlesRequest.php new file mode 100644 index 000000000..ad3475eca --- /dev/null +++ b/src/RelatedItemsManagement/Types/GetBundlesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'integer', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleID' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'getBundlesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/GetBundlesResponse.php b/src/RelatedItemsManagement/Types/GetBundlesResponse.php new file mode 100644 index 000000000..d49a9f116 --- /dev/null +++ b/src/RelatedItemsManagement/Types/GetBundlesResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Bundle', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundle' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/GetVersionRequest.php b/src/RelatedItemsManagement/Types/GetVersionRequest.php new file mode 100644 index 000000000..2bcc64a47 --- /dev/null +++ b/src/RelatedItemsManagement/Types/GetVersionRequest.php @@ -0,0 +1,47 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/GetVersionResponse.php b/src/RelatedItemsManagement/Types/GetVersionResponse.php new file mode 100644 index 000000000..4a1983af4 --- /dev/null +++ b/src/RelatedItemsManagement/Types/GetVersionResponse.php @@ -0,0 +1,43 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/RelatedProduct.php b/src/RelatedItemsManagement/Types/RelatedProduct.php new file mode 100644 index 000000000..3e43337bd --- /dev/null +++ b/src/RelatedItemsManagement/Types/RelatedProduct.php @@ -0,0 +1,78 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'SKU' + ], + 'discount' => [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Discount', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'discount' + ], + 'rank' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rank' + ], + 'title' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'title' + ], + 'maxQtyForSinglePrimary' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'maxQtyForSinglePrimary' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/RelatedProductGroup.php b/src/RelatedItemsManagement/Types/RelatedProductGroup.php new file mode 100644 index 000000000..e5a2523f3 --- /dev/null +++ b/src/RelatedItemsManagement/Types/RelatedProductGroup.php @@ -0,0 +1,71 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\RelatedProduct', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'relatedProduct' + ], + 'groupName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'groupName' + ], + 'rank' => [ + 'type' => 'integer', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'rank' + ], + 'singleRelatedSKUPurchaseOnly' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'singleRelatedSKUPurchaseOnly' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/UpdateBundleStatusRequest.php b/src/RelatedItemsManagement/Types/UpdateBundleStatusRequest.php new file mode 100644 index 000000000..f96ac05aa --- /dev/null +++ b/src/RelatedItemsManagement/Types/UpdateBundleStatusRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatusMap', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleStatusMap' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'updateBundleStatusRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/UpdateBundleStatusResponse.php b/src/RelatedItemsManagement/Types/UpdateBundleStatusResponse.php new file mode 100644 index 000000000..fd943208f --- /dev/null +++ b/src/RelatedItemsManagement/Types/UpdateBundleStatusResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatus', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/UpdateBundlesRequest.php b/src/RelatedItemsManagement/Types/UpdateBundlesRequest.php new file mode 100644 index 000000000..a8e12c10e --- /dev/null +++ b/src/RelatedItemsManagement/Types/UpdateBundlesRequest.php @@ -0,0 +1,54 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\Bundle', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundle' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { + self::$requestXmlRootElementNames[__CLASS__] = 'updateBundlesRequest'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/RelatedItemsManagement/Types/UpdateBundlesResponse.php b/src/RelatedItemsManagement/Types/UpdateBundlesResponse.php new file mode 100644 index 000000000..606feae04 --- /dev/null +++ b/src/RelatedItemsManagement/Types/UpdateBundlesResponse.php @@ -0,0 +1,50 @@ + [ + 'type' => 'DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatus', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'bundleStatus' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/sellerinventory/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ResolutionCaseManagement/Enums/AckValue.php b/src/ResolutionCaseManagement/Enums/AckValue.php index 8294e4718..552208462 100644 --- a/src/ResolutionCaseManagement/Enums/AckValue.php +++ b/src/ResolutionCaseManagement/Enums/AckValue.php @@ -1,15 +1,15 @@ [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'idref' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/resolution/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionType.php b/src/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionType.php index 5a74bc1f9..791ef8a5a 100644 --- a/src/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionType.php +++ b/src/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionType.php @@ -1,8 +1,11 @@ [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => true, + 'attributeName' => 'idref' + ] + ]; + + /** + * @param array $values Optional properties and values to assign to the object. + */ + public function __construct(array $values = []) + { + list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); + + parent::__construct($parentValues); + + if (!array_key_exists(__CLASS__, self::$properties)) { + self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); + } + + if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { + self::$xmlNamespaces[__CLASS__] = 'xmlns="http://www.ebay.com/marketplace/resolution/v1/services"'; + } + + $this->setValues(__CLASS__, $childValues); + } +} diff --git a/src/ResolutionCaseManagement/Types/NotificationEventType.php b/src/ResolutionCaseManagement/Types/NotificationEventType.php index 8c8deaca6..c426ee8e0 100644 --- a/src/ResolutionCaseManagement/Types/NotificationEventType.php +++ b/src/ResolutionCaseManagement/Types/NotificationEventType.php @@ -1,8 +1,11 @@ false, 'attribute' => false, 'elementName' => 'onholdReasonDetail' - ], - 'idref' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => true, - 'attributeName' => 'idref' - ], - 'idref' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => true, - 'attributeName' => 'idref' ] ]; diff --git a/src/ResolutionCaseManagement/Types/ShipmentType.php b/src/ResolutionCaseManagement/Types/ShipmentType.php index 0cf3af272..179a52acf 100644 --- a/src/ResolutionCaseManagement/Types/ShipmentType.php +++ b/src/ResolutionCaseManagement/Types/ShipmentType.php @@ -1,8 +1,11 @@ config = $config; } + /** + * @param string $name The method name. + * @param array $args Arguments that will be passed to the method. + * + * @return \DTS\eBaySDK\Services\BaseService + * @throws \BadMethodCallException + */ public function __call($name, array $args) { if (strpos($name, 'create') === 0) { @@ -43,7 +74,7 @@ public function __call($name, array $args) * Create a service object by namespace. Service is configured using array of options. * * @param string $namespace Service namespace (e.g. Finding, Trading). - * @param array $config Configuration options for the service. + * @param array $config Configuration options for the service. * * @return \DTS\eBaySDK\Services\BaseService **/ diff --git a/src/Services/BaseRestService.php b/src/Services/BaseRestService.php new file mode 100644 index 000000000..b841aae23 --- /dev/null +++ b/src/Services/BaseRestService.php @@ -0,0 +1,272 @@ +resolver = new ConfigurationResolver(static::getConfigDefinitions()); + $this->uriResolver = new UriResolver(); + $this->config = $this->resolver->resolve($config); + } + + /** + * Returns definitions for each configuration option that is supported. + * + * @return array An associative array of configuration definitions. + */ + public static function getConfigDefinitions() + { + return [ + 'debug' => [ + 'valid' => ['bool', 'array'], + 'fn' => 'DTS\eBaySDK\applyDebug', + 'default' => false + ], + 'httpHandler' => [ + 'valid' => ['callable'], + 'default' => 'DTS\eBaySDK\defaultHttpHandler' + ], + 'httpOptions' => [ + 'valid' => ['array'], + 'default' => [ + 'http_errors' => false + ] + ], + 'requestLanguage' => [ + 'valid' => ['string'] + ], + 'responseLanguage' => [ + 'valid' => ['string'] + ], + 'sandbox' => [ + 'valid' => ['bool'], + 'default' => false + ] + ]; + } + + /** + * Method to get the service's configuration. + * + * @param string|null $option The name of the option whos value will be returned. + * + * @return mixed Returns an associative array of configuration options if no parameters are passed, + * otherwise returns the value for the specified configuration option. + */ + public function getConfig($option = null) + { + return $option === null + ? $this->config + : (isset($this->config[$option]) + ? $this->config[$option] + : null); + } + + /** + * Set multiple configuration options. + * + * @param array $configuration Associative array of configuration options and their values. + */ + public function setConfig(array $configuration) + { + $this->config = Functions\arrayMergeDeep( + $this->config, + $this->resolver->resolveOptions($configuration) + ); + } + + /** + * Sends an asynchronous API request. + * + * @param string $name The name of the operation. + * @param \DTS\eBaySDK\Types\BaseType $request Request object containing the request information. + * + * @return \GuzzleHttp\Promise\PromiseInterface A promise that will be resolved with an object created from the JSON response. + */ + protected function callOperationAsync($name, \DTS\eBaySDK\Types\BaseType $request = null) + { + $operation = static::$operations[$name]; + + $paramValues = []; + $requestValues = []; + + if ($request) { + $requestArray = $request->toArray(); + $paramValues = array_intersect_key($requestArray, $operation['params']); + $requestValues = array_diff_key($requestArray, $operation['params']); + } + + $url = $this->uriResolver->resolve( + $this->getUrl(), + $this->getConfig('apiVersion'), + $operation['resource'], + $operation['params'], + $paramValues + ); + $method = $operation['method']; + $body = $this->buildRequestBody($requestValues); + $headers = $this->buildRequestHeaders($body); + $responseClass = $operation['responseClass']; + $debug = $this->getConfig('debug'); + $httpHandler = $this->getConfig('httpHandler'); + $httpOptions = $this->getConfig('httpOptions'); + + if ($debug !== false) { + $this->debugRequest($url, $headers, $body); + } + + $request = new Request($method, $url, $headers, $body); + + return $httpHandler($request, $httpOptions)->then( + function (ResponseInterface $res) use ($debug, $responseClass) { + $json = $res->getBody()->getContents(); + + if ($debug !== false) { + $this->debugResponse($json); + } + + return new $responseClass( + $json !== '' ? json_decode($json, true) : [], + $res->getStatusCode(), + $res->getHeaders() + ); + } + ); + } + + /** + * Helper function to return the URL as determined by the sandbox configuration option. + * + * @return string Either the production or sandbox URL. + */ + private function getUrl() + { + return $this->getConfig('sandbox') ? static::$endPoints['sandbox'] : static::$endPoints['production']; + } + + /** + * Builds the request body string. + * + * @param array $request Associative array that is the request body. + * + * @return string The request body in JSON format. + */ + private function buildRequestBody(array $request) + { + return empty($request) ? '' : json_encode($request); + } + + /** + * Helper function that builds the HTTP request headers. + * + * @param string $body The request body. + * + * @return array An associative array of HTTP headers. + */ + private function buildRequestHeaders($body) + { + $headers = $this->getEbayHeaders(); + + $headers['Accept'] = 'application/json'; + $headers['Content-Type'] = 'application/json'; + $headers['Content-Length'] = strlen($body); + + // Add optional headers. + if ($this->getConfig('requestLanguage')) { + $headers[self::HDR_REQUEST_LANGUAGE] = $this->getConfig('requestLanguage'); + } + + if ($this->getConfig('responseLanguage')) { + $headers[self::HDR_RESPONSE_LANGUAGE] = $this->getConfig('responseLanguage'); + } + + return $headers; + } + + /** + * Derived classes must implement this method that will build the needed eBay http headers. + * + * @return array An associative array of eBay http headers. + */ + abstract protected function getEbayHeaders(); + + /** + * Sends a debug string of the request details. + * + * @param string $url API endpoint. + * @param array $headers Associative array of HTTP headers. + * @param string $body The JSON body of the request. + */ + private function debugRequest($url, array $headers, $body) + { + $str = $url.PHP_EOL; + + $str .= array_reduce(array_keys($headers), function ($str, $key) use ($headers) { + $str .= $key.': '.$headers[$key].PHP_EOL; + return $str; + }, ''); + + $str .= $body; + + $this->debug($str); + } + + /** + * Sends a debug string of the response details. + * + * @param string $body The JSON body of the response. + */ + private function debugResponse($body) + { + $this->debug($body); + } + + /** + * Sends a debug string via the attach debugger. + * + * @param string $str The debug information. + */ + private function debug($str) + { + $debugger = $this->getConfig('debug'); + $debugger($str); + } +} diff --git a/src/Services/BaseService.php b/src/Services/BaseService.php index d7e87df6e..95626b5af 100644 --- a/src/Services/BaseService.php +++ b/src/Services/BaseService.php @@ -2,7 +2,6 @@ namespace DTS\eBaySDK\Services; use DTS\eBaySDK\Parser\XmlParser; -use DTS\eBaySDK\Exceptions; use DTS\eBaySDK\ConfigurationResolver; use DTS\eBaySDK\Credentials\CredentialsProvider; use \DTS\eBaySDK as Functions; @@ -20,7 +19,7 @@ abstract class BaseService const CRLF = "\r\n"; /** - * @var DTS\eBaySDK\ConfigurationResolver Resolves configuration options. + * @var \DTS\eBaySDK\ConfigurationResolver Resolves configuration options. */ private $resolver; @@ -56,9 +55,9 @@ public function __construct( } /** - * Get an array of service configuration option definitions. + * Returns definitions for each configuration option that is supported. * - * @return array + * @return array An associative array of configuration definitions. */ public static function getConfigDefinitions() { @@ -95,7 +94,10 @@ public static function getConfigDefinitions() /** * Method to get the service's configuration. * - * @return mixed Returns an associative array of configuration options if no parameters are passed, otherwise returns the value for the specified configuration option. + * @param string|null $option The name of the option whos value will be returned. + * + * @return mixed Returns an associative array of configuration options if no parameters are passed, + * otherwise returns the value for the specified configuration option. */ public function getConfig($option = null) { @@ -106,7 +108,12 @@ public function getConfig($option = null) : null); } - public function setConfig($configuration) + /** + * Set multiple configuration options. + * + * @param array $configuration Associative array of configuration options and their values. + */ + public function setConfig(array $configuration) { $this->config = Functions\arrayMergeDeep( $this->config, @@ -115,6 +122,8 @@ public function setConfig($configuration) } /** + * Helper method to return the value of the credentials configuration option. + * * @return \DTS\eBaySDK\Credentials\CredentialsInterface */ public function getCredentials() @@ -127,7 +136,7 @@ public function getCredentials() * * @param string $name The name of the operation. * @param \DTS\eBaySDK\Types\BaseType $request Request object containing the request information. - * @param string The name of the PHP class that will be created from the XML response. + * @param string $responseClass The name of the PHP class that will be created from the XML response. * * @return \GuzzleHttp\Promise\PromiseInterface A promise that will be resolved with an object created from the XML response. */ @@ -216,7 +225,7 @@ private function buildXopDocument(\DTS\eBaySDK\Types\BaseType $request) * * @return string The attachment part of request body. */ - private function buildAttachmentBody($attachment) + private function buildAttachmentBody(array $attachment) { return sprintf( '%s%s%s%s%s%s', @@ -256,10 +265,10 @@ private function buildRequestHeaders($name, $request, $body) /** * Extracts the XML from the response if it contains an attachment. * - * @param string The XML response body. + * @param string $response The XML response body. * * @return array first item is the XML part of response body and the second - * is an attachement if one was present in the API response. + * is an attachement if one was present in the API response. */ private function extractXml($response) { @@ -276,7 +285,7 @@ private function extractXml($response) /** * Extracts the XML and the attachment from the response if it contains an attachment. * - * @param string The XML response body. + * @param string $response The XML response body. * * @return string The XML part of response body. */ @@ -320,7 +329,7 @@ abstract protected function getEbayHeaders($operationName); * @param array $headers Associative array of HTTP headers. * @param string $body The XML body of the POST request. */ - private function debugRequest($url, $headers, $body) + private function debugRequest($url, array $headers, $body) { $str = $url.PHP_EOL; @@ -346,6 +355,8 @@ private function debugResponse($body) /** * Sends a debug string via the attach debugger. + * + * @param string $str */ private function debug($str) { diff --git a/src/Shopping/Enums/AckCodeType.php b/src/Shopping/Enums/AckCodeType.php index e92dcf27e..0216cfb83 100644 --- a/src/Shopping/Enums/AckCodeType.php +++ b/src/Shopping/Enums/AckCodeType.php @@ -1,15 +1,15 @@ statusCode; + } +} diff --git a/src/Trading/Enums/AccessRuleCurrentStatusCodeType.php b/src/Trading/Enums/AccessRuleCurrentStatusCodeType.php index 29422baf9..33a8b138b 100644 --- a/src/Trading/Enums/AccessRuleCurrentStatusCodeType.php +++ b/src/Trading/Enums/AccessRuleCurrentStatusCodeType.php @@ -1,15 +1,15 @@ \DTS\eBaySDK\Trading\Services\TradingService::API_VERSION, 'required' => true ], + 'authorization' => [ + 'valid' => ['string'] + ], 'authToken' => [ 'valid' => ['string'] ], @@ -50,11 +81,11 @@ public static function getConfigDefinitions() * Sends an API request. * * This method overrides the parent so that it can modify - * the request object before is handled by the parent class. + * the request object before it is handled by the parent class. * * @param string $name The name of the operation. * @param \DTS\eBaySDK\Types\BaseType $request Request object containing the request information. - * @param string The name of the PHP class that will be created from the XML response. + * @param string $responseClass The name of the PHP class that will be created from the XML response. * * @return \GuzzleHttp\Promise\PromiseInterface A promise that will be resolved with an object created from the XML response. */ @@ -63,7 +94,14 @@ protected function callOperationAsync($name, \DTS\eBaySDK\Types\BaseType $reques /** * Modify the request object to include the auth token that was set up in the configuration. */ - if ($this->getConfig('authToken') !== null) { + if ($this->getConfig('authorization') !== null) { + /** + * Don't send requester credentials if oauth authentication needed. + */ + if (isset($request->RequesterCredentials)) { + unset($request->RequesterCredentials); + } + } elseif ($this->getConfig('authToken') !== null) { /** * Don't modify a request if the token already exists. */ @@ -79,7 +117,7 @@ protected function callOperationAsync($name, \DTS\eBaySDK\Types\BaseType $reques } /** - * Build the needed eBay HTTP headers. + * Builds the needed eBay HTTP headers. * * @param string $operationName The name of the operation been called. * @@ -101,15 +139,19 @@ protected function getEbayHeaders($operationName) // Add optional headers. if ($appId) { - $headers[self::HDR_APP_ID] = $credentials->getAppId(); + $headers[self::HDR_APP_ID] = $appId; } if ($certId) { - $headers[self::HDR_CERT_ID] = $credentials->getCertId(); + $headers[self::HDR_CERT_ID] = $certId; } if ($devId) { - $headers[self::HDR_DEV_ID] = $credentials->getDevId(); + $headers[self::HDR_DEV_ID] = $devId; + } + + if ($this->getConfig('authorization')) { + $headers[self::HDR_AUTHORIZATION] = $this->getConfig('authorization'); } return $headers; diff --git a/src/Trading/Services/TradingService.php b/src/Trading/Services/TradingService.php index ec698828c..4bf2e8bbc 100644 --- a/src/Trading/Services/TradingService.php +++ b/src/Trading/Services/TradingService.php @@ -1,15 +1,18 @@ [ The name of the property. - * 'type' => 'string', The data type or class name. - * 'repeatable' => false, Indicates if the property is repeatable, I.e is an array. - * 'attribute' => false, Indicates if the proeprty is an attribute in the XML. - * 'elementName' => 'Subject' The corressponding element in the XML. - * ] + * 'subject' => [ The name of the property. + * 'type' => 'string', The data type or class name. + * 'repeatable' => false, Indicates if the property is repeatable, I.e is an array. + * 'attribute' => false, Indicates if the proeprty is an attribute in the XML. + * 'elementName' => 'Subject' The corressponding element in the XML. + * ] * */ protected static $properties = []; @@ -68,6 +68,8 @@ public function __construct(array $values = []) * PHP magic function that is called when getting a property. * * @param string $name The property name. + * + * @return mixed */ public function __get($name) { @@ -89,6 +91,8 @@ public function __set($name, $value) * PHP magic function that is called to determine if a property is set. * * @param string $name The property name. + * + * @return bool */ public function __isset($name) { @@ -119,7 +123,7 @@ public function toRequestXml() * Converts the object to a XML string. * * @param string $elementName The XML element that the object's properties will be a children of. - * @param boolean $rootElement Indicates if the XML will be the root element. + * @param bool $rootElement Indicates if the XML will be the root element. * * @return string The XML. */ @@ -142,7 +146,7 @@ private function toXml($elementName, $rootElement = false) * This method is used when parsing the XML into a PHP object. The parser * needs the meta data for a property when the parser has only the element name. * - * @param $string $elementName The XML element that we want the meta for. + * @param string $elementName The element name. * * @return mixed The meta for the property or null if not found. */ @@ -154,7 +158,7 @@ public function elementMeta($elementName) $nameKey = $info['attribute'] ? 'attributeName' : 'elementName'; if (array_key_exists($nameKey, $info)) { if ($info[$nameKey] === $elementName) { - $meta = new \StdClass(); + $meta = new \stdClass(); $meta->propertyName = $elementName; $meta->phpType = $info['type']; $meta->repeatable = $info['repeatable']; @@ -173,9 +177,8 @@ public function elementMeta($elementName) /** * Method to get or set the object's attachment. Overrides any existing attachment is setting. * - * @param mixed If a string it is assumed to be the contents of the attachment. - * If an array copy its values across. - * @param string The MIME type of the attachment that will be used in the request. Defaults to application/octet-stream. + * @param mixed $data If a string it is assumed to be the contents of the attachment. If an array copy its values across. + * @param string $mimeType The MIME type of the attachment that will be used in the request. Defaults to application/octet-stream. * * @return mixed Returns the contents of the current atachment or null if none has been specified. */ @@ -197,7 +200,7 @@ public function attachment($data = null, $mimeType = 'application/octet-stream') /** * Helper method to check if an object has an attachment. * - * @return boolean Returns true if an object has an attachment. + * @return bool Returns true if an object has an attachment. */ public function hasAttachment() { @@ -247,6 +250,9 @@ public function search($expression) return Env::search($expression, $this); } + /** + * @return string JSON string of the object's properties and values. + */ public function __toString() { return json_encode($this->toArray()); @@ -257,14 +263,18 @@ public function __toString() * * @param string $class The name of the class the properties belong to. * @param array $values. Associative array of property names and their values. - * @throws UnknownPropertyException If the property does not exist. - * @throws InvalidPropertyTypeException If the value is the wrong type for the property. + * + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the property. */ protected function setValues($class, array $values = []) { foreach ($values as $property => $value) { - $actualValue = self::determineActualValueToAssign($class, $property, $value); - $this->set($class, $property, $actualValue); + $value = self::removeNull($value); + if (!is_null($value)) { + $actualValue = self::determineActualValueToAssign($class, $property, $value); + $this->set($class, $property, $actualValue); + } } } @@ -273,9 +283,9 @@ protected function setValues($class, array $values = []) * * @param string $class The name of the class the property belongs to. * @param string $name The property name. - * @throws UnknownPropertyException If the property does not exist. * - * @return mixed The value of the property. + * @return mixed The property value. + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. */ private function get($class, $name) { @@ -290,8 +300,9 @@ private function get($class, $name) * @param string $class The name of the class the properties belong to. * @param string $name The property name. * @param mixed $value. The value to assign to the property. - * @throws UnknownPropertyException If the property does not exist. - * @throws InvalidPropertyTypeException If the value is the wrong type for the property. + * + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the property. */ private function set($class, $name, $value) { @@ -306,9 +317,9 @@ private function set($class, $name, $value) * * @param string $class The name of the class the properties belong to. * @param string $name The property name. - * @throws UnknownPropertyException If the property does not exist. * - * @return boolean Returns if the property has been set. + * @return bool Returns if the property has been set. + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. */ private function isPropertySet($class, $name) { @@ -322,7 +333,8 @@ private function isPropertySet($class, $name) * * @param string $class The name of the class the properties belong to. * @param string $name The property name. - * @throws UnknownPropertyException If the property does not exist. + * + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. */ private function unSetProperty($class, $name) { @@ -337,7 +349,7 @@ private function unSetProperty($class, $name) * @param string $class The name of the class the properties belong to. * @param string $name The property name. * - * @return mixed The value of the property. + * @return mixed The property value. */ private function getValue($class, $name) { @@ -356,7 +368,8 @@ private function getValue($class, $name) * @param string $class The name of the class the properties belong to. * @param string $name The property name. * @param mixed $value. The value to assign to the property. - * @throws InvalidPropertyTypeException If trying to assign a non array type to an repeatable property. + * + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If trying to assign a non array type to an repeatable property. */ private function setValue($class, $name, $value) { @@ -442,7 +455,8 @@ private function propertiesToXml() * * @param string $class The name of the class that we are checking for. * @param string $name The property name. - * @throws UnknownPropertyException If the property does not exist. + * + * @throws \DTS\eBaySDK\Exceptions\UnknownPropertyException If the property does not exist. */ private static function ensurePropertyExists($class, $name) { @@ -455,9 +469,10 @@ private static function ensurePropertyExists($class, $name) * Determines if the value is the correct type to assign to a property. * * @param string $class The name of the class that we are checking for. - * @param string $name The property name. - * @param mixed $name The value to check the type of. - * @throws InvalidPropertyTypeException If the value is the wrong type for the property. + * @param mixed $name The property name. + * @param mixed $value The value to check the type of. + * + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the property. */ private static function ensurePropertyType($class, $name, $value) { @@ -467,7 +482,7 @@ private static function ensurePropertyType($class, $name, $value) $valid = explode('|', $info['type']); foreach ($valid as $check) { - if (\DTS\eBaySDK\checkPropertyType($check)) { + if ($check !== 'any' && \DTS\eBaySDK\checkPropertyType($check)) { if ($check === $actualType || 'array' === $actualType) { return; } @@ -505,7 +520,7 @@ private static function getActualType($value) * Helper function to return the meta data of a property. * * @param string $class The name of the class the property belongs to. - * @param string $name The of the property. + * @param string $name The property name. * * @return array The meta data for the property. */ @@ -517,8 +532,11 @@ private static function propertyInfo($class, $name) /** * Helper function to remove the properties and values that belong to a object's parent. * + * @param array $properties + * @param array $values + * * @return array The first element is an array of parent properties and values. - * The second element is an array of the object's properties and values. + * The second element is an array of the object's properties and values. */ protected static function getParentValues(array $properties, array $values) { @@ -531,8 +549,8 @@ protected static function getParentValues(array $properties, array $values) /** * Helper function to convert an attribute property into XML * - * @param string $class The name of the class the property belongs to. - * @param string $name The of the attribute property. + * @param string $name The attribute name. + * @param mixed $value The attribute value. * * @return string The XML. */ @@ -544,8 +562,8 @@ private static function attributeToXml($name, $value) /** * Helper function to convert an property into XML * - * @param string $name The of the property. - * @param mixed $value The value of the property. + * @param string $name The property name. + * @param mixed $value The property value. * * @return string The XML. */ @@ -561,7 +579,7 @@ private static function propertyToXml($name, $value) /** * Helper function to convert a value into XML * - * @param mixed $value The value of the property. + * @param mixed $value The property value. * * @return string The XML. */ @@ -569,7 +587,7 @@ private static function encodeValueXml($value) { if ($value instanceof \DateTime) { return $value->format('Y-m-d\TH:i:s.000\Z'); - } else if (is_bool($value)) { + } elseif (is_bool($value)) { return $value ? 'true' : 'false'; } else { return htmlspecialchars($value, ENT_QUOTES, 'UTF-8', true); @@ -579,7 +597,7 @@ private static function encodeValueXml($value) /** * Helper function to convert a property in a value that we want in an array. * - * @param mixed $value The value of the property. + * @param mixed $value The property value. * * @return mixed A value to add to an array. */ @@ -587,7 +605,7 @@ private static function propertyToArrayValue($value) { if (is_subclass_of($value, '\DTS\eBaySDK\Types\BaseType', false)) { return $value->toArray(); - } else if ($value instanceof \DateTime) { + } elseif ($value instanceof \DateTime) { return $value->format('Y-m-d\TH:i:s.000\Z'); } else { return $value; @@ -597,6 +615,12 @@ private static function propertyToArrayValue($value) /** * Helper function when assigning values via the ctor. * Determines the actual value to assign to a property. + * + * @param string $class The name of the class the property belong to. + * @param string $property The property name. + * @param mixed $value The property value. + * + * @return mixed */ private static function determineActualValueToAssign($class, $property, $value) { @@ -609,18 +633,23 @@ private static function determineActualValueToAssign($class, $property, $value) if ($info['repeatable'] && is_array($value)) { $values = []; foreach ($value as $val) { - $values[] = self::actualValue($info, $class, $property, $val); + $values[] = self::actualValue($info, $val); } return $values; } - return self::actualValue($info, $class, $property, $value); + return self::actualValue($info, $value); } /** * Helper function when assigning values via the ctor. + * + * @param array $info The metadata for the property. + * @param mixed $value The property value. + * + * @return mixed */ - private static function actualValue($info, $class, $property, $value) + private static function actualValue(array $info, $value) { /** * Shortcut. Objects can be assigned as is. @@ -637,12 +666,29 @@ private static function actualValue($info, $class, $property, $value) case 'string': case 'double': case 'boolean': + case 'any': return $value; case 'DateTime': return new \DateTime($value, new \DateTimeZone('UTC')); - default: - return new $info['type']($value); } } + + return new $info['type']($value); + } + + /** + * @param mixed $value Remove null elements if an array. + * + * @return mixed Original value if not an array or array without null elements. + */ + private static function removeNull($value) + { + if (!is_array($value)) { + return $value; + } + + return array_filter($value, function ($val) { + return !is_null($val); + }); } } diff --git a/src/Types/RepeatableType.php b/src/Types/RepeatableType.php index 91bbb6560..217d1aa97 100644 --- a/src/Types/RepeatableType.php +++ b/src/Types/RepeatableType.php @@ -17,7 +17,7 @@ class RepeatableType implements \ArrayAccess, \Countable, \Iterator, JmesPathabl private $data = []; /** - * @var integer The current position in the array. + * @var int The current position in the array. */ private $position = 0; @@ -52,9 +52,9 @@ public function __construct($class, $property, $expectedType) /** * Determines if the offset exists in the array. * - * @param integer $offset The array index to check. + * @param int $offset The array index to check. * - * @return boolean Returns if the offset exists in the array. + * @return bool Returns if the offset exists in the array. */ public function offsetExists($offset) { @@ -64,7 +64,7 @@ public function offsetExists($offset) /** * Returns the value of the given offset. * - * @param integer $offset The array index. + * @param int $offset The array index. * * @return mixed Returns the value for the given offset or null if it doesn't exist. */ @@ -77,7 +77,9 @@ public function offsetGet($offset) * Sets a value for the given offset. * * @param mixed $offset The array index or null to add the value to the end of the array. - * @throws InvalidPropertyTypeException If the value is the wrong type for the property. + * @param mixed $value The value to add. + * + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the array. */ public function offsetSet($offset, $value) { @@ -93,7 +95,7 @@ public function offsetSet($offset, $value) /** * Unsets the value of the given offset. * - * @param integer $offset The array index. + * @param int $offset The array index. */ public function offsetUnset($offset) { @@ -101,7 +103,7 @@ public function offsetUnset($offset) } /** - * @return integer The number of array items. + * @return int The number of array items. */ public function count() { @@ -117,7 +119,7 @@ public function current() } /** - * @return index The current array index. + * @return int The current array index. */ public function key() { @@ -141,7 +143,7 @@ public function rewind() } /** - * @return boolean Return if the current array index is valid. + * @return bool Return if the current array index is valid. */ public function valid() { @@ -149,10 +151,11 @@ public function valid() } /** - * Determines if the value is the correct type to assign to a property. + * Determines if the value is the correct type to assign to the array. + * + * @param mixed $value The value to check the type of. * - * @param mixed $name The value to check the type of. - * @throws InvalidPropertyTypeException If the value is the wrong type for the property. + * @throws \DTS\eBaySDK\Exceptions\InvalidPropertyTypeException If the value is the wrong type for the array. */ private function ensurePropertyType($value) { @@ -164,7 +167,7 @@ private function ensurePropertyType($value) $valid = explode('|', $this->expectedType); $isValid = false; foreach ($valid as $check) { - if (\DTS\eBaySDK\checkPropertyType($check)) { + if ($check !== 'any' && \DTS\eBaySDK\checkPropertyType($check)) { if ($check === $actualType) { return; } diff --git a/src/UriResolver.php b/src/UriResolver.php new file mode 100644 index 000000000..b64319e6d --- /dev/null +++ b/src/UriResolver.php @@ -0,0 +1,162 @@ + 'is_array', + 'bool' => 'is_bool', + 'callable' => 'is_callable', + 'int' => 'is_int', + 'string' => 'is_string' + ]; + + public function __construct() + { + } + + /** + * Resolve and validate the passed uri. + * + * @param string $uri Uri to resolve. + * @param string $version API version. + * @param string $resource The name of the resource. + * @param array $paramDefs Associative array of uri parameter definitions for the operation. + * @param array $paramValues Associative array of uri parameter values for the operation. + * + * @return string Returns a resolved uri. + * @throws \InvalidArgumentException. + */ + public function resolve($uri, $version, $resource, array $paramDefs, array $paramValues) + { + foreach ($paramValues as $param => $value) { + if (!array_key_exists($param, $paramDefs)) { + throw new \InvalidArgumentException("Unknown uri parameter \"$param\" provided"); + } + } + + foreach ($paramDefs as $key => $def) { + if (!isset($paramValues[$key])) { + if (isset($def['default'])) { + $paramValues[$key] = is_callable($def['default']) + ? $def['default']($paramValues) + : $def['default']; + } elseif (empty($def['required'])) { + continue; + } else { + $this->throwRequired($paramDefs, $paramValues); + } + } + + $this->checkType($def['valid'], $key, $paramValues[$key]); + + if (isset($def['fn'])) { + $def['fn']($paramValues[$key], $paramValues); + } + } + + return ( + "$uri/". + "$version/". + $this->fillPathParams($resource, $paramValues). + $this->buildQueryParameters($paramValues) + ); + } + + private function checkType(array $valid, $name, $provided) + { + foreach ($valid as $check) { + if (isset(self::$typeMap[$check])) { + $fn = self::$typeMap[$check]; + if ($fn($provided)) { + return; + } + } elseif ($provided instanceof $check) { + return; + } + } + + $expected = implode('|', $valid); + $msg = sprintf( + 'Invalid uri parameter value provided for "%s". Expected %s, but got %s', + $name, + $expected, + describeType($provided) + ); + throw new \InvalidArgumentException($msg); + } + + private function throwRequired(array $paramDefs, array $paramValues) + { + $missing = []; + + foreach ($paramDefs as $key => $def) { + if (empty($def['required']) + || isset($def['default']) + || array_key_exists($key, $paramValues) + ) { + continue; + } + $missing[] = $key; + } + + $msg = "Missing required uri parameters: \n\n"; + $msg .= implode("\n\n", $missing); + throw new \InvalidArgumentException($msg); + } + + /** + * Replaces path parameters placeholders in the uri with the correct values. + * + * @param string $uri A uri with path parameters. + * @param array $paramValues Associative array of path parameter names and their values. + * + * @return string The path. + */ + private function fillPathParams($uri, array &$paramValues) + { + return preg_replace_callback('/{(\S+)}/U', function ($matches) use (&$paramValues) { + $path = $matches[1]; + if (array_key_exists($path, $paramValues)) { + $value = $paramValues[$path]; + unset($paramValues[$path]); + } else { + $value = $path; + } + return $value; + }, $uri); + } + + /** + * Builds a query parameters string. + * + * @param array $paramValues Associative array of query parameter names and their values. + * + * @return string The query parameters string + */ + private function buildQueryParameters(array $paramValues) + { + if (empty($paramValues)) { + return ''; + } + + $query = []; + foreach ($paramValues as $param => $value) { + if (is_array($value)) { + $value = join(',', $value); + } elseif (is_bool($value)) { + $value = $value ? 'true' : 'false'; + } elseif (is_callable($value)) { + $value = $value(); + } + $query[] = $param.'='.urlencode($value); + } + return '?'.join('&', $query); + } +} diff --git a/src/functions.php b/src/functions.php index cceeaf617..a86a61ead 100644 --- a/src/functions.php +++ b/src/functions.php @@ -4,9 +4,14 @@ use DTS\eBaySDK\Credentials\Credentials; use DTS\eBaySDK\Credentials\CredentialsProvider; use DTS\eBaySDK\Credentials\CredentialsInterface; -use DTS\eBaySDK\Debugger; -use DTS\eBaySDK\HttpHandler; +/** + * Returns a description of the type for the passed value. + * + * @param mixed $value The value whos type will be described. + * + * @return string A description of the value's type. + */ function describeType($value) { switch (gettype($value)) { @@ -22,8 +27,11 @@ function describeType($value) } /** + * Merges multiple arrays, recursively, and returns the merged array. * Code taken from * https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal_array_merge_deep/7 + * + * @return array The merged array. */ function arrayMergeDeep() { @@ -31,7 +39,14 @@ function arrayMergeDeep() return arrayMergeDeepArray($args); } -function arrayMergeDeepArray($arrays) +/** + * Merges multiple arrays, recursively, and returns the merged array. + * + * @param array $arrays The arrays to merge. + * + * @return array The merged array. + */ +function arrayMergeDeepArray(array $arrays) { $result = []; @@ -55,6 +70,14 @@ function arrayMergeDeepArray($arrays) return $result; } +/** + * Resolve and apply the passed credentials. + * + * @param mixed $value The credentials. + * @param array &$configuration The configuration array where the resolved credentials will be stored. + * + * @throws \InvalidArgumentException. + */ function applyCredentials($value, array &$configuration) { if (is_callable($value)) { @@ -64,7 +87,7 @@ function applyCredentials($value, array &$configuration) } else { $configuration['credentials'] = $c; } - } else if ($value instanceof CredentialsInterface) { + } elseif ($value instanceof CredentialsInterface) { return; } elseif (is_array($value) && isset($value['appId']) @@ -86,11 +109,23 @@ function applyCredentials($value, array &$configuration) } } +/** + * Resolves the credentials with a ini provider. + * + * @param mixed $value Not used. + * @param array &$configuration The configuration array where the provider will be stored. + */ function applyProfile($value, array &$configuration) { $configuration['credentials'] = CredentialsProvider::ini($configuration['profile']); } +/** + * Applies the default debugger if required. + * + * @param mixed $value Debugger options. + * @param array &$configuration The configuration array where the resolved debugger will be stored. + */ function applyDebug($value, array &$configuration) { if ($value !== false) { @@ -100,6 +135,13 @@ function applyDebug($value, array &$configuration) } } +/** + * Returns the default HTTP handler. + * + * @param array &$configuration Not used. + * + * @return \DTS\eBaySDK\HttpHandler + */ function defaultHttpHandler(array &$configuration) { return new HttpHandler(); @@ -107,6 +149,10 @@ function defaultHttpHandler(array &$configuration) /** * Helper function that returns true if the property type should be checked. + * + * @param string $type The type name. + * + * @return bool */ function checkPropertyType($type) { diff --git a/test/Account/Enums/CategoryTypeEnumTest.php b/test/Account/Enums/CategoryTypeEnumTest.php new file mode 100644 index 000000000..e40cc47e3 --- /dev/null +++ b/test/Account/Enums/CategoryTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CategoryTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\CategoryTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/CountryCodeEnumTest.php b/test/Account/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..e6a8030ac --- /dev/null +++ b/test/Account/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/CurrencyCodeEnumTest.php b/test/Account/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..51661c914 --- /dev/null +++ b/test/Account/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ExternalPaymentMethodTypeEnumTest.php b/test/Account/Enums/ExternalPaymentMethodTypeEnumTest.php new file mode 100644 index 000000000..56342e74e --- /dev/null +++ b/test/Account/Enums/ExternalPaymentMethodTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ExternalPaymentMethodTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ExternalPaymentMethodTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/MarketplaceIdEnumTest.php b/test/Account/Enums/MarketplaceIdEnumTest.php new file mode 100644 index 000000000..bb86930b2 --- /dev/null +++ b/test/Account/Enums/MarketplaceIdEnumTest.php @@ -0,0 +1,28 @@ +obj = new MarketplaceIdEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\MarketplaceIdEnum', $this->obj); + } +} diff --git a/test/Account/Enums/PaymentInstrumentBrandEnumTest.php b/test/Account/Enums/PaymentInstrumentBrandEnumTest.php new file mode 100644 index 000000000..aae506061 --- /dev/null +++ b/test/Account/Enums/PaymentInstrumentBrandEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentInstrumentBrandEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\PaymentInstrumentBrandEnum', $this->obj); + } +} diff --git a/test/Account/Enums/PaymentMethodTypeEnumTest.php b/test/Account/Enums/PaymentMethodTypeEnumTest.php new file mode 100644 index 000000000..6cba64a13 --- /dev/null +++ b/test/Account/Enums/PaymentMethodTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentMethodTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\PaymentMethodTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ProgramTypeEnumTest.php b/test/Account/Enums/ProgramTypeEnumTest.php new file mode 100644 index 000000000..d8d1a468d --- /dev/null +++ b/test/Account/Enums/ProgramTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ProgramTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ProgramTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/RecipientAccountReferenceTypeEnumTest.php b/test/Account/Enums/RecipientAccountReferenceTypeEnumTest.php new file mode 100644 index 000000000..037b9ee6f --- /dev/null +++ b/test/Account/Enums/RecipientAccountReferenceTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RecipientAccountReferenceTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\RecipientAccountReferenceTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/RefundMethodEnumTest.php b/test/Account/Enums/RefundMethodEnumTest.php new file mode 100644 index 000000000..9d4ba2a2a --- /dev/null +++ b/test/Account/Enums/RefundMethodEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundMethodEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\RefundMethodEnum', $this->obj); + } +} diff --git a/test/Account/Enums/RegionTypeEnumTest.php b/test/Account/Enums/RegionTypeEnumTest.php new file mode 100644 index 000000000..8a846c7d9 --- /dev/null +++ b/test/Account/Enums/RegionTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RegionTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\RegionTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ReturnMethodEnumTest.php b/test/Account/Enums/ReturnMethodEnumTest.php new file mode 100644 index 000000000..660c65569 --- /dev/null +++ b/test/Account/Enums/ReturnMethodEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnMethodEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ReturnMethodEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ReturnShippingCostPayerEnumTest.php b/test/Account/Enums/ReturnShippingCostPayerEnumTest.php new file mode 100644 index 000000000..8a5f1429d --- /dev/null +++ b/test/Account/Enums/ReturnShippingCostPayerEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnShippingCostPayerEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ReturnShippingCostPayerEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ShippingCostTypeEnumTest.php b/test/Account/Enums/ShippingCostTypeEnumTest.php new file mode 100644 index 000000000..0fe3ef987 --- /dev/null +++ b/test/Account/Enums/ShippingCostTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ShippingCostTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ShippingCostTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/ShippingOptionTypeEnumTest.php b/test/Account/Enums/ShippingOptionTypeEnumTest.php new file mode 100644 index 000000000..bb75ca5f7 --- /dev/null +++ b/test/Account/Enums/ShippingOptionTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ShippingOptionTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\ShippingOptionTypeEnum', $this->obj); + } +} diff --git a/test/Account/Enums/TimeDurationUnitEnumTest.php b/test/Account/Enums/TimeDurationUnitEnumTest.php new file mode 100644 index 000000000..020278eb3 --- /dev/null +++ b/test/Account/Enums/TimeDurationUnitEnumTest.php @@ -0,0 +1,28 @@ +obj = new TimeDurationUnitEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Enums\TimeDurationUnitEnum', $this->obj); + } +} diff --git a/test/Account/Mocks/Service.php b/test/Account/Mocks/Service.php new file mode 100644 index 000000000..0fd7d9114 --- /dev/null +++ b/test/Account/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Account/Services/ServiceTest.php b/test/Account/Services/ServiceTest.php new file mode 100644 index 000000000..380573b64 --- /dev/null +++ b/test/Account/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => AccountService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(AccountBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[AccountBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(AccountBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(AccountBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[AccountBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Account/Types/AmountTest.php b/test/Account/Types/AmountTest.php new file mode 100644 index 000000000..a2079d3c5 --- /dev/null +++ b/test/Account/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/CategoryTypeTest.php b/test/Account/Types/CategoryTypeTest.php new file mode 100644 index 000000000..0106a2ea7 --- /dev/null +++ b/test/Account/Types/CategoryTypeTest.php @@ -0,0 +1,33 @@ +obj = new CategoryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CategoryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/CreateAFulfillmentPolicyRestRequestTest.php b/test/Account/Types/CreateAFulfillmentPolicyRestRequestTest.php new file mode 100644 index 000000000..96bc460ef --- /dev/null +++ b/test/Account/Types/CreateAFulfillmentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAFulfillmentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestRequest', $this->obj); + } + + public function testExtendsFulfillmentPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/CreateAFulfillmentPolicyRestResponseTest.php b/test/Account/Types/CreateAFulfillmentPolicyRestResponseTest.php new file mode 100644 index 000000000..9ebabf618 --- /dev/null +++ b/test/Account/Types/CreateAFulfillmentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAFulfillmentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAFulfillmentPolicyRestResponse', $this->obj); + } + + public function testExtendsSetFulfillmentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetFulfillmentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/CreateAPaymentPolicyRestRequestTest.php b/test/Account/Types/CreateAPaymentPolicyRestRequestTest.php new file mode 100644 index 000000000..6ce653f1b --- /dev/null +++ b/test/Account/Types/CreateAPaymentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAPaymentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestRequest', $this->obj); + } + + public function testExtendsPaymentPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/CreateAPaymentPolicyRestResponseTest.php b/test/Account/Types/CreateAPaymentPolicyRestResponseTest.php new file mode 100644 index 000000000..eab6b8287 --- /dev/null +++ b/test/Account/Types/CreateAPaymentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAPaymentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAPaymentPolicyRestResponse', $this->obj); + } + + public function testExtendsSetPaymentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetPaymentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/CreateAReturnPolicyRestRequestTest.php b/test/Account/Types/CreateAReturnPolicyRestRequestTest.php new file mode 100644 index 000000000..2d73f5d9f --- /dev/null +++ b/test/Account/Types/CreateAReturnPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAReturnPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest', $this->obj); + } + + public function testExtendsReturnPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/CreateAReturnPolicyRestResponseTest.php b/test/Account/Types/CreateAReturnPolicyRestResponseTest.php new file mode 100644 index 000000000..96987f8b3 --- /dev/null +++ b/test/Account/Types/CreateAReturnPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAReturnPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestResponse', $this->obj); + } + + public function testExtendsSetReturnPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetReturnPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/CreateASalesTaxTableRestRequestTest.php b/test/Account/Types/CreateASalesTaxTableRestRequestTest.php new file mode 100644 index 000000000..a1739a8ea --- /dev/null +++ b/test/Account/Types/CreateASalesTaxTableRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateASalesTaxTableRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestRequest', $this->obj); + } + + public function testExtendsSalesTaxBase() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTaxBase', $this->obj); + } +} diff --git a/test/Account/Types/CreateASalesTaxTableRestResponseTest.php b/test/Account/Types/CreateASalesTaxTableRestResponseTest.php new file mode 100644 index 000000000..c1457e843 --- /dev/null +++ b/test/Account/Types/CreateASalesTaxTableRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateASalesTaxTableRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\CreateASalesTaxTableRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAFulfillmentPolicyRestRequestTest.php b/test/Account/Types/DeleteAFulfillmentPolicyRestRequestTest.php new file mode 100644 index 000000000..5c27e9cbc --- /dev/null +++ b/test/Account/Types/DeleteAFulfillmentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAFulfillmentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAFulfillmentPolicyRestResponseTest.php b/test/Account/Types/DeleteAFulfillmentPolicyRestResponseTest.php new file mode 100644 index 000000000..45a93d0a7 --- /dev/null +++ b/test/Account/Types/DeleteAFulfillmentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAFulfillmentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAFulfillmentPolicyRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAPaymentPolicyRestRequestTest.php b/test/Account/Types/DeleteAPaymentPolicyRestRequestTest.php new file mode 100644 index 000000000..d27c25079 --- /dev/null +++ b/test/Account/Types/DeleteAPaymentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAPaymentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAPaymentPolicyRestResponseTest.php b/test/Account/Types/DeleteAPaymentPolicyRestResponseTest.php new file mode 100644 index 000000000..c3143daaf --- /dev/null +++ b/test/Account/Types/DeleteAPaymentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAPaymentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAPaymentPolicyRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAReturnPolicyRestRequestTest.php b/test/Account/Types/DeleteAReturnPolicyRestRequestTest.php new file mode 100644 index 000000000..9f65f207e --- /dev/null +++ b/test/Account/Types/DeleteAReturnPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAReturnPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteAReturnPolicyRestResponseTest.php b/test/Account/Types/DeleteAReturnPolicyRestResponseTest.php new file mode 100644 index 000000000..fcd35573a --- /dev/null +++ b/test/Account/Types/DeleteAReturnPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAReturnPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteAReturnPolicyRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteASalesTaxTableRestRequestTest.php b/test/Account/Types/DeleteASalesTaxTableRestRequestTest.php new file mode 100644 index 000000000..d4960dd23 --- /dev/null +++ b/test/Account/Types/DeleteASalesTaxTableRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteASalesTaxTableRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DeleteASalesTaxTableRestResponseTest.php b/test/Account/Types/DeleteASalesTaxTableRestResponseTest.php new file mode 100644 index 000000000..a36e1c816 --- /dev/null +++ b/test/Account/Types/DeleteASalesTaxTableRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteASalesTaxTableRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\DeleteASalesTaxTableRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/DepositTest.php b/test/Account/Types/DepositTest.php new file mode 100644 index 000000000..2951a3bd9 --- /dev/null +++ b/test/Account/Types/DepositTest.php @@ -0,0 +1,33 @@ +obj = new Deposit(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Deposit', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ErrorDetailV3Test.php b/test/Account/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..591a89541 --- /dev/null +++ b/test/Account/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ErrorParameterV3Test.php b/test/Account/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..cb6eaa494 --- /dev/null +++ b/test/Account/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ExternalPaymentMethodTest.php b/test/Account/Types/ExternalPaymentMethodTest.php new file mode 100644 index 000000000..8def38c2f --- /dev/null +++ b/test/Account/Types/ExternalPaymentMethodTest.php @@ -0,0 +1,33 @@ +obj = new ExternalPaymentMethod(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ExternalPaymentMethod', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/FulfillmentPolicyRequestTest.php b/test/Account/Types/FulfillmentPolicyRequestTest.php new file mode 100644 index 000000000..6aa474107 --- /dev/null +++ b/test/Account/Types/FulfillmentPolicyRequestTest.php @@ -0,0 +1,33 @@ +obj = new FulfillmentPolicyRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicyRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/FulfillmentPolicyResponseTest.php b/test/Account/Types/FulfillmentPolicyResponseTest.php new file mode 100644 index 000000000..c04cb15c7 --- /dev/null +++ b/test/Account/Types/FulfillmentPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new FulfillmentPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/FulfillmentPolicyTest.php b/test/Account/Types/FulfillmentPolicyTest.php new file mode 100644 index 000000000..dfe25b7cb --- /dev/null +++ b/test/Account/Types/FulfillmentPolicyTest.php @@ -0,0 +1,33 @@ +obj = new FulfillmentPolicy(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicy', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAFulfillmentPolicyByIDRestRequestTest.php b/test/Account/Types/GetAFulfillmentPolicyByIDRestRequestTest.php new file mode 100644 index 000000000..918506760 --- /dev/null +++ b/test/Account/Types/GetAFulfillmentPolicyByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAFulfillmentPolicyByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAFulfillmentPolicyByIDRestResponseTest.php b/test/Account/Types/GetAFulfillmentPolicyByIDRestResponseTest.php new file mode 100644 index 000000000..0a8fb8ce9 --- /dev/null +++ b/test/Account/Types/GetAFulfillmentPolicyByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAFulfillmentPolicyByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByIDRestResponse', $this->obj); + } + + public function testExtendsFulfillmentPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetAFulfillmentPolicyByNameRestRequestTest.php b/test/Account/Types/GetAFulfillmentPolicyByNameRestRequestTest.php new file mode 100644 index 000000000..a9e999a5f --- /dev/null +++ b/test/Account/Types/GetAFulfillmentPolicyByNameRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAFulfillmentPolicyByNameRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAFulfillmentPolicyByNameRestResponseTest.php b/test/Account/Types/GetAFulfillmentPolicyByNameRestResponseTest.php new file mode 100644 index 000000000..810dd5c67 --- /dev/null +++ b/test/Account/Types/GetAFulfillmentPolicyByNameRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAFulfillmentPolicyByNameRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAFulfillmentPolicyByNameRestResponse', $this->obj); + } + + public function testExtendsFulfillmentPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetAPaymentPolicyByIDRestRequestTest.php b/test/Account/Types/GetAPaymentPolicyByIDRestRequestTest.php new file mode 100644 index 000000000..333429266 --- /dev/null +++ b/test/Account/Types/GetAPaymentPolicyByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAPaymentPolicyByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAPaymentPolicyByIDRestResponseTest.php b/test/Account/Types/GetAPaymentPolicyByIDRestResponseTest.php new file mode 100644 index 000000000..4760a2d93 --- /dev/null +++ b/test/Account/Types/GetAPaymentPolicyByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAPaymentPolicyByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByIDRestResponse', $this->obj); + } + + public function testExtendsPaymentPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetAPaymentPolicyByNameRestRequestTest.php b/test/Account/Types/GetAPaymentPolicyByNameRestRequestTest.php new file mode 100644 index 000000000..3267f361f --- /dev/null +++ b/test/Account/Types/GetAPaymentPolicyByNameRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAPaymentPolicyByNameRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAPaymentPolicyByNameRestResponseTest.php b/test/Account/Types/GetAPaymentPolicyByNameRestResponseTest.php new file mode 100644 index 000000000..113f035c1 --- /dev/null +++ b/test/Account/Types/GetAPaymentPolicyByNameRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAPaymentPolicyByNameRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAPaymentPolicyByNameRestResponse', $this->obj); + } + + public function testExtendsPaymentPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetAReturnPolicyByIDRestRequestTest.php b/test/Account/Types/GetAReturnPolicyByIDRestRequestTest.php new file mode 100644 index 000000000..7139db297 --- /dev/null +++ b/test/Account/Types/GetAReturnPolicyByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAReturnPolicyByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAReturnPolicyByIDRestResponseTest.php b/test/Account/Types/GetAReturnPolicyByIDRestResponseTest.php new file mode 100644 index 000000000..3438ac21b --- /dev/null +++ b/test/Account/Types/GetAReturnPolicyByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAReturnPolicyByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAReturnPolicyByIDRestResponse', $this->obj); + } + + public function testExtendsReturnPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetAReturnPolicyByNameRestRequestTest.php b/test/Account/Types/GetAReturnPolicyByNameRestRequestTest.php new file mode 100644 index 000000000..067159246 --- /dev/null +++ b/test/Account/Types/GetAReturnPolicyByNameRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAReturnPolicyByNameRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAReturnPolicyByNameRestResponseTest.php b/test/Account/Types/GetAReturnPolicyByNameRestResponseTest.php new file mode 100644 index 000000000..462abeee4 --- /dev/null +++ b/test/Account/Types/GetAReturnPolicyByNameRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAReturnPolicyByNameRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAReturnPolicyByNameRestResponse', $this->obj); + } + + public function testExtendsReturnPolicy() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicy', $this->obj); + } +} diff --git a/test/Account/Types/GetASalesTaxTableRestRequestTest.php b/test/Account/Types/GetASalesTaxTableRestRequestTest.php new file mode 100644 index 000000000..b1898e0d1 --- /dev/null +++ b/test/Account/Types/GetASalesTaxTableRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetASalesTaxTableRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetASalesTaxTableRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetASalesTaxTableRestResponseTest.php b/test/Account/Types/GetASalesTaxTableRestResponseTest.php new file mode 100644 index 000000000..1f00d1698 --- /dev/null +++ b/test/Account/Types/GetASalesTaxTableRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetASalesTaxTableRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetASalesTaxTableRestResponse', $this->obj); + } + + public function testExtendsSalesTax() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTax', $this->obj); + } +} diff --git a/test/Account/Types/GetAccountPrivilegesRestResponseTest.php b/test/Account/Types/GetAccountPrivilegesRestResponseTest.php new file mode 100644 index 000000000..e82d3c0a6 --- /dev/null +++ b/test/Account/Types/GetAccountPrivilegesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAccountPrivilegesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAccountPrivilegesRestResponse', $this->obj); + } + + public function testExtendsSellingPrivileges() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SellingPrivileges', $this->obj); + } +} diff --git a/test/Account/Types/GetAllSalesTaxTablesRestRequestTest.php b/test/Account/Types/GetAllSalesTaxTablesRestRequestTest.php new file mode 100644 index 000000000..5b560e438 --- /dev/null +++ b/test/Account/Types/GetAllSalesTaxTablesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAllSalesTaxTablesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetAllSalesTaxTablesRestResponseTest.php b/test/Account/Types/GetAllSalesTaxTablesRestResponseTest.php new file mode 100644 index 000000000..b586e3348 --- /dev/null +++ b/test/Account/Types/GetAllSalesTaxTablesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAllSalesTaxTablesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetAllSalesTaxTablesRestResponse', $this->obj); + } + + public function testExtendsSalesTaxes() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTaxes', $this->obj); + } +} diff --git a/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequestTest.php b/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequestTest.php new file mode 100644 index 000000000..b074cce89 --- /dev/null +++ b/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetFulfillmentPoliciesByMarketplaceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponseTest.php b/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponseTest.php new file mode 100644 index 000000000..bafbeedae --- /dev/null +++ b/test/Account/Types/GetFulfillmentPoliciesByMarketplaceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetFulfillmentPoliciesByMarketplaceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetFulfillmentPoliciesByMarketplaceRestResponse', $this->obj); + } + + public function testExtendsFulfillmentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/GetOptedInProgramsRestResponseTest.php b/test/Account/Types/GetOptedInProgramsRestResponseTest.php new file mode 100644 index 000000000..c963e2506 --- /dev/null +++ b/test/Account/Types/GetOptedInProgramsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetOptedInProgramsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetOptedInProgramsRestResponse', $this->obj); + } + + public function testExtendsPrograms() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Programs', $this->obj); + } +} diff --git a/test/Account/Types/GetPaymentPoliciesByMarketplaceRestRequestTest.php b/test/Account/Types/GetPaymentPoliciesByMarketplaceRestRequestTest.php new file mode 100644 index 000000000..1c77e7872 --- /dev/null +++ b/test/Account/Types/GetPaymentPoliciesByMarketplaceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetPaymentPoliciesByMarketplaceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetPaymentPoliciesByMarketplaceRestResponseTest.php b/test/Account/Types/GetPaymentPoliciesByMarketplaceRestResponseTest.php new file mode 100644 index 000000000..01dd2ec78 --- /dev/null +++ b/test/Account/Types/GetPaymentPoliciesByMarketplaceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetPaymentPoliciesByMarketplaceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetPaymentPoliciesByMarketplaceRestResponse', $this->obj); + } + + public function testExtendsPaymentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/GetReturnPoliciesByMarketplaceRestRequestTest.php b/test/Account/Types/GetReturnPoliciesByMarketplaceRestRequestTest.php new file mode 100644 index 000000000..6e23a9639 --- /dev/null +++ b/test/Account/Types/GetReturnPoliciesByMarketplaceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnPoliciesByMarketplaceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/GetReturnPoliciesByMarketplaceRestResponseTest.php b/test/Account/Types/GetReturnPoliciesByMarketplaceRestResponseTest.php new file mode 100644 index 000000000..7a465507d --- /dev/null +++ b/test/Account/Types/GetReturnPoliciesByMarketplaceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnPoliciesByMarketplaceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\GetReturnPoliciesByMarketplaceRestResponse', $this->obj); + } + + public function testExtendsReturnPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/InventorySizingTest.php b/test/Account/Types/InventorySizingTest.php new file mode 100644 index 000000000..e23b97168 --- /dev/null +++ b/test/Account/Types/InventorySizingTest.php @@ -0,0 +1,33 @@ +obj = new InventorySizing(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\InventorySizing', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/InventorySnapshotTest.php b/test/Account/Types/InventorySnapshotTest.php new file mode 100644 index 000000000..7681e9fe9 --- /dev/null +++ b/test/Account/Types/InventorySnapshotTest.php @@ -0,0 +1,33 @@ +obj = new InventorySnapshot(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\InventorySnapshot', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/LookbackPeriodTest.php b/test/Account/Types/LookbackPeriodTest.php new file mode 100644 index 000000000..ab23d4c7d --- /dev/null +++ b/test/Account/Types/LookbackPeriodTest.php @@ -0,0 +1,33 @@ +obj = new LookbackPeriod(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\LookbackPeriod', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/MerchantExternalProfileTest.php b/test/Account/Types/MerchantExternalProfileTest.php new file mode 100644 index 000000000..d4051e80e --- /dev/null +++ b/test/Account/Types/MerchantExternalProfileTest.php @@ -0,0 +1,33 @@ +obj = new MerchantExternalProfile(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\MerchantExternalProfile', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/OptInToProgramRestRequestTest.php b/test/Account/Types/OptInToProgramRestRequestTest.php new file mode 100644 index 000000000..1e0e537cd --- /dev/null +++ b/test/Account/Types/OptInToProgramRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new OptInToProgramRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\OptInToProgramRestRequest', $this->obj); + } + + public function testExtendsProgram() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Program', $this->obj); + } +} diff --git a/test/Account/Types/OptInToProgramRestResponseTest.php b/test/Account/Types/OptInToProgramRestResponseTest.php new file mode 100644 index 000000000..09bb77c3a --- /dev/null +++ b/test/Account/Types/OptInToProgramRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new OptInToProgramRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\OptInToProgramRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/OptOutOfProgramRestRequestTest.php b/test/Account/Types/OptOutOfProgramRestRequestTest.php new file mode 100644 index 000000000..571c493bf --- /dev/null +++ b/test/Account/Types/OptOutOfProgramRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new OptOutOfProgramRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\OptOutOfProgramRestRequest', $this->obj); + } + + public function testExtendsProgram() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Program', $this->obj); + } +} diff --git a/test/Account/Types/OptOutOfProgramRestResponseTest.php b/test/Account/Types/OptOutOfProgramRestResponseTest.php new file mode 100644 index 000000000..02c3db905 --- /dev/null +++ b/test/Account/Types/OptOutOfProgramRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new OptOutOfProgramRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\OptOutOfProgramRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/PaymentMethodTest.php b/test/Account/Types/PaymentMethodTest.php new file mode 100644 index 000000000..bd5ad8b70 --- /dev/null +++ b/test/Account/Types/PaymentMethodTest.php @@ -0,0 +1,33 @@ +obj = new PaymentMethod(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentMethod', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/PaymentPolicyRequestTest.php b/test/Account/Types/PaymentPolicyRequestTest.php new file mode 100644 index 000000000..9856be7ea --- /dev/null +++ b/test/Account/Types/PaymentPolicyRequestTest.php @@ -0,0 +1,33 @@ +obj = new PaymentPolicyRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicyRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/PaymentPolicyResponseTest.php b/test/Account/Types/PaymentPolicyResponseTest.php new file mode 100644 index 000000000..17e9c04ed --- /dev/null +++ b/test/Account/Types/PaymentPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new PaymentPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/PaymentPolicyTest.php b/test/Account/Types/PaymentPolicyTest.php new file mode 100644 index 000000000..72ff4d966 --- /dev/null +++ b/test/Account/Types/PaymentPolicyTest.php @@ -0,0 +1,33 @@ +obj = new PaymentPolicy(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicy', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ProgramTest.php b/test/Account/Types/ProgramTest.php new file mode 100644 index 000000000..e99e96de8 --- /dev/null +++ b/test/Account/Types/ProgramTest.php @@ -0,0 +1,33 @@ +obj = new Program(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Program', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ProgramsTest.php b/test/Account/Types/ProgramsTest.php new file mode 100644 index 000000000..472759a7a --- /dev/null +++ b/test/Account/Types/ProgramsTest.php @@ -0,0 +1,33 @@ +obj = new Programs(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Programs', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/RecipientAccountReferenceTest.php b/test/Account/Types/RecipientAccountReferenceTest.php new file mode 100644 index 000000000..1cf2a030d --- /dev/null +++ b/test/Account/Types/RecipientAccountReferenceTest.php @@ -0,0 +1,33 @@ +obj = new RecipientAccountReference(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\RecipientAccountReference', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/RegionSetTest.php b/test/Account/Types/RegionSetTest.php new file mode 100644 index 000000000..424588aa3 --- /dev/null +++ b/test/Account/Types/RegionSetTest.php @@ -0,0 +1,33 @@ +obj = new RegionSet(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\RegionSet', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/RegionTest.php b/test/Account/Types/RegionTest.php new file mode 100644 index 000000000..c780d669a --- /dev/null +++ b/test/Account/Types/RegionTest.php @@ -0,0 +1,33 @@ +obj = new Region(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\Region', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ReturnPolicyRequestTest.php b/test/Account/Types/ReturnPolicyRequestTest.php new file mode 100644 index 000000000..f6f083321 --- /dev/null +++ b/test/Account/Types/ReturnPolicyRequestTest.php @@ -0,0 +1,33 @@ +obj = new ReturnPolicyRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicyRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ReturnPolicyResponseTest.php b/test/Account/Types/ReturnPolicyResponseTest.php new file mode 100644 index 000000000..346e9edb7 --- /dev/null +++ b/test/Account/Types/ReturnPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new ReturnPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ReturnPolicyTest.php b/test/Account/Types/ReturnPolicyTest.php new file mode 100644 index 000000000..db88b6ca5 --- /dev/null +++ b/test/Account/Types/ReturnPolicyTest.php @@ -0,0 +1,33 @@ +obj = new ReturnPolicy(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicy', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ReturnSnapshotTest.php b/test/Account/Types/ReturnSnapshotTest.php new file mode 100644 index 000000000..d3ceedba7 --- /dev/null +++ b/test/Account/Types/ReturnSnapshotTest.php @@ -0,0 +1,33 @@ +obj = new ReturnSnapshot(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnSnapshot', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SalesTaxBaseTest.php b/test/Account/Types/SalesTaxBaseTest.php new file mode 100644 index 000000000..258d79261 --- /dev/null +++ b/test/Account/Types/SalesTaxBaseTest.php @@ -0,0 +1,33 @@ +obj = new SalesTaxBase(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTaxBase', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SalesTaxTest.php b/test/Account/Types/SalesTaxTest.php new file mode 100644 index 000000000..b5dcc150b --- /dev/null +++ b/test/Account/Types/SalesTaxTest.php @@ -0,0 +1,33 @@ +obj = new SalesTax(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTax', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SalesTaxesTest.php b/test/Account/Types/SalesTaxesTest.php new file mode 100644 index 000000000..e17430de2 --- /dev/null +++ b/test/Account/Types/SalesTaxesTest.php @@ -0,0 +1,33 @@ +obj = new SalesTaxes(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SalesTaxes', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SellingLimitTest.php b/test/Account/Types/SellingLimitTest.php new file mode 100644 index 000000000..f73ffc3fc --- /dev/null +++ b/test/Account/Types/SellingLimitTest.php @@ -0,0 +1,33 @@ +obj = new SellingLimit(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SellingLimit', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SellingPrivilegesTest.php b/test/Account/Types/SellingPrivilegesTest.php new file mode 100644 index 000000000..657439718 --- /dev/null +++ b/test/Account/Types/SellingPrivilegesTest.php @@ -0,0 +1,33 @@ +obj = new SellingPrivileges(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SellingPrivileges', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SetFulfillmentPolicyResponseTest.php b/test/Account/Types/SetFulfillmentPolicyResponseTest.php new file mode 100644 index 000000000..7decb0e6f --- /dev/null +++ b/test/Account/Types/SetFulfillmentPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new SetFulfillmentPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetFulfillmentPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SetPaymentPolicyResponseTest.php b/test/Account/Types/SetPaymentPolicyResponseTest.php new file mode 100644 index 000000000..03e38e097 --- /dev/null +++ b/test/Account/Types/SetPaymentPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new SetPaymentPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetPaymentPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SetReturnPolicyResponseTest.php b/test/Account/Types/SetReturnPolicyResponseTest.php new file mode 100644 index 000000000..d192032ac --- /dev/null +++ b/test/Account/Types/SetReturnPolicyResponseTest.php @@ -0,0 +1,33 @@ +obj = new SetReturnPolicyResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetReturnPolicyResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ShippingOptionTest.php b/test/Account/Types/ShippingOptionTest.php new file mode 100644 index 000000000..e467e67cc --- /dev/null +++ b/test/Account/Types/ShippingOptionTest.php @@ -0,0 +1,33 @@ +obj = new ShippingOption(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ShippingOption', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/ShippingServiceTest.php b/test/Account/Types/ShippingServiceTest.php new file mode 100644 index 000000000..ce0f10377 --- /dev/null +++ b/test/Account/Types/ShippingServiceTest.php @@ -0,0 +1,33 @@ +obj = new ShippingService(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ShippingService', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/SoldAggregatedMetricsTest.php b/test/Account/Types/SoldAggregatedMetricsTest.php new file mode 100644 index 000000000..b73f0932b --- /dev/null +++ b/test/Account/Types/SoldAggregatedMetricsTest.php @@ -0,0 +1,33 @@ +obj = new SoldAggregatedMetrics(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SoldAggregatedMetrics', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/TimeDurationTest.php b/test/Account/Types/TimeDurationTest.php new file mode 100644 index 000000000..d08db55c9 --- /dev/null +++ b/test/Account/Types/TimeDurationTest.php @@ -0,0 +1,33 @@ +obj = new TimeDuration(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\TimeDuration', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/TransactionSnapshotTest.php b/test/Account/Types/TransactionSnapshotTest.php new file mode 100644 index 000000000..d0b4fa521 --- /dev/null +++ b/test/Account/Types/TransactionSnapshotTest.php @@ -0,0 +1,33 @@ +obj = new TransactionSnapshot(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\TransactionSnapshot', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/TransactionVolumeTest.php b/test/Account/Types/TransactionVolumeTest.php new file mode 100644 index 000000000..e36e36d0a --- /dev/null +++ b/test/Account/Types/TransactionVolumeTest.php @@ -0,0 +1,33 @@ +obj = new TransactionVolume(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\TransactionVolume', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAFulfillmentPolicyRestRequestTest.php b/test/Account/Types/UpdateAFulfillmentPolicyRestRequestTest.php new file mode 100644 index 000000000..cd57fc449 --- /dev/null +++ b/test/Account/Types/UpdateAFulfillmentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAFulfillmentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestRequest', $this->obj); + } + + public function testExtendsFulfillmentPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\FulfillmentPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAFulfillmentPolicyRestResponseTest.php b/test/Account/Types/UpdateAFulfillmentPolicyRestResponseTest.php new file mode 100644 index 000000000..584a9ee66 --- /dev/null +++ b/test/Account/Types/UpdateAFulfillmentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAFulfillmentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAFulfillmentPolicyRestResponse', $this->obj); + } + + public function testExtendsSetFulfillmentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetFulfillmentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAPaymentPolicyRestRequestTest.php b/test/Account/Types/UpdateAPaymentPolicyRestRequestTest.php new file mode 100644 index 000000000..164d23d0a --- /dev/null +++ b/test/Account/Types/UpdateAPaymentPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAPaymentPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestRequest', $this->obj); + } + + public function testExtendsPaymentPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\PaymentPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAPaymentPolicyRestResponseTest.php b/test/Account/Types/UpdateAPaymentPolicyRestResponseTest.php new file mode 100644 index 000000000..9183c742d --- /dev/null +++ b/test/Account/Types/UpdateAPaymentPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAPaymentPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAPaymentPolicyRestResponse', $this->obj); + } + + public function testExtendsSetPaymentPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetPaymentPolicyResponse', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAReturnPolicyRestRequestTest.php b/test/Account/Types/UpdateAReturnPolicyRestRequestTest.php new file mode 100644 index 000000000..7d9b1c807 --- /dev/null +++ b/test/Account/Types/UpdateAReturnPolicyRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAReturnPolicyRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestRequest', $this->obj); + } + + public function testExtendsReturnPolicyRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\ReturnPolicyRequest', $this->obj); + } +} diff --git a/test/Account/Types/UpdateAReturnPolicyRestResponseTest.php b/test/Account/Types/UpdateAReturnPolicyRestResponseTest.php new file mode 100644 index 000000000..d94be539d --- /dev/null +++ b/test/Account/Types/UpdateAReturnPolicyRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateAReturnPolicyRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\UpdateAReturnPolicyRestResponse', $this->obj); + } + + public function testExtendsSetReturnPolicyResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Types\SetReturnPolicyResponse', $this->obj); + } +} diff --git a/test/Analytics/Enums/CycleTypeEnumTest.php b/test/Analytics/Enums/CycleTypeEnumTest.php new file mode 100644 index 000000000..f60d671fc --- /dev/null +++ b/test/Analytics/Enums/CycleTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CycleTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Enums\CycleTypeEnum', $this->obj); + } +} diff --git a/test/Analytics/Enums/DataTypeEnumTest.php b/test/Analytics/Enums/DataTypeEnumTest.php new file mode 100644 index 000000000..ea03bdef1 --- /dev/null +++ b/test/Analytics/Enums/DataTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new DataTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Enums\DataTypeEnum', $this->obj); + } +} diff --git a/test/Analytics/Enums/ProgramEnumTest.php b/test/Analytics/Enums/ProgramEnumTest.php new file mode 100644 index 000000000..d6bf423fc --- /dev/null +++ b/test/Analytics/Enums/ProgramEnumTest.php @@ -0,0 +1,28 @@ +obj = new ProgramEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Enums\ProgramEnum', $this->obj); + } +} diff --git a/test/Analytics/Enums/StandardsLevelEnumTest.php b/test/Analytics/Enums/StandardsLevelEnumTest.php new file mode 100644 index 000000000..660926b65 --- /dev/null +++ b/test/Analytics/Enums/StandardsLevelEnumTest.php @@ -0,0 +1,28 @@ +obj = new StandardsLevelEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Enums\StandardsLevelEnum', $this->obj); + } +} diff --git a/test/Analytics/Mocks/Service.php b/test/Analytics/Mocks/Service.php new file mode 100644 index 000000000..eef48c23f --- /dev/null +++ b/test/Analytics/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Analytics/Services/ServiceTest.php b/test/Analytics/Services/ServiceTest.php new file mode 100644 index 000000000..b6fd814a9 --- /dev/null +++ b/test/Analytics/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => AnalyticsService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(AnalyticsBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[AnalyticsBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(AnalyticsBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(AnalyticsBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[AnalyticsBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Analytics/Types/CycleTest.php b/test/Analytics/Types/CycleTest.php new file mode 100644 index 000000000..2541716ae --- /dev/null +++ b/test/Analytics/Types/CycleTest.php @@ -0,0 +1,33 @@ +obj = new Cycle(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Cycle', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/DefinitionTest.php b/test/Analytics/Types/DefinitionTest.php new file mode 100644 index 000000000..bb8ca6e8f --- /dev/null +++ b/test/Analytics/Types/DefinitionTest.php @@ -0,0 +1,33 @@ +obj = new Definition(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Definition', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/ErrorDetailV3Test.php b/test/Analytics/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..1cb094517 --- /dev/null +++ b/test/Analytics/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/ErrorParameterV3Test.php b/test/Analytics/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..ae6a7094b --- /dev/null +++ b/test/Analytics/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/FilterFieldTest.php b/test/Analytics/Types/FilterFieldTest.php new file mode 100644 index 000000000..e3cece265 --- /dev/null +++ b/test/Analytics/Types/FilterFieldTest.php @@ -0,0 +1,33 @@ +obj = new FilterField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\FilterField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/FindSellerStandardsProfilesResponseTest.php b/test/Analytics/Types/FindSellerStandardsProfilesResponseTest.php new file mode 100644 index 000000000..758a739e0 --- /dev/null +++ b/test/Analytics/Types/FindSellerStandardsProfilesResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindSellerStandardsProfilesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\FindSellerStandardsProfilesResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/GetASpecificSellerProfileRestRequestTest.php b/test/Analytics/Types/GetASpecificSellerProfileRestRequestTest.php new file mode 100644 index 000000000..35b822d5b --- /dev/null +++ b/test/Analytics/Types/GetASpecificSellerProfileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetASpecificSellerProfileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/GetASpecificSellerProfileRestResponseTest.php b/test/Analytics/Types/GetASpecificSellerProfileRestResponseTest.php new file mode 100644 index 000000000..02cf1e145 --- /dev/null +++ b/test/Analytics/Types/GetASpecificSellerProfileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetASpecificSellerProfileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\GetASpecificSellerProfileRestResponse', $this->obj); + } + + public function testExtendsStandardsProfile() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\StandardsProfile', $this->obj); + } +} diff --git a/test/Analytics/Types/GetAllSellerProfilesRestResponseTest.php b/test/Analytics/Types/GetAllSellerProfilesRestResponseTest.php new file mode 100644 index 000000000..2274636e9 --- /dev/null +++ b/test/Analytics/Types/GetAllSellerProfilesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAllSellerProfilesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\GetAllSellerProfilesRestResponse', $this->obj); + } + + public function testExtendsFindSellerStandardsProfilesResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\FindSellerStandardsProfilesResponse', $this->obj); + } +} diff --git a/test/Analytics/Types/GetTrafficReportRestRequestTest.php b/test/Analytics/Types/GetTrafficReportRestRequestTest.php new file mode 100644 index 000000000..2ac401c60 --- /dev/null +++ b/test/Analytics/Types/GetTrafficReportRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetTrafficReportRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\GetTrafficReportRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/GetTrafficReportRestResponseTest.php b/test/Analytics/Types/GetTrafficReportRestResponseTest.php new file mode 100644 index 000000000..0d58528be --- /dev/null +++ b/test/Analytics/Types/GetTrafficReportRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetTrafficReportRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\GetTrafficReportRestResponse', $this->obj); + } + + public function testExtendsReport() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Report', $this->obj); + } +} diff --git a/test/Analytics/Types/HeaderTest.php b/test/Analytics/Types/HeaderTest.php new file mode 100644 index 000000000..5a40990d8 --- /dev/null +++ b/test/Analytics/Types/HeaderTest.php @@ -0,0 +1,33 @@ +obj = new Header(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Header', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/MetricTest.php b/test/Analytics/Types/MetricTest.php new file mode 100644 index 000000000..ee77930d6 --- /dev/null +++ b/test/Analytics/Types/MetricTest.php @@ -0,0 +1,33 @@ +obj = new Metric(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Metric', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/RangeValueTest.php b/test/Analytics/Types/RangeValueTest.php new file mode 100644 index 000000000..8ebd3ac74 --- /dev/null +++ b/test/Analytics/Types/RangeValueTest.php @@ -0,0 +1,33 @@ +obj = new RangeValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\RangeValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/RecordTest.php b/test/Analytics/Types/RecordTest.php new file mode 100644 index 000000000..73c01209d --- /dev/null +++ b/test/Analytics/Types/RecordTest.php @@ -0,0 +1,33 @@ +obj = new Record(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Record', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/ReportTest.php b/test/Analytics/Types/ReportTest.php new file mode 100644 index 000000000..6c955e000 --- /dev/null +++ b/test/Analytics/Types/ReportTest.php @@ -0,0 +1,33 @@ +obj = new Report(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Report', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/StandardsProfileTest.php b/test/Analytics/Types/StandardsProfileTest.php new file mode 100644 index 000000000..932433825 --- /dev/null +++ b/test/Analytics/Types/StandardsProfileTest.php @@ -0,0 +1,33 @@ +obj = new StandardsProfile(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\StandardsProfile', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Analytics/Types/ValueTest.php b/test/Analytics/Types/ValueTest.php new file mode 100644 index 000000000..0f26d558b --- /dev/null +++ b/test/Analytics/Types/ValueTest.php @@ -0,0 +1,33 @@ +obj = new Value(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Types\Value', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Enums/AvailabilityStatusEnumTest.php b/test/Browse/Enums/AvailabilityStatusEnumTest.php new file mode 100644 index 000000000..7403e5030 --- /dev/null +++ b/test/Browse/Enums/AvailabilityStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new AvailabilityStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\AvailabilityStatusEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/CountryCodeEnumTest.php b/test/Browse/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..d34ba9b83 --- /dev/null +++ b/test/Browse/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/CurrencyCodeEnumTest.php b/test/Browse/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..148e5bb3c --- /dev/null +++ b/test/Browse/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/PriceDisplayConditionEnumTest.php b/test/Browse/Enums/PriceDisplayConditionEnumTest.php new file mode 100644 index 000000000..0abf31d9b --- /dev/null +++ b/test/Browse/Enums/PriceDisplayConditionEnumTest.php @@ -0,0 +1,28 @@ +obj = new PriceDisplayConditionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\PriceDisplayConditionEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/RefundMethodEnumTest.php b/test/Browse/Enums/RefundMethodEnumTest.php new file mode 100644 index 000000000..7eaf6592b --- /dev/null +++ b/test/Browse/Enums/RefundMethodEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundMethodEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\RefundMethodEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/ReturnMethodEnumTest.php b/test/Browse/Enums/ReturnMethodEnumTest.php new file mode 100644 index 000000000..1fbfd4f98 --- /dev/null +++ b/test/Browse/Enums/ReturnMethodEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnMethodEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\ReturnMethodEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/ReturnShippingCostPayerEnumTest.php b/test/Browse/Enums/ReturnShippingCostPayerEnumTest.php new file mode 100644 index 000000000..425eb8fcb --- /dev/null +++ b/test/Browse/Enums/ReturnShippingCostPayerEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnShippingCostPayerEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\ReturnShippingCostPayerEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/TimeDurationUnitEnumTest.php b/test/Browse/Enums/TimeDurationUnitEnumTest.php new file mode 100644 index 000000000..44d8ddb0b --- /dev/null +++ b/test/Browse/Enums/TimeDurationUnitEnumTest.php @@ -0,0 +1,28 @@ +obj = new TimeDurationUnitEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\TimeDurationUnitEnum', $this->obj); + } +} diff --git a/test/Browse/Enums/ValueTypeEnumTest.php b/test/Browse/Enums/ValueTypeEnumTest.php new file mode 100644 index 000000000..84dbda680 --- /dev/null +++ b/test/Browse/Enums/ValueTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ValueTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Enums\ValueTypeEnum', $this->obj); + } +} diff --git a/test/Browse/Mocks/Service.php b/test/Browse/Mocks/Service.php new file mode 100644 index 000000000..8deea896f --- /dev/null +++ b/test/Browse/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Browse/Services/ServiceTest.php b/test/Browse/Services/ServiceTest.php new file mode 100644 index 000000000..795d81cbc --- /dev/null +++ b/test/Browse/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => BrowseService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(BrowseBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[BrowseBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(BrowseBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(BrowseBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[BrowseBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Browse/Types/AddressTest.php b/test/Browse/Types/AddressTest.php new file mode 100644 index 000000000..a41045542 --- /dev/null +++ b/test/Browse/Types/AddressTest.php @@ -0,0 +1,33 @@ +obj = new Address(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Address', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/AmountTest.php b/test/Browse/Types/AmountTest.php new file mode 100644 index 000000000..e55d5c8a1 --- /dev/null +++ b/test/Browse/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/Amount_0Test.php b/test/Browse/Types/Amount_0Test.php new file mode 100644 index 000000000..6b3dd9005 --- /dev/null +++ b/test/Browse/Types/Amount_0Test.php @@ -0,0 +1,33 @@ +obj = new Amount_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Amount_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/CategoryTest.php b/test/Browse/Types/CategoryTest.php new file mode 100644 index 000000000..ac511ea29 --- /dev/null +++ b/test/Browse/Types/CategoryTest.php @@ -0,0 +1,33 @@ +obj = new Category(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Category', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ErrorDetailV3Test.php b/test/Browse/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..507962171 --- /dev/null +++ b/test/Browse/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ErrorParameterV3Test.php b/test/Browse/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..e29b3b7eb --- /dev/null +++ b/test/Browse/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/FilterFieldTest.php b/test/Browse/Types/FilterFieldTest.php new file mode 100644 index 000000000..8f21ab699 --- /dev/null +++ b/test/Browse/Types/FilterFieldTest.php @@ -0,0 +1,33 @@ +obj = new FilterField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\FilterField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemFeedRestRequestTest.php b/test/Browse/Types/GetItemFeedRestRequestTest.php new file mode 100644 index 000000000..6d7ff2bd8 --- /dev/null +++ b/test/Browse/Types/GetItemFeedRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetItemFeedRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemFeedRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemFeedRestResponseTest.php b/test/Browse/Types/GetItemFeedRestResponseTest.php new file mode 100644 index 000000000..ff0c26625 --- /dev/null +++ b/test/Browse/Types/GetItemFeedRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetItemFeedRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemFeedRestResponse', $this->obj); + } + + public function testExtendsItemFeedResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemFeedResponse', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemGroupRestRequestTest.php b/test/Browse/Types/GetItemGroupRestRequestTest.php new file mode 100644 index 000000000..609bc140a --- /dev/null +++ b/test/Browse/Types/GetItemGroupRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetItemGroupRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemGroupRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemGroupRestResponseTest.php b/test/Browse/Types/GetItemGroupRestResponseTest.php new file mode 100644 index 000000000..24a2ad491 --- /dev/null +++ b/test/Browse/Types/GetItemGroupRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetItemGroupRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemGroupRestResponse', $this->obj); + } + + public function testExtendsItemGroup() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemGroup', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemRestRequestTest.php b/test/Browse/Types/GetItemRestRequestTest.php new file mode 100644 index 000000000..b9eff2a26 --- /dev/null +++ b/test/Browse/Types/GetItemRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetItemRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/GetItemRestResponseTest.php b/test/Browse/Types/GetItemRestResponseTest.php new file mode 100644 index 000000000..a8ebbcdae --- /dev/null +++ b/test/Browse/Types/GetItemRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetItemRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\GetItemRestResponse', $this->obj); + } + + public function testExtendsItem() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Item', $this->obj); + } +} diff --git a/test/Browse/Types/ImageTest.php b/test/Browse/Types/ImageTest.php new file mode 100644 index 000000000..d3df8daaa --- /dev/null +++ b/test/Browse/Types/ImageTest.php @@ -0,0 +1,33 @@ +obj = new Image(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Image', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemDigestTest.php b/test/Browse/Types/ItemDigestTest.php new file mode 100644 index 000000000..c8a5d7791 --- /dev/null +++ b/test/Browse/Types/ItemDigestTest.php @@ -0,0 +1,33 @@ +obj = new ItemDigest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemDigest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemFeedResponseTest.php b/test/Browse/Types/ItemFeedResponseTest.php new file mode 100644 index 000000000..dc5363280 --- /dev/null +++ b/test/Browse/Types/ItemFeedResponseTest.php @@ -0,0 +1,33 @@ +obj = new ItemFeedResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemFeedResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemFeedTest.php b/test/Browse/Types/ItemFeedTest.php new file mode 100644 index 000000000..a5998d1ba --- /dev/null +++ b/test/Browse/Types/ItemFeedTest.php @@ -0,0 +1,33 @@ +obj = new ItemFeed(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemFeed', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemGroupTest.php b/test/Browse/Types/ItemGroupTest.php new file mode 100644 index 000000000..e92435391 --- /dev/null +++ b/test/Browse/Types/ItemGroupTest.php @@ -0,0 +1,33 @@ +obj = new ItemGroup(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemGroup', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemLocationImplTest.php b/test/Browse/Types/ItemLocationImplTest.php new file mode 100644 index 000000000..8460819e0 --- /dev/null +++ b/test/Browse/Types/ItemLocationImplTest.php @@ -0,0 +1,33 @@ +obj = new ItemLocationImpl(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemLocationImpl', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemReturnTermsTest.php b/test/Browse/Types/ItemReturnTermsTest.php new file mode 100644 index 000000000..d68ed06a4 --- /dev/null +++ b/test/Browse/Types/ItemReturnTermsTest.php @@ -0,0 +1,33 @@ +obj = new ItemReturnTerms(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemReturnTerms', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemSummaryTest.php b/test/Browse/Types/ItemSummaryTest.php new file mode 100644 index 000000000..3ab01da9a --- /dev/null +++ b/test/Browse/Types/ItemSummaryTest.php @@ -0,0 +1,33 @@ +obj = new ItemSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ItemSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ItemTest.php b/test/Browse/Types/ItemTest.php new file mode 100644 index 000000000..b4ff849d4 --- /dev/null +++ b/test/Browse/Types/ItemTest.php @@ -0,0 +1,33 @@ +obj = new Item(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Item', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/MarketingPriceTest.php b/test/Browse/Types/MarketingPriceTest.php new file mode 100644 index 000000000..720fc0462 --- /dev/null +++ b/test/Browse/Types/MarketingPriceTest.php @@ -0,0 +1,33 @@ +obj = new MarketingPrice(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\MarketingPrice', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/MarketingPrice_0Test.php b/test/Browse/Types/MarketingPrice_0Test.php new file mode 100644 index 000000000..f7983da39 --- /dev/null +++ b/test/Browse/Types/MarketingPrice_0Test.php @@ -0,0 +1,33 @@ +obj = new MarketingPrice_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\MarketingPrice_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/PickupOptionSummaryTest.php b/test/Browse/Types/PickupOptionSummaryTest.php new file mode 100644 index 000000000..a3145b3c6 --- /dev/null +++ b/test/Browse/Types/PickupOptionSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PickupOptionSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\PickupOptionSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/RangeValueTest.php b/test/Browse/Types/RangeValueTest.php new file mode 100644 index 000000000..0aabdb7ec --- /dev/null +++ b/test/Browse/Types/RangeValueTest.php @@ -0,0 +1,33 @@ +obj = new RangeValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\RangeValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/RatingHistogramTest.php b/test/Browse/Types/RatingHistogramTest.php new file mode 100644 index 000000000..0c9c607f6 --- /dev/null +++ b/test/Browse/Types/RatingHistogramTest.php @@ -0,0 +1,33 @@ +obj = new RatingHistogram(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\RatingHistogram', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ReviewRatingTest.php b/test/Browse/Types/ReviewRatingTest.php new file mode 100644 index 000000000..57d05e1aa --- /dev/null +++ b/test/Browse/Types/ReviewRatingTest.php @@ -0,0 +1,33 @@ +obj = new ReviewRating(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ReviewRating', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/SearchForItemsRestRequestTest.php b/test/Browse/Types/SearchForItemsRestRequestTest.php new file mode 100644 index 000000000..d97521eb5 --- /dev/null +++ b/test/Browse/Types/SearchForItemsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SearchForItemsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\SearchForItemsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/SearchForItemsRestResponseTest.php b/test/Browse/Types/SearchForItemsRestResponseTest.php new file mode 100644 index 000000000..1ac375bc6 --- /dev/null +++ b/test/Browse/Types/SearchForItemsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SearchForItemsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\SearchForItemsRestResponse', $this->obj); + } + + public function testExtendsSearchPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\SearchPagedCollection', $this->obj); + } +} diff --git a/test/Browse/Types/SearchPagedCollectionTest.php b/test/Browse/Types/SearchPagedCollectionTest.php new file mode 100644 index 000000000..4e682d091 --- /dev/null +++ b/test/Browse/Types/SearchPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new SearchPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\SearchPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/SellerTest.php b/test/Browse/Types/SellerTest.php new file mode 100644 index 000000000..93b8529f7 --- /dev/null +++ b/test/Browse/Types/SellerTest.php @@ -0,0 +1,33 @@ +obj = new Seller(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\Seller', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ShippingOptionSummaryTest.php b/test/Browse/Types/ShippingOptionSummaryTest.php new file mode 100644 index 000000000..7dbc18876 --- /dev/null +++ b/test/Browse/Types/ShippingOptionSummaryTest.php @@ -0,0 +1,33 @@ +obj = new ShippingOptionSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ShippingOptionSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/ShippingOptionTest.php b/test/Browse/Types/ShippingOptionTest.php new file mode 100644 index 000000000..26e03af33 --- /dev/null +++ b/test/Browse/Types/ShippingOptionTest.php @@ -0,0 +1,33 @@ +obj = new ShippingOption(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\ShippingOption', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/SortFieldTest.php b/test/Browse/Types/SortFieldTest.php new file mode 100644 index 000000000..0217ce6e4 --- /dev/null +++ b/test/Browse/Types/SortFieldTest.php @@ -0,0 +1,33 @@ +obj = new SortField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\SortField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/TargetLocationTest.php b/test/Browse/Types/TargetLocationTest.php new file mode 100644 index 000000000..771e8993c --- /dev/null +++ b/test/Browse/Types/TargetLocationTest.php @@ -0,0 +1,33 @@ +obj = new TargetLocation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\TargetLocation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/TimeDurationTest.php b/test/Browse/Types/TimeDurationTest.php new file mode 100644 index 000000000..3e7b088dd --- /dev/null +++ b/test/Browse/Types/TimeDurationTest.php @@ -0,0 +1,33 @@ +obj = new TimeDuration(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\TimeDuration', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Browse/Types/TypedNameValueTest.php b/test/Browse/Types/TypedNameValueTest.php new file mode 100644 index 000000000..f19fea408 --- /dev/null +++ b/test/Browse/Types/TypedNameValueTest.php @@ -0,0 +1,33 @@ +obj = new TypedNameValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Types\TypedNameValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/BulkDataExchange/Enums/AckValueTest.php b/test/BulkDataExchange/Enums/AckValueTest.php index ba608a022..b7f345be5 100644 --- a/test/BulkDataExchange/Enums/AckValueTest.php +++ b/test/BulkDataExchange/Enums/AckValueTest.php @@ -1,8 +1,11 @@ function () { }, 'int' => 1, - 'stdClass' => new \StdClass(), + 'stdClass' => new \stdClass(), 'string' => 'foo' ]; diff --git a/test/Constants/MarketplaceIdsTest.php b/test/Constants/MarketplaceIdsTest.php new file mode 100644 index 000000000..167bf830d --- /dev/null +++ b/test/Constants/MarketplaceIdsTest.php @@ -0,0 +1,57 @@ +assertInternalType('string', MarketplaceIds::US); + $this->assertInternalType('string', MarketplaceIds::CA); + $this->assertInternalType('string', MarketplaceIds::GB); + $this->assertInternalType('string', MarketplaceIds::AU); + $this->assertInternalType('string', MarketplaceIds::AT); + $this->assertInternalType('string', MarketplaceIds::BE); + $this->assertInternalType('string', MarketplaceIds::FR); + $this->assertInternalType('string', MarketplaceIds::DE); + $this->assertInternalType('string', MarketplaceIds::MOTORS); + $this->assertInternalType('string', MarketplaceIds::IT); + $this->assertInternalType('string', MarketplaceIds::NL); + $this->assertInternalType('string', MarketplaceIds::ES); + $this->assertInternalType('string', MarketplaceIds::CH); + $this->assertInternalType('string', MarketplaceIds::HK); + $this->assertInternalType('string', MarketplaceIds::IN); + $this->assertInternalType('string', MarketplaceIds::IE); + $this->assertInternalType('string', MarketplaceIds::MY); + $this->assertInternalType('string', MarketplaceIds::PH); + $this->assertInternalType('string', MarketplaceIds::PL); + $this->assertInternalType('string', MarketplaceIds::SG); + $this->assertInternalType('string', MarketplaceIds::CN); + } + + public function testConstantsHaveCorrectValue() + { + $this->assertEquals('EBAY-US', MarketplaceIds::US); + $this->assertEquals('EBAY-CA', MarketplaceIds::CA); + $this->assertEquals('EBAY-GB', MarketplaceIds::GB); + $this->assertEquals('EBAY-AU', MarketplaceIds::AU); + $this->assertEquals('EBAY-AT', MarketplaceIds::AT); + $this->assertEquals('EBAY-BE', MarketplaceIds::BE); + $this->assertEquals('EBAY-FR', MarketplaceIds::FR); + $this->assertEquals('EBAY-DE', MarketplaceIds::DE); + $this->assertEquals('EBAY-US.MOTORS', MarketplaceIds::MOTORS); + $this->assertEquals('EBAY-IT', MarketplaceIds::IT); + $this->assertEquals('EBAY-NL', MarketplaceIds::NL); + $this->assertEquals('EBAY-ES', MarketplaceIds::ES); + $this->assertEquals('EBAY-CH', MarketplaceIds::CH); + $this->assertEquals('EBAY-HK', MarketplaceIds::HK); + $this->assertEquals('EBAY-IN', MarketplaceIds::IN); + $this->assertEquals('EBAY-IE', MarketplaceIds::IE); + $this->assertEquals('EBAY-MY', MarketplaceIds::MY); + $this->assertEquals('EBAY-PH', MarketplaceIds::PH); + $this->assertEquals('EBAY-PL', MarketplaceIds::PL); + $this->assertEquals('EBAY-SG', MarketplaceIds::SG); + $this->assertEquals('EBAY-CN', MarketplaceIds::CN); + } +} diff --git a/test/Exceptions/InvalidPropertyTypeExceptionTest.php b/test/Exceptions/InvalidPropertyTypeExceptionTest.php index ec1838b68..f514902bf 100644 --- a/test/Exceptions/InvalidPropertyTypeExceptionTest.php +++ b/test/Exceptions/InvalidPropertyTypeExceptionTest.php @@ -5,6 +5,8 @@ class InvalidPropertyTypeExceptionTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new InvalidPropertyTypeException('foo', 'string', 'integer'); diff --git a/test/Exceptions/UnknownPropertyExceptionTest.php b/test/Exceptions/UnknownPropertyExceptionTest.php index ff972b6b5..7319e933a 100644 --- a/test/Exceptions/UnknownPropertyExceptionTest.php +++ b/test/Exceptions/UnknownPropertyExceptionTest.php @@ -5,6 +5,8 @@ class UnknownPropertyExceptionTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new UnknownPropertyException('foo'); diff --git a/test/Feedback/Enums/AckValueTest.php b/test/Feedback/Enums/AckValueTest.php new file mode 100644 index 000000000..ee46df3f8 --- /dev/null +++ b/test/Feedback/Enums/AckValueTest.php @@ -0,0 +1,28 @@ +obj = new AckValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Enums\AckValue', $this->obj); + } +} diff --git a/test/Feedback/Enums/ErrorCategoryTest.php b/test/Feedback/Enums/ErrorCategoryTest.php new file mode 100644 index 000000000..c5d53752d --- /dev/null +++ b/test/Feedback/Enums/ErrorCategoryTest.php @@ -0,0 +1,28 @@ +obj = new ErrorCategory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Enums\ErrorCategory', $this->obj); + } +} diff --git a/test/Feedback/Enums/ErrorSeverityTest.php b/test/Feedback/Enums/ErrorSeverityTest.php new file mode 100644 index 000000000..38dffe727 --- /dev/null +++ b/test/Feedback/Enums/ErrorSeverityTest.php @@ -0,0 +1,28 @@ +obj = new ErrorSeverity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Enums\ErrorSeverity', $this->obj); + } +} diff --git a/test/Feedback/Mocks/Service.php b/test/Feedback/Mocks/Service.php new file mode 100644 index 000000000..59049eaec --- /dev/null +++ b/test/Feedback/Mocks/Service.php @@ -0,0 +1,21 @@ +callOperationAsync( + 'testOperation', + new ComplexClass(), + '\DTS\eBaySDK\Test\Mocks\ComplexClass' + )->wait(); + } +} diff --git a/test/Feedback/Services/ServiceTest.php b/test/Feedback/Services/ServiceTest.php new file mode 100644 index 000000000..fd5e5fd67 --- /dev/null +++ b/test/Feedback/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => FeedbackService::API_VERSION + ], $d['apiVersion']); + + $this->assertArrayHasKey('authToken', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authToken']); + } + + public function testEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'authToken' => '321', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(FeedbackBaseService::HDR_AUTH_TOKEN, $h->headers); + $this->assertEquals('321', $h->headers[FeedbackBaseService::HDR_AUTH_TOKEN]); + + $this->assertArrayHasKey(FeedbackBaseService::HDR_OPERATION_NAME, $h->headers); + $this->assertEquals('testOperation', $h->headers[FeedbackBaseService::HDR_OPERATION_NAME]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayHasKey(FeedbackBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals(FeedbackService::API_VERSION, $h->headers[FeedbackBaseService::HDR_API_VERSION]); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'apiVersion' => '123', + 'authToken' => '321', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(FeedbackBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals('123', $h->headers[FeedbackBaseService::HDR_API_VERSION]); + } +} diff --git a/test/Feedback/Types/BaseServiceRequestTest.php b/test/Feedback/Types/BaseServiceRequestTest.php new file mode 100644 index 000000000..95ca4da7f --- /dev/null +++ b/test/Feedback/Types/BaseServiceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/BaseServiceResponseTest.php b/test/Feedback/Types/BaseServiceResponseTest.php new file mode 100644 index 000000000..6b994c95d --- /dev/null +++ b/test/Feedback/Types/BaseServiceResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/CreateDSRSummaryByCategoryRequestTest.php b/test/Feedback/Types/CreateDSRSummaryByCategoryRequestTest.php new file mode 100644 index 000000000..cd20c6970 --- /dev/null +++ b/test/Feedback/Types/CreateDSRSummaryByCategoryRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateDSRSummaryByCategoryRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByCategoryRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Feedback/Types/CreateDSRSummaryByPeriodRequestTest.php b/test/Feedback/Types/CreateDSRSummaryByPeriodRequestTest.php new file mode 100644 index 000000000..77c85062a --- /dev/null +++ b/test/Feedback/Types/CreateDSRSummaryByPeriodRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateDSRSummaryByPeriodRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByPeriodRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Feedback/Types/CreateDSRSummaryByShippingDetailRequestTest.php b/test/Feedback/Types/CreateDSRSummaryByShippingDetailRequestTest.php new file mode 100644 index 000000000..151e0ed93 --- /dev/null +++ b/test/Feedback/Types/CreateDSRSummaryByShippingDetailRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateDSRSummaryByShippingDetailRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByShippingDetailRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Feedback/Types/CreateDSRSummaryByTransactionRequestTest.php b/test/Feedback/Types/CreateDSRSummaryByTransactionRequestTest.php new file mode 100644 index 000000000..a2344e0fc --- /dev/null +++ b/test/Feedback/Types/CreateDSRSummaryByTransactionRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateDSRSummaryByTransactionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryByTransactionRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Feedback/Types/CreateDSRSummaryResponseTest.php b/test/Feedback/Types/CreateDSRSummaryResponseTest.php new file mode 100644 index 000000000..c7963bf49 --- /dev/null +++ b/test/Feedback/Types/CreateDSRSummaryResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateDSRSummaryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\CreateDSRSummaryResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Feedback/Types/DSRSummaryTest.php b/test/Feedback/Types/DSRSummaryTest.php new file mode 100644 index 000000000..55c69d03d --- /dev/null +++ b/test/Feedback/Types/DSRSummaryTest.php @@ -0,0 +1,33 @@ +obj = new DSRSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\DSRSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/DateRangeTest.php b/test/Feedback/Types/DateRangeTest.php new file mode 100644 index 000000000..dd22df41c --- /dev/null +++ b/test/Feedback/Types/DateRangeTest.php @@ -0,0 +1,33 @@ +obj = new DateRange(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\DateRange', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/ErrorDataTest.php b/test/Feedback/Types/ErrorDataTest.php new file mode 100644 index 000000000..f9d836dd1 --- /dev/null +++ b/test/Feedback/Types/ErrorDataTest.php @@ -0,0 +1,33 @@ +obj = new ErrorData(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\ErrorData', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/ErrorMessageTest.php b/test/Feedback/Types/ErrorMessageTest.php new file mode 100644 index 000000000..790e274e2 --- /dev/null +++ b/test/Feedback/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Feedback/Types/ErrorParameterTest.php b/test/Feedback/Types/ErrorParameterTest.php new file mode 100644 index 000000000..a6e520376 --- /dev/null +++ b/test/Feedback/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\ErrorParameter', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/Feedback/Types/GetDSRSummaryRequestTest.php b/test/Feedback/Types/GetDSRSummaryRequestTest.php new file mode 100644 index 000000000..335b36159 --- /dev/null +++ b/test/Feedback/Types/GetDSRSummaryRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetDSRSummaryRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\GetDSRSummaryRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Feedback/Types/GetDSRSummaryResponseTest.php b/test/Feedback/Types/GetDSRSummaryResponseTest.php new file mode 100644 index 000000000..a0f2ffb93 --- /dev/null +++ b/test/Feedback/Types/GetDSRSummaryResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDSRSummaryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\GetDSRSummaryResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Feedback/Types/TransactionKeyTest.php b/test/Feedback/Types/TransactionKeyTest.php new file mode 100644 index 000000000..3b147300b --- /dev/null +++ b/test/Feedback/Types/TransactionKeyTest.php @@ -0,0 +1,33 @@ +obj = new TransactionKey(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Types\TransactionKey', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/FileTransfer/Enums/AckValueTest.php b/test/FileTransfer/Enums/AckValueTest.php index ab0a29a62..6055f2050 100644 --- a/test/FileTransfer/Enums/AckValueTest.php +++ b/test/FileTransfer/Enums/AckValueTest.php @@ -1,8 +1,11 @@ callOperationASync( + return $this->callOperationAsync( 'testOperation', new ComplexClass(), '\DTS\eBaySDK\Test\Mocks\ComplexClass' diff --git a/test/FileTransfer/Types/BaseServiceRequestTest.php b/test/FileTransfer/Types/BaseServiceRequestTest.php index c08fb5996..a399a9063 100644 --- a/test/FileTransfer/Types/BaseServiceRequestTest.php +++ b/test/FileTransfer/Types/BaseServiceRequestTest.php @@ -1,8 +1,11 @@ obj = new AcknowledgeStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\AcknowledgeStatusEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/CancelRequestStateEnumTest.php b/test/Fulfillment/Enums/CancelRequestStateEnumTest.php new file mode 100644 index 000000000..56af1d6e3 --- /dev/null +++ b/test/Fulfillment/Enums/CancelRequestStateEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelRequestStateEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\CancelRequestStateEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/CancelStateEnumTest.php b/test/Fulfillment/Enums/CancelStateEnumTest.php new file mode 100644 index 000000000..f09b46ea2 --- /dev/null +++ b/test/Fulfillment/Enums/CancelStateEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelStateEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\CancelStateEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/CountryCodeEnumTest.php b/test/Fulfillment/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..b55d7f6d5 --- /dev/null +++ b/test/Fulfillment/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/CurrencyCodeEnumTest.php b/test/Fulfillment/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..c82311a78 --- /dev/null +++ b/test/Fulfillment/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/LineItemFulfillmentStatusEnumTest.php b/test/Fulfillment/Enums/LineItemFulfillmentStatusEnumTest.php new file mode 100644 index 000000000..5ba9ad691 --- /dev/null +++ b/test/Fulfillment/Enums/LineItemFulfillmentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new LineItemFulfillmentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\LineItemFulfillmentStatusEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/MarketplaceIdEnumTest.php b/test/Fulfillment/Enums/MarketplaceIdEnumTest.php new file mode 100644 index 000000000..e5d1afbb8 --- /dev/null +++ b/test/Fulfillment/Enums/MarketplaceIdEnumTest.php @@ -0,0 +1,28 @@ +obj = new MarketplaceIdEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\MarketplaceIdEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/OrderPaymentStatusEnumTest.php b/test/Fulfillment/Enums/OrderPaymentStatusEnumTest.php new file mode 100644 index 000000000..127bca99c --- /dev/null +++ b/test/Fulfillment/Enums/OrderPaymentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new OrderPaymentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\OrderPaymentStatusEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/PaymentMethodTypeEnumTest.php b/test/Fulfillment/Enums/PaymentMethodTypeEnumTest.php new file mode 100644 index 000000000..fe726a140 --- /dev/null +++ b/test/Fulfillment/Enums/PaymentMethodTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentMethodTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\PaymentMethodTypeEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/PaymentStatusEnumTest.php b/test/Fulfillment/Enums/PaymentStatusEnumTest.php new file mode 100644 index 000000000..e5e9c8063 --- /dev/null +++ b/test/Fulfillment/Enums/PaymentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\PaymentStatusEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/RefundStatusEnumTest.php b/test/Fulfillment/Enums/RefundStatusEnumTest.php new file mode 100644 index 000000000..5ce88d908 --- /dev/null +++ b/test/Fulfillment/Enums/RefundStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\RefundStatusEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/RefundTypeEnumTest.php b/test/Fulfillment/Enums/RefundTypeEnumTest.php new file mode 100644 index 000000000..f27506077 --- /dev/null +++ b/test/Fulfillment/Enums/RefundTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\RefundTypeEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Enums/SoldFormatEnumTest.php b/test/Fulfillment/Enums/SoldFormatEnumTest.php new file mode 100644 index 000000000..14dde2174 --- /dev/null +++ b/test/Fulfillment/Enums/SoldFormatEnumTest.php @@ -0,0 +1,28 @@ +obj = new SoldFormatEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Enums\SoldFormatEnum', $this->obj); + } +} diff --git a/test/Fulfillment/Mocks/Service.php b/test/Fulfillment/Mocks/Service.php new file mode 100644 index 000000000..2a0cdcfd0 --- /dev/null +++ b/test/Fulfillment/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Fulfillment/Services/ServiceTest.php b/test/Fulfillment/Services/ServiceTest.php new file mode 100644 index 000000000..fff8d09c1 --- /dev/null +++ b/test/Fulfillment/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => FulfillmentService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(FulfillmentBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[FulfillmentBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(FulfillmentBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(FulfillmentBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[FulfillmentBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Fulfillment/Types/AddressTest.php b/test/Fulfillment/Types/AddressTest.php new file mode 100644 index 000000000..75551b2ab --- /dev/null +++ b/test/Fulfillment/Types/AddressTest.php @@ -0,0 +1,33 @@ +obj = new Address(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Address', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/AmountTest.php b/test/Fulfillment/Types/AmountTest.php new file mode 100644 index 000000000..f035073f1 --- /dev/null +++ b/test/Fulfillment/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/AppliedPromotionTest.php b/test/Fulfillment/Types/AppliedPromotionTest.php new file mode 100644 index 000000000..c249475c9 --- /dev/null +++ b/test/Fulfillment/Types/AppliedPromotionTest.php @@ -0,0 +1,33 @@ +obj = new AppliedPromotion(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\AppliedPromotion', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/AttributeTest.php b/test/Fulfillment/Types/AttributeTest.php new file mode 100644 index 000000000..75ffd23ff --- /dev/null +++ b/test/Fulfillment/Types/AttributeTest.php @@ -0,0 +1,33 @@ +obj = new Attribute(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Attribute', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/BuyerTest.php b/test/Fulfillment/Types/BuyerTest.php new file mode 100644 index 000000000..6ae09c08e --- /dev/null +++ b/test/Fulfillment/Types/BuyerTest.php @@ -0,0 +1,33 @@ +obj = new Buyer(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Buyer', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/CancelRequestTest.php b/test/Fulfillment/Types/CancelRequestTest.php new file mode 100644 index 000000000..e260af90a --- /dev/null +++ b/test/Fulfillment/Types/CancelRequestTest.php @@ -0,0 +1,33 @@ +obj = new CancelRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\CancelRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/CancelStatusTest.php b/test/Fulfillment/Types/CancelStatusTest.php new file mode 100644 index 000000000..18dad5155 --- /dev/null +++ b/test/Fulfillment/Types/CancelStatusTest.php @@ -0,0 +1,33 @@ +obj = new CancelStatus(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\CancelStatus', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ContactTest.php b/test/Fulfillment/Types/ContactTest.php new file mode 100644 index 000000000..b536a9214 --- /dev/null +++ b/test/Fulfillment/Types/ContactTest.php @@ -0,0 +1,33 @@ +obj = new Contact(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Contact', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/CreateAShippingFulfillmentRestRequestTest.php b/test/Fulfillment/Types/CreateAShippingFulfillmentRestRequestTest.php new file mode 100644 index 000000000..cd64f02c1 --- /dev/null +++ b/test/Fulfillment/Types/CreateAShippingFulfillmentRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAShippingFulfillmentRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestRequest', $this->obj); + } + + public function testExtendsShippingFulfillmentDetails() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillmentDetails', $this->obj); + } +} diff --git a/test/Fulfillment/Types/CreateAShippingFulfillmentRestResponseTest.php b/test/Fulfillment/Types/CreateAShippingFulfillmentRestResponseTest.php new file mode 100644 index 000000000..81510e509 --- /dev/null +++ b/test/Fulfillment/Types/CreateAShippingFulfillmentRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAShippingFulfillmentRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\CreateAShippingFulfillmentRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/DeliveryCostTest.php b/test/Fulfillment/Types/DeliveryCostTest.php new file mode 100644 index 000000000..17dadab1f --- /dev/null +++ b/test/Fulfillment/Types/DeliveryCostTest.php @@ -0,0 +1,33 @@ +obj = new DeliveryCost(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\DeliveryCost', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ErrorDetailV3Test.php b/test/Fulfillment/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..17c608a4d --- /dev/null +++ b/test/Fulfillment/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ErrorParameterV3Test.php b/test/Fulfillment/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..0e2e828ec --- /dev/null +++ b/test/Fulfillment/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/FeeTest.php b/test/Fulfillment/Types/FeeTest.php new file mode 100644 index 000000000..da0194b17 --- /dev/null +++ b/test/Fulfillment/Types/FeeTest.php @@ -0,0 +1,33 @@ +obj = new Fee(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Fee', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/FilterFieldTest.php b/test/Fulfillment/Types/FilterFieldTest.php new file mode 100644 index 000000000..94a061f86 --- /dev/null +++ b/test/Fulfillment/Types/FilterFieldTest.php @@ -0,0 +1,33 @@ +obj = new FilterField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\FilterField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/FulfillmentInstructionsTypeTest.php b/test/Fulfillment/Types/FulfillmentInstructionsTypeTest.php new file mode 100644 index 000000000..360ca6bb2 --- /dev/null +++ b/test/Fulfillment/Types/FulfillmentInstructionsTypeTest.php @@ -0,0 +1,33 @@ +obj = new FulfillmentInstructionsType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\FulfillmentInstructionsType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/FulfillmentStartInstructionTest.php b/test/Fulfillment/Types/FulfillmentStartInstructionTest.php new file mode 100644 index 000000000..930ea8e1a --- /dev/null +++ b/test/Fulfillment/Types/FulfillmentStartInstructionTest.php @@ -0,0 +1,33 @@ +obj = new FulfillmentStartInstruction(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\FulfillmentStartInstruction', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetAShippingFulfillmentRestRequestTest.php b/test/Fulfillment/Types/GetAShippingFulfillmentRestRequestTest.php new file mode 100644 index 000000000..6e3cf79de --- /dev/null +++ b/test/Fulfillment/Types/GetAShippingFulfillmentRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAShippingFulfillmentRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetAShippingFulfillmentRestResponseTest.php b/test/Fulfillment/Types/GetAShippingFulfillmentRestResponseTest.php new file mode 100644 index 000000000..5ece3f9ab --- /dev/null +++ b/test/Fulfillment/Types/GetAShippingFulfillmentRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAShippingFulfillmentRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetAShippingFulfillmentRestResponse', $this->obj); + } + + public function testExtendsShippingFulfillment() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillment', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetAnOrderRestRequestTest.php b/test/Fulfillment/Types/GetAnOrderRestRequestTest.php new file mode 100644 index 000000000..c1f133e2b --- /dev/null +++ b/test/Fulfillment/Types/GetAnOrderRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAnOrderRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetAnOrderRestResponseTest.php b/test/Fulfillment/Types/GetAnOrderRestResponseTest.php new file mode 100644 index 000000000..5bacc513b --- /dev/null +++ b/test/Fulfillment/Types/GetAnOrderRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAnOrderRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetAnOrderRestResponse', $this->obj); + } + + public function testExtendsOrder() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Order', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetOrdersRestRequestTest.php b/test/Fulfillment/Types/GetOrdersRestRequestTest.php new file mode 100644 index 000000000..f1de299ba --- /dev/null +++ b/test/Fulfillment/Types/GetOrdersRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetOrdersRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetOrdersRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetOrdersRestResponseTest.php b/test/Fulfillment/Types/GetOrdersRestResponseTest.php new file mode 100644 index 000000000..3268c1a26 --- /dev/null +++ b/test/Fulfillment/Types/GetOrdersRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetOrdersRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetOrdersRestResponse', $this->obj); + } + + public function testExtendsOrderSearchPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\OrderSearchPagedCollection', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetShippingFulfillmentsRestRequestTest.php b/test/Fulfillment/Types/GetShippingFulfillmentsRestRequestTest.php new file mode 100644 index 000000000..463f65c48 --- /dev/null +++ b/test/Fulfillment/Types/GetShippingFulfillmentsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetShippingFulfillmentsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GetShippingFulfillmentsRestResponseTest.php b/test/Fulfillment/Types/GetShippingFulfillmentsRestResponseTest.php new file mode 100644 index 000000000..9dd8160cf --- /dev/null +++ b/test/Fulfillment/Types/GetShippingFulfillmentsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetShippingFulfillmentsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GetShippingFulfillmentsRestResponse', $this->obj); + } + + public function testExtendsShippingFulfillmentPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillmentPagedCollection', $this->obj); + } +} diff --git a/test/Fulfillment/Types/GiftDetailsTest.php b/test/Fulfillment/Types/GiftDetailsTest.php new file mode 100644 index 000000000..48537ad81 --- /dev/null +++ b/test/Fulfillment/Types/GiftDetailsTest.php @@ -0,0 +1,33 @@ +obj = new GiftDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\GiftDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/LineItemPropertiesTest.php b/test/Fulfillment/Types/LineItemPropertiesTest.php new file mode 100644 index 000000000..86ccd3079 --- /dev/null +++ b/test/Fulfillment/Types/LineItemPropertiesTest.php @@ -0,0 +1,33 @@ +obj = new LineItemProperties(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\LineItemProperties', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/LineItemReferenceTest.php b/test/Fulfillment/Types/LineItemReferenceTest.php new file mode 100644 index 000000000..63ec38878 --- /dev/null +++ b/test/Fulfillment/Types/LineItemReferenceTest.php @@ -0,0 +1,33 @@ +obj = new LineItemReference(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\LineItemReference', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/LineItemTest.php b/test/Fulfillment/Types/LineItemTest.php new file mode 100644 index 000000000..3beb8702e --- /dev/null +++ b/test/Fulfillment/Types/LineItemTest.php @@ -0,0 +1,33 @@ +obj = new LineItem(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\LineItem', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/OrderFulfillmentStatusTest.php b/test/Fulfillment/Types/OrderFulfillmentStatusTest.php new file mode 100644 index 000000000..2952fe5eb --- /dev/null +++ b/test/Fulfillment/Types/OrderFulfillmentStatusTest.php @@ -0,0 +1,33 @@ +obj = new OrderFulfillmentStatus(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\OrderFulfillmentStatus', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/OrderRefundTest.php b/test/Fulfillment/Types/OrderRefundTest.php new file mode 100644 index 000000000..e9805ed61 --- /dev/null +++ b/test/Fulfillment/Types/OrderRefundTest.php @@ -0,0 +1,33 @@ +obj = new OrderRefund(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\OrderRefund', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/OrderSearchPagedCollectionTest.php b/test/Fulfillment/Types/OrderSearchPagedCollectionTest.php new file mode 100644 index 000000000..07b279727 --- /dev/null +++ b/test/Fulfillment/Types/OrderSearchPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new OrderSearchPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\OrderSearchPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/OrderTest.php b/test/Fulfillment/Types/OrderTest.php new file mode 100644 index 000000000..42482a72a --- /dev/null +++ b/test/Fulfillment/Types/OrderTest.php @@ -0,0 +1,33 @@ +obj = new Order(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Order', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/PaymentHoldTest.php b/test/Fulfillment/Types/PaymentHoldTest.php new file mode 100644 index 000000000..2e00054cc --- /dev/null +++ b/test/Fulfillment/Types/PaymentHoldTest.php @@ -0,0 +1,33 @@ +obj = new PaymentHold(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\PaymentHold', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/PaymentSummaryTest.php b/test/Fulfillment/Types/PaymentSummaryTest.php new file mode 100644 index 000000000..aca704ea2 --- /dev/null +++ b/test/Fulfillment/Types/PaymentSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PaymentSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\PaymentSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/PaymentTest.php b/test/Fulfillment/Types/PaymentTest.php new file mode 100644 index 000000000..eafaf267b --- /dev/null +++ b/test/Fulfillment/Types/PaymentTest.php @@ -0,0 +1,33 @@ +obj = new Payment(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Payment', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/PhoneNumberTest.php b/test/Fulfillment/Types/PhoneNumberTest.php new file mode 100644 index 000000000..5902e68a3 --- /dev/null +++ b/test/Fulfillment/Types/PhoneNumberTest.php @@ -0,0 +1,33 @@ +obj = new PhoneNumber(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\PhoneNumber', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/PricingSummaryTest.php b/test/Fulfillment/Types/PricingSummaryTest.php new file mode 100644 index 000000000..0c1bc6368 --- /dev/null +++ b/test/Fulfillment/Types/PricingSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PricingSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\PricingSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/RangeValueTest.php b/test/Fulfillment/Types/RangeValueTest.php new file mode 100644 index 000000000..763a4d01a --- /dev/null +++ b/test/Fulfillment/Types/RangeValueTest.php @@ -0,0 +1,33 @@ +obj = new RangeValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\RangeValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/SellerActionsToReleaseTest.php b/test/Fulfillment/Types/SellerActionsToReleaseTest.php new file mode 100644 index 000000000..718e0c646 --- /dev/null +++ b/test/Fulfillment/Types/SellerActionsToReleaseTest.php @@ -0,0 +1,33 @@ +obj = new SellerActionsToRelease(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\SellerActionsToRelease', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ShippingFulfillmentDetailsTest.php b/test/Fulfillment/Types/ShippingFulfillmentDetailsTest.php new file mode 100644 index 000000000..2341eba29 --- /dev/null +++ b/test/Fulfillment/Types/ShippingFulfillmentDetailsTest.php @@ -0,0 +1,33 @@ +obj = new ShippingFulfillmentDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillmentDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ShippingFulfillmentPagedCollectionTest.php b/test/Fulfillment/Types/ShippingFulfillmentPagedCollectionTest.php new file mode 100644 index 000000000..25eefb22c --- /dev/null +++ b/test/Fulfillment/Types/ShippingFulfillmentPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new ShippingFulfillmentPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillmentPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ShippingFulfillmentTest.php b/test/Fulfillment/Types/ShippingFulfillmentTest.php new file mode 100644 index 000000000..094c23835 --- /dev/null +++ b/test/Fulfillment/Types/ShippingFulfillmentTest.php @@ -0,0 +1,33 @@ +obj = new ShippingFulfillment(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingFulfillment', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/ShippingStepTest.php b/test/Fulfillment/Types/ShippingStepTest.php new file mode 100644 index 000000000..56f71074b --- /dev/null +++ b/test/Fulfillment/Types/ShippingStepTest.php @@ -0,0 +1,33 @@ +obj = new ShippingStep(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\ShippingStep', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Fulfillment/Types/TaxTest.php b/test/Fulfillment/Types/TaxTest.php new file mode 100644 index 000000000..68145ba9e --- /dev/null +++ b/test/Fulfillment/Types/TaxTest.php @@ -0,0 +1,33 @@ +obj = new Tax(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Types\Tax', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/HalfFinding/Enums/AckValueTest.php b/test/HalfFinding/Enums/AckValueTest.php index 555322412..15551e9ea 100644 --- a/test/HalfFinding/Enums/AckValueTest.php +++ b/test/HalfFinding/Enums/AckValueTest.php @@ -1,8 +1,11 @@ assertEquals([], $h->getHeaders()); + } + + public function testReturnsHeaders() + { + $h = new HttpHeaders([ + 'foo' => 'foo', + 'Bar' => 'bar', + 'bar' => 'foo' + ]); + + $this->assertEquals([ + 'foo' => ['foo'], + 'Bar' => ['bar', 'foo'] + ], $h->getHeaders()); + } + + public function testReturnAHeader() + { + $h = new HttpHeaders([ + 'foo' => 'foo', + 'Bar' => 'bar', + 'bar' => 'foo' + ]); + + $this->assertEquals(['foo'], $h->getHeader('FOO')); + $this->assertEquals(['bar', 'foo'], $h->getHeader('bAR')); + } + + public function testHasHeader() + { + $h = new HttpHeaders([ + 'foo' => 'foo', + 'Bar' => 'bar', + 'bar' => 'foo' + ]); + + $this->assertEquals(true, $h->hasHeader('FOO')); + $this->assertEquals(true, $h->hasHeader('bAR')); + } + + public function testGetHeaderLine() + { + $h = new HttpHeaders([ + 'foo' => 'foo', + 'Bar' => 'bar', + 'bar' => 'foo' + ]); + + $this->assertEquals('foo', $h->getHeaderLine('FOO')); + $this->assertEquals('bar, foo', $h->getHeaderLine('bAR')); + } +} diff --git a/test/Inventory/Enums/AvailabilityTypeEnumTest.php b/test/Inventory/Enums/AvailabilityTypeEnumTest.php new file mode 100644 index 000000000..8d4b0807b --- /dev/null +++ b/test/Inventory/Enums/AvailabilityTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new AvailabilityTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\AvailabilityTypeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/ConditionEnumTest.php b/test/Inventory/Enums/ConditionEnumTest.php new file mode 100644 index 000000000..a440dbaf1 --- /dev/null +++ b/test/Inventory/Enums/ConditionEnumTest.php @@ -0,0 +1,28 @@ +obj = new ConditionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\ConditionEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/CountryCodeEnumTest.php b/test/Inventory/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..3d0d3647a --- /dev/null +++ b/test/Inventory/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/DayOfWeekEnumTest.php b/test/Inventory/Enums/DayOfWeekEnumTest.php new file mode 100644 index 000000000..325b66606 --- /dev/null +++ b/test/Inventory/Enums/DayOfWeekEnumTest.php @@ -0,0 +1,28 @@ +obj = new DayOfWeekEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\DayOfWeekEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/FormatTypeEnumTest.php b/test/Inventory/Enums/FormatTypeEnumTest.php new file mode 100644 index 000000000..dc8a9dac1 --- /dev/null +++ b/test/Inventory/Enums/FormatTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new FormatTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\FormatTypeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/LengthUnitOfMeasureEnumTest.php b/test/Inventory/Enums/LengthUnitOfMeasureEnumTest.php new file mode 100644 index 000000000..f423475fa --- /dev/null +++ b/test/Inventory/Enums/LengthUnitOfMeasureEnumTest.php @@ -0,0 +1,28 @@ +obj = new LengthUnitOfMeasureEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\LengthUnitOfMeasureEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/ListingStatusEnumTest.php b/test/Inventory/Enums/ListingStatusEnumTest.php new file mode 100644 index 000000000..9ef4ab965 --- /dev/null +++ b/test/Inventory/Enums/ListingStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new ListingStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\ListingStatusEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/MarketplaceEnumTest.php b/test/Inventory/Enums/MarketplaceEnumTest.php new file mode 100644 index 000000000..72cbb2c2d --- /dev/null +++ b/test/Inventory/Enums/MarketplaceEnumTest.php @@ -0,0 +1,28 @@ +obj = new MarketplaceEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\MarketplaceEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/MinimumAdvertisedPriceHandlingEnumTest.php b/test/Inventory/Enums/MinimumAdvertisedPriceHandlingEnumTest.php new file mode 100644 index 000000000..cdc433464 --- /dev/null +++ b/test/Inventory/Enums/MinimumAdvertisedPriceHandlingEnumTest.php @@ -0,0 +1,28 @@ +obj = new MinimumAdvertisedPriceHandlingEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\MinimumAdvertisedPriceHandlingEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/OfferStatusEnumTest.php b/test/Inventory/Enums/OfferStatusEnumTest.php new file mode 100644 index 000000000..bf413e2e8 --- /dev/null +++ b/test/Inventory/Enums/OfferStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new OfferStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\OfferStatusEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/PackageTypeEnumTest.php b/test/Inventory/Enums/PackageTypeEnumTest.php new file mode 100644 index 000000000..ee8f15f33 --- /dev/null +++ b/test/Inventory/Enums/PackageTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new PackageTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\PackageTypeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/ShippingServiceTypeEnumTest.php b/test/Inventory/Enums/ShippingServiceTypeEnumTest.php new file mode 100644 index 000000000..20153c792 --- /dev/null +++ b/test/Inventory/Enums/ShippingServiceTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ShippingServiceTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\ShippingServiceTypeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/SoldOnEnumTest.php b/test/Inventory/Enums/SoldOnEnumTest.php new file mode 100644 index 000000000..a75ff9bcf --- /dev/null +++ b/test/Inventory/Enums/SoldOnEnumTest.php @@ -0,0 +1,28 @@ +obj = new SoldOnEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\SoldOnEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/StatusEnumTest.php b/test/Inventory/Enums/StatusEnumTest.php new file mode 100644 index 000000000..822960dff --- /dev/null +++ b/test/Inventory/Enums/StatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new StatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\StatusEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/StoreTypeEnumTest.php b/test/Inventory/Enums/StoreTypeEnumTest.php new file mode 100644 index 000000000..dba352b2f --- /dev/null +++ b/test/Inventory/Enums/StoreTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new StoreTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\StoreTypeEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/TimeDurationUnitEnumTest.php b/test/Inventory/Enums/TimeDurationUnitEnumTest.php new file mode 100644 index 000000000..60095f9fc --- /dev/null +++ b/test/Inventory/Enums/TimeDurationUnitEnumTest.php @@ -0,0 +1,28 @@ +obj = new TimeDurationUnitEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\TimeDurationUnitEnum', $this->obj); + } +} diff --git a/test/Inventory/Enums/WeightUnitOfMeasureEnumTest.php b/test/Inventory/Enums/WeightUnitOfMeasureEnumTest.php new file mode 100644 index 000000000..6268e36ea --- /dev/null +++ b/test/Inventory/Enums/WeightUnitOfMeasureEnumTest.php @@ -0,0 +1,28 @@ +obj = new WeightUnitOfMeasureEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Enums\WeightUnitOfMeasureEnum', $this->obj); + } +} diff --git a/test/Inventory/Mocks/Service.php b/test/Inventory/Mocks/Service.php new file mode 100644 index 000000000..41872597e --- /dev/null +++ b/test/Inventory/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Inventory/Services/ServiceTest.php b/test/Inventory/Services/ServiceTest.php new file mode 100644 index 000000000..65db42590 --- /dev/null +++ b/test/Inventory/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => InventoryService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(InventoryBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[InventoryBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(InventoryBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(InventoryBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[InventoryBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Inventory/Types/AddressTest.php b/test/Inventory/Types/AddressTest.php new file mode 100644 index 000000000..74859d43c --- /dev/null +++ b/test/Inventory/Types/AddressTest.php @@ -0,0 +1,33 @@ +obj = new Address(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Address', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/AmountTest.php b/test/Inventory/Types/AmountTest.php new file mode 100644 index 000000000..fbc7c99a1 --- /dev/null +++ b/test/Inventory/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/AvailabilityTest.php b/test/Inventory/Types/AvailabilityTest.php new file mode 100644 index 000000000..90e8ceaeb --- /dev/null +++ b/test/Inventory/Types/AvailabilityTest.php @@ -0,0 +1,33 @@ +obj = new Availability(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Availability', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/BaseResponseTest.php b/test/Inventory/Types/BaseResponseTest.php new file mode 100644 index 000000000..76edf3c8e --- /dev/null +++ b/test/Inventory/Types/BaseResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BaseResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/BulkPriceQuantityResponseTest.php b/test/Inventory/Types/BulkPriceQuantityResponseTest.php new file mode 100644 index 000000000..a5e6fbdd2 --- /dev/null +++ b/test/Inventory/Types/BulkPriceQuantityResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkPriceQuantityResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkPriceQuantityResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/BulkPriceQuantityTest.php b/test/Inventory/Types/BulkPriceQuantityTest.php new file mode 100644 index 000000000..9736cd2f6 --- /dev/null +++ b/test/Inventory/Types/BulkPriceQuantityTest.php @@ -0,0 +1,33 @@ +obj = new BulkPriceQuantity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkPriceQuantity', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/BulkUpdatePriceAndQuantityRestRequestTest.php b/test/Inventory/Types/BulkUpdatePriceAndQuantityRestRequestTest.php new file mode 100644 index 000000000..c28ca5074 --- /dev/null +++ b/test/Inventory/Types/BulkUpdatePriceAndQuantityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdatePriceAndQuantityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestRequest', $this->obj); + } + + public function testExtendsBulkPriceQuantity() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkPriceQuantity', $this->obj); + } +} diff --git a/test/Inventory/Types/BulkUpdatePriceAndQuantityRestResponseTest.php b/test/Inventory/Types/BulkUpdatePriceAndQuantityRestResponseTest.php new file mode 100644 index 000000000..9d2d45535 --- /dev/null +++ b/test/Inventory/Types/BulkUpdatePriceAndQuantityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdatePriceAndQuantityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkUpdatePriceAndQuantityRestResponse', $this->obj); + } + + public function testExtendsBulkPriceQuantityResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BulkPriceQuantityResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/CompatibilityTest.php b/test/Inventory/Types/CompatibilityTest.php new file mode 100644 index 000000000..d2ee69e53 --- /dev/null +++ b/test/Inventory/Types/CompatibilityTest.php @@ -0,0 +1,33 @@ +obj = new Compatibility(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Compatibility', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/CompatibleProductTest.php b/test/Inventory/Types/CompatibleProductTest.php new file mode 100644 index 000000000..749010b75 --- /dev/null +++ b/test/Inventory/Types/CompatibleProductTest.php @@ -0,0 +1,33 @@ +obj = new CompatibleProduct(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CompatibleProduct', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateInventoryLocationRestRequestTest.php b/test/Inventory/Types/CreateInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..6343e832e --- /dev/null +++ b/test/Inventory/Types/CreateInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsInventoryLocationFull() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocationFull', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateInventoryLocationRestResponseTest.php b/test/Inventory/Types/CreateInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..b727cef4b --- /dev/null +++ b/test/Inventory/Types/CreateInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOfferRestRequestTest.php b/test/Inventory/Types/CreateOfferRestRequestTest.php new file mode 100644 index 000000000..d9caee91c --- /dev/null +++ b/test/Inventory/Types/CreateOfferRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateOfferRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOfferRestRequest', $this->obj); + } + + public function testExtendsEbayOfferDetailsWithKeys() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithKeys', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOfferRestResponseTest.php b/test/Inventory/Types/CreateOfferRestResponseTest.php new file mode 100644 index 000000000..489f30c5e --- /dev/null +++ b/test/Inventory/Types/CreateOfferRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateOfferRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOfferRestResponse', $this->obj); + } + + public function testExtendsOfferResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequestTest.php b/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequestTest.php new file mode 100644 index 000000000..a8d72b2cf --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceInventoryItemGroupRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestRequest', $this->obj); + } + + public function testExtendsInventoryItemGroup() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItemGroup', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponseTest.php b/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponseTest.php new file mode 100644 index 000000000..ae1227984 --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceInventoryItemGroupRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceInventoryItemGroupRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemGroupRestResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BaseResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceInventoryItemRestRequestTest.php b/test/Inventory/Types/CreateOrReplaceInventoryItemRestRequestTest.php new file mode 100644 index 000000000..9d628493a --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceInventoryItemRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceInventoryItemRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestRequest', $this->obj); + } + + public function testExtendsInventoryItem() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItem', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceInventoryItemRestResponseTest.php b/test/Inventory/Types/CreateOrReplaceInventoryItemRestResponseTest.php new file mode 100644 index 000000000..8644b8589 --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceInventoryItemRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceInventoryItemRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceInventoryItemRestResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BaseResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequestTest.php b/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequestTest.php new file mode 100644 index 000000000..4ad7b6608 --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceProductCompatibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestRequest', $this->obj); + } + + public function testExtendsCompatibility() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Compatibility', $this->obj); + } +} diff --git a/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponseTest.php b/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponseTest.php new file mode 100644 index 000000000..fe051b041 --- /dev/null +++ b/test/Inventory/Types/CreateOrReplaceProductCompatibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateOrReplaceProductCompatibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\CreateOrReplaceProductCompatibilityRestResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\BaseResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryItemGroupRestRequestTest.php b/test/Inventory/Types/DeleteInventoryItemGroupRestRequestTest.php new file mode 100644 index 000000000..8409d5f61 --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryItemGroupRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryItemGroupRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryItemGroupRestResponseTest.php b/test/Inventory/Types/DeleteInventoryItemGroupRestResponseTest.php new file mode 100644 index 000000000..c9194ef22 --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryItemGroupRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryItemGroupRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemGroupRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryItemRestRequestTest.php b/test/Inventory/Types/DeleteInventoryItemRestRequestTest.php new file mode 100644 index 000000000..cef53b613 --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryItemRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryItemRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryItemRestResponseTest.php b/test/Inventory/Types/DeleteInventoryItemRestResponseTest.php new file mode 100644 index 000000000..a43ef59f6 --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryItemRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryItemRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryItemRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryLocationRestRequestTest.php b/test/Inventory/Types/DeleteInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..31e935e1c --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteInventoryLocationRestResponseTest.php b/test/Inventory/Types/DeleteInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..012812406 --- /dev/null +++ b/test/Inventory/Types/DeleteInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteOfferRestRequestTest.php b/test/Inventory/Types/DeleteOfferRestRequestTest.php new file mode 100644 index 000000000..7ccba69b2 --- /dev/null +++ b/test/Inventory/Types/DeleteOfferRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteOfferRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteOfferRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteOfferRestResponseTest.php b/test/Inventory/Types/DeleteOfferRestResponseTest.php new file mode 100644 index 000000000..87d98c540 --- /dev/null +++ b/test/Inventory/Types/DeleteOfferRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteOfferRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteOfferRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteProductCompatibilityRestRequestTest.php b/test/Inventory/Types/DeleteProductCompatibilityRestRequestTest.php new file mode 100644 index 000000000..122eddf83 --- /dev/null +++ b/test/Inventory/Types/DeleteProductCompatibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteProductCompatibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DeleteProductCompatibilityRestResponseTest.php b/test/Inventory/Types/DeleteProductCompatibilityRestResponseTest.php new file mode 100644 index 000000000..d31bdaa3b --- /dev/null +++ b/test/Inventory/Types/DeleteProductCompatibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteProductCompatibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DeleteProductCompatibilityRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DimensionTest.php b/test/Inventory/Types/DimensionTest.php new file mode 100644 index 000000000..ab3e9d8ab --- /dev/null +++ b/test/Inventory/Types/DimensionTest.php @@ -0,0 +1,33 @@ +obj = new Dimension(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Dimension', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DisableInventoryLocationRestRequestTest.php b/test/Inventory/Types/DisableInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..d67fcffed --- /dev/null +++ b/test/Inventory/Types/DisableInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DisableInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/DisableInventoryLocationRestResponseTest.php b/test/Inventory/Types/DisableInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..e0d2c2c0d --- /dev/null +++ b/test/Inventory/Types/DisableInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DisableInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\DisableInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/EbayOfferDetailsWithAllTest.php b/test/Inventory/Types/EbayOfferDetailsWithAllTest.php new file mode 100644 index 000000000..2f365db32 --- /dev/null +++ b/test/Inventory/Types/EbayOfferDetailsWithAllTest.php @@ -0,0 +1,33 @@ +obj = new EbayOfferDetailsWithAll(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithAll', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/EbayOfferDetailsWithIdTest.php b/test/Inventory/Types/EbayOfferDetailsWithIdTest.php new file mode 100644 index 000000000..547d7e04b --- /dev/null +++ b/test/Inventory/Types/EbayOfferDetailsWithIdTest.php @@ -0,0 +1,33 @@ +obj = new EbayOfferDetailsWithId(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithId', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/EbayOfferDetailsWithKeysTest.php b/test/Inventory/Types/EbayOfferDetailsWithKeysTest.php new file mode 100644 index 000000000..6478d1d1a --- /dev/null +++ b/test/Inventory/Types/EbayOfferDetailsWithKeysTest.php @@ -0,0 +1,33 @@ +obj = new EbayOfferDetailsWithKeys(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithKeys', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/EnableInventoryLocationRestRequestTest.php b/test/Inventory/Types/EnableInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..0701ffdee --- /dev/null +++ b/test/Inventory/Types/EnableInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new EnableInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/EnableInventoryLocationRestResponseTest.php b/test/Inventory/Types/EnableInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..1e47beb22 --- /dev/null +++ b/test/Inventory/Types/EnableInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new EnableInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EnableInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ErrorDetailV3Test.php b/test/Inventory/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..49b746ea8 --- /dev/null +++ b/test/Inventory/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ErrorParameterV3Test.php b/test/Inventory/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..588302dc8 --- /dev/null +++ b/test/Inventory/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/FeeSummaryTest.php b/test/Inventory/Types/FeeSummaryTest.php new file mode 100644 index 000000000..656392454 --- /dev/null +++ b/test/Inventory/Types/FeeSummaryTest.php @@ -0,0 +1,33 @@ +obj = new FeeSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\FeeSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/FeeTest.php b/test/Inventory/Types/FeeTest.php new file mode 100644 index 000000000..ad3dd4549 --- /dev/null +++ b/test/Inventory/Types/FeeTest.php @@ -0,0 +1,33 @@ +obj = new Fee(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Fee', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/FeesSummaryResponseTest.php b/test/Inventory/Types/FeesSummaryResponseTest.php new file mode 100644 index 000000000..98cf26bbb --- /dev/null +++ b/test/Inventory/Types/FeesSummaryResponseTest.php @@ -0,0 +1,33 @@ +obj = new FeesSummaryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\FeesSummaryResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GeoCoordinatesTest.php b/test/Inventory/Types/GeoCoordinatesTest.php new file mode 100644 index 000000000..498530a02 --- /dev/null +++ b/test/Inventory/Types/GeoCoordinatesTest.php @@ -0,0 +1,33 @@ +obj = new GeoCoordinates(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GeoCoordinates', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemGroupRestRequestTest.php b/test/Inventory/Types/GetInventoryItemGroupRestRequestTest.php new file mode 100644 index 000000000..5f0d2e6f2 --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemGroupRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemGroupRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemGroupRestResponseTest.php b/test/Inventory/Types/GetInventoryItemGroupRestResponseTest.php new file mode 100644 index 000000000..6f643e0eb --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemGroupRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemGroupRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemGroupRestResponse', $this->obj); + } + + public function testExtendsInventoryItemGroup() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItemGroup', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemRestRequestTest.php b/test/Inventory/Types/GetInventoryItemRestRequestTest.php new file mode 100644 index 000000000..e022cb536 --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemRestResponseTest.php b/test/Inventory/Types/GetInventoryItemRestResponseTest.php new file mode 100644 index 000000000..1160865f7 --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemRestResponse', $this->obj); + } + + public function testExtendsInventoryItem() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItem', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemsRestRequestTest.php b/test/Inventory/Types/GetInventoryItemsRestRequestTest.php new file mode 100644 index 000000000..9cbe74e72 --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryItemsRestResponseTest.php b/test/Inventory/Types/GetInventoryItemsRestResponseTest.php new file mode 100644 index 000000000..7894be5d2 --- /dev/null +++ b/test/Inventory/Types/GetInventoryItemsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryItemsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryItemsRestResponse', $this->obj); + } + + public function testExtendsInventoryItems() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItems', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryLocationRestRequestTest.php b/test/Inventory/Types/GetInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..594705096 --- /dev/null +++ b/test/Inventory/Types/GetInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryLocationRestResponseTest.php b/test/Inventory/Types/GetInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..5c48b8a53 --- /dev/null +++ b/test/Inventory/Types/GetInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsInventoryLocationResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocationResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryLocationsRestRequestTest.php b/test/Inventory/Types/GetInventoryLocationsRestRequestTest.php new file mode 100644 index 000000000..3bb939486 --- /dev/null +++ b/test/Inventory/Types/GetInventoryLocationsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryLocationsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetInventoryLocationsRestResponseTest.php b/test/Inventory/Types/GetInventoryLocationsRestResponseTest.php new file mode 100644 index 000000000..2d65d6b79 --- /dev/null +++ b/test/Inventory/Types/GetInventoryLocationsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInventoryLocationsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetInventoryLocationsRestResponse', $this->obj); + } + + public function testExtendsLocationResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\LocationResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/GetListingFeesRestRequestTest.php b/test/Inventory/Types/GetListingFeesRestRequestTest.php new file mode 100644 index 000000000..8d7fb68fe --- /dev/null +++ b/test/Inventory/Types/GetListingFeesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetListingFeesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetListingFeesRestRequest', $this->obj); + } + + public function testExtendsOfferKeysWithId() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferKeysWithId', $this->obj); + } +} diff --git a/test/Inventory/Types/GetListingFeesRestResponseTest.php b/test/Inventory/Types/GetListingFeesRestResponseTest.php new file mode 100644 index 000000000..ee9a04b37 --- /dev/null +++ b/test/Inventory/Types/GetListingFeesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetListingFeesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetListingFeesRestResponse', $this->obj); + } + + public function testExtendsFeesSummaryResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\FeesSummaryResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/GetOfferRestRequestTest.php b/test/Inventory/Types/GetOfferRestRequestTest.php new file mode 100644 index 000000000..2985dfdd0 --- /dev/null +++ b/test/Inventory/Types/GetOfferRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetOfferRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetOfferRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetOfferRestResponseTest.php b/test/Inventory/Types/GetOfferRestResponseTest.php new file mode 100644 index 000000000..984d07ee3 --- /dev/null +++ b/test/Inventory/Types/GetOfferRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetOfferRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetOfferRestResponse', $this->obj); + } + + public function testExtendsEbayOfferDetailsWithAll() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithAll', $this->obj); + } +} diff --git a/test/Inventory/Types/GetOffersRestRequestTest.php b/test/Inventory/Types/GetOffersRestRequestTest.php new file mode 100644 index 000000000..b461a37a1 --- /dev/null +++ b/test/Inventory/Types/GetOffersRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetOffersRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetOffersRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetOffersRestResponseTest.php b/test/Inventory/Types/GetOffersRestResponseTest.php new file mode 100644 index 000000000..ec6be38f1 --- /dev/null +++ b/test/Inventory/Types/GetOffersRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetOffersRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetOffersRestResponse', $this->obj); + } + + public function testExtendsOffers() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Offers', $this->obj); + } +} diff --git a/test/Inventory/Types/GetProductCompatibilityRestRequestTest.php b/test/Inventory/Types/GetProductCompatibilityRestRequestTest.php new file mode 100644 index 000000000..7938b5f40 --- /dev/null +++ b/test/Inventory/Types/GetProductCompatibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductCompatibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/GetProductCompatibilityRestResponseTest.php b/test/Inventory/Types/GetProductCompatibilityRestResponseTest.php new file mode 100644 index 000000000..266460c28 --- /dev/null +++ b/test/Inventory/Types/GetProductCompatibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductCompatibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\GetProductCompatibilityRestResponse', $this->obj); + } + + public function testExtendsCompatibility() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Compatibility', $this->obj); + } +} diff --git a/test/Inventory/Types/IntervalTest.php b/test/Inventory/Types/IntervalTest.php new file mode 100644 index 000000000..873627725 --- /dev/null +++ b/test/Inventory/Types/IntervalTest.php @@ -0,0 +1,33 @@ +obj = new Interval(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Interval', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryItemGroupTest.php b/test/Inventory/Types/InventoryItemGroupTest.php new file mode 100644 index 000000000..6689a8349 --- /dev/null +++ b/test/Inventory/Types/InventoryItemGroupTest.php @@ -0,0 +1,33 @@ +obj = new InventoryItemGroup(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItemGroup', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryItemTest.php b/test/Inventory/Types/InventoryItemTest.php new file mode 100644 index 000000000..9c31e2b06 --- /dev/null +++ b/test/Inventory/Types/InventoryItemTest.php @@ -0,0 +1,33 @@ +obj = new InventoryItem(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItem', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryItemsTest.php b/test/Inventory/Types/InventoryItemsTest.php new file mode 100644 index 000000000..b7cf23c7d --- /dev/null +++ b/test/Inventory/Types/InventoryItemsTest.php @@ -0,0 +1,33 @@ +obj = new InventoryItems(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryItems', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryLocationFullTest.php b/test/Inventory/Types/InventoryLocationFullTest.php new file mode 100644 index 000000000..4eb43d5fe --- /dev/null +++ b/test/Inventory/Types/InventoryLocationFullTest.php @@ -0,0 +1,33 @@ +obj = new InventoryLocationFull(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocationFull', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryLocationResponseTest.php b/test/Inventory/Types/InventoryLocationResponseTest.php new file mode 100644 index 000000000..a5d4ffdb4 --- /dev/null +++ b/test/Inventory/Types/InventoryLocationResponseTest.php @@ -0,0 +1,33 @@ +obj = new InventoryLocationResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocationResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/InventoryLocationTest.php b/test/Inventory/Types/InventoryLocationTest.php new file mode 100644 index 000000000..4a0d50b2b --- /dev/null +++ b/test/Inventory/Types/InventoryLocationTest.php @@ -0,0 +1,33 @@ +obj = new InventoryLocation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ListingDetailsTest.php b/test/Inventory/Types/ListingDetailsTest.php new file mode 100644 index 000000000..011742787 --- /dev/null +++ b/test/Inventory/Types/ListingDetailsTest.php @@ -0,0 +1,33 @@ +obj = new ListingDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ListingDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ListingPoliciesTest.php b/test/Inventory/Types/ListingPoliciesTest.php new file mode 100644 index 000000000..e87f4580a --- /dev/null +++ b/test/Inventory/Types/ListingPoliciesTest.php @@ -0,0 +1,33 @@ +obj = new ListingPolicies(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ListingPolicies', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/LocationResponseTest.php b/test/Inventory/Types/LocationResponseTest.php new file mode 100644 index 000000000..f6c9c91de --- /dev/null +++ b/test/Inventory/Types/LocationResponseTest.php @@ -0,0 +1,33 @@ +obj = new LocationResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\LocationResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/LocationTest.php b/test/Inventory/Types/LocationTest.php new file mode 100644 index 000000000..ee7272c6c --- /dev/null +++ b/test/Inventory/Types/LocationTest.php @@ -0,0 +1,33 @@ +obj = new Location(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Location', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OfferKeyWithIdTest.php b/test/Inventory/Types/OfferKeyWithIdTest.php new file mode 100644 index 000000000..a50bb3cf8 --- /dev/null +++ b/test/Inventory/Types/OfferKeyWithIdTest.php @@ -0,0 +1,33 @@ +obj = new OfferKeyWithId(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferKeyWithId', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OfferKeysWithIdTest.php b/test/Inventory/Types/OfferKeysWithIdTest.php new file mode 100644 index 000000000..dfa30ff67 --- /dev/null +++ b/test/Inventory/Types/OfferKeysWithIdTest.php @@ -0,0 +1,33 @@ +obj = new OfferKeysWithId(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferKeysWithId', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OfferPriceQuantityTest.php b/test/Inventory/Types/OfferPriceQuantityTest.php new file mode 100644 index 000000000..66b0192c7 --- /dev/null +++ b/test/Inventory/Types/OfferPriceQuantityTest.php @@ -0,0 +1,33 @@ +obj = new OfferPriceQuantity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferPriceQuantity', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OfferResponseTest.php b/test/Inventory/Types/OfferResponseTest.php new file mode 100644 index 000000000..1a0777da8 --- /dev/null +++ b/test/Inventory/Types/OfferResponseTest.php @@ -0,0 +1,33 @@ +obj = new OfferResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OffersTest.php b/test/Inventory/Types/OffersTest.php new file mode 100644 index 000000000..b71945163 --- /dev/null +++ b/test/Inventory/Types/OffersTest.php @@ -0,0 +1,33 @@ +obj = new Offers(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Offers', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/OperatingHoursTest.php b/test/Inventory/Types/OperatingHoursTest.php new file mode 100644 index 000000000..0051e7dd8 --- /dev/null +++ b/test/Inventory/Types/OperatingHoursTest.php @@ -0,0 +1,33 @@ +obj = new OperatingHours(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OperatingHours', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PackageWeightAndSizeTest.php b/test/Inventory/Types/PackageWeightAndSizeTest.php new file mode 100644 index 000000000..9a0f78e13 --- /dev/null +++ b/test/Inventory/Types/PackageWeightAndSizeTest.php @@ -0,0 +1,33 @@ +obj = new PackageWeightAndSize(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PackageWeightAndSize', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PickupAtLocationAvailabilityTest.php b/test/Inventory/Types/PickupAtLocationAvailabilityTest.php new file mode 100644 index 000000000..474e6d1d9 --- /dev/null +++ b/test/Inventory/Types/PickupAtLocationAvailabilityTest.php @@ -0,0 +1,33 @@ +obj = new PickupAtLocationAvailability(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PickupAtLocationAvailability', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PriceQuantityResponseTest.php b/test/Inventory/Types/PriceQuantityResponseTest.php new file mode 100644 index 000000000..684ac04ee --- /dev/null +++ b/test/Inventory/Types/PriceQuantityResponseTest.php @@ -0,0 +1,33 @@ +obj = new PriceQuantityResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PriceQuantityResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PriceQuantityTest.php b/test/Inventory/Types/PriceQuantityTest.php new file mode 100644 index 000000000..f69f4fd03 --- /dev/null +++ b/test/Inventory/Types/PriceQuantityTest.php @@ -0,0 +1,33 @@ +obj = new PriceQuantity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PriceQuantity', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PricingSummaryTest.php b/test/Inventory/Types/PricingSummaryTest.php new file mode 100644 index 000000000..b22608e68 --- /dev/null +++ b/test/Inventory/Types/PricingSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PricingSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PricingSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ProductFamilyPropertiesTest.php b/test/Inventory/Types/ProductFamilyPropertiesTest.php new file mode 100644 index 000000000..abd47a764 --- /dev/null +++ b/test/Inventory/Types/ProductFamilyPropertiesTest.php @@ -0,0 +1,33 @@ +obj = new ProductFamilyProperties(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ProductFamilyProperties', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ProductIdentifierTest.php b/test/Inventory/Types/ProductIdentifierTest.php new file mode 100644 index 000000000..0c1aeb19e --- /dev/null +++ b/test/Inventory/Types/ProductIdentifierTest.php @@ -0,0 +1,33 @@ +obj = new ProductIdentifier(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ProductIdentifier', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ProductTest.php b/test/Inventory/Types/ProductTest.php new file mode 100644 index 000000000..d8c9389ae --- /dev/null +++ b/test/Inventory/Types/ProductTest.php @@ -0,0 +1,33 @@ +obj = new Product(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Product', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PublishOfferRestRequestTest.php b/test/Inventory/Types/PublishOfferRestRequestTest.php new file mode 100644 index 000000000..56ac82064 --- /dev/null +++ b/test/Inventory/Types/PublishOfferRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PublishOfferRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishOfferRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PublishOfferRestResponseTest.php b/test/Inventory/Types/PublishOfferRestResponseTest.php new file mode 100644 index 000000000..f077e12dd --- /dev/null +++ b/test/Inventory/Types/PublishOfferRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PublishOfferRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishOfferRestResponse', $this->obj); + } + + public function testExtendsPublishResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/PublishResponseTest.php b/test/Inventory/Types/PublishResponseTest.php new file mode 100644 index 000000000..3840d33c1 --- /dev/null +++ b/test/Inventory/Types/PublishResponseTest.php @@ -0,0 +1,33 @@ +obj = new PublishResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ShipToLocationAvailabilityTest.php b/test/Inventory/Types/ShipToLocationAvailabilityTest.php new file mode 100644 index 000000000..1591a15cd --- /dev/null +++ b/test/Inventory/Types/ShipToLocationAvailabilityTest.php @@ -0,0 +1,33 @@ +obj = new ShipToLocationAvailability(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ShipToLocationAvailability', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/ShippingCostOverrideTest.php b/test/Inventory/Types/ShippingCostOverrideTest.php new file mode 100644 index 000000000..85b5ac544 --- /dev/null +++ b/test/Inventory/Types/ShippingCostOverrideTest.php @@ -0,0 +1,33 @@ +obj = new ShippingCostOverride(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\ShippingCostOverride', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/SpecialHoursTest.php b/test/Inventory/Types/SpecialHoursTest.php new file mode 100644 index 000000000..6733da201 --- /dev/null +++ b/test/Inventory/Types/SpecialHoursTest.php @@ -0,0 +1,33 @@ +obj = new SpecialHours(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\SpecialHours', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/SpecificationTest.php b/test/Inventory/Types/SpecificationTest.php new file mode 100644 index 000000000..4135b0777 --- /dev/null +++ b/test/Inventory/Types/SpecificationTest.php @@ -0,0 +1,33 @@ +obj = new Specification(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Specification', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/TaxTest.php b/test/Inventory/Types/TaxTest.php new file mode 100644 index 000000000..b242f51b1 --- /dev/null +++ b/test/Inventory/Types/TaxTest.php @@ -0,0 +1,33 @@ +obj = new Tax(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Tax', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/TimeDurationTest.php b/test/Inventory/Types/TimeDurationTest.php new file mode 100644 index 000000000..8482e1787 --- /dev/null +++ b/test/Inventory/Types/TimeDurationTest.php @@ -0,0 +1,33 @@ +obj = new TimeDuration(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\TimeDuration', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/UpdateInventoryLocationRestRequestTest.php b/test/Inventory/Types/UpdateInventoryLocationRestRequestTest.php new file mode 100644 index 000000000..c4331f042 --- /dev/null +++ b/test/Inventory/Types/UpdateInventoryLocationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateInventoryLocationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestRequest', $this->obj); + } + + public function testExtendsInventoryLocation() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\InventoryLocation', $this->obj); + } +} diff --git a/test/Inventory/Types/UpdateInventoryLocationRestResponseTest.php b/test/Inventory/Types/UpdateInventoryLocationRestResponseTest.php new file mode 100644 index 000000000..f65aa6e0c --- /dev/null +++ b/test/Inventory/Types/UpdateInventoryLocationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateInventoryLocationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\UpdateInventoryLocationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/UpdateOfferRestRequestTest.php b/test/Inventory/Types/UpdateOfferRestRequestTest.php new file mode 100644 index 000000000..00f0147e0 --- /dev/null +++ b/test/Inventory/Types/UpdateOfferRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateOfferRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\UpdateOfferRestRequest', $this->obj); + } + + public function testExtendsEbayOfferDetailsWithId() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\EbayOfferDetailsWithId', $this->obj); + } +} diff --git a/test/Inventory/Types/UpdateOfferRestResponseTest.php b/test/Inventory/Types/UpdateOfferRestResponseTest.php new file mode 100644 index 000000000..af76bdac5 --- /dev/null +++ b/test/Inventory/Types/UpdateOfferRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateOfferRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\UpdateOfferRestResponse', $this->obj); + } + + public function testExtendsOfferResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\OfferResponse', $this->obj); + } +} diff --git a/test/Inventory/Types/VariesByTest.php b/test/Inventory/Types/VariesByTest.php new file mode 100644 index 000000000..2df797514 --- /dev/null +++ b/test/Inventory/Types/VariesByTest.php @@ -0,0 +1,33 @@ +obj = new VariesBy(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\VariesBy', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/WeightTest.php b/test/Inventory/Types/WeightTest.php new file mode 100644 index 000000000..72364ff36 --- /dev/null +++ b/test/Inventory/Types/WeightTest.php @@ -0,0 +1,33 @@ +obj = new Weight(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\Weight', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Json/JsonTest.php b/test/Json/JsonTest.php new file mode 100644 index 000000000..91ecd290f --- /dev/null +++ b/test/Json/JsonTest.php @@ -0,0 +1,58 @@ +assertEquals(false, isset($obj->foo)); + + $this->assertEquals(123, $obj->integer); + $this->assertEquals('<h1>Bits &amp; Bobs ©</h1><p>Just some &lt;stuff&gt; I found.&nbsp;&copy;</p>', $obj->string); + $this->assertEquals(123.45, $obj->double); + $this->assertEquals(true, $obj->booleanTrue); + $this->assertEquals(false, $obj->booleanFalse); + $this->assertEquals(new \DateTime('2000-01-01T16:15:30.123Z', new \DateTimeZone('UTC')), $obj->DateTime); + $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\SimpleClass', $obj->SimpleClass); + $this->assertEquals(321, $obj->SimpleClass->integer); + $this->assertEquals('another string', $obj->SimpleClass->string); + $this->assertEquals('foo', $obj->strings[0]); + $this->assertEquals('bar', $obj->strings[1]); + $this->assertEquals(1, $obj->integers[0]); + $this->assertEquals(2, $obj->integers[1]); + $this->assertEquals(3, $obj->integers[2]); + $this->assertEquals(4, $obj->integers[3]); + $this->assertEquals(5, $obj->integers[4]); + $this->assertEquals('bar', $obj->strings[1]); + $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\SimpleClass', $obj->simpleClasses[0]); + $this->assertEquals(888, $obj->simpleClasses[0]->integer); + $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\SimpleClass', $obj->simpleClasses[1]); + $this->assertEquals(999, $obj->simpleClasses[1]->integer); + $this->assertEquals(543.21, $obj->AmountClass->value); + $this->assertEquals('binary type', $obj->base64BinaryType->value); + $this->assertEquals(true, $obj->booleanType->value); + $this->assertEquals(123, $obj->decimalType->value); + $this->assertEquals(123.45, $obj->doubleType->value); + $this->assertEquals(123, $obj->integerType->value); + $this->assertEquals('string type', $obj->stringType->value); + $this->assertEquals('token type', $obj->tokenType->value); + $this->assertEquals('uri type', $obj->uriType->value); + $this->assertEquals(123, $obj->decimalTypePosInteger->value); + $this->assertEquals(123.45, $obj->decimalTypePosFloat->value); + $this->assertEquals(-123, $obj->decimalTypeNegInteger->value); + $this->assertEquals(-123.45, $obj->decimalTypeNegFloat->value); + $this->assertEquals(1, $obj->anyType); + $this->assertEquals(1, $obj->anyTypes[0]); + $this->assertEquals('foo', $obj->anyTypes[1]); + $this->assertEquals(1.23, $obj->anyTypes[2]); + $this->assertEquals(true, $obj->anyTypes[3]); + $this->assertEquals(false, $obj->anyTypes[4]); + $this->assertEquals([1, 2, 3], $obj->anyTypes[5]); + } +} diff --git a/test/Marketing/Enums/CampaignStatusEnumTest.php b/test/Marketing/Enums/CampaignStatusEnumTest.php new file mode 100644 index 000000000..035920e9c --- /dev/null +++ b/test/Marketing/Enums/CampaignStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new CampaignStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\CampaignStatusEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/CategoryScopeEnumTest.php b/test/Marketing/Enums/CategoryScopeEnumTest.php new file mode 100644 index 000000000..68ce4e2df --- /dev/null +++ b/test/Marketing/Enums/CategoryScopeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CategoryScopeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\CategoryScopeEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/CriterionTypeEnumTest.php b/test/Marketing/Enums/CriterionTypeEnumTest.php new file mode 100644 index 000000000..02e738bc4 --- /dev/null +++ b/test/Marketing/Enums/CriterionTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CriterionTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\CriterionTypeEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/CurrencyCodeEnumTest.php b/test/Marketing/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..6a01d64ce --- /dev/null +++ b/test/Marketing/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/FundingModelEnumTest.php b/test/Marketing/Enums/FundingModelEnumTest.php new file mode 100644 index 000000000..36fc4a2c9 --- /dev/null +++ b/test/Marketing/Enums/FundingModelEnumTest.php @@ -0,0 +1,28 @@ +obj = new FundingModelEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\FundingModelEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/InventoryCriterionEnumTest.php b/test/Marketing/Enums/InventoryCriterionEnumTest.php new file mode 100644 index 000000000..1c02c169e --- /dev/null +++ b/test/Marketing/Enums/InventoryCriterionEnumTest.php @@ -0,0 +1,28 @@ +obj = new InventoryCriterionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\InventoryCriterionEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/InventoryReferenceTypeEnumTest.php b/test/Marketing/Enums/InventoryReferenceTypeEnumTest.php new file mode 100644 index 000000000..c6097c416 --- /dev/null +++ b/test/Marketing/Enums/InventoryReferenceTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new InventoryReferenceTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\InventoryReferenceTypeEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/MarketplaceIdEnumTest.php b/test/Marketing/Enums/MarketplaceIdEnumTest.php new file mode 100644 index 000000000..906b163dc --- /dev/null +++ b/test/Marketing/Enums/MarketplaceIdEnumTest.php @@ -0,0 +1,28 @@ +obj = new MarketplaceIdEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\MarketplaceIdEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/PromotionPriorityEnumTest.php b/test/Marketing/Enums/PromotionPriorityEnumTest.php new file mode 100644 index 000000000..9d3cc8f0c --- /dev/null +++ b/test/Marketing/Enums/PromotionPriorityEnumTest.php @@ -0,0 +1,28 @@ +obj = new PromotionPriorityEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\PromotionPriorityEnum', $this->obj); + } +} diff --git a/test/Marketing/Enums/PromotionStatusEnumTest.php b/test/Marketing/Enums/PromotionStatusEnumTest.php new file mode 100644 index 000000000..5da3f3ba8 --- /dev/null +++ b/test/Marketing/Enums/PromotionStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new PromotionStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Enums\PromotionStatusEnum', $this->obj); + } +} diff --git a/test/Marketing/Mocks/Service.php b/test/Marketing/Mocks/Service.php new file mode 100644 index 000000000..c098c9547 --- /dev/null +++ b/test/Marketing/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Marketing/Services/ServiceTest.php b/test/Marketing/Services/ServiceTest.php new file mode 100644 index 000000000..eb27fd11f --- /dev/null +++ b/test/Marketing/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => MarketingService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(MarketingBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[MarketingBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(MarketingBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(MarketingBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[MarketingBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Marketing/Types/AdIdsTest.php b/test/Marketing/Types/AdIdsTest.php new file mode 100644 index 000000000..5e1c5301f --- /dev/null +++ b/test/Marketing/Types/AdIdsTest.php @@ -0,0 +1,33 @@ +obj = new AdIds(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdIds', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdPagedCollectionTest.php b/test/Marketing/Types/AdPagedCollectionTest.php new file mode 100644 index 000000000..063994639 --- /dev/null +++ b/test/Marketing/Types/AdPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new AdPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdReferenceTest.php b/test/Marketing/Types/AdReferenceTest.php new file mode 100644 index 000000000..5becafb77 --- /dev/null +++ b/test/Marketing/Types/AdReferenceTest.php @@ -0,0 +1,33 @@ +obj = new AdReference(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdReference', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdReferencesTest.php b/test/Marketing/Types/AdReferencesTest.php new file mode 100644 index 000000000..aaf9302b7 --- /dev/null +++ b/test/Marketing/Types/AdReferencesTest.php @@ -0,0 +1,33 @@ +obj = new AdReferences(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdReferences', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdResponseTest.php b/test/Marketing/Types/AdResponseTest.php new file mode 100644 index 000000000..ff108fec0 --- /dev/null +++ b/test/Marketing/Types/AdResponseTest.php @@ -0,0 +1,33 @@ +obj = new AdResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdTest.php b/test/Marketing/Types/AdTest.php new file mode 100644 index 000000000..51a957ddc --- /dev/null +++ b/test/Marketing/Types/AdTest.php @@ -0,0 +1,33 @@ +obj = new Ad(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Ad', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AdsTest.php b/test/Marketing/Types/AdsTest.php new file mode 100644 index 000000000..cc68fb202 --- /dev/null +++ b/test/Marketing/Types/AdsTest.php @@ -0,0 +1,33 @@ +obj = new Ads(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Ads', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/AmountTest.php b/test/Marketing/Types/AmountTest.php new file mode 100644 index 000000000..094b83a28 --- /dev/null +++ b/test/Marketing/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkAdResponseTest.php b/test/Marketing/Types/BulkAdResponseTest.php new file mode 100644 index 000000000..3268b39ea --- /dev/null +++ b/test/Marketing/Types/BulkAdResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkAdResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkAdResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdRequestTest.php b/test/Marketing/Types/BulkCreateAdRequestTest.php new file mode 100644 index 000000000..cab3bb9a7 --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRequestTest.php b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRequestTest.php new file mode 100644 index 000000000..3710a5b0b --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdsByInventoryReferenceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..8a7a87ae9 --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsBulkCreateAdsByInventoryReferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..bf118292c --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdsByListingIDRestRequestTest.php b/test/Marketing/Types/BulkCreateAdsByListingIDRestRequestTest.php new file mode 100644 index 000000000..5d72059ce --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdsByListingIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdsByListingIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestRequest', $this->obj); + } + + public function testExtendsBulkCreateAdRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkCreateAdsByListingIDRestResponseTest.php b/test/Marketing/Types/BulkCreateAdsByListingIDRestResponseTest.php new file mode 100644 index 000000000..f7e10b223 --- /dev/null +++ b/test/Marketing/Types/BulkCreateAdsByListingIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkCreateAdsByListingIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByListingIDRestResponse', $this->obj); + } + + public function testExtendsBulkAdResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkAdResponse', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdRequestTest.php b/test/Marketing/Types/BulkDeleteAdRequestTest.php new file mode 100644 index 000000000..e77aae2b0 --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdResponseTest.php b/test/Marketing/Types/BulkDeleteAdResponseTest.php new file mode 100644 index 000000000..bd34816a6 --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequestTest.php b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequestTest.php new file mode 100644 index 000000000..c66aa4ae2 --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdsByInventoryReferenceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..f0fa6c1a4 --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsBulkDeleteAdsByInventoryReferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..4a1a5c27c --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdsByListingIDRestRequestTest.php b/test/Marketing/Types/BulkDeleteAdsByListingIDRestRequestTest.php new file mode 100644 index 000000000..8d7f14768 --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdsByListingIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdsByListingIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestRequest', $this->obj); + } + + public function testExtendsBulkDeleteAdRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkDeleteAdsByListingIDRestResponseTest.php b/test/Marketing/Types/BulkDeleteAdsByListingIDRestResponseTest.php new file mode 100644 index 000000000..5c78fc99e --- /dev/null +++ b/test/Marketing/Types/BulkDeleteAdsByListingIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkDeleteAdsByListingIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdsByListingIDRestResponse', $this->obj); + } + + public function testExtendsBulkDeleteAdResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkDeleteAdResponse', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..24eb9d90f --- /dev/null +++ b/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdateAdBidsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsBulkCreateAdsByInventoryReferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdsByInventoryReferenceRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..b1c65163c --- /dev/null +++ b/test/Marketing/Types/BulkUpdateAdBidsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdateAdBidsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequestTest.php b/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequestTest.php new file mode 100644 index 000000000..e26b89c15 --- /dev/null +++ b/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdateAdBidsByListingIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestRequest', $this->obj); + } + + public function testExtendsBulkCreateAdRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkCreateAdRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponseTest.php b/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponseTest.php new file mode 100644 index 000000000..49790dc1f --- /dev/null +++ b/test/Marketing/Types/BulkUpdateAdBidsByListingIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new BulkUpdateAdBidsByListingIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkUpdateAdBidsByListingIDRestResponse', $this->obj); + } + + public function testExtendsBulkAdResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\BulkAdResponse', $this->obj); + } +} diff --git a/test/Marketing/Types/CampaignCriterionTest.php b/test/Marketing/Types/CampaignCriterionTest.php new file mode 100644 index 000000000..a900d7595 --- /dev/null +++ b/test/Marketing/Types/CampaignCriterionTest.php @@ -0,0 +1,33 @@ +obj = new CampaignCriterion(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CampaignCriterion', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CampaignPagedCollectionTest.php b/test/Marketing/Types/CampaignPagedCollectionTest.php new file mode 100644 index 000000000..b795423b2 --- /dev/null +++ b/test/Marketing/Types/CampaignPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new CampaignPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CampaignPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CampaignTest.php b/test/Marketing/Types/CampaignTest.php new file mode 100644 index 000000000..87cd21c2d --- /dev/null +++ b/test/Marketing/Types/CampaignTest.php @@ -0,0 +1,33 @@ +obj = new Campaign(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Campaign', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CampaignsTest.php b/test/Marketing/Types/CampaignsTest.php new file mode 100644 index 000000000..fb28f9772 --- /dev/null +++ b/test/Marketing/Types/CampaignsTest.php @@ -0,0 +1,33 @@ +obj = new Campaigns(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Campaigns', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CloneCampaignRequestTest.php b/test/Marketing/Types/CloneCampaignRequestTest.php new file mode 100644 index 000000000..5104965ec --- /dev/null +++ b/test/Marketing/Types/CloneCampaignRequestTest.php @@ -0,0 +1,33 @@ +obj = new CloneCampaignRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CloneCampaignRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CloneCampaignRestRequestTest.php b/test/Marketing/Types/CloneCampaignRestRequestTest.php new file mode 100644 index 000000000..41e514289 --- /dev/null +++ b/test/Marketing/Types/CloneCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CloneCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CloneCampaignRestRequest', $this->obj); + } + + public function testExtendsCloneCampaignRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CloneCampaignRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/CloneCampaignRestResponseTest.php b/test/Marketing/Types/CloneCampaignRestResponseTest.php new file mode 100644 index 000000000..137233f3d --- /dev/null +++ b/test/Marketing/Types/CloneCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CloneCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CloneCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdByListingIDRestRequestTest.php b/test/Marketing/Types/CreateAdByListingIDRestRequestTest.php new file mode 100644 index 000000000..1b98a31e8 --- /dev/null +++ b/test/Marketing/Types/CreateAdByListingIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdByListingIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestRequest', $this->obj); + } + + public function testExtendsCreateAdRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdByListingIDRestResponseTest.php b/test/Marketing/Types/CreateAdByListingIDRestResponseTest.php new file mode 100644 index 000000000..30d3aa4cf --- /dev/null +++ b/test/Marketing/Types/CreateAdByListingIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdByListingIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdByListingIDRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdRequestTest.php b/test/Marketing/Types/CreateAdRequestTest.php new file mode 100644 index 000000000..74409787c --- /dev/null +++ b/test/Marketing/Types/CreateAdRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdsByInventoryReferenceRequestTest.php b/test/Marketing/Types/CreateAdsByInventoryReferenceRequestTest.php new file mode 100644 index 000000000..a0f51b5c0 --- /dev/null +++ b/test/Marketing/Types/CreateAdsByInventoryReferenceRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdsByInventoryReferenceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/CreateAdsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..bf01f0ae6 --- /dev/null +++ b/test/Marketing/Types/CreateAdsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsCreateAdsByInventoryReferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateAdsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/CreateAdsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..5555d7d0a --- /dev/null +++ b/test/Marketing/Types/CreateAdsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateAdsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateAdsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsAdReferences() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdReferences', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateCampaignRequestTest.php b/test/Marketing/Types/CreateCampaignRequestTest.php new file mode 100644 index 000000000..660d73c61 --- /dev/null +++ b/test/Marketing/Types/CreateCampaignRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateCampaignRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateCampaignRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateCampaignRestRequestTest.php b/test/Marketing/Types/CreateCampaignRestRequestTest.php new file mode 100644 index 000000000..41f07c39f --- /dev/null +++ b/test/Marketing/Types/CreateCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateCampaignRestRequest', $this->obj); + } + + public function testExtendsCreateCampaignRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateCampaignRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateCampaignRestResponseTest.php b/test/Marketing/Types/CreateCampaignRestResponseTest.php new file mode 100644 index 000000000..2f6c934d6 --- /dev/null +++ b/test/Marketing/Types/CreateCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateItemPromotionRestRequestTest.php b/test/Marketing/Types/CreateItemPromotionRestRequestTest.php new file mode 100644 index 000000000..049614bb6 --- /dev/null +++ b/test/Marketing/Types/CreateItemPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateItemPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestRequest', $this->obj); + } + + public function testExtendsItemPromotion() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ItemPromotion', $this->obj); + } +} diff --git a/test/Marketing/Types/CreateItemPromotionRestResponseTest.php b/test/Marketing/Types/CreateItemPromotionRestResponseTest.php new file mode 100644 index 000000000..e3ef65a40 --- /dev/null +++ b/test/Marketing/Types/CreateItemPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateItemPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CreateItemPromotionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdByIDRestRequestTest.php b/test/Marketing/Types/DeleteAdByIDRestRequestTest.php new file mode 100644 index 000000000..7e1de950b --- /dev/null +++ b/test/Marketing/Types/DeleteAdByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdByIDRestResponseTest.php b/test/Marketing/Types/DeleteAdByIDRestResponseTest.php new file mode 100644 index 000000000..9b30c18dc --- /dev/null +++ b/test/Marketing/Types/DeleteAdByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdByIDRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdRequestTest.php b/test/Marketing/Types/DeleteAdRequestTest.php new file mode 100644 index 000000000..55645bf76 --- /dev/null +++ b/test/Marketing/Types/DeleteAdRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdResponseTest.php b/test/Marketing/Types/DeleteAdResponseTest.php new file mode 100644 index 000000000..93a9fca40 --- /dev/null +++ b/test/Marketing/Types/DeleteAdResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdsByInventoryReferenceRequestTest.php b/test/Marketing/Types/DeleteAdsByInventoryReferenceRequestTest.php new file mode 100644 index 000000000..922952a3d --- /dev/null +++ b/test/Marketing/Types/DeleteAdsByInventoryReferenceRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdsByInventoryReferenceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/DeleteAdsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..8fabb91c4 --- /dev/null +++ b/test/Marketing/Types/DeleteAdsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsDeleteAdsByInventoryReferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteAdsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/DeleteAdsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..f249dec8e --- /dev/null +++ b/test/Marketing/Types/DeleteAdsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteAdsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteAdsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsAdIds() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdIds', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteCampaignRestRequestTest.php b/test/Marketing/Types/DeleteCampaignRestRequestTest.php new file mode 100644 index 000000000..a735c0e54 --- /dev/null +++ b/test/Marketing/Types/DeleteCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteCampaignRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteCampaignRestResponseTest.php b/test/Marketing/Types/DeleteCampaignRestResponseTest.php new file mode 100644 index 000000000..249042103 --- /dev/null +++ b/test/Marketing/Types/DeleteCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteItemPromotionRestRequestTest.php b/test/Marketing/Types/DeleteItemPromotionRestRequestTest.php new file mode 100644 index 000000000..242355a1a --- /dev/null +++ b/test/Marketing/Types/DeleteItemPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteItemPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DeleteItemPromotionRestResponseTest.php b/test/Marketing/Types/DeleteItemPromotionRestResponseTest.php new file mode 100644 index 000000000..e67dac090 --- /dev/null +++ b/test/Marketing/Types/DeleteItemPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteItemPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DeleteItemPromotionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DiscountBenefitTest.php b/test/Marketing/Types/DiscountBenefitTest.php new file mode 100644 index 000000000..f3035bf97 --- /dev/null +++ b/test/Marketing/Types/DiscountBenefitTest.php @@ -0,0 +1,33 @@ +obj = new DiscountBenefit(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DiscountBenefit', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DiscountRuleTest.php b/test/Marketing/Types/DiscountRuleTest.php new file mode 100644 index 000000000..537265373 --- /dev/null +++ b/test/Marketing/Types/DiscountRuleTest.php @@ -0,0 +1,33 @@ +obj = new DiscountRule(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DiscountRule', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/DiscountSpecificationTest.php b/test/Marketing/Types/DiscountSpecificationTest.php new file mode 100644 index 000000000..2040ed845 --- /dev/null +++ b/test/Marketing/Types/DiscountSpecificationTest.php @@ -0,0 +1,33 @@ +obj = new DiscountSpecification(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\DiscountSpecification', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/EndCampaignRestRequestTest.php b/test/Marketing/Types/EndCampaignRestRequestTest.php new file mode 100644 index 000000000..014a55fcf --- /dev/null +++ b/test/Marketing/Types/EndCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new EndCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\EndCampaignRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/EndCampaignRestResponseTest.php b/test/Marketing/Types/EndCampaignRestResponseTest.php new file mode 100644 index 000000000..fb6ecae29 --- /dev/null +++ b/test/Marketing/Types/EndCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new EndCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\EndCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ErrorDetailV3Test.php b/test/Marketing/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..4a48dd183 --- /dev/null +++ b/test/Marketing/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ErrorParameterV3Test.php b/test/Marketing/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..ca0a64d87 --- /dev/null +++ b/test/Marketing/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/FindCampaignByAdReferenceRestRequestTest.php b/test/Marketing/Types/FindCampaignByAdReferenceRestRequestTest.php new file mode 100644 index 000000000..a6d17c5bb --- /dev/null +++ b/test/Marketing/Types/FindCampaignByAdReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new FindCampaignByAdReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/FindCampaignByAdReferenceRestResponseTest.php b/test/Marketing/Types/FindCampaignByAdReferenceRestResponseTest.php new file mode 100644 index 000000000..44f05a89e --- /dev/null +++ b/test/Marketing/Types/FindCampaignByAdReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindCampaignByAdReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\FindCampaignByAdReferenceRestResponse', $this->obj); + } + + public function testExtendsCampaigns() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Campaigns', $this->obj); + } +} diff --git a/test/Marketing/Types/FundingStrategyTest.php b/test/Marketing/Types/FundingStrategyTest.php new file mode 100644 index 000000000..f9bafd3fd --- /dev/null +++ b/test/Marketing/Types/FundingStrategyTest.php @@ -0,0 +1,33 @@ +obj = new FundingStrategy(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\FundingStrategy', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdByIDRestRequestTest.php b/test/Marketing/Types/GetAdByIDRestRequestTest.php new file mode 100644 index 000000000..abfde8c80 --- /dev/null +++ b/test/Marketing/Types/GetAdByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAdByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdByIDRestResponseTest.php b/test/Marketing/Types/GetAdByIDRestResponseTest.php new file mode 100644 index 000000000..ad870082e --- /dev/null +++ b/test/Marketing/Types/GetAdByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAdByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdByIDRestResponse', $this->obj); + } + + public function testExtendsAd() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Ad', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdsByInventoryReferenceRestRequestTest.php b/test/Marketing/Types/GetAdsByInventoryReferenceRestRequestTest.php new file mode 100644 index 000000000..2f989fafa --- /dev/null +++ b/test/Marketing/Types/GetAdsByInventoryReferenceRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAdsByInventoryReferenceRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdsByInventoryReferenceRestResponseTest.php b/test/Marketing/Types/GetAdsByInventoryReferenceRestResponseTest.php new file mode 100644 index 000000000..84d44c95b --- /dev/null +++ b/test/Marketing/Types/GetAdsByInventoryReferenceRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAdsByInventoryReferenceRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdsByInventoryReferenceRestResponse', $this->obj); + } + + public function testExtendsAds() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Ads', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdsRestRequestTest.php b/test/Marketing/Types/GetAdsRestRequestTest.php new file mode 100644 index 000000000..f2cde11ed --- /dev/null +++ b/test/Marketing/Types/GetAdsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAdsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAdsRestResponseTest.php b/test/Marketing/Types/GetAdsRestResponseTest.php new file mode 100644 index 000000000..4c0d0aef3 --- /dev/null +++ b/test/Marketing/Types/GetAdsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAdsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAdsRestResponse', $this->obj); + } + + public function testExtendsAdPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\AdPagedCollection', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAllCampaignsRestRequestTest.php b/test/Marketing/Types/GetAllCampaignsRestRequestTest.php new file mode 100644 index 000000000..c4c11ada6 --- /dev/null +++ b/test/Marketing/Types/GetAllCampaignsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetAllCampaignsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetAllCampaignsRestResponseTest.php b/test/Marketing/Types/GetAllCampaignsRestResponseTest.php new file mode 100644 index 000000000..e75552fdf --- /dev/null +++ b/test/Marketing/Types/GetAllCampaignsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetAllCampaignsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetAllCampaignsRestResponse', $this->obj); + } + + public function testExtendsCampaignPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\CampaignPagedCollection', $this->obj); + } +} diff --git a/test/Marketing/Types/GetCampaignByIDRestRequestTest.php b/test/Marketing/Types/GetCampaignByIDRestRequestTest.php new file mode 100644 index 000000000..8b0cf8184 --- /dev/null +++ b/test/Marketing/Types/GetCampaignByIDRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCampaignByIDRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetCampaignByIDRestResponseTest.php b/test/Marketing/Types/GetCampaignByIDRestResponseTest.php new file mode 100644 index 000000000..b41f472ee --- /dev/null +++ b/test/Marketing/Types/GetCampaignByIDRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCampaignByIDRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetCampaignByIDRestResponse', $this->obj); + } + + public function testExtendsCampaign() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Campaign', $this->obj); + } +} diff --git a/test/Marketing/Types/GetCampaignByNameRestRequestTest.php b/test/Marketing/Types/GetCampaignByNameRestRequestTest.php new file mode 100644 index 000000000..fb5d162d8 --- /dev/null +++ b/test/Marketing/Types/GetCampaignByNameRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCampaignByNameRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetCampaignByNameRestResponseTest.php b/test/Marketing/Types/GetCampaignByNameRestResponseTest.php new file mode 100644 index 000000000..96d3422e0 --- /dev/null +++ b/test/Marketing/Types/GetCampaignByNameRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCampaignByNameRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetCampaignByNameRestResponse', $this->obj); + } + + public function testExtendsCampaign() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\Campaign', $this->obj); + } +} diff --git a/test/Marketing/Types/GetItemPromotionRestRequestTest.php b/test/Marketing/Types/GetItemPromotionRestRequestTest.php new file mode 100644 index 000000000..efa7ec4ec --- /dev/null +++ b/test/Marketing/Types/GetItemPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetItemPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetItemPromotionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetItemPromotionRestResponseTest.php b/test/Marketing/Types/GetItemPromotionRestResponseTest.php new file mode 100644 index 000000000..e1ab05987 --- /dev/null +++ b/test/Marketing/Types/GetItemPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetItemPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetItemPromotionRestResponse', $this->obj); + } + + public function testExtendsItemPromotionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ItemPromotionResponse', $this->obj); + } +} diff --git a/test/Marketing/Types/GetPromotionSummaryReportRestRequestTest.php b/test/Marketing/Types/GetPromotionSummaryReportRestRequestTest.php new file mode 100644 index 000000000..3e68af669 --- /dev/null +++ b/test/Marketing/Types/GetPromotionSummaryReportRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetPromotionSummaryReportRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetPromotionSummaryReportRestResponseTest.php b/test/Marketing/Types/GetPromotionSummaryReportRestResponseTest.php new file mode 100644 index 000000000..262caac8a --- /dev/null +++ b/test/Marketing/Types/GetPromotionSummaryReportRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetPromotionSummaryReportRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetPromotionSummaryReportRestResponse', $this->obj); + } + + public function testExtendsSummaryReportResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\SummaryReportResponse', $this->obj); + } +} diff --git a/test/Marketing/Types/GetPromotionsRestRequestTest.php b/test/Marketing/Types/GetPromotionsRestRequestTest.php new file mode 100644 index 000000000..9990109f4 --- /dev/null +++ b/test/Marketing/Types/GetPromotionsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetPromotionsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetPromotionsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/GetPromotionsRestResponseTest.php b/test/Marketing/Types/GetPromotionsRestResponseTest.php new file mode 100644 index 000000000..be2a4b51c --- /dev/null +++ b/test/Marketing/Types/GetPromotionsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetPromotionsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\GetPromotionsRestResponse', $this->obj); + } + + public function testExtendsPromotionsPagedCollection() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PromotionsPagedCollection', $this->obj); + } +} diff --git a/test/Marketing/Types/InventoryCriterionTest.php b/test/Marketing/Types/InventoryCriterionTest.php new file mode 100644 index 000000000..5cd34975c --- /dev/null +++ b/test/Marketing/Types/InventoryCriterionTest.php @@ -0,0 +1,33 @@ +obj = new InventoryCriterion(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\InventoryCriterion', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/InventoryItemTest.php b/test/Marketing/Types/InventoryItemTest.php new file mode 100644 index 000000000..9e054fe87 --- /dev/null +++ b/test/Marketing/Types/InventoryItemTest.php @@ -0,0 +1,33 @@ +obj = new InventoryItem(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\InventoryItem', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ItemPromotionResponseTest.php b/test/Marketing/Types/ItemPromotionResponseTest.php new file mode 100644 index 000000000..fec70c4b0 --- /dev/null +++ b/test/Marketing/Types/ItemPromotionResponseTest.php @@ -0,0 +1,33 @@ +obj = new ItemPromotionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ItemPromotionResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ItemPromotionTest.php b/test/Marketing/Types/ItemPromotionTest.php new file mode 100644 index 000000000..1343f653e --- /dev/null +++ b/test/Marketing/Types/ItemPromotionTest.php @@ -0,0 +1,33 @@ +obj = new ItemPromotion(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ItemPromotion', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PauseAPromotionRestRequestTest.php b/test/Marketing/Types/PauseAPromotionRestRequestTest.php new file mode 100644 index 000000000..f1e48f8f1 --- /dev/null +++ b/test/Marketing/Types/PauseAPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PauseAPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PauseAPromotionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PauseAPromotionRestResponseTest.php b/test/Marketing/Types/PauseAPromotionRestResponseTest.php new file mode 100644 index 000000000..b0c15f03c --- /dev/null +++ b/test/Marketing/Types/PauseAPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PauseAPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PauseAPromotionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PauseCampaignRestRequestTest.php b/test/Marketing/Types/PauseCampaignRestRequestTest.php new file mode 100644 index 000000000..16743b6e0 --- /dev/null +++ b/test/Marketing/Types/PauseCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PauseCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PauseCampaignRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PauseCampaignRestResponseTest.php b/test/Marketing/Types/PauseCampaignRestResponseTest.php new file mode 100644 index 000000000..b9856e389 --- /dev/null +++ b/test/Marketing/Types/PauseCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PauseCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PauseCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PromotionDetailTest.php b/test/Marketing/Types/PromotionDetailTest.php new file mode 100644 index 000000000..a41f039bf --- /dev/null +++ b/test/Marketing/Types/PromotionDetailTest.php @@ -0,0 +1,33 @@ +obj = new PromotionDetail(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PromotionDetail', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/PromotionsPagedCollectionTest.php b/test/Marketing/Types/PromotionsPagedCollectionTest.php new file mode 100644 index 000000000..f0eb6fd0c --- /dev/null +++ b/test/Marketing/Types/PromotionsPagedCollectionTest.php @@ -0,0 +1,33 @@ +obj = new PromotionsPagedCollection(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\PromotionsPagedCollection', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ResumeAPromotionRestRequestTest.php b/test/Marketing/Types/ResumeAPromotionRestRequestTest.php new file mode 100644 index 000000000..e6ea4d780 --- /dev/null +++ b/test/Marketing/Types/ResumeAPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ResumeAPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ResumeAPromotionRestResponseTest.php b/test/Marketing/Types/ResumeAPromotionRestResponseTest.php new file mode 100644 index 000000000..0492dfc68 --- /dev/null +++ b/test/Marketing/Types/ResumeAPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ResumeAPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ResumeAPromotionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ResumeCampaignRestRequestTest.php b/test/Marketing/Types/ResumeCampaignRestRequestTest.php new file mode 100644 index 000000000..106adb5f6 --- /dev/null +++ b/test/Marketing/Types/ResumeCampaignRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ResumeCampaignRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ResumeCampaignRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/ResumeCampaignRestResponseTest.php b/test/Marketing/Types/ResumeCampaignRestResponseTest.php new file mode 100644 index 000000000..df7672d52 --- /dev/null +++ b/test/Marketing/Types/ResumeCampaignRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ResumeCampaignRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ResumeCampaignRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/SelectionRuleTest.php b/test/Marketing/Types/SelectionRuleTest.php new file mode 100644 index 000000000..bae1333be --- /dev/null +++ b/test/Marketing/Types/SelectionRuleTest.php @@ -0,0 +1,33 @@ +obj = new SelectionRule(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\SelectionRule', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/SortFieldTest.php b/test/Marketing/Types/SortFieldTest.php new file mode 100644 index 000000000..3e631e25c --- /dev/null +++ b/test/Marketing/Types/SortFieldTest.php @@ -0,0 +1,33 @@ +obj = new SortField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\SortField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/SummaryReportResponseTest.php b/test/Marketing/Types/SummaryReportResponseTest.php new file mode 100644 index 000000000..306007287 --- /dev/null +++ b/test/Marketing/Types/SummaryReportResponseTest.php @@ -0,0 +1,33 @@ +obj = new SummaryReportResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\SummaryReportResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateBidPercentageRequestTest.php b/test/Marketing/Types/UpdateBidPercentageRequestTest.php new file mode 100644 index 000000000..ec821da5c --- /dev/null +++ b/test/Marketing/Types/UpdateBidPercentageRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBidPercentageRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateBidPercentageRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateBidRestRequestTest.php b/test/Marketing/Types/UpdateBidRestRequestTest.php new file mode 100644 index 000000000..c542eff7a --- /dev/null +++ b/test/Marketing/Types/UpdateBidRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBidRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateBidRestRequest', $this->obj); + } + + public function testExtendsUpdateBidPercentageRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateBidPercentageRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateBidRestResponseTest.php b/test/Marketing/Types/UpdateBidRestResponseTest.php new file mode 100644 index 000000000..97adb394f --- /dev/null +++ b/test/Marketing/Types/UpdateBidRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBidRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateBidRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateCampaignIDentificationRestRequestTest.php b/test/Marketing/Types/UpdateCampaignIDentificationRestRequestTest.php new file mode 100644 index 000000000..434b5ed86 --- /dev/null +++ b/test/Marketing/Types/UpdateCampaignIDentificationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateCampaignIDentificationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestRequest', $this->obj); + } + + public function testExtendsUpdateCampaignIdentificationRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateCampaignIdentificationRequest', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateCampaignIDentificationRestResponseTest.php b/test/Marketing/Types/UpdateCampaignIDentificationRestResponseTest.php new file mode 100644 index 000000000..bb90b5865 --- /dev/null +++ b/test/Marketing/Types/UpdateCampaignIDentificationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateCampaignIDentificationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateCampaignIDentificationRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateCampaignIdentificationRequestTest.php b/test/Marketing/Types/UpdateCampaignIdentificationRequestTest.php new file mode 100644 index 000000000..6477f0c37 --- /dev/null +++ b/test/Marketing/Types/UpdateCampaignIdentificationRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateCampaignIdentificationRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateCampaignIdentificationRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateItemPromotionRestRequestTest.php b/test/Marketing/Types/UpdateItemPromotionRestRequestTest.php new file mode 100644 index 000000000..e8e6e8520 --- /dev/null +++ b/test/Marketing/Types/UpdateItemPromotionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateItemPromotionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestRequest', $this->obj); + } + + public function testExtendsItemPromotion() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\ItemPromotion', $this->obj); + } +} diff --git a/test/Marketing/Types/UpdateItemPromotionRestResponseTest.php b/test/Marketing/Types/UpdateItemPromotionRestResponseTest.php new file mode 100644 index 000000000..226341d81 --- /dev/null +++ b/test/Marketing/Types/UpdateItemPromotionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateItemPromotionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Types\UpdateItemPromotionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Enums/AckValueTest.php b/test/Merchandising/Enums/AckValueTest.php new file mode 100644 index 000000000..1d2e8cc8f --- /dev/null +++ b/test/Merchandising/Enums/AckValueTest.php @@ -0,0 +1,28 @@ +obj = new AckValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Enums\AckValue', $this->obj); + } +} diff --git a/test/Merchandising/Enums/ErrorCategoryTest.php b/test/Merchandising/Enums/ErrorCategoryTest.php new file mode 100644 index 000000000..e79d3103f --- /dev/null +++ b/test/Merchandising/Enums/ErrorCategoryTest.php @@ -0,0 +1,28 @@ +obj = new ErrorCategory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Enums\ErrorCategory', $this->obj); + } +} diff --git a/test/Merchandising/Enums/ErrorSeverityTest.php b/test/Merchandising/Enums/ErrorSeverityTest.php new file mode 100644 index 000000000..3f0e5c51b --- /dev/null +++ b/test/Merchandising/Enums/ErrorSeverityTest.php @@ -0,0 +1,28 @@ +obj = new ErrorSeverity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Enums\ErrorSeverity', $this->obj); + } +} diff --git a/test/Merchandising/Enums/ItemFilterTypeTest.php b/test/Merchandising/Enums/ItemFilterTypeTest.php new file mode 100644 index 000000000..76a3d955b --- /dev/null +++ b/test/Merchandising/Enums/ItemFilterTypeTest.php @@ -0,0 +1,28 @@ +obj = new ItemFilterType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Enums\ItemFilterType', $this->obj); + } +} diff --git a/test/Merchandising/Enums/PriceTreatmentEnumTest.php b/test/Merchandising/Enums/PriceTreatmentEnumTest.php new file mode 100644 index 000000000..7e742e487 --- /dev/null +++ b/test/Merchandising/Enums/PriceTreatmentEnumTest.php @@ -0,0 +1,28 @@ +obj = new PriceTreatmentEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Enums\PriceTreatmentEnum', $this->obj); + } +} diff --git a/test/Merchandising/Mocks/Service.php b/test/Merchandising/Mocks/Service.php new file mode 100644 index 000000000..fcae08ca4 --- /dev/null +++ b/test/Merchandising/Mocks/Service.php @@ -0,0 +1,21 @@ +callOperationAsync( + 'testOperation', + new ComplexClass(), + '\DTS\eBaySDK\Test\Mocks\ComplexClass' + )->wait(); + } +} diff --git a/test/Merchandising/Services/ServiceTest.php b/test/Merchandising/Services/ServiceTest.php new file mode 100644 index 000000000..eb94a4e6a --- /dev/null +++ b/test/Merchandising/Services/ServiceTest.php @@ -0,0 +1,71 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => MerchandisingService::API_VERSION + ], $d['apiVersion']); + + $this->assertArrayHasKey('globalId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['globalId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'credentials' => ['appId' => '321', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(MerchandisingBaseService::HDR_APP_ID, $h->headers); + $this->assertEquals('321', $h->headers[MerchandisingBaseService::HDR_APP_ID]); + + $this->assertArrayHasKey(MerchandisingBaseService::HDR_OPERATION_NAME, $h->headers); + $this->assertEquals('testOperation', $h->headers[MerchandisingBaseService::HDR_OPERATION_NAME]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayHasKey(MerchandisingBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals(MerchandisingService::API_VERSION, $h->headers[MerchandisingBaseService::HDR_API_VERSION]); + + $this->assertArrayNotHasKey(MerchandisingBaseService::HDR_GLOBAL_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'apiVersion' => '123', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'globalId' => '999', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(MerchandisingBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals('123', $h->headers[MerchandisingBaseService::HDR_API_VERSION]); + + $this->assertArrayHasKey(MerchandisingBaseService::HDR_GLOBAL_ID, $h->headers); + $this->assertEquals('999', $h->headers[MerchandisingBaseService::HDR_GLOBAL_ID]); + } +} diff --git a/test/Merchandising/Types/AffiliateTest.php b/test/Merchandising/Types/AffiliateTest.php new file mode 100644 index 000000000..2e335c1bf --- /dev/null +++ b/test/Merchandising/Types/AffiliateTest.php @@ -0,0 +1,33 @@ +obj = new Affiliate(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\Affiliate', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/AmountTest.php b/test/Merchandising/Types/AmountTest.php new file mode 100644 index 000000000..0024de960 --- /dev/null +++ b/test/Merchandising/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\Amount', $this->obj); + } + + public function testExtendsDoubleType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\DoubleType', $this->obj); + } +} diff --git a/test/Merchandising/Types/BaseMerchandisingServiceRequestTest.php b/test/Merchandising/Types/BaseMerchandisingServiceRequestTest.php new file mode 100644 index 000000000..01085e53a --- /dev/null +++ b/test/Merchandising/Types/BaseMerchandisingServiceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseMerchandisingServiceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/BaseMerchandisingServiceResponseTest.php b/test/Merchandising/Types/BaseMerchandisingServiceResponseTest.php new file mode 100644 index 000000000..84db5b6e4 --- /dev/null +++ b/test/Merchandising/Types/BaseMerchandisingServiceResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseMerchandisingServiceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Merchandising/Types/BaseServiceRequestTest.php b/test/Merchandising/Types/BaseServiceRequestTest.php new file mode 100644 index 000000000..f1df9250a --- /dev/null +++ b/test/Merchandising/Types/BaseServiceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/BaseServiceResponseTest.php b/test/Merchandising/Types/BaseServiceResponseTest.php new file mode 100644 index 000000000..78127fcd2 --- /dev/null +++ b/test/Merchandising/Types/BaseServiceResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/DiscountPriceInfoTest.php b/test/Merchandising/Types/DiscountPriceInfoTest.php new file mode 100644 index 000000000..85964febb --- /dev/null +++ b/test/Merchandising/Types/DiscountPriceInfoTest.php @@ -0,0 +1,33 @@ +obj = new DiscountPriceInfo(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\DiscountPriceInfo', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ErrorDataTest.php b/test/Merchandising/Types/ErrorDataTest.php new file mode 100644 index 000000000..caa116486 --- /dev/null +++ b/test/Merchandising/Types/ErrorDataTest.php @@ -0,0 +1,33 @@ +obj = new ErrorData(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ErrorData', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ErrorMessageTest.php b/test/Merchandising/Types/ErrorMessageTest.php new file mode 100644 index 000000000..b33adcafc --- /dev/null +++ b/test/Merchandising/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ErrorParameterTest.php b/test/Merchandising/Types/ErrorParameterTest.php new file mode 100644 index 000000000..46c0a11f5 --- /dev/null +++ b/test/Merchandising/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ErrorParameter', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetDealsRequestTest.php b/test/Merchandising/Types/GetDealsRequestTest.php new file mode 100644 index 000000000..19a8691a0 --- /dev/null +++ b/test/Merchandising/Types/GetDealsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetDealsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetDealsRequest', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetMostWatchedItemsRequestTest.php b/test/Merchandising/Types/GetMostWatchedItemsRequestTest.php new file mode 100644 index 000000000..75760dafd --- /dev/null +++ b/test/Merchandising/Types/GetMostWatchedItemsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetMostWatchedItemsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetMostWatchedItemsRequest', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetRelatedCategoryItemsRequestTest.php b/test/Merchandising/Types/GetRelatedCategoryItemsRequestTest.php new file mode 100644 index 000000000..539c89fe3 --- /dev/null +++ b/test/Merchandising/Types/GetRelatedCategoryItemsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetRelatedCategoryItemsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetRelatedCategoryItemsRequest', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetSimilarItemsRequestTest.php b/test/Merchandising/Types/GetSimilarItemsRequestTest.php new file mode 100644 index 000000000..b612863cb --- /dev/null +++ b/test/Merchandising/Types/GetSimilarItemsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetSimilarItemsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetSimilarItemsRequest', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetTopSellingProductsRequestTest.php b/test/Merchandising/Types/GetTopSellingProductsRequestTest.php new file mode 100644 index 000000000..16bfcbe11 --- /dev/null +++ b/test/Merchandising/Types/GetTopSellingProductsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetTopSellingProductsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetTopSellingProductsRequest', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetVersionRequestTest.php b/test/Merchandising/Types/GetVersionRequestTest.php new file mode 100644 index 000000000..2df0b3b93 --- /dev/null +++ b/test/Merchandising/Types/GetVersionRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetVersionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetVersionRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Merchandising/Types/GetVersionResponseTest.php b/test/Merchandising/Types/GetVersionResponseTest.php new file mode 100644 index 000000000..57a4a6dd3 --- /dev/null +++ b/test/Merchandising/Types/GetVersionResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetVersionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\GetVersionResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Merchandising/Types/ItemFilterTest.php b/test/Merchandising/Types/ItemFilterTest.php new file mode 100644 index 000000000..e2b47d084 --- /dev/null +++ b/test/Merchandising/Types/ItemFilterTest.php @@ -0,0 +1,33 @@ +obj = new ItemFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ItemFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ItemRecommendationsTest.php b/test/Merchandising/Types/ItemRecommendationsTest.php new file mode 100644 index 000000000..3b06f59fd --- /dev/null +++ b/test/Merchandising/Types/ItemRecommendationsTest.php @@ -0,0 +1,33 @@ +obj = new ItemRecommendations(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ItemRecommendations', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ItemTest.php b/test/Merchandising/Types/ItemTest.php new file mode 100644 index 000000000..d80de0e75 --- /dev/null +++ b/test/Merchandising/Types/ItemTest.php @@ -0,0 +1,33 @@ +obj = new Item(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\Item', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/MerchandisingServiceItemResponseTest.php b/test/Merchandising/Types/MerchandisingServiceItemResponseTest.php new file mode 100644 index 000000000..047712603 --- /dev/null +++ b/test/Merchandising/Types/MerchandisingServiceItemResponseTest.php @@ -0,0 +1,33 @@ +obj = new MerchandisingServiceItemResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceItemResponse', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceResponse', $this->obj); + } +} diff --git a/test/Merchandising/Types/MerchandisingServiceProductResponseTest.php b/test/Merchandising/Types/MerchandisingServiceProductResponseTest.php new file mode 100644 index 000000000..9df7df6db --- /dev/null +++ b/test/Merchandising/Types/MerchandisingServiceProductResponseTest.php @@ -0,0 +1,33 @@ +obj = new MerchandisingServiceProductResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\MerchandisingServiceProductResponse', $this->obj); + } + + public function testExtendsBaseMerchandisingServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\BaseMerchandisingServiceResponse', $this->obj); + } +} diff --git a/test/Merchandising/Types/ProductIdTest.php b/test/Merchandising/Types/ProductIdTest.php new file mode 100644 index 000000000..2dadb9077 --- /dev/null +++ b/test/Merchandising/Types/ProductIdTest.php @@ -0,0 +1,33 @@ +obj = new ProductId(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ProductId', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ProductRecommendationsTest.php b/test/Merchandising/Types/ProductRecommendationsTest.php new file mode 100644 index 000000000..fbb18c7e9 --- /dev/null +++ b/test/Merchandising/Types/ProductRecommendationsTest.php @@ -0,0 +1,33 @@ +obj = new ProductRecommendations(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\ProductRecommendations', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Merchandising/Types/ProductTest.php b/test/Merchandising/Types/ProductTest.php new file mode 100644 index 000000000..62785752d --- /dev/null +++ b/test/Merchandising/Types/ProductTest.php @@ -0,0 +1,33 @@ +obj = new Product(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Types\Product', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/MerchantData/Enums/AckCodeTypeTest.php b/test/MerchantData/Enums/AckCodeTypeTest.php index ddbd7591c..6996304de 100644 --- a/test/MerchantData/Enums/AckCodeTypeTest.php +++ b/test/MerchantData/Enums/AckCodeTypeTest.php @@ -1,8 +1,11 @@ merchantData = new MerchantData(); diff --git a/test/MerchantData/Types/AbstractRequestTypeTest.php b/test/MerchantData/Types/AbstractRequestTypeTest.php index 90b53f983..3a77951db 100644 --- a/test/MerchantData/Types/AbstractRequestTypeTest.php +++ b/test/MerchantData/Types/AbstractRequestTypeTest.php @@ -1,8 +1,11 @@ obj = new CustomSecurityHeaderType(); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\MerchantData\Types\CustomSecurityHeaderType', $this->obj); - } - - public function testExtendsBaseType() - { - $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); - } -} diff --git a/test/MerchantData/Types/DeliveryDetailsTypeTest.php b/test/MerchantData/Types/DeliveryDetailsTypeTest.php index 97ac361f6..5de32b09a 100644 --- a/test/MerchantData/Types/DeliveryDetailsTypeTest.php +++ b/test/MerchantData/Types/DeliveryDetailsTypeTest.php @@ -1,8 +1,11 @@ obj = new UserIdPasswordType(); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\MerchantData\Types\UserIdPasswordType', $this->obj); - } - - public function testExtendsBaseType() - { - $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); - } -} diff --git a/test/MerchantData/Types/UserIdentityTypeTest.php b/test/MerchantData/Types/UserIdentityTypeTest.php index b61ff0392..d6cba25f7 100644 --- a/test/MerchantData/Types/UserIdentityTypeTest.php +++ b/test/MerchantData/Types/UserIdentityTypeTest.php @@ -1,8 +1,11 @@ obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Metadata/Mocks/Service.php b/test/Metadata/Mocks/Service.php new file mode 100644 index 000000000..498abf0ec --- /dev/null +++ b/test/Metadata/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Metadata/Services/ServiceTest.php b/test/Metadata/Services/ServiceTest.php new file mode 100644 index 000000000..c6e6edae9 --- /dev/null +++ b/test/Metadata/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => MetadataService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(MetadataBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[MetadataBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(MetadataBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(MetadataBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[MetadataBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/Metadata/Types/ErrorDetailV3Test.php b/test/Metadata/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..d55073306 --- /dev/null +++ b/test/Metadata/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Metadata/Types/ErrorParameterV3Test.php b/test/Metadata/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..5c7e1130e --- /dev/null +++ b/test/Metadata/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Metadata/Types/GetSalesTaxJurisdictionsRestRequestTest.php b/test/Metadata/Types/GetSalesTaxJurisdictionsRestRequestTest.php new file mode 100644 index 000000000..792d9a327 --- /dev/null +++ b/test/Metadata/Types/GetSalesTaxJurisdictionsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetSalesTaxJurisdictionsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Metadata/Types/GetSalesTaxJurisdictionsRestResponseTest.php b/test/Metadata/Types/GetSalesTaxJurisdictionsRestResponseTest.php new file mode 100644 index 000000000..64e6d5d91 --- /dev/null +++ b/test/Metadata/Types/GetSalesTaxJurisdictionsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetSalesTaxJurisdictionsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\GetSalesTaxJurisdictionsRestResponse', $this->obj); + } + + public function testExtendsSalesTaxJurisdictions() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\SalesTaxJurisdictions', $this->obj); + } +} diff --git a/test/Metadata/Types/SalesTaxJurisdictionTest.php b/test/Metadata/Types/SalesTaxJurisdictionTest.php new file mode 100644 index 000000000..b5fda927d --- /dev/null +++ b/test/Metadata/Types/SalesTaxJurisdictionTest.php @@ -0,0 +1,33 @@ +obj = new SalesTaxJurisdiction(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\SalesTaxJurisdiction', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Metadata/Types/SalesTaxJurisdictionsTest.php b/test/Metadata/Types/SalesTaxJurisdictionsTest.php new file mode 100644 index 000000000..1d9102563 --- /dev/null +++ b/test/Metadata/Types/SalesTaxJurisdictionsTest.php @@ -0,0 +1,33 @@ +obj = new SalesTaxJurisdictions(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Types\SalesTaxJurisdictions', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Mocks/BaseRestService.php b/test/Mocks/BaseRestService.php new file mode 100644 index 000000000..1e1096df0 --- /dev/null +++ b/test/Mocks/BaseRestService.php @@ -0,0 +1,33 @@ + 'http://sandbox.com', + 'production' => 'http://production.com' + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public static function getConfigDefinitions() + { + $definitions = parent::getConfigDefinitions(); + + return $definitions + [ + 'apiVersion' => [ + 'valid' => ['string'], + 'default' => 'v1', + 'required' => true + ] + ]; + } + + protected function getEbayHeaders() + { + return []; + } +} diff --git a/test/Mocks/ComplexClassJson.json b/test/Mocks/ComplexClassJson.json new file mode 100644 index 000000000..2003d0699 --- /dev/null +++ b/test/Mocks/ComplexClassJson.json @@ -0,0 +1,46 @@ +{ + "integer": 123, + "string": "

Bits & Bobs<\/h1>

Just some <stuff> I found. ©<\/p>", + "double": 123.45, + "booleanTrue": true, + "booleanFalse": false, + "DateTime": "2000-01-01T00:00:00.000Z", + "SimpleClass": { + "integer": 321, + "string": "another string" + }, + "strings": [ + "foo", + "bar" + ], + "integers": [ + 1, + 2, + 3, + 4, + 5 + ], + "foo": "foo", + "AmountClass": { + "value": 543.21, + "AttributeOne": "one" + }, + "simpleClasses": [ + { + "integer": 888 + }, + { + "integer": 999 + } + ], + "anyType": 1, + "anyTypes": [ + 1, + "foo", + 1.23, + true, + false, + "2000-01-01T00:00:00.000Z", + [1, 2, 3] + ] +} diff --git a/test/Mocks/HttpHeaders.php b/test/Mocks/HttpHeaders.php new file mode 100644 index 000000000..28a057f2d --- /dev/null +++ b/test/Mocks/HttpHeaders.php @@ -0,0 +1,14 @@ +setHeaders($headers); + } +} diff --git a/test/Mocks/HttpRestHandler.php b/test/Mocks/HttpRestHandler.php new file mode 100644 index 000000000..a2404fd4e --- /dev/null +++ b/test/Mocks/HttpRestHandler.php @@ -0,0 +1,33 @@ +url = $request->getUri(); + $this->headers = []; + foreach ($request->getHeaders() as $name => $values) { + $this->headers[$name] = implode(', ', $values); + } + $this->body = $request->getBody(); + + // Return a fake json response. + $json = file_get_contents(__DIR__.'/../Mocks/RestResponse.json'); + + return new FulfilledPromise(new Response(200, [], Psr7\stream_for($json))); + } +} diff --git a/test/Mocks/Response.json b/test/Mocks/Response.json new file mode 100644 index 000000000..ff29a713e --- /dev/null +++ b/test/Mocks/Response.json @@ -0,0 +1,67 @@ +{ + "integer": 123, + "string": "<h1>Bits &amp; Bobs ©</h1><p>Just some &lt;stuff&gt; I found.&nbsp;&copy;</p>", + "double": 123.45, + "booleanTrue": true, + "booleanFalse": false, + "DateTime": "2000-01-01T16:15:30.123Z", + "SimpleClass": { + "integer": 321, + "string": "another string" + }, + "strings": ["foo", "bar"], + "integers": [1, 2, 3, 4, 5], + "simpleClasses": [{ + "integer": 888 + }, { + "integer": 999 + }], + "AmountClass": { + "value": 543.21 + }, + "base64BinaryType": { + "value": "binary type" + }, + "booleanType": { + "value": true + }, + "decimalType": { + "value": 123 + }, + "doubleType": { + "value": 123.45 + }, + "integerType": { + "value": 123 + }, + "stringType": { + "value": "string type" + }, + "tokenType": { + "value": "token type" + }, + "uriType": { + "value": "uri type" + }, + "decimalTypePosInteger":{ + "value": 123 + }, + "decimalTypePosFloat": { + "value": 123.45 + }, + "decimalTypeNegInteger": { + "value": -123 + }, + "decimalTypeNegFloat": { + "value": -123.45 + }, + "anyType": 1, + "anyTypes": [ + 1, + "foo", + 1.23, + true, + false, + [1, 2, 3] + ] +} diff --git a/test/Mocks/Response.xml b/test/Mocks/Response.xml index 69401b40d..b27010f82 100644 --- a/test/Mocks/Response.xml +++ b/test/Mocks/Response.xml @@ -2,7 +2,6 @@ 123 <h1>Bits &amp; Bobs ©</h1><p>Just some &lt;stuff&gt; I found.&nbsp;&copy;</p> - foo 123.45 TRUE false diff --git a/test/Mocks/ResponseNS.xml b/test/Mocks/ResponseNS.xml index f05bb30df..a40a9570e 100644 --- a/test/Mocks/ResponseNS.xml +++ b/test/Mocks/ResponseNS.xml @@ -2,7 +2,6 @@ 123 a string - foo 123.45 TRUE false diff --git a/test/Mocks/RestResponse.json b/test/Mocks/RestResponse.json new file mode 100644 index 000000000..64ba5d484 --- /dev/null +++ b/test/Mocks/RestResponse.json @@ -0,0 +1,35 @@ +{ + "integer": 123, + "string": "

Bits & Bobs ©

Just some <stuff> I found. ©

", + "foo": "foo", + "double": 123.45, + "booleanTrue": true, + "booleanFalse": false, + "DateTime": "2000-01-01T16:15:30.123Z", + "SimpleClass": { + "integer": 321, + "string": "another string" + }, + "strings": [ + "foo", + "bar" + ], + "integers": [ + 1, + 2, + 3, + 4, + 5 + ], + "simpleClasses": [ + { + "integer": 888 + }, + { + "integer": 999 + } + ], + "AmountClass": { + "value": 543.21 + } +} diff --git a/test/Mocks/RestService.php b/test/Mocks/RestService.php new file mode 100644 index 000000000..541d3c352 --- /dev/null +++ b/test/Mocks/RestService.php @@ -0,0 +1,25 @@ + [ + 'method' => 'GET', + 'resource' => '', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function foo(\DTS\eBaySDK\Test\Mocks\ComplexClass $request) + { + return $this->callOperationAsync('foo', $request)->wait(); + } +} diff --git a/test/Mocks/SimpleClass.php b/test/Mocks/SimpleClass.php index 82dc6ff2f..bb0bb891c 100644 --- a/test/Mocks/SimpleClass.php +++ b/test/Mocks/SimpleClass.php @@ -165,6 +165,18 @@ class SimpleClass extends \DTS\eBaySDK\Types\BaseType 'repeatable' => false, 'attribute' => false, 'elementName' => 'decimalTypeNegFloat' + ], + 'anyType' => [ + 'type' => 'any', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'anyType' + ], + 'anyTypes' => [ + 'type' => 'any', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'anyTypes' ] ]; diff --git a/test/Mocks/StatusCode.php b/test/Mocks/StatusCode.php new file mode 100644 index 000000000..462e5ed53 --- /dev/null +++ b/test/Mocks/StatusCode.php @@ -0,0 +1,14 @@ +statusCode = $statusCode; + } +} diff --git a/test/Order/Enums/CountryCodeEnumTest.php b/test/Order/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..c29161a08 --- /dev/null +++ b/test/Order/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/Order/Enums/CurrencyCodeEnumTest.php b/test/Order/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..8efea22a4 --- /dev/null +++ b/test/Order/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/Order/Enums/LineItemPaymentStatusEnumTest.php b/test/Order/Enums/LineItemPaymentStatusEnumTest.php new file mode 100644 index 000000000..4e7226608 --- /dev/null +++ b/test/Order/Enums/LineItemPaymentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new LineItemPaymentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\LineItemPaymentStatusEnum', $this->obj); + } +} diff --git a/test/Order/Enums/LineItemStatusEnumTest.php b/test/Order/Enums/LineItemStatusEnumTest.php new file mode 100644 index 000000000..965e5c621 --- /dev/null +++ b/test/Order/Enums/LineItemStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new LineItemStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\LineItemStatusEnum', $this->obj); + } +} diff --git a/test/Order/Enums/PaymentMethodBrandEnumTest.php b/test/Order/Enums/PaymentMethodBrandEnumTest.php new file mode 100644 index 000000000..3d2bd89cd --- /dev/null +++ b/test/Order/Enums/PaymentMethodBrandEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentMethodBrandEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\PaymentMethodBrandEnum', $this->obj); + } +} diff --git a/test/Order/Enums/PaymentMethodTypeEnumTest.php b/test/Order/Enums/PaymentMethodTypeEnumTest.php new file mode 100644 index 000000000..71d1e1d25 --- /dev/null +++ b/test/Order/Enums/PaymentMethodTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentMethodTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\PaymentMethodTypeEnum', $this->obj); + } +} diff --git a/test/Order/Enums/PurchaseOrderPaymentStatusEnumTest.php b/test/Order/Enums/PurchaseOrderPaymentStatusEnumTest.php new file mode 100644 index 000000000..dc0af064d --- /dev/null +++ b/test/Order/Enums/PurchaseOrderPaymentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new PurchaseOrderPaymentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\PurchaseOrderPaymentStatusEnum', $this->obj); + } +} diff --git a/test/Order/Enums/PurchaseOrderStatusEnumTest.php b/test/Order/Enums/PurchaseOrderStatusEnumTest.php new file mode 100644 index 000000000..780f639cf --- /dev/null +++ b/test/Order/Enums/PurchaseOrderStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new PurchaseOrderStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Enums\PurchaseOrderStatusEnum', $this->obj); + } +} diff --git a/test/Order/Mocks/Service.php b/test/Order/Mocks/Service.php new file mode 100644 index 000000000..199eb09a8 --- /dev/null +++ b/test/Order/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/Order/Services/ServiceTest.php b/test/Order/Services/ServiceTest.php new file mode 100644 index 000000000..a48854c91 --- /dev/null +++ b/test/Order/Services/ServiceTest.php @@ -0,0 +1,76 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => OrderService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authorization']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + + $this->assertArrayHasKey('riskCorrelationId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['riskCorrelationId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(OrderBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('Bearer 321', $h->headers[OrderBaseService::HDR_AUTHORIZATION]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(OrderBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertArrayNotHasKey(OrderBaseService::HDR_END_USER_CTX, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authorization' => '321', + 'marketplaceId' => '123', + 'riskCorrelationId' => '456', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(OrderBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[OrderBaseService::HDR_MARKETPLACE_ID]); + $this->assertEquals('deviceId=456', $h->headers[OrderBaseService::HDR_END_USER_CTX ]); + } +} diff --git a/test/Order/Types/AdjustmentTest.php b/test/Order/Types/AdjustmentTest.php new file mode 100644 index 000000000..5fbaeeebd --- /dev/null +++ b/test/Order/Types/AdjustmentTest.php @@ -0,0 +1,33 @@ +obj = new Adjustment(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Adjustment', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/Adjustment_0Test.php b/test/Order/Types/Adjustment_0Test.php new file mode 100644 index 000000000..8c8c98225 --- /dev/null +++ b/test/Order/Types/Adjustment_0Test.php @@ -0,0 +1,33 @@ +obj = new Adjustment_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Adjustment_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/AmountTest.php b/test/Order/Types/AmountTest.php new file mode 100644 index 000000000..9c9edb844 --- /dev/null +++ b/test/Order/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/Amount_0Test.php b/test/Order/Types/Amount_0Test.php new file mode 100644 index 000000000..e81abea11 --- /dev/null +++ b/test/Order/Types/Amount_0Test.php @@ -0,0 +1,33 @@ +obj = new Amount_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Amount_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/BillingAddressTest.php b/test/Order/Types/BillingAddressTest.php new file mode 100644 index 000000000..32fefac48 --- /dev/null +++ b/test/Order/Types/BillingAddressTest.php @@ -0,0 +1,33 @@ +obj = new BillingAddress(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\BillingAddress', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/CheckoutSessionResponseTest.php b/test/Order/Types/CheckoutSessionResponseTest.php new file mode 100644 index 000000000..769f201b8 --- /dev/null +++ b/test/Order/Types/CheckoutSessionResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckoutSessionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/CreateGuestCheckoutSessionRequestTest.php b/test/Order/Types/CreateGuestCheckoutSessionRequestTest.php new file mode 100644 index 000000000..201755ba0 --- /dev/null +++ b/test/Order/Types/CreateGuestCheckoutSessionRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateGuestCheckoutSessionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CreateGuestCheckoutSessionRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/CreateSignInCheckoutSessionRequestTest.php b/test/Order/Types/CreateSignInCheckoutSessionRequestTest.php new file mode 100644 index 000000000..b357d445f --- /dev/null +++ b/test/Order/Types/CreateSignInCheckoutSessionRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateSignInCheckoutSessionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CreateSignInCheckoutSessionRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/CreditCardTest.php b/test/Order/Types/CreditCardTest.php new file mode 100644 index 000000000..635d9db16 --- /dev/null +++ b/test/Order/Types/CreditCardTest.php @@ -0,0 +1,33 @@ +obj = new CreditCard(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CreditCard', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ErrorDetailV3Test.php b/test/Order/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..7409af838 --- /dev/null +++ b/test/Order/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ErrorParameterV3Test.php b/test/Order/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..3a347b2da --- /dev/null +++ b/test/Order/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/GetCheckoutSessionRestRequestTest.php b/test/Order/Types/GetCheckoutSessionRestRequestTest.php new file mode 100644 index 000000000..07c9fa887 --- /dev/null +++ b/test/Order/Types/GetCheckoutSessionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCheckoutSessionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetCheckoutSessionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/GetCheckoutSessionRestResponseTest.php b/test/Order/Types/GetCheckoutSessionRestResponseTest.php new file mode 100644 index 000000000..d501251f0 --- /dev/null +++ b/test/Order/Types/GetCheckoutSessionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCheckoutSessionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetCheckoutSessionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/GetGuestCheckoutSessionRestRequestTest.php b/test/Order/Types/GetGuestCheckoutSessionRestRequestTest.php new file mode 100644 index 000000000..8d231fe44 --- /dev/null +++ b/test/Order/Types/GetGuestCheckoutSessionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetGuestCheckoutSessionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/GetGuestCheckoutSessionRestResponseTest.php b/test/Order/Types/GetGuestCheckoutSessionRestResponseTest.php new file mode 100644 index 000000000..4cb52e663 --- /dev/null +++ b/test/Order/Types/GetGuestCheckoutSessionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetGuestCheckoutSessionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetGuestCheckoutSessionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/GetGuestPurchaseOrderRestRequestTest.php b/test/Order/Types/GetGuestPurchaseOrderRestRequestTest.php new file mode 100644 index 000000000..23bce94a0 --- /dev/null +++ b/test/Order/Types/GetGuestPurchaseOrderRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetGuestPurchaseOrderRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/GetGuestPurchaseOrderRestResponseTest.php b/test/Order/Types/GetGuestPurchaseOrderRestResponseTest.php new file mode 100644 index 000000000..4bf0946e2 --- /dev/null +++ b/test/Order/Types/GetGuestPurchaseOrderRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetGuestPurchaseOrderRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetGuestPurchaseOrderRestResponse', $this->obj); + } + + public function testExtendsGuestPurchaseOrder() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GuestPurchaseOrder', $this->obj); + } +} diff --git a/test/Order/Types/GetPurchaseOrderRestRequestTest.php b/test/Order/Types/GetPurchaseOrderRestRequestTest.php new file mode 100644 index 000000000..7ca08e2c7 --- /dev/null +++ b/test/Order/Types/GetPurchaseOrderRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetPurchaseOrderRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetPurchaseOrderRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/GetPurchaseOrderRestResponseTest.php b/test/Order/Types/GetPurchaseOrderRestResponseTest.php new file mode 100644 index 000000000..b7593c63b --- /dev/null +++ b/test/Order/Types/GetPurchaseOrderRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetPurchaseOrderRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GetPurchaseOrderRestResponse', $this->obj); + } + + public function testExtendsPurchaseOrder() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PurchaseOrder', $this->obj); + } +} diff --git a/test/Order/Types/GuestPurchaseOrderTest.php b/test/Order/Types/GuestPurchaseOrderTest.php new file mode 100644 index 000000000..f17c3d280 --- /dev/null +++ b/test/Order/Types/GuestPurchaseOrderTest.php @@ -0,0 +1,33 @@ +obj = new GuestPurchaseOrder(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\GuestPurchaseOrder', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ImageTest.php b/test/Order/Types/ImageTest.php new file mode 100644 index 000000000..f63c36a3e --- /dev/null +++ b/test/Order/Types/ImageTest.php @@ -0,0 +1,33 @@ +obj = new Image(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Image', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/InitiateCheckoutSessionRestRequestTest.php b/test/Order/Types/InitiateCheckoutSessionRestRequestTest.php new file mode 100644 index 000000000..4bc45c1bc --- /dev/null +++ b/test/Order/Types/InitiateCheckoutSessionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new InitiateCheckoutSessionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestRequest', $this->obj); + } + + public function testExtendsCreateSignInCheckoutSessionRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CreateSignInCheckoutSessionRequest', $this->obj); + } +} diff --git a/test/Order/Types/InitiateCheckoutSessionRestResponseTest.php b/test/Order/Types/InitiateCheckoutSessionRestResponseTest.php new file mode 100644 index 000000000..308dfb3ee --- /dev/null +++ b/test/Order/Types/InitiateCheckoutSessionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new InitiateCheckoutSessionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\InitiateCheckoutSessionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/InitiateGuestCheckoutSessionRestRequestTest.php b/test/Order/Types/InitiateGuestCheckoutSessionRestRequestTest.php new file mode 100644 index 000000000..d8645e587 --- /dev/null +++ b/test/Order/Types/InitiateGuestCheckoutSessionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new InitiateGuestCheckoutSessionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestRequest', $this->obj); + } + + public function testExtendsCreateGuestCheckoutSessionRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CreateGuestCheckoutSessionRequest', $this->obj); + } +} diff --git a/test/Order/Types/InitiateGuestCheckoutSessionRestResponseTest.php b/test/Order/Types/InitiateGuestCheckoutSessionRestResponseTest.php new file mode 100644 index 000000000..13c9e6fc3 --- /dev/null +++ b/test/Order/Types/InitiateGuestCheckoutSessionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new InitiateGuestCheckoutSessionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\InitiateGuestCheckoutSessionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/LineItemInputTest.php b/test/Order/Types/LineItemInputTest.php new file mode 100644 index 000000000..b25b11bc0 --- /dev/null +++ b/test/Order/Types/LineItemInputTest.php @@ -0,0 +1,33 @@ +obj = new LineItemInput(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\LineItemInput', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/LineItemReferenceTest.php b/test/Order/Types/LineItemReferenceTest.php new file mode 100644 index 000000000..80772b9f6 --- /dev/null +++ b/test/Order/Types/LineItemReferenceTest.php @@ -0,0 +1,33 @@ +obj = new LineItemReference(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\LineItemReference', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/LineItemTest.php b/test/Order/Types/LineItemTest.php new file mode 100644 index 000000000..b23deb026 --- /dev/null +++ b/test/Order/Types/LineItemTest.php @@ -0,0 +1,33 @@ +obj = new LineItem(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\LineItem', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/LineItem_0Test.php b/test/Order/Types/LineItem_0Test.php new file mode 100644 index 000000000..1acb39c69 --- /dev/null +++ b/test/Order/Types/LineItem_0Test.php @@ -0,0 +1,33 @@ +obj = new LineItem_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\LineItem_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PaymentInstrumentReferenceTest.php b/test/Order/Types/PaymentInstrumentReferenceTest.php new file mode 100644 index 000000000..80772b309 --- /dev/null +++ b/test/Order/Types/PaymentInstrumentReferenceTest.php @@ -0,0 +1,33 @@ +obj = new PaymentInstrumentReference(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PaymentInstrumentReference', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PaymentInstrumentTest.php b/test/Order/Types/PaymentInstrumentTest.php new file mode 100644 index 000000000..4dadce872 --- /dev/null +++ b/test/Order/Types/PaymentInstrumentTest.php @@ -0,0 +1,33 @@ +obj = new PaymentInstrument(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PaymentInstrument', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PaymentMethodBrandTest.php b/test/Order/Types/PaymentMethodBrandTest.php new file mode 100644 index 000000000..7d603893a --- /dev/null +++ b/test/Order/Types/PaymentMethodBrandTest.php @@ -0,0 +1,33 @@ +obj = new PaymentMethodBrand(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PaymentMethodBrand', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PaymentMethodMessageTest.php b/test/Order/Types/PaymentMethodMessageTest.php new file mode 100644 index 000000000..990fc1a27 --- /dev/null +++ b/test/Order/Types/PaymentMethodMessageTest.php @@ -0,0 +1,33 @@ +obj = new PaymentMethodMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PaymentMethodMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PaymentMethodTest.php b/test/Order/Types/PaymentMethodTest.php new file mode 100644 index 000000000..23813f951 --- /dev/null +++ b/test/Order/Types/PaymentMethodTest.php @@ -0,0 +1,33 @@ +obj = new PaymentMethod(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PaymentMethod', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PlaceGuestOrderRestRequestTest.php b/test/Order/Types/PlaceGuestOrderRestRequestTest.php new file mode 100644 index 000000000..d625268a6 --- /dev/null +++ b/test/Order/Types/PlaceGuestOrderRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PlaceGuestOrderRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PlaceGuestOrderRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PlaceGuestOrderRestResponseTest.php b/test/Order/Types/PlaceGuestOrderRestResponseTest.php new file mode 100644 index 000000000..080da80f5 --- /dev/null +++ b/test/Order/Types/PlaceGuestOrderRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PlaceGuestOrderRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PlaceGuestOrderRestResponse', $this->obj); + } + + public function testExtendsPurchaseOrderSummary() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PurchaseOrderSummary', $this->obj); + } +} diff --git a/test/Order/Types/PlaceOrderRestRequestTest.php b/test/Order/Types/PlaceOrderRestRequestTest.php new file mode 100644 index 000000000..b5d4b4fd6 --- /dev/null +++ b/test/Order/Types/PlaceOrderRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PlaceOrderRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PlaceOrderRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PlaceOrderRestResponseTest.php b/test/Order/Types/PlaceOrderRestResponseTest.php new file mode 100644 index 000000000..4596457a8 --- /dev/null +++ b/test/Order/Types/PlaceOrderRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PlaceOrderRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PlaceOrderRestResponse', $this->obj); + } + + public function testExtendsPurchaseOrderSummary() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PurchaseOrderSummary', $this->obj); + } +} diff --git a/test/Order/Types/PricingSummaryTest.php b/test/Order/Types/PricingSummaryTest.php new file mode 100644 index 000000000..1518aa305 --- /dev/null +++ b/test/Order/Types/PricingSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PricingSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PricingSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PricingSummary_0Test.php b/test/Order/Types/PricingSummary_0Test.php new file mode 100644 index 000000000..87b820468 --- /dev/null +++ b/test/Order/Types/PricingSummary_0Test.php @@ -0,0 +1,33 @@ +obj = new PricingSummary_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PricingSummary_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PromotionTest.php b/test/Order/Types/PromotionTest.php new file mode 100644 index 000000000..d9293a21c --- /dev/null +++ b/test/Order/Types/PromotionTest.php @@ -0,0 +1,33 @@ +obj = new Promotion(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Promotion', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ProvidedPaymentInstrumentTest.php b/test/Order/Types/ProvidedPaymentInstrumentTest.php new file mode 100644 index 000000000..e30122e9f --- /dev/null +++ b/test/Order/Types/ProvidedPaymentInstrumentTest.php @@ -0,0 +1,33 @@ +obj = new ProvidedPaymentInstrument(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ProvidedPaymentInstrument', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PurchaseOrderSummaryTest.php b/test/Order/Types/PurchaseOrderSummaryTest.php new file mode 100644 index 000000000..113cf9614 --- /dev/null +++ b/test/Order/Types/PurchaseOrderSummaryTest.php @@ -0,0 +1,33 @@ +obj = new PurchaseOrderSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PurchaseOrderSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/PurchaseOrderTest.php b/test/Order/Types/PurchaseOrderTest.php new file mode 100644 index 000000000..6fd12165c --- /dev/null +++ b/test/Order/Types/PurchaseOrderTest.php @@ -0,0 +1,33 @@ +obj = new PurchaseOrder(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\PurchaseOrder', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/SellerTest.php b/test/Order/Types/SellerTest.php new file mode 100644 index 000000000..fbe97aee2 --- /dev/null +++ b/test/Order/Types/SellerTest.php @@ -0,0 +1,33 @@ +obj = new Seller(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\Seller', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingAddressImplTest.php b/test/Order/Types/ShippingAddressImplTest.php new file mode 100644 index 000000000..06a486b2b --- /dev/null +++ b/test/Order/Types/ShippingAddressImplTest.php @@ -0,0 +1,33 @@ +obj = new ShippingAddressImpl(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingAddressImpl', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingAddressTest.php b/test/Order/Types/ShippingAddressTest.php new file mode 100644 index 000000000..d50e746bf --- /dev/null +++ b/test/Order/Types/ShippingAddressTest.php @@ -0,0 +1,33 @@ +obj = new ShippingAddress(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingAddress', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingAddress_0Test.php b/test/Order/Types/ShippingAddress_0Test.php new file mode 100644 index 000000000..74b1a75ce --- /dev/null +++ b/test/Order/Types/ShippingAddress_0Test.php @@ -0,0 +1,33 @@ +obj = new ShippingAddress_0(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingAddress_0', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingDetailTest.php b/test/Order/Types/ShippingDetailTest.php new file mode 100644 index 000000000..c81d88acf --- /dev/null +++ b/test/Order/Types/ShippingDetailTest.php @@ -0,0 +1,33 @@ +obj = new ShippingDetail(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingDetail', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingFulfillmentTest.php b/test/Order/Types/ShippingFulfillmentTest.php new file mode 100644 index 000000000..323f2052e --- /dev/null +++ b/test/Order/Types/ShippingFulfillmentTest.php @@ -0,0 +1,33 @@ +obj = new ShippingFulfillment(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingFulfillment', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/ShippingOptionTest.php b/test/Order/Types/ShippingOptionTest.php new file mode 100644 index 000000000..542624549 --- /dev/null +++ b/test/Order/Types/ShippingOptionTest.php @@ -0,0 +1,33 @@ +obj = new ShippingOption(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingOption', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestLineItemQuantityRestRequestTest.php b/test/Order/Types/UpdateGuestLineItemQuantityRestRequestTest.php new file mode 100644 index 000000000..192fcf99e --- /dev/null +++ b/test/Order/Types/UpdateGuestLineItemQuantityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestLineItemQuantityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestRequest', $this->obj); + } + + public function testExtendsUpdateQuantity() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateQuantity', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestLineItemQuantityRestResponseTest.php b/test/Order/Types/UpdateGuestLineItemQuantityRestResponseTest.php new file mode 100644 index 000000000..f8c418dd9 --- /dev/null +++ b/test/Order/Types/UpdateGuestLineItemQuantityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestLineItemQuantityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestLineItemQuantityRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestLineItemShippingAddressRestRequestTest.php b/test/Order/Types/UpdateGuestLineItemShippingAddressRestRequestTest.php new file mode 100644 index 000000000..b5a8053a1 --- /dev/null +++ b/test/Order/Types/UpdateGuestLineItemShippingAddressRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestLineItemShippingAddressRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestRequest', $this->obj); + } + + public function testExtendsShippingAddressImpl() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingAddressImpl', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestLineItemShippingAddressRestResponseTest.php b/test/Order/Types/UpdateGuestLineItemShippingAddressRestResponseTest.php new file mode 100644 index 000000000..7f1b97416 --- /dev/null +++ b/test/Order/Types/UpdateGuestLineItemShippingAddressRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestLineItemShippingAddressRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestLineItemShippingAddressRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestPaymentInfoRestRequestTest.php b/test/Order/Types/UpdateGuestPaymentInfoRestRequestTest.php new file mode 100644 index 000000000..ffa593770 --- /dev/null +++ b/test/Order/Types/UpdateGuestPaymentInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestPaymentInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestRequest', $this->obj); + } + + public function testExtendsUpdatePaymentInformation() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdatePaymentInformation', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestPaymentInfoRestResponseTest.php b/test/Order/Types/UpdateGuestPaymentInfoRestResponseTest.php new file mode 100644 index 000000000..9cd1f6f76 --- /dev/null +++ b/test/Order/Types/UpdateGuestPaymentInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestPaymentInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestPaymentInfoRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestShippingOptionRestRequestTest.php b/test/Order/Types/UpdateGuestShippingOptionRestRequestTest.php new file mode 100644 index 000000000..d1c585edd --- /dev/null +++ b/test/Order/Types/UpdateGuestShippingOptionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestShippingOptionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestRequest', $this->obj); + } + + public function testExtendsUpdateShippingOption() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingOption', $this->obj); + } +} diff --git a/test/Order/Types/UpdateGuestShippingOptionRestResponseTest.php b/test/Order/Types/UpdateGuestShippingOptionRestResponseTest.php new file mode 100644 index 000000000..a1d012b51 --- /dev/null +++ b/test/Order/Types/UpdateGuestShippingOptionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateGuestShippingOptionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateGuestShippingOptionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdatePaymentInfoRestRequestTest.php b/test/Order/Types/UpdatePaymentInfoRestRequestTest.php new file mode 100644 index 000000000..ddcbdac74 --- /dev/null +++ b/test/Order/Types/UpdatePaymentInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdatePaymentInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestRequest', $this->obj); + } + + public function testExtendsUpdatePaymentInformation() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdatePaymentInformation', $this->obj); + } +} diff --git a/test/Order/Types/UpdatePaymentInfoRestResponseTest.php b/test/Order/Types/UpdatePaymentInfoRestResponseTest.php new file mode 100644 index 000000000..cbedca0f6 --- /dev/null +++ b/test/Order/Types/UpdatePaymentInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdatePaymentInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdatePaymentInfoRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdatePaymentInformationTest.php b/test/Order/Types/UpdatePaymentInformationTest.php new file mode 100644 index 000000000..5d50001b1 --- /dev/null +++ b/test/Order/Types/UpdatePaymentInformationTest.php @@ -0,0 +1,33 @@ +obj = new UpdatePaymentInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdatePaymentInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/UpdateQuantityForLineItemRestRequestTest.php b/test/Order/Types/UpdateQuantityForLineItemRestRequestTest.php new file mode 100644 index 000000000..a2ccfc449 --- /dev/null +++ b/test/Order/Types/UpdateQuantityForLineItemRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateQuantityForLineItemRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestRequest', $this->obj); + } + + public function testExtendsUpdateQuantity() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateQuantity', $this->obj); + } +} diff --git a/test/Order/Types/UpdateQuantityForLineItemRestResponseTest.php b/test/Order/Types/UpdateQuantityForLineItemRestResponseTest.php new file mode 100644 index 000000000..edc78face --- /dev/null +++ b/test/Order/Types/UpdateQuantityForLineItemRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateQuantityForLineItemRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateQuantityForLineItemRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateQuantityTest.php b/test/Order/Types/UpdateQuantityTest.php new file mode 100644 index 000000000..4877cd2b6 --- /dev/null +++ b/test/Order/Types/UpdateQuantityTest.php @@ -0,0 +1,33 @@ +obj = new UpdateQuantity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateQuantity', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Order/Types/UpdateShippingAddressRestRequestTest.php b/test/Order/Types/UpdateShippingAddressRestRequestTest.php new file mode 100644 index 000000000..cd8ceff91 --- /dev/null +++ b/test/Order/Types/UpdateShippingAddressRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShippingAddressRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingAddressRestRequest', $this->obj); + } + + public function testExtendsShippingAddressImpl() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\ShippingAddressImpl', $this->obj); + } +} diff --git a/test/Order/Types/UpdateShippingAddressRestResponseTest.php b/test/Order/Types/UpdateShippingAddressRestResponseTest.php new file mode 100644 index 000000000..f27c60bf6 --- /dev/null +++ b/test/Order/Types/UpdateShippingAddressRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShippingAddressRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingAddressRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateShippingOptionRestRequestTest.php b/test/Order/Types/UpdateShippingOptionRestRequestTest.php new file mode 100644 index 000000000..85556cf87 --- /dev/null +++ b/test/Order/Types/UpdateShippingOptionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShippingOptionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingOptionRestRequest', $this->obj); + } + + public function testExtendsUpdateShippingOption() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingOption', $this->obj); + } +} diff --git a/test/Order/Types/UpdateShippingOptionRestResponseTest.php b/test/Order/Types/UpdateShippingOptionRestResponseTest.php new file mode 100644 index 000000000..b28110922 --- /dev/null +++ b/test/Order/Types/UpdateShippingOptionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShippingOptionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingOptionRestResponse', $this->obj); + } + + public function testExtendsCheckoutSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\CheckoutSessionResponse', $this->obj); + } +} diff --git a/test/Order/Types/UpdateShippingOptionTest.php b/test/Order/Types/UpdateShippingOptionTest.php new file mode 100644 index 000000000..1fe016f6a --- /dev/null +++ b/test/Order/Types/UpdateShippingOptionTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShippingOption(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Types\UpdateShippingOption', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Parser/XmlTest.php b/test/Parser/XmlTest.php index a2e6176d8..6d97b9c34 100644 --- a/test/Parser/XmlTest.php +++ b/test/Parser/XmlTest.php @@ -5,31 +5,21 @@ class XmlTest extends \PHPUnit_Framework_TestCase { - protected function setUp() - { - $this->xmlParser = new XmlParser('\DTS\eBaySDK\Test\Mocks\ComplexClass'); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\Parser\XmlParser', $this->xmlParser); - } - public function testCanParseXml() { + $xmlParser = new XmlParser('\DTS\eBaySDK\Test\Mocks\ComplexClass'); $xml = file_get_contents(__DIR__.'/../Mocks/Response.xml'); $xml = preg_replace('/[\n\r]/', '', $xml); $xml = preg_replace('/>\s+/', '>', $xml); - $obj = $this->xmlParser->parse($xml); + $obj = $xmlParser->parse($xml); $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\ComplexClass', $obj); // This is not in the XML and so should not be set. - $this->assertEquals(false, isset($this->obj->foo)); + $this->assertEquals(false, isset($obj->foo)); $this->assertEquals(123, $obj->integer); $this->assertEquals('

Bits & Bobs ©

Just some <stuff> I found. ©

', $obj->string); - $this->assertEquals('foo', $obj->foo); $this->assertEquals(123.45, $obj->double); $this->assertEquals(true, $obj->booleanTrue); $this->assertEquals(false, $obj->booleanFalse); @@ -72,19 +62,19 @@ public function testCanParseXml() public function testCanParseXmlWithNamespace() { + $xmlParser = new XmlParser('\DTS\eBaySDK\Test\Mocks\ComplexClass'); $xml = file_get_contents(__DIR__.'/../Mocks/ResponseNS.xml'); $xml = preg_replace('/[\n\r]/', '', $xml); $xml = preg_replace('/>\s+/', '>', $xml); - $obj = $this->xmlParser->parse($xml); + $obj = $xmlParser->parse($xml); $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\ComplexClass', $obj); // This is not in the XML and so should not be set. - $this->assertEquals(false, isset($this->obj->foo)); + $this->assertEquals(false, isset($obj->foo)); $this->assertEquals(123, $obj->integer); $this->assertEquals('a string', $obj->string); - $this->assertEquals('foo', $obj->foo); $this->assertEquals(123.45, $obj->double); $this->assertEquals(true, $obj->booleanTrue); $this->assertEquals(false, $obj->booleanFalse); diff --git a/test/PostOrder/Enums/ActivityOptionEnumTest.php b/test/PostOrder/Enums/ActivityOptionEnumTest.php new file mode 100644 index 000000000..834ed8a4f --- /dev/null +++ b/test/PostOrder/Enums/ActivityOptionEnumTest.php @@ -0,0 +1,28 @@ +obj = new ActivityOptionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ActivityOptionEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/AddressTypeEnumTest.php b/test/PostOrder/Enums/AddressTypeEnumTest.php new file mode 100644 index 000000000..e8cd19e9b --- /dev/null +++ b/test/PostOrder/Enums/AddressTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new AddressTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\AddressTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/AppealCloseReasonEnumTest.php b/test/PostOrder/Enums/AppealCloseReasonEnumTest.php new file mode 100644 index 000000000..1e79bef50 --- /dev/null +++ b/test/PostOrder/Enums/AppealCloseReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new AppealCloseReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\AppealCloseReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/AppealGrantStatusEnumTest.php b/test/PostOrder/Enums/AppealGrantStatusEnumTest.php new file mode 100644 index 000000000..802cc3793 --- /dev/null +++ b/test/PostOrder/Enums/AppealGrantStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new AppealGrantStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\AppealGrantStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/AppealStatusEnumTest.php b/test/PostOrder/Enums/AppealStatusEnumTest.php new file mode 100644 index 000000000..de79e216e --- /dev/null +++ b/test/PostOrder/Enums/AppealStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new AppealStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\AppealStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/BuyerCloseReasonEnumTest.php b/test/PostOrder/Enums/BuyerCloseReasonEnumTest.php new file mode 100644 index 000000000..8a6c2e196 --- /dev/null +++ b/test/PostOrder/Enums/BuyerCloseReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new BuyerCloseReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\BuyerCloseReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/BuyerCloseReturnReasonEnumTest.php b/test/PostOrder/Enums/BuyerCloseReturnReasonEnumTest.php new file mode 100644 index 000000000..f360825ba --- /dev/null +++ b/test/PostOrder/Enums/BuyerCloseReturnReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new BuyerCloseReturnReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\BuyerCloseReturnReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelActivityTypeEnumTest.php b/test/PostOrder/Enums/CancelActivityTypeEnumTest.php new file mode 100644 index 000000000..a3a0cc151 --- /dev/null +++ b/test/PostOrder/Enums/CancelActivityTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelActivityTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelActivityTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelCloseReasonEnumTest.php b/test/PostOrder/Enums/CancelCloseReasonEnumTest.php new file mode 100644 index 000000000..753161eb0 --- /dev/null +++ b/test/PostOrder/Enums/CancelCloseReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelCloseReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelCloseReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelReasonEnumTest.php b/test/PostOrder/Enums/CancelReasonEnumTest.php new file mode 100644 index 000000000..c4181ed4b --- /dev/null +++ b/test/PostOrder/Enums/CancelReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelSortTypeEnumTest.php b/test/PostOrder/Enums/CancelSortTypeEnumTest.php new file mode 100644 index 000000000..98605fea5 --- /dev/null +++ b/test/PostOrder/Enums/CancelSortTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelSortTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelSortTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelStateEnumTest.php b/test/PostOrder/Enums/CancelStateEnumTest.php new file mode 100644 index 000000000..ed555be8b --- /dev/null +++ b/test/PostOrder/Enums/CancelStateEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelStateEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelStateEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CancelStatusEnumTest.php b/test/PostOrder/Enums/CancelStatusEnumTest.php new file mode 100644 index 000000000..900cdecae --- /dev/null +++ b/test/PostOrder/Enums/CancelStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new CancelStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CancelStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CaseCloseReasonEnumTest.php b/test/PostOrder/Enums/CaseCloseReasonEnumTest.php new file mode 100644 index 000000000..bb0d13538 --- /dev/null +++ b/test/PostOrder/Enums/CaseCloseReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new CaseCloseReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CaseCloseReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CaseSearchFieldGroupEnumTest.php b/test/PostOrder/Enums/CaseSearchFieldGroupEnumTest.php new file mode 100644 index 000000000..8dcaa61a8 --- /dev/null +++ b/test/PostOrder/Enums/CaseSearchFieldGroupEnumTest.php @@ -0,0 +1,28 @@ +obj = new CaseSearchFieldGroupEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CaseSearchFieldGroupEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CaseStatusEnumTest.php b/test/PostOrder/Enums/CaseStatusEnumTest.php new file mode 100644 index 000000000..b5df39cb7 --- /dev/null +++ b/test/PostOrder/Enums/CaseStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new CaseStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CaseStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CaseTypeEnumTest.php b/test/PostOrder/Enums/CaseTypeEnumTest.php new file mode 100644 index 000000000..6074edc08 --- /dev/null +++ b/test/PostOrder/Enums/CaseTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CaseTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CaseTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CloseReturnReasonEnumTest.php b/test/PostOrder/Enums/CloseReturnReasonEnumTest.php new file mode 100644 index 000000000..2a49315e2 --- /dev/null +++ b/test/PostOrder/Enums/CloseReturnReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new CloseReturnReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CloseReturnReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CountryCodeEnumTest.php b/test/PostOrder/Enums/CountryCodeEnumTest.php new file mode 100644 index 000000000..bccf7da9e --- /dev/null +++ b/test/PostOrder/Enums/CountryCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CountryCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CountryCodeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/CurrencyCodeEnumTest.php b/test/PostOrder/Enums/CurrencyCodeEnumTest.php new file mode 100644 index 000000000..09b55c12e --- /dev/null +++ b/test/PostOrder/Enums/CurrencyCodeEnumTest.php @@ -0,0 +1,28 @@ +obj = new CurrencyCodeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\CurrencyCodeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/DecisionEnumTest.php b/test/PostOrder/Enums/DecisionEnumTest.php new file mode 100644 index 000000000..37b3756b8 --- /dev/null +++ b/test/PostOrder/Enums/DecisionEnumTest.php @@ -0,0 +1,28 @@ +obj = new DecisionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\DecisionEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/DesiredOutcomeTypeEnumTest.php b/test/PostOrder/Enums/DesiredOutcomeTypeEnumTest.php new file mode 100644 index 000000000..e6215fa0b --- /dev/null +++ b/test/PostOrder/Enums/DesiredOutcomeTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new DesiredOutcomeTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\DesiredOutcomeTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/DispositionRuleTemplateTypeEnumTest.php b/test/PostOrder/Enums/DispositionRuleTemplateTypeEnumTest.php new file mode 100644 index 000000000..e7693b7ce --- /dev/null +++ b/test/PostOrder/Enums/DispositionRuleTemplateTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new DispositionRuleTemplateTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\DispositionRuleTemplateTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/EligibilityCheckTypeEnumTest.php b/test/PostOrder/Enums/EligibilityCheckTypeEnumTest.php new file mode 100644 index 000000000..4d8fd2153 --- /dev/null +++ b/test/PostOrder/Enums/EligibilityCheckTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new EligibilityCheckTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\EligibilityCheckTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/EligibilityFailureReasonEnumTest.php b/test/PostOrder/Enums/EligibilityFailureReasonEnumTest.php new file mode 100644 index 000000000..5ccb02d01 --- /dev/null +++ b/test/PostOrder/Enums/EligibilityFailureReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new EligibilityFailureReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\EligibilityFailureReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/EscalateReasonEnumTest.php b/test/PostOrder/Enums/EscalateReasonEnumTest.php new file mode 100644 index 000000000..37fe6dd6a --- /dev/null +++ b/test/PostOrder/Enums/EscalateReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new EscalateReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\EscalateReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/FileFormatEnumTest.php b/test/PostOrder/Enums/FileFormatEnumTest.php new file mode 100644 index 000000000..fc30812cd --- /dev/null +++ b/test/PostOrder/Enums/FileFormatEnumTest.php @@ -0,0 +1,28 @@ +obj = new FileFormatEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\FileFormatEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/FilePurposeEnumTest.php b/test/PostOrder/Enums/FilePurposeEnumTest.php new file mode 100644 index 000000000..4e51cf635 --- /dev/null +++ b/test/PostOrder/Enums/FilePurposeEnumTest.php @@ -0,0 +1,28 @@ +obj = new FilePurposeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\FilePurposeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/FileStatusEnumTest.php b/test/PostOrder/Enums/FileStatusEnumTest.php new file mode 100644 index 000000000..3b6b6d825 --- /dev/null +++ b/test/PostOrder/Enums/FileStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new FileStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\FileStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/GetReturnFieldGroupEnumTest.php b/test/PostOrder/Enums/GetReturnFieldGroupEnumTest.php new file mode 100644 index 000000000..54f9d4402 --- /dev/null +++ b/test/PostOrder/Enums/GetReturnFieldGroupEnumTest.php @@ -0,0 +1,28 @@ +obj = new GetReturnFieldGroupEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\GetReturnFieldGroupEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/InquiryEligibilityStatusEnumTest.php b/test/PostOrder/Enums/InquiryEligibilityStatusEnumTest.php new file mode 100644 index 000000000..66edb3578 --- /dev/null +++ b/test/PostOrder/Enums/InquiryEligibilityStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new InquiryEligibilityStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\InquiryEligibilityStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/InquiryEscalationReasonEnumTest.php b/test/PostOrder/Enums/InquiryEscalationReasonEnumTest.php new file mode 100644 index 000000000..6a0e62178 --- /dev/null +++ b/test/PostOrder/Enums/InquiryEscalationReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new InquiryEscalationReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\InquiryEscalationReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/InquirySearchFieldGroupEnumTest.php b/test/PostOrder/Enums/InquirySearchFieldGroupEnumTest.php new file mode 100644 index 000000000..bca31be40 --- /dev/null +++ b/test/PostOrder/Enums/InquirySearchFieldGroupEnumTest.php @@ -0,0 +1,28 @@ +obj = new InquirySearchFieldGroupEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\InquirySearchFieldGroupEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/InquiryStateEnumTest.php b/test/PostOrder/Enums/InquiryStateEnumTest.php new file mode 100644 index 000000000..899a6ac5a --- /dev/null +++ b/test/PostOrder/Enums/InquiryStateEnumTest.php @@ -0,0 +1,28 @@ +obj = new InquiryStateEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\InquiryStateEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/InquiryStatusEnumTest.php b/test/PostOrder/Enums/InquiryStatusEnumTest.php new file mode 100644 index 000000000..cdee06801 --- /dev/null +++ b/test/PostOrder/Enums/InquiryStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new InquiryStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\InquiryStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/LabelActionEnumTest.php b/test/PostOrder/Enums/LabelActionEnumTest.php new file mode 100644 index 000000000..26f8cf4c2 --- /dev/null +++ b/test/PostOrder/Enums/LabelActionEnumTest.php @@ -0,0 +1,28 @@ +obj = new LabelActionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\LabelActionEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/LabelPrintStatusEnumTest.php b/test/PostOrder/Enums/LabelPrintStatusEnumTest.php new file mode 100644 index 000000000..3adb9ca7f --- /dev/null +++ b/test/PostOrder/Enums/LabelPrintStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new LabelPrintStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\LabelPrintStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/LanguageEnumTest.php b/test/PostOrder/Enums/LanguageEnumTest.php new file mode 100644 index 000000000..ddd17750f --- /dev/null +++ b/test/PostOrder/Enums/LanguageEnumTest.php @@ -0,0 +1,28 @@ +obj = new LanguageEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\LanguageEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/LanguageScriptEnumTest.php b/test/PostOrder/Enums/LanguageScriptEnumTest.php new file mode 100644 index 000000000..d7016fc92 --- /dev/null +++ b/test/PostOrder/Enums/LanguageScriptEnumTest.php @@ -0,0 +1,28 @@ +obj = new LanguageScriptEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\LanguageScriptEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/MarketplaceIdEnumTest.php b/test/PostOrder/Enums/MarketplaceIdEnumTest.php new file mode 100644 index 000000000..283d0627c --- /dev/null +++ b/test/PostOrder/Enums/MarketplaceIdEnumTest.php @@ -0,0 +1,28 @@ +obj = new MarketplaceIdEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\MarketplaceIdEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/MoneyMovementStatusEnumTest.php b/test/PostOrder/Enums/MoneyMovementStatusEnumTest.php new file mode 100644 index 000000000..c208d61af --- /dev/null +++ b/test/PostOrder/Enums/MoneyMovementStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new MoneyMovementStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\MoneyMovementStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/MoneyMovementTypeEnumTest.php b/test/PostOrder/Enums/MoneyMovementTypeEnumTest.php new file mode 100644 index 000000000..db6a979bb --- /dev/null +++ b/test/PostOrder/Enums/MoneyMovementTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new MoneyMovementTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\MoneyMovementTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/NoSellerUploadLabelReasonEnumTest.php b/test/PostOrder/Enums/NoSellerUploadLabelReasonEnumTest.php new file mode 100644 index 000000000..697588f2e --- /dev/null +++ b/test/PostOrder/Enums/NoSellerUploadLabelReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new NoSellerUploadLabelReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\NoSellerUploadLabelReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/OrderTypeEnumTest.php b/test/PostOrder/Enums/OrderTypeEnumTest.php new file mode 100644 index 000000000..2d3aac375 --- /dev/null +++ b/test/PostOrder/Enums/OrderTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new OrderTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\OrderTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/PartyEnumTest.php b/test/PostOrder/Enums/PartyEnumTest.php new file mode 100644 index 000000000..30425d41e --- /dev/null +++ b/test/PostOrder/Enums/PartyEnumTest.php @@ -0,0 +1,28 @@ +obj = new PartyEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\PartyEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/PaymentDenialReasonEnumTest.php b/test/PostOrder/Enums/PaymentDenialReasonEnumTest.php new file mode 100644 index 000000000..70fd90cf3 --- /dev/null +++ b/test/PostOrder/Enums/PaymentDenialReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentDenialReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\PaymentDenialReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/PaymentProviderEnumTest.php b/test/PostOrder/Enums/PaymentProviderEnumTest.php new file mode 100644 index 000000000..ea4ee38c7 --- /dev/null +++ b/test/PostOrder/Enums/PaymentProviderEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentProviderEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\PaymentProviderEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/PaymentStatusEnumTest.php b/test/PostOrder/Enums/PaymentStatusEnumTest.php new file mode 100644 index 000000000..a1843c295 --- /dev/null +++ b/test/PostOrder/Enums/PaymentStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new PaymentStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\PaymentStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/RefundFeeTypeEnumTest.php b/test/PostOrder/Enums/RefundFeeTypeEnumTest.php new file mode 100644 index 000000000..95569b59a --- /dev/null +++ b/test/PostOrder/Enums/RefundFeeTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundFeeTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\RefundFeeTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/RefundPaymentTypeEnumTest.php b/test/PostOrder/Enums/RefundPaymentTypeEnumTest.php new file mode 100644 index 000000000..560c0785b --- /dev/null +++ b/test/PostOrder/Enums/RefundPaymentTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundPaymentTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\RefundPaymentTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/RefundStatusEnumTest.php b/test/PostOrder/Enums/RefundStatusEnumTest.php new file mode 100644 index 000000000..e95658665 --- /dev/null +++ b/test/PostOrder/Enums/RefundStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new RefundStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\RefundStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/RequestTypeEnumTest.php b/test/PostOrder/Enums/RequestTypeEnumTest.php new file mode 100644 index 000000000..ea3c630b4 --- /dev/null +++ b/test/PostOrder/Enums/RequestTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new RequestTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\RequestTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnCountFilterEnumTest.php b/test/PostOrder/Enums/ReturnCountFilterEnumTest.php new file mode 100644 index 000000000..c6e2da5f9 --- /dev/null +++ b/test/PostOrder/Enums/ReturnCountFilterEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnCountFilterEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnCountFilterEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnHoldStatusEnumTest.php b/test/PostOrder/Enums/ReturnHoldStatusEnumTest.php new file mode 100644 index 000000000..8f8072e1a --- /dev/null +++ b/test/PostOrder/Enums/ReturnHoldStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnHoldStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnHoldStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnMetadataKeyEnumTest.php b/test/PostOrder/Enums/ReturnMetadataKeyEnumTest.php new file mode 100644 index 000000000..c11886506 --- /dev/null +++ b/test/PostOrder/Enums/ReturnMetadataKeyEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnMetadataKeyEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnMetadataKeyEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnReasonEnumTest.php b/test/PostOrder/Enums/ReturnReasonEnumTest.php new file mode 100644 index 000000000..c3e78cd39 --- /dev/null +++ b/test/PostOrder/Enums/ReturnReasonEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnReasonEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnReasonEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnRefundInitiatorEnumTest.php b/test/PostOrder/Enums/ReturnRefundInitiatorEnumTest.php new file mode 100644 index 000000000..61d4a12ee --- /dev/null +++ b/test/PostOrder/Enums/ReturnRefundInitiatorEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnRefundInitiatorEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnRefundInitiatorEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnSortEnumTest.php b/test/PostOrder/Enums/ReturnSortEnumTest.php new file mode 100644 index 000000000..3f70be125 --- /dev/null +++ b/test/PostOrder/Enums/ReturnSortEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnSortEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnSortEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnStateEnumTest.php b/test/PostOrder/Enums/ReturnStateEnumTest.php new file mode 100644 index 000000000..5a76ca92f --- /dev/null +++ b/test/PostOrder/Enums/ReturnStateEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnStateEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnStateEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnStatusEnumTest.php b/test/PostOrder/Enums/ReturnStatusEnumTest.php new file mode 100644 index 000000000..1c45ad115 --- /dev/null +++ b/test/PostOrder/Enums/ReturnStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnTypeEnumTest.php b/test/PostOrder/Enums/ReturnTypeEnumTest.php new file mode 100644 index 000000000..791456683 --- /dev/null +++ b/test/PostOrder/Enums/ReturnTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnTypeEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ReturnUserRoleEnumTest.php b/test/PostOrder/Enums/ReturnUserRoleEnumTest.php new file mode 100644 index 000000000..541c533a4 --- /dev/null +++ b/test/PostOrder/Enums/ReturnUserRoleEnumTest.php @@ -0,0 +1,28 @@ +obj = new ReturnUserRoleEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ReturnUserRoleEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/RuleListFieldGroupEnumTest.php b/test/PostOrder/Enums/RuleListFieldGroupEnumTest.php new file mode 100644 index 000000000..4e1ad0840 --- /dev/null +++ b/test/PostOrder/Enums/RuleListFieldGroupEnumTest.php @@ -0,0 +1,28 @@ +obj = new RuleListFieldGroupEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\RuleListFieldGroupEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ShippingCarrierEnumTest.php b/test/PostOrder/Enums/ShippingCarrierEnumTest.php new file mode 100644 index 000000000..d7db30069 --- /dev/null +++ b/test/PostOrder/Enums/ShippingCarrierEnumTest.php @@ -0,0 +1,28 @@ +obj = new ShippingCarrierEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ShippingCarrierEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/ShippingMethodEnumTest.php b/test/PostOrder/Enums/ShippingMethodEnumTest.php new file mode 100644 index 000000000..1170dad94 --- /dev/null +++ b/test/PostOrder/Enums/ShippingMethodEnumTest.php @@ -0,0 +1,28 @@ +obj = new ShippingMethodEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\ShippingMethodEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/TrackingStatusEnumTest.php b/test/PostOrder/Enums/TrackingStatusEnumTest.php new file mode 100644 index 000000000..ee51827db --- /dev/null +++ b/test/PostOrder/Enums/TrackingStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new TrackingStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\TrackingStatusEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/UserPartyEnumTest.php b/test/PostOrder/Enums/UserPartyEnumTest.php new file mode 100644 index 000000000..9b300ba71 --- /dev/null +++ b/test/PostOrder/Enums/UserPartyEnumTest.php @@ -0,0 +1,28 @@ +obj = new UserPartyEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\UserPartyEnum', $this->obj); + } +} diff --git a/test/PostOrder/Enums/WorldRegionEnumTest.php b/test/PostOrder/Enums/WorldRegionEnumTest.php new file mode 100644 index 000000000..2387b1eb2 --- /dev/null +++ b/test/PostOrder/Enums/WorldRegionEnumTest.php @@ -0,0 +1,28 @@ +obj = new WorldRegionEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Enums\WorldRegionEnum', $this->obj); + } +} diff --git a/test/PostOrder/Mocks/Service.php b/test/PostOrder/Mocks/Service.php new file mode 100644 index 000000000..639b09ef2 --- /dev/null +++ b/test/PostOrder/Mocks/Service.php @@ -0,0 +1,27 @@ + [ + 'method' => 'GET', + 'resource' => 'item/{item_id}', + 'responseClass' => '\DTS\eBaySDK\Test\Mocks\ComplexClass', + 'params' => [ + ] + ] + ]; + + public function __construct(array $config) + { + parent::__construct($config); + } + + public function testOperation() + { + return $this->callOperationAsync('testOperation', new ComplexClass())->wait(); + } +} diff --git a/test/PostOrder/Services/ServiceTest.php b/test/PostOrder/Services/ServiceTest.php new file mode 100644 index 000000000..1b1d08d16 --- /dev/null +++ b/test/PostOrder/Services/ServiceTest.php @@ -0,0 +1,68 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => PostOrderService::API_VERSION, + 'required' => true + ], $d['apiVersion']); + + $this->assertArrayHasKey('authToken', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authToken']); + + $this->assertArrayHasKey('marketplaceId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['marketplaceId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authToken' => '321', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(PostOrderBaseService::HDR_AUTH_TOKEN, $h->headers); + $this->assertEquals('TOKEN 321', $h->headers[PostOrderBaseService::HDR_AUTH_TOKEN ]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayNotHasKey(PostOrderBaseService::HDR_MARKETPLACE_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpRestHandler(); + + $s = new Service([ + 'authToken' => '321', + 'marketplaceId' => '123', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(PostOrderBaseService::HDR_MARKETPLACE_ID, $h->headers); + $this->assertEquals('123', $h->headers[PostOrderBaseService::HDR_MARKETPLACE_ID]); + } +} diff --git a/test/PostOrder/Types/ActionDeadlinesTest.php b/test/PostOrder/Types/ActionDeadlinesTest.php new file mode 100644 index 000000000..d26c8a5cc --- /dev/null +++ b/test/PostOrder/Types/ActionDeadlinesTest.php @@ -0,0 +1,33 @@ +obj = new ActionDeadlines(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ActionDeadlines', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ActualRefundDetailTypeTest.php b/test/PostOrder/Types/ActualRefundDetailTypeTest.php new file mode 100644 index 000000000..274cc9e3a --- /dev/null +++ b/test/PostOrder/Types/ActualRefundDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ActualRefundDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ActualRefundDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AddShippingLabelInfoRestRequestTest.php b/test/PostOrder/Types/AddShippingLabelInfoRestRequestTest.php new file mode 100644 index 000000000..641a386a3 --- /dev/null +++ b/test/PostOrder/Types/AddShippingLabelInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new AddShippingLabelInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestRequest', $this->obj); + } + + public function testExtendsProvideLabelRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideLabelRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/AddShippingLabelInfoRestResponseTest.php b/test/PostOrder/Types/AddShippingLabelInfoRestResponseTest.php new file mode 100644 index 000000000..5f1e23f73 --- /dev/null +++ b/test/PostOrder/Types/AddShippingLabelInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new AddShippingLabelInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AddShippingLabelInfoRestResponse', $this->obj); + } + + public function testExtendsProvideLabelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideLabelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/AddressTest.php b/test/PostOrder/Types/AddressTest.php new file mode 100644 index 000000000..b74f13135 --- /dev/null +++ b/test/PostOrder/Types/AddressTest.php @@ -0,0 +1,33 @@ +obj = new Address(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\Address', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AmountTest.php b/test/PostOrder/Types/AmountTest.php new file mode 100644 index 000000000..699975ae1 --- /dev/null +++ b/test/PostOrder/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\Amount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AppealCaseDecisionRestRequestTest.php b/test/PostOrder/Types/AppealCaseDecisionRestRequestTest.php new file mode 100644 index 000000000..45a9a37b2 --- /dev/null +++ b/test/PostOrder/Types/AppealCaseDecisionRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new AppealCaseDecisionRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestRequest', $this->obj); + } + + public function testExtendsAppealRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AppealRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/AppealCaseDecisionRestResponseTest.php b/test/PostOrder/Types/AppealCaseDecisionRestResponseTest.php new file mode 100644 index 000000000..01ca3bc58 --- /dev/null +++ b/test/PostOrder/Types/AppealCaseDecisionRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new AppealCaseDecisionRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AppealCaseDecisionRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AppealDetailsTest.php b/test/PostOrder/Types/AppealDetailsTest.php new file mode 100644 index 000000000..ce3975ac7 --- /dev/null +++ b/test/PostOrder/Types/AppealDetailsTest.php @@ -0,0 +1,33 @@ +obj = new AppealDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AppealDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AppealRequestTest.php b/test/PostOrder/Types/AppealRequestTest.php new file mode 100644 index 000000000..171d9c117 --- /dev/null +++ b/test/PostOrder/Types/AppealRequestTest.php @@ -0,0 +1,33 @@ +obj = new AppealRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AppealRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ApproveCancellationRequestRestRequestTest.php b/test/PostOrder/Types/ApproveCancellationRequestRestRequestTest.php new file mode 100644 index 000000000..c49e6ab2f --- /dev/null +++ b/test/PostOrder/Types/ApproveCancellationRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ApproveCancellationRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ApproveCancellationRequestRestResponseTest.php b/test/PostOrder/Types/ApproveCancellationRequestRestResponseTest.php new file mode 100644 index 000000000..6e85ccf12 --- /dev/null +++ b/test/PostOrder/Types/ApproveCancellationRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ApproveCancellationRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ApproveCancellationRequestRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/AvailableOptionTypeTest.php b/test/PostOrder/Types/AvailableOptionTypeTest.php new file mode 100644 index 000000000..05bf4237e --- /dev/null +++ b/test/PostOrder/Types/AvailableOptionTypeTest.php @@ -0,0 +1,33 @@ +obj = new AvailableOptionType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\AvailableOptionType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/BuyerCloseCaseRequestTest.php b/test/PostOrder/Types/BuyerCloseCaseRequestTest.php new file mode 100644 index 000000000..90767c54a --- /dev/null +++ b/test/PostOrder/Types/BuyerCloseCaseRequestTest.php @@ -0,0 +1,33 @@ +obj = new BuyerCloseCaseRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\BuyerCloseCaseRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/BuyerCloseInquiryRequestTest.php b/test/PostOrder/Types/BuyerCloseInquiryRequestTest.php new file mode 100644 index 000000000..d0caf2064 --- /dev/null +++ b/test/PostOrder/Types/BuyerCloseInquiryRequestTest.php @@ -0,0 +1,33 @@ +obj = new BuyerCloseInquiryRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\BuyerCloseInquiryRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelActivityHistoryTest.php b/test/PostOrder/Types/CancelActivityHistoryTest.php new file mode 100644 index 000000000..e25753802 --- /dev/null +++ b/test/PostOrder/Types/CancelActivityHistoryTest.php @@ -0,0 +1,33 @@ +obj = new CancelActivityHistory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelActivityHistory', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelDetailTest.php b/test/PostOrder/Types/CancelDetailTest.php new file mode 100644 index 000000000..058c2434d --- /dev/null +++ b/test/PostOrder/Types/CancelDetailTest.php @@ -0,0 +1,33 @@ +obj = new CancelDetail(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelDetail', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelReturnRequestRestRequestTest.php b/test/PostOrder/Types/CancelReturnRequestRestRequestTest.php new file mode 100644 index 000000000..88cf102ef --- /dev/null +++ b/test/PostOrder/Types/CancelReturnRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CancelReturnRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestRequest', $this->obj); + } + + public function testExtendsCloseReturnRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseReturnRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelReturnRequestRestResponseTest.php b/test/PostOrder/Types/CancelReturnRequestRestResponseTest.php new file mode 100644 index 000000000..b3821a82c --- /dev/null +++ b/test/PostOrder/Types/CancelReturnRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CancelReturnRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelReturnRequestRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelSortFieldTest.php b/test/PostOrder/Types/CancelSortFieldTest.php new file mode 100644 index 000000000..0b98256c1 --- /dev/null +++ b/test/PostOrder/Types/CancelSortFieldTest.php @@ -0,0 +1,33 @@ +obj = new CancelSortField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelSortField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CancelSummaryTest.php b/test/PostOrder/Types/CancelSummaryTest.php new file mode 100644 index 000000000..0f4214cad --- /dev/null +++ b/test/PostOrder/Types/CancelSummaryTest.php @@ -0,0 +1,33 @@ +obj = new CancelSummary(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CancelSummary', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CarrierShippingCostInfoTypeTest.php b/test/PostOrder/Types/CarrierShippingCostInfoTypeTest.php new file mode 100644 index 000000000..991b45ced --- /dev/null +++ b/test/PostOrder/Types/CarrierShippingCostInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new CarrierShippingCostInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CarrierShippingCostInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseDetailsResponseTest.php b/test/PostOrder/Types/CaseDetailsResponseTest.php new file mode 100644 index 000000000..0bf4a24c3 --- /dev/null +++ b/test/PostOrder/Types/CaseDetailsResponseTest.php @@ -0,0 +1,33 @@ +obj = new CaseDetailsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseDetailsResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseDetailsTest.php b/test/PostOrder/Types/CaseDetailsTest.php new file mode 100644 index 000000000..4cce76084 --- /dev/null +++ b/test/PostOrder/Types/CaseDetailsTest.php @@ -0,0 +1,33 @@ +obj = new CaseDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseSearchResponseTest.php b/test/PostOrder/Types/CaseSearchResponseTest.php new file mode 100644 index 000000000..3b49f1989 --- /dev/null +++ b/test/PostOrder/Types/CaseSearchResponseTest.php @@ -0,0 +1,33 @@ +obj = new CaseSearchResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseSearchResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseStatusFilterTest.php b/test/PostOrder/Types/CaseStatusFilterTest.php new file mode 100644 index 000000000..3d3d953b4 --- /dev/null +++ b/test/PostOrder/Types/CaseStatusFilterTest.php @@ -0,0 +1,33 @@ +obj = new CaseStatusFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseStatusFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseSummaryTypeTest.php b/test/PostOrder/Types/CaseSummaryTypeTest.php new file mode 100644 index 000000000..95e6e48e6 --- /dev/null +++ b/test/PostOrder/Types/CaseSummaryTypeTest.php @@ -0,0 +1,33 @@ +obj = new CaseSummaryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseSummaryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CaseVoluntaryRefundRequestTest.php b/test/PostOrder/Types/CaseVoluntaryRefundRequestTest.php new file mode 100644 index 000000000..bbbae7319 --- /dev/null +++ b/test/PostOrder/Types/CaseVoluntaryRefundRequestTest.php @@ -0,0 +1,33 @@ +obj = new CaseVoluntaryRefundRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseVoluntaryRefundRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckCancellationEligibilityRestRequestTest.php b/test/PostOrder/Types/CheckCancellationEligibilityRestRequestTest.php new file mode 100644 index 000000000..8efeebdbf --- /dev/null +++ b/test/PostOrder/Types/CheckCancellationEligibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckCancellationEligibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestRequest', $this->obj); + } + + public function testExtendsOrderEligibilityCheckInfo() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\OrderEligibilityCheckInfo', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckCancellationEligibilityRestResponseTest.php b/test/PostOrder/Types/CheckCancellationEligibilityRestResponseTest.php new file mode 100644 index 000000000..60c961a21 --- /dev/null +++ b/test/PostOrder/Types/CheckCancellationEligibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckCancellationEligibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckCancellationEligibilityRestResponse', $this->obj); + } + + public function testExtendsOrderEligibilityResult() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\OrderEligibilityResult', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckEligibilityRequestTest.php b/test/PostOrder/Types/CheckEligibilityRequestTest.php new file mode 100644 index 000000000..c4129ffe4 --- /dev/null +++ b/test/PostOrder/Types/CheckEligibilityRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckEligibilityRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckEligibilityRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckEligibilityResponseTest.php b/test/PostOrder/Types/CheckEligibilityResponseTest.php new file mode 100644 index 000000000..80526f878 --- /dev/null +++ b/test/PostOrder/Types/CheckEligibilityResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckEligibilityResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckEligibilityResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckInquiryEligibilityRequestTest.php b/test/PostOrder/Types/CheckInquiryEligibilityRequestTest.php new file mode 100644 index 000000000..6e1c7cbbf --- /dev/null +++ b/test/PostOrder/Types/CheckInquiryEligibilityRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckInquiryEligibilityRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckInquiryEligibilityResponseTest.php b/test/PostOrder/Types/CheckInquiryEligibilityResponseTest.php new file mode 100644 index 000000000..a3436fd6e --- /dev/null +++ b/test/PostOrder/Types/CheckInquiryEligibilityResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckInquiryEligibilityResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckInquiryEligibilityRestRequestTest.php b/test/PostOrder/Types/CheckInquiryEligibilityRestRequestTest.php new file mode 100644 index 000000000..62eaa7749 --- /dev/null +++ b/test/PostOrder/Types/CheckInquiryEligibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckInquiryEligibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestRequest', $this->obj); + } + + public function testExtendsCheckInquiryEligibilityRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckInquiryEligibilityRestResponseTest.php b/test/PostOrder/Types/CheckInquiryEligibilityRestResponseTest.php new file mode 100644 index 000000000..c58566820 --- /dev/null +++ b/test/PostOrder/Types/CheckInquiryEligibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckInquiryEligibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityRestResponse', $this->obj); + } + + public function testExtendsCheckInquiryEligibilityResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckInquiryEligibilityResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckLabelPrintEligibilityResponseTest.php b/test/PostOrder/Types/CheckLabelPrintEligibilityResponseTest.php new file mode 100644 index 000000000..21b0b2aa2 --- /dev/null +++ b/test/PostOrder/Types/CheckLabelPrintEligibilityResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckLabelPrintEligibilityResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckLabelPrintEligibilityResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckReturnEligibilityRestRequestTest.php b/test/PostOrder/Types/CheckReturnEligibilityRestRequestTest.php new file mode 100644 index 000000000..c870d9aa9 --- /dev/null +++ b/test/PostOrder/Types/CheckReturnEligibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckReturnEligibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestRequest', $this->obj); + } + + public function testExtendsCheckEligibilityRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckEligibilityRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckReturnEligibilityRestResponseTest.php b/test/PostOrder/Types/CheckReturnEligibilityRestResponseTest.php new file mode 100644 index 000000000..5a3fd0522 --- /dev/null +++ b/test/PostOrder/Types/CheckReturnEligibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckReturnEligibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckReturnEligibilityRestResponse', $this->obj); + } + + public function testExtendsCheckEligibilityResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckEligibilityResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckShippingLabelEligibilityRestRequestTest.php b/test/PostOrder/Types/CheckShippingLabelEligibilityRestRequestTest.php new file mode 100644 index 000000000..e4a994413 --- /dev/null +++ b/test/PostOrder/Types/CheckShippingLabelEligibilityRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CheckShippingLabelEligibilityRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CheckShippingLabelEligibilityRestResponseTest.php b/test/PostOrder/Types/CheckShippingLabelEligibilityRestResponseTest.php new file mode 100644 index 000000000..b322d1723 --- /dev/null +++ b/test/PostOrder/Types/CheckShippingLabelEligibilityRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CheckShippingLabelEligibilityRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckShippingLabelEligibilityRestResponse', $this->obj); + } + + public function testExtendsCheckLabelPrintEligibilityResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CheckLabelPrintEligibilityResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/ClaimHistoryEventModelTest.php b/test/PostOrder/Types/ClaimHistoryEventModelTest.php new file mode 100644 index 000000000..e75552489 --- /dev/null +++ b/test/PostOrder/Types/ClaimHistoryEventModelTest.php @@ -0,0 +1,33 @@ +obj = new ClaimHistoryEventModel(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ClaimHistoryEventModel', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ClaimHistoryResponseTest.php b/test/PostOrder/Types/ClaimHistoryResponseTest.php new file mode 100644 index 000000000..3e53c76c2 --- /dev/null +++ b/test/PostOrder/Types/ClaimHistoryResponseTest.php @@ -0,0 +1,33 @@ +obj = new ClaimHistoryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ClaimHistoryResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CloseCaseRestRequestTest.php b/test/PostOrder/Types/CloseCaseRestRequestTest.php new file mode 100644 index 000000000..602d012af --- /dev/null +++ b/test/PostOrder/Types/CloseCaseRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CloseCaseRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseCaseRestRequest', $this->obj); + } + + public function testExtendsBuyerCloseCaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\BuyerCloseCaseRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CloseCaseRestResponseTest.php b/test/PostOrder/Types/CloseCaseRestResponseTest.php new file mode 100644 index 000000000..97db92299 --- /dev/null +++ b/test/PostOrder/Types/CloseCaseRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CloseCaseRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseCaseRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CloseInquiryRestRequestTest.php b/test/PostOrder/Types/CloseInquiryRestRequestTest.php new file mode 100644 index 000000000..eb701a519 --- /dev/null +++ b/test/PostOrder/Types/CloseInquiryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CloseInquiryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseInquiryRestRequest', $this->obj); + } + + public function testExtendsBuyerCloseInquiryRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\BuyerCloseInquiryRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CloseInquiryRestResponseTest.php b/test/PostOrder/Types/CloseInquiryRestResponseTest.php new file mode 100644 index 000000000..8a0b76285 --- /dev/null +++ b/test/PostOrder/Types/CloseInquiryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CloseInquiryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseInquiryRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CloseReturnRequestTest.php b/test/PostOrder/Types/CloseReturnRequestTest.php new file mode 100644 index 000000000..921397627 --- /dev/null +++ b/test/PostOrder/Types/CloseReturnRequestTest.php @@ -0,0 +1,33 @@ +obj = new CloseReturnRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CloseReturnRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConditionDataRangeTypeTest.php b/test/PostOrder/Types/ConditionDataRangeTypeTest.php new file mode 100644 index 000000000..e8ed8c025 --- /dev/null +++ b/test/PostOrder/Types/ConditionDataRangeTypeTest.php @@ -0,0 +1,33 @@ +obj = new ConditionDataRangeType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConditionDataRangeType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConditionListDetailTypeTest.php b/test/PostOrder/Types/ConditionListDetailTypeTest.php new file mode 100644 index 000000000..18869e850 --- /dev/null +++ b/test/PostOrder/Types/ConditionListDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ConditionListDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConditionListDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConfirmCancellationRefundRestRequestTest.php b/test/PostOrder/Types/ConfirmCancellationRefundRestRequestTest.php new file mode 100644 index 000000000..018afb311 --- /dev/null +++ b/test/PostOrder/Types/ConfirmCancellationRefundRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ConfirmCancellationRefundRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestRequest', $this->obj); + } + + public function testExtendsConfirmRefundRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmRefundRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConfirmCancellationRefundRestResponseTest.php b/test/PostOrder/Types/ConfirmCancellationRefundRestResponseTest.php new file mode 100644 index 000000000..fc4b8aed4 --- /dev/null +++ b/test/PostOrder/Types/ConfirmCancellationRefundRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ConfirmCancellationRefundRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmCancellationRefundRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConfirmInquiryRefundRestRequestTest.php b/test/PostOrder/Types/ConfirmInquiryRefundRestRequestTest.php new file mode 100644 index 000000000..3833450f6 --- /dev/null +++ b/test/PostOrder/Types/ConfirmInquiryRefundRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ConfirmInquiryRefundRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConfirmInquiryRefundRestResponseTest.php b/test/PostOrder/Types/ConfirmInquiryRefundRestResponseTest.php new file mode 100644 index 000000000..cf450a8ad --- /dev/null +++ b/test/PostOrder/Types/ConfirmInquiryRefundRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ConfirmInquiryRefundRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmInquiryRefundRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ConfirmRefundRequestTest.php b/test/PostOrder/Types/ConfirmRefundRequestTest.php new file mode 100644 index 000000000..3b67a8139 --- /dev/null +++ b/test/PostOrder/Types/ConfirmRefundRequestTest.php @@ -0,0 +1,33 @@ +obj = new ConfirmRefundRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ConfirmRefundRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CountSummaryTypeTest.php b/test/PostOrder/Types/CountSummaryTypeTest.php new file mode 100644 index 000000000..289a60e58 --- /dev/null +++ b/test/PostOrder/Types/CountSummaryTypeTest.php @@ -0,0 +1,33 @@ +obj = new CountSummaryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CountSummaryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCancelRequestTest.php b/test/PostOrder/Types/CreateCancelRequestTest.php new file mode 100644 index 000000000..87686947d --- /dev/null +++ b/test/PostOrder/Types/CreateCancelRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateCancelRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCancelRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCancelResponseTest.php b/test/PostOrder/Types/CreateCancelResponseTest.php new file mode 100644 index 000000000..86d94940e --- /dev/null +++ b/test/PostOrder/Types/CreateCancelResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateCancelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCancelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCustomListRequestTest.php b/test/PostOrder/Types/CreateCustomListRequestTest.php new file mode 100644 index 000000000..bd47f6c24 --- /dev/null +++ b/test/PostOrder/Types/CreateCustomListRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateCustomListRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCustomListResponseTest.php b/test/PostOrder/Types/CreateCustomListResponseTest.php new file mode 100644 index 000000000..f25305b47 --- /dev/null +++ b/test/PostOrder/Types/CreateCustomListResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateCustomListResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCustomListRestRequestTest.php b/test/PostOrder/Types/CreateCustomListRestRequestTest.php new file mode 100644 index 000000000..245d4b534 --- /dev/null +++ b/test/PostOrder/Types/CreateCustomListRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateCustomListRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListRestRequest', $this->obj); + } + + public function testExtendsCreateCustomListRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateCustomListRestResponseTest.php b/test/PostOrder/Types/CreateCustomListRestResponseTest.php new file mode 100644 index 000000000..6c99d1a2e --- /dev/null +++ b/test/PostOrder/Types/CreateCustomListRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateCustomListRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListRestResponse', $this->obj); + } + + public function testExtendsCreateCustomListResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCustomListResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateDispositionRuleRequestTest.php b/test/PostOrder/Types/CreateDispositionRuleRequestTest.php new file mode 100644 index 000000000..326dcdfcd --- /dev/null +++ b/test/PostOrder/Types/CreateDispositionRuleRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateDispositionRuleRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateDispositionRuleRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateDispositionRuleResponseTest.php b/test/PostOrder/Types/CreateDispositionRuleResponseTest.php new file mode 100644 index 000000000..c16652495 --- /dev/null +++ b/test/PostOrder/Types/CreateDispositionRuleResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateDispositionRuleResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateDispositionRuleResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateInquiryRequestTest.php b/test/PostOrder/Types/CreateInquiryRequestTest.php new file mode 100644 index 000000000..0e15b85de --- /dev/null +++ b/test/PostOrder/Types/CreateInquiryRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateInquiryRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateInquiryRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateInquiryRestRequestTest.php b/test/PostOrder/Types/CreateInquiryRestRequestTest.php new file mode 100644 index 000000000..61b8abbe6 --- /dev/null +++ b/test/PostOrder/Types/CreateInquiryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateInquiryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateInquiryRestRequest', $this->obj); + } + + public function testExtendsCreateInquiryRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateInquiryRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateInquiryRestResponseTest.php b/test/PostOrder/Types/CreateInquiryRestResponseTest.php new file mode 100644 index 000000000..ef596a4eb --- /dev/null +++ b/test/PostOrder/Types/CreateInquiryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateInquiryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateInquiryRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnDraftRestRequestTest.php b/test/PostOrder/Types/CreateReturnDraftRestRequestTest.php new file mode 100644 index 000000000..8dcf34e76 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnDraftRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnDraftRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestRequest', $this->obj); + } + + public function testExtendsSetReturnCreationSessionRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnDraftRestResponseTest.php b/test/PostOrder/Types/CreateReturnDraftRestResponseTest.php new file mode 100644 index 000000000..60edf5423 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnDraftRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnDraftRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnDraftRestResponse', $this->obj); + } + + public function testExtendsSetReturnCreationSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnRequestRestRequestTest.php b/test/PostOrder/Types/CreateReturnRequestRestRequestTest.php new file mode 100644 index 000000000..0458c4ceb --- /dev/null +++ b/test/PostOrder/Types/CreateReturnRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestRequest', $this->obj); + } + + public function testExtendsCreateReturnRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnRequestRestResponseTest.php b/test/PostOrder/Types/CreateReturnRequestRestResponseTest.php new file mode 100644 index 000000000..48415c07b --- /dev/null +++ b/test/PostOrder/Types/CreateReturnRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRequestRestResponse', $this->obj); + } + + public function testExtendsCreateReturnResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnRequestTest.php b/test/PostOrder/Types/CreateReturnRequestTest.php new file mode 100644 index 000000000..2214feb0d --- /dev/null +++ b/test/PostOrder/Types/CreateReturnRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnResponseTest.php b/test/PostOrder/Types/CreateReturnResponseTest.php new file mode 100644 index 000000000..04f3d1cb9 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnRulesRestRequestTest.php b/test/PostOrder/Types/CreateReturnRulesRestRequestTest.php new file mode 100644 index 000000000..17c181213 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnRulesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnRulesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestRequest', $this->obj); + } + + public function testExtendsCreateDispositionRuleRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateDispositionRuleRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnRulesRestResponseTest.php b/test/PostOrder/Types/CreateReturnRulesRestResponseTest.php new file mode 100644 index 000000000..bf7e879c9 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnRulesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnRulesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnRulesRestResponse', $this->obj); + } + + public function testExtendsCreateDispositionRuleResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateDispositionRuleResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnShippingLabelRestRequestTest.php b/test/PostOrder/Types/CreateReturnShippingLabelRestRequestTest.php new file mode 100644 index 000000000..3db704d72 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnShippingLabelRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnShippingLabelRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CreateReturnShippingLabelRestResponseTest.php b/test/PostOrder/Types/CreateReturnShippingLabelRestResponseTest.php new file mode 100644 index 000000000..d5034de45 --- /dev/null +++ b/test/PostOrder/Types/CreateReturnShippingLabelRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateReturnShippingLabelRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateReturnShippingLabelRestResponse', $this->obj); + } + + public function testExtendsInitiateShippingLabelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InitiateShippingLabelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/CustomListDataTypeTest.php b/test/PostOrder/Types/CustomListDataTypeTest.php new file mode 100644 index 000000000..2f176d75b --- /dev/null +++ b/test/PostOrder/Types/CustomListDataTypeTest.php @@ -0,0 +1,33 @@ +obj = new CustomListDataType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CustomListDataType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CustomListDetailTypeTest.php b/test/PostOrder/Types/CustomListDetailTypeTest.php new file mode 100644 index 000000000..5f176112a --- /dev/null +++ b/test/PostOrder/Types/CustomListDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new CustomListDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CustomListDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CustomListModificationTypeTest.php b/test/PostOrder/Types/CustomListModificationTypeTest.php new file mode 100644 index 000000000..e02819507 --- /dev/null +++ b/test/PostOrder/Types/CustomListModificationTypeTest.php @@ -0,0 +1,33 @@ +obj = new CustomListModificationType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CustomListModificationType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/CustomListTypeTest.php b/test/PostOrder/Types/CustomListTypeTest.php new file mode 100644 index 000000000..b2964d83e --- /dev/null +++ b/test/PostOrder/Types/CustomListTypeTest.php @@ -0,0 +1,33 @@ +obj = new CustomListType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CustomListType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DateTimeTest.php b/test/PostOrder/Types/DateTimeTest.php new file mode 100644 index 000000000..c3cf7c9b5 --- /dev/null +++ b/test/PostOrder/Types/DateTimeTest.php @@ -0,0 +1,33 @@ +obj = new DateTime(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DateTime', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DecideReturnRequestTest.php b/test/PostOrder/Types/DecideReturnRequestTest.php new file mode 100644 index 000000000..6980c4ca5 --- /dev/null +++ b/test/PostOrder/Types/DecideReturnRequestTest.php @@ -0,0 +1,33 @@ +obj = new DecideReturnRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DecideReturnRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DecideReturnResponseTest.php b/test/PostOrder/Types/DecideReturnResponseTest.php new file mode 100644 index 000000000..14dbc3c74 --- /dev/null +++ b/test/PostOrder/Types/DecideReturnResponseTest.php @@ -0,0 +1,33 @@ +obj = new DecideReturnResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DecideReturnResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DeleteReturnDraftFileRestRequestTest.php b/test/PostOrder/Types/DeleteReturnDraftFileRestRequestTest.php new file mode 100644 index 000000000..6d5af1d66 --- /dev/null +++ b/test/PostOrder/Types/DeleteReturnDraftFileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteReturnDraftFileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DeleteReturnDraftFileRestResponseTest.php b/test/PostOrder/Types/DeleteReturnDraftFileRestResponseTest.php new file mode 100644 index 000000000..36b5f7edd --- /dev/null +++ b/test/PostOrder/Types/DeleteReturnDraftFileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteReturnDraftFileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DeleteReturnDraftFileRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DeleteReturnFileRestRequestTest.php b/test/PostOrder/Types/DeleteReturnFileRestRequestTest.php new file mode 100644 index 000000000..8ce03c8a2 --- /dev/null +++ b/test/PostOrder/Types/DeleteReturnFileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteReturnFileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DeleteReturnFileRestResponseTest.php b/test/PostOrder/Types/DeleteReturnFileRestResponseTest.php new file mode 100644 index 000000000..b2db1850a --- /dev/null +++ b/test/PostOrder/Types/DeleteReturnFileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteReturnFileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DeleteReturnFileRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/DispositionRuleDetailTypeTest.php b/test/PostOrder/Types/DispositionRuleDetailTypeTest.php new file mode 100644 index 000000000..faf109cec --- /dev/null +++ b/test/PostOrder/Types/DispositionRuleDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new DispositionRuleDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DispositionRuleDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EligibilityErrorTypeTest.php b/test/PostOrder/Types/EligibilityErrorTypeTest.php new file mode 100644 index 000000000..22ae764f6 --- /dev/null +++ b/test/PostOrder/Types/EligibilityErrorTypeTest.php @@ -0,0 +1,33 @@ +obj = new EligibilityErrorType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EligibilityErrorType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EligibilityResponseErrorTest.php b/test/PostOrder/Types/EligibilityResponseErrorTest.php new file mode 100644 index 000000000..987ad4a88 --- /dev/null +++ b/test/PostOrder/Types/EligibilityResponseErrorTest.php @@ -0,0 +1,33 @@ +obj = new EligibilityResponseError(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EligibilityResponseError', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EligibilityResultTypeTest.php b/test/PostOrder/Types/EligibilityResultTypeTest.php new file mode 100644 index 000000000..f5b7a12e6 --- /dev/null +++ b/test/PostOrder/Types/EligibilityResultTypeTest.php @@ -0,0 +1,33 @@ +obj = new EligibilityResultType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EligibilityResultType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ErrorDetailV3Test.php b/test/PostOrder/Types/ErrorDetailV3Test.php new file mode 100644 index 000000000..0c42e5cbb --- /dev/null +++ b/test/PostOrder/Types/ErrorDetailV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorDetailV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ErrorDetailV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ErrorMessageTest.php b/test/PostOrder/Types/ErrorMessageTest.php new file mode 100644 index 000000000..614ca3d34 --- /dev/null +++ b/test/PostOrder/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ErrorParameterTest.php b/test/PostOrder/Types/ErrorParameterTest.php new file mode 100644 index 000000000..fa0353b6a --- /dev/null +++ b/test/PostOrder/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ErrorParameter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ErrorParameterV3Test.php b/test/PostOrder/Types/ErrorParameterV3Test.php new file mode 100644 index 000000000..25cffd85f --- /dev/null +++ b/test/PostOrder/Types/ErrorParameterV3Test.php @@ -0,0 +1,33 @@ +obj = new ErrorParameterV3(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ErrorParameterV3', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ErrorTest.php b/test/PostOrder/Types/ErrorTest.php new file mode 100644 index 000000000..8b3207d2a --- /dev/null +++ b/test/PostOrder/Types/ErrorTest.php @@ -0,0 +1,33 @@ +obj = new Error(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\Error', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateInquiryRequestTest.php b/test/PostOrder/Types/EscalateInquiryRequestTest.php new file mode 100644 index 000000000..57cd2d4d5 --- /dev/null +++ b/test/PostOrder/Types/EscalateInquiryRequestTest.php @@ -0,0 +1,33 @@ +obj = new EscalateInquiryRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateInquiryRestRequestTest.php b/test/PostOrder/Types/EscalateInquiryRestRequestTest.php new file mode 100644 index 000000000..ee602f9b4 --- /dev/null +++ b/test/PostOrder/Types/EscalateInquiryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new EscalateInquiryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestRequest', $this->obj); + } + + public function testExtendsEscalateInquiryRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateInquiryRestResponseTest.php b/test/PostOrder/Types/EscalateInquiryRestResponseTest.php new file mode 100644 index 000000000..a823698be --- /dev/null +++ b/test/PostOrder/Types/EscalateInquiryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new EscalateInquiryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateInquiryRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateRequestTest.php b/test/PostOrder/Types/EscalateRequestTest.php new file mode 100644 index 000000000..4354e3baf --- /dev/null +++ b/test/PostOrder/Types/EscalateRequestTest.php @@ -0,0 +1,33 @@ +obj = new EscalateRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateResponseTest.php b/test/PostOrder/Types/EscalateResponseTest.php new file mode 100644 index 000000000..99583f237 --- /dev/null +++ b/test/PostOrder/Types/EscalateResponseTest.php @@ -0,0 +1,33 @@ +obj = new EscalateResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateReturnRestRequestTest.php b/test/PostOrder/Types/EscalateReturnRestRequestTest.php new file mode 100644 index 000000000..17936d65c --- /dev/null +++ b/test/PostOrder/Types/EscalateReturnRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new EscalateReturnRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateReturnRestRequest', $this->obj); + } + + public function testExtendsEscalateRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalateReturnRestResponseTest.php b/test/PostOrder/Types/EscalateReturnRestResponseTest.php new file mode 100644 index 000000000..f26b001c3 --- /dev/null +++ b/test/PostOrder/Types/EscalateReturnRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new EscalateReturnRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateReturnRestResponse', $this->obj); + } + + public function testExtendsEscalateResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalateResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalationEligibilityInfoTest.php b/test/PostOrder/Types/EscalationEligibilityInfoTest.php new file mode 100644 index 000000000..5d2616e49 --- /dev/null +++ b/test/PostOrder/Types/EscalationEligibilityInfoTest.php @@ -0,0 +1,33 @@ +obj = new EscalationEligibilityInfo(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalationEligibilityInfo', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EscalationInfoTypeTest.php b/test/PostOrder/Types/EscalationInfoTypeTest.php new file mode 100644 index 000000000..4b987f1fe --- /dev/null +++ b/test/PostOrder/Types/EscalationInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new EscalationInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EscalationInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EstimatedRefundDetailTypeTest.php b/test/PostOrder/Types/EstimatedRefundDetailTypeTest.php new file mode 100644 index 000000000..7d530d0c0 --- /dev/null +++ b/test/PostOrder/Types/EstimatedRefundDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new EstimatedRefundDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EstimatedRefundDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EstimatedRefundInfoTypeTest.php b/test/PostOrder/Types/EstimatedRefundInfoTypeTest.php new file mode 100644 index 000000000..031b00773 --- /dev/null +++ b/test/PostOrder/Types/EstimatedRefundInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new EstimatedRefundInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EstimatedRefundInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EstimatedRefundTypeTest.php b/test/PostOrder/Types/EstimatedRefundTypeTest.php new file mode 100644 index 000000000..c15329159 --- /dev/null +++ b/test/PostOrder/Types/EstimatedRefundTypeTest.php @@ -0,0 +1,33 @@ +obj = new EstimatedRefundType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EstimatedRefundType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/EstimatedShippingInfoTypeTest.php b/test/PostOrder/Types/EstimatedShippingInfoTypeTest.php new file mode 100644 index 000000000..0ad7f7714 --- /dev/null +++ b/test/PostOrder/Types/EstimatedShippingInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new EstimatedShippingInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\EstimatedShippingInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/FindCancelResponseTest.php b/test/PostOrder/Types/FindCancelResponseTest.php new file mode 100644 index 000000000..e7951b8ac --- /dev/null +++ b/test/PostOrder/Types/FindCancelResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindCancelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\FindCancelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCancelDetailResponseTest.php b/test/PostOrder/Types/GetCancelDetailResponseTest.php new file mode 100644 index 000000000..07d57bcb0 --- /dev/null +++ b/test/PostOrder/Types/GetCancelDetailResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCancelDetailResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCancelDetailResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCancelFieldGroupTest.php b/test/PostOrder/Types/GetCancelFieldGroupTest.php new file mode 100644 index 000000000..6bded404a --- /dev/null +++ b/test/PostOrder/Types/GetCancelFieldGroupTest.php @@ -0,0 +1,33 @@ +obj = new GetCancelFieldGroup(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCancelFieldGroup', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCancellationRestRequestTest.php b/test/PostOrder/Types/GetCancellationRestRequestTest.php new file mode 100644 index 000000000..63a7fee58 --- /dev/null +++ b/test/PostOrder/Types/GetCancellationRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCancellationRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCancellationRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCancellationRestResponseTest.php b/test/PostOrder/Types/GetCancellationRestResponseTest.php new file mode 100644 index 000000000..4bc919de6 --- /dev/null +++ b/test/PostOrder/Types/GetCancellationRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCancellationRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCancellationRestResponse', $this->obj); + } + + public function testExtendsGetCancelDetailResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCancelDetailResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCaseRestRequestTest.php b/test/PostOrder/Types/GetCaseRestRequestTest.php new file mode 100644 index 000000000..eddf5bf92 --- /dev/null +++ b/test/PostOrder/Types/GetCaseRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCaseRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCaseRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCaseRestResponseTest.php b/test/PostOrder/Types/GetCaseRestResponseTest.php new file mode 100644 index 000000000..9b7c2eb04 --- /dev/null +++ b/test/PostOrder/Types/GetCaseRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCaseRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCaseRestResponse', $this->obj); + } + + public function testExtendsCaseDetailsResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseDetailsResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCustomListDetailResponseTest.php b/test/PostOrder/Types/GetCustomListDetailResponseTest.php new file mode 100644 index 000000000..c4527d3d4 --- /dev/null +++ b/test/PostOrder/Types/GetCustomListDetailResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCustomListDetailResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListDetailResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCustomListRestResponseTest.php b/test/PostOrder/Types/GetCustomListRestResponseTest.php new file mode 100644 index 000000000..c8de312d7 --- /dev/null +++ b/test/PostOrder/Types/GetCustomListRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCustomListRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListRestResponse', $this->obj); + } + + public function testExtendsGetCustomListDetailResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListDetailResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCustomListsResponseTest.php b/test/PostOrder/Types/GetCustomListsResponseTest.php new file mode 100644 index 000000000..f5e451217 --- /dev/null +++ b/test/PostOrder/Types/GetCustomListsResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCustomListsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListsResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetCustomListsRestResponseTest.php b/test/PostOrder/Types/GetCustomListsRestResponseTest.php new file mode 100644 index 000000000..d5c25bfe5 --- /dev/null +++ b/test/PostOrder/Types/GetCustomListsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCustomListsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListsRestResponse', $this->obj); + } + + public function testExtendsGetCustomListsResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetCustomListsResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetDetailResponseTest.php b/test/PostOrder/Types/GetDetailResponseTest.php new file mode 100644 index 000000000..6fdea9403 --- /dev/null +++ b/test/PostOrder/Types/GetDetailResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDetailResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDetailResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetDispositionRuleDetailResponseTest.php b/test/PostOrder/Types/GetDispositionRuleDetailResponseTest.php new file mode 100644 index 000000000..3ddc70611 --- /dev/null +++ b/test/PostOrder/Types/GetDispositionRuleDetailResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDispositionRuleDetailResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleDetailResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetDispositionRuleTemplatesResponseTest.php b/test/PostOrder/Types/GetDispositionRuleTemplatesResponseTest.php new file mode 100644 index 000000000..8d88fd0e7 --- /dev/null +++ b/test/PostOrder/Types/GetDispositionRuleTemplatesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDispositionRuleTemplatesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleTemplatesResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetDispositionRuleTriggerHistResponseTest.php b/test/PostOrder/Types/GetDispositionRuleTriggerHistResponseTest.php new file mode 100644 index 000000000..3d6e508fd --- /dev/null +++ b/test/PostOrder/Types/GetDispositionRuleTriggerHistResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDispositionRuleTriggerHistResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleTriggerHistResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetDispositionRulesResponseTest.php b/test/PostOrder/Types/GetDispositionRulesResponseTest.php new file mode 100644 index 000000000..b8fc1b417 --- /dev/null +++ b/test/PostOrder/Types/GetDispositionRulesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetDispositionRulesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRulesResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetEstimateRequestTest.php b/test/PostOrder/Types/GetEstimateRequestTest.php new file mode 100644 index 000000000..eef23e7b0 --- /dev/null +++ b/test/PostOrder/Types/GetEstimateRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetEstimateRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetEstimateRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetEstimateResponseTest.php b/test/PostOrder/Types/GetEstimateResponseTest.php new file mode 100644 index 000000000..e96d6e4cc --- /dev/null +++ b/test/PostOrder/Types/GetEstimateResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetEstimateResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetEstimateResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetFileResponseTest.php b/test/PostOrder/Types/GetFileResponseTest.php new file mode 100644 index 000000000..31ab9af7c --- /dev/null +++ b/test/PostOrder/Types/GetFileResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetFileResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetFileResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetInquiryRestRequestTest.php b/test/PostOrder/Types/GetInquiryRestRequestTest.php new file mode 100644 index 000000000..ce2bfcd5b --- /dev/null +++ b/test/PostOrder/Types/GetInquiryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetInquiryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetInquiryRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetInquiryRestResponseTest.php b/test/PostOrder/Types/GetInquiryRestResponseTest.php new file mode 100644 index 000000000..b586ba932 --- /dev/null +++ b/test/PostOrder/Types/GetInquiryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetInquiryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetInquiryRestResponse', $this->obj); + } + + public function testExtendsInquiryDetailsResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryDetailsResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetMetadataResponseTest.php b/test/PostOrder/Types/GetMetadataResponseTest.php new file mode 100644 index 000000000..7a607a6a6 --- /dev/null +++ b/test/PostOrder/Types/GetMetadataResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetMetadataResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetMetadataResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnCreationSessionResponseTest.php b/test/PostOrder/Types/GetReturnCreationSessionResponseTest.php new file mode 100644 index 000000000..0bb9bdae5 --- /dev/null +++ b/test/PostOrder/Types/GetReturnCreationSessionResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnCreationSessionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnCreationSessionResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnDraftFilesRestRequestTest.php b/test/PostOrder/Types/GetReturnDraftFilesRestRequestTest.php new file mode 100644 index 000000000..2f2a20982 --- /dev/null +++ b/test/PostOrder/Types/GetReturnDraftFilesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnDraftFilesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnDraftFilesRestResponseTest.php b/test/PostOrder/Types/GetReturnDraftFilesRestResponseTest.php new file mode 100644 index 000000000..2d6216b68 --- /dev/null +++ b/test/PostOrder/Types/GetReturnDraftFilesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnDraftFilesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnDraftFilesRestResponse', $this->obj); + } + + public function testExtendsGetFileResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetFileResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnDraftRestRequestTest.php b/test/PostOrder/Types/GetReturnDraftRestRequestTest.php new file mode 100644 index 000000000..76edd259f --- /dev/null +++ b/test/PostOrder/Types/GetReturnDraftRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnDraftRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnDraftRestResponseTest.php b/test/PostOrder/Types/GetReturnDraftRestResponseTest.php new file mode 100644 index 000000000..4389232ec --- /dev/null +++ b/test/PostOrder/Types/GetReturnDraftRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnDraftRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnDraftRestResponse', $this->obj); + } + + public function testExtendsGetReturnCreationSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnCreationSessionResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnEstimateRestRequestTest.php b/test/PostOrder/Types/GetReturnEstimateRestRequestTest.php new file mode 100644 index 000000000..50bf386d9 --- /dev/null +++ b/test/PostOrder/Types/GetReturnEstimateRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnEstimateRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestRequest', $this->obj); + } + + public function testExtendsGetEstimateRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetEstimateRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnEstimateRestResponseTest.php b/test/PostOrder/Types/GetReturnEstimateRestResponseTest.php new file mode 100644 index 000000000..d6638c196 --- /dev/null +++ b/test/PostOrder/Types/GetReturnEstimateRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnEstimateRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnEstimateRestResponse', $this->obj); + } + + public function testExtendsGetEstimateResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetEstimateResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnFilesRestRequestTest.php b/test/PostOrder/Types/GetReturnFilesRestRequestTest.php new file mode 100644 index 000000000..6924021a3 --- /dev/null +++ b/test/PostOrder/Types/GetReturnFilesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnFilesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnFilesRestResponseTest.php b/test/PostOrder/Types/GetReturnFilesRestResponseTest.php new file mode 100644 index 000000000..c36830172 --- /dev/null +++ b/test/PostOrder/Types/GetReturnFilesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnFilesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnFilesRestResponse', $this->obj); + } + + public function testExtendsGetFileResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetFileResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnMetadataRestRequestTest.php b/test/PostOrder/Types/GetReturnMetadataRestRequestTest.php new file mode 100644 index 000000000..f0220a6e8 --- /dev/null +++ b/test/PostOrder/Types/GetReturnMetadataRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnMetadataRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnMetadataRestResponseTest.php b/test/PostOrder/Types/GetReturnMetadataRestResponseTest.php new file mode 100644 index 000000000..ee175bdaf --- /dev/null +++ b/test/PostOrder/Types/GetReturnMetadataRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnMetadataRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnMetadataRestResponse', $this->obj); + } + + public function testExtendsGetMetadataResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetMetadataResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnPreferencesRestResponseTest.php b/test/PostOrder/Types/GetReturnPreferencesRestResponseTest.php new file mode 100644 index 000000000..fe661de48 --- /dev/null +++ b/test/PostOrder/Types/GetReturnPreferencesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnPreferencesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnPreferencesRestResponse', $this->obj); + } + + public function testExtendsGetSellerReturnPreferenceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetSellerReturnPreferenceResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRestRequestTest.php b/test/PostOrder/Types/GetReturnRestRequestTest.php new file mode 100644 index 000000000..715ca2865 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRestResponseTest.php b/test/PostOrder/Types/GetReturnRestResponseTest.php new file mode 100644 index 000000000..939755442 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRestResponse', $this->obj); + } + + public function testExtendsGetDetailResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDetailResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRuleHistoryRestRequestTest.php b/test/PostOrder/Types/GetReturnRuleHistoryRestRequestTest.php new file mode 100644 index 000000000..164961178 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRuleHistoryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRuleHistoryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRuleHistoryRestResponseTest.php b/test/PostOrder/Types/GetReturnRuleHistoryRestResponseTest.php new file mode 100644 index 000000000..bba1ce64e --- /dev/null +++ b/test/PostOrder/Types/GetReturnRuleHistoryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRuleHistoryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRuleHistoryRestResponse', $this->obj); + } + + public function testExtendsGetDispositionRuleTriggerHistResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleTriggerHistResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRuleRestRequestTest.php b/test/PostOrder/Types/GetReturnRuleRestRequestTest.php new file mode 100644 index 000000000..2e12e5fd5 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRuleRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRuleRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRuleRestResponseTest.php b/test/PostOrder/Types/GetReturnRuleRestResponseTest.php new file mode 100644 index 000000000..d39c1248b --- /dev/null +++ b/test/PostOrder/Types/GetReturnRuleRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRuleRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRuleRestResponse', $this->obj); + } + + public function testExtendsGetDispositionRuleDetailResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleDetailResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRuleTemplatesRestResponseTest.php b/test/PostOrder/Types/GetReturnRuleTemplatesRestResponseTest.php new file mode 100644 index 000000000..41b82f33e --- /dev/null +++ b/test/PostOrder/Types/GetReturnRuleTemplatesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRuleTemplatesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRuleTemplatesRestResponse', $this->obj); + } + + public function testExtendsGetDispositionRuleTemplatesResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRuleTemplatesResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRulesRestRequestTest.php b/test/PostOrder/Types/GetReturnRulesRestRequestTest.php new file mode 100644 index 000000000..5b395a294 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRulesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRulesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnRulesRestResponseTest.php b/test/PostOrder/Types/GetReturnRulesRestResponseTest.php new file mode 100644 index 000000000..99fc9d0b3 --- /dev/null +++ b/test/PostOrder/Types/GetReturnRulesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnRulesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnRulesRestResponse', $this->obj); + } + + public function testExtendsGetDispositionRulesResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetDispositionRulesResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnShippingLabelRestRequestTest.php b/test/PostOrder/Types/GetReturnShippingLabelRestRequestTest.php new file mode 100644 index 000000000..b19c32abe --- /dev/null +++ b/test/PostOrder/Types/GetReturnShippingLabelRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnShippingLabelRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetReturnShippingLabelRestResponseTest.php b/test/PostOrder/Types/GetReturnShippingLabelRestResponseTest.php new file mode 100644 index 000000000..3387c4d93 --- /dev/null +++ b/test/PostOrder/Types/GetReturnShippingLabelRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetReturnShippingLabelRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetReturnShippingLabelRestResponse', $this->obj); + } + + public function testExtendsGetShippingLabelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetShippingLabelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetSellerReturnPreferenceResponseTest.php b/test/PostOrder/Types/GetSellerReturnPreferenceResponseTest.php new file mode 100644 index 000000000..3d2a4171c --- /dev/null +++ b/test/PostOrder/Types/GetSellerReturnPreferenceResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetSellerReturnPreferenceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetSellerReturnPreferenceResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetShipmentTrackingRestRequestTest.php b/test/PostOrder/Types/GetShipmentTrackingRestRequestTest.php new file mode 100644 index 000000000..406796823 --- /dev/null +++ b/test/PostOrder/Types/GetShipmentTrackingRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetShipmentTrackingRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetShipmentTrackingRestResponseTest.php b/test/PostOrder/Types/GetShipmentTrackingRestResponseTest.php new file mode 100644 index 000000000..ff3447444 --- /dev/null +++ b/test/PostOrder/Types/GetShipmentTrackingRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetShipmentTrackingRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetShipmentTrackingRestResponse', $this->obj); + } + + public function testExtendsGetTrackingHistoryResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetTrackingHistoryResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetShippingLabelResponseTest.php b/test/PostOrder/Types/GetShippingLabelResponseTest.php new file mode 100644 index 000000000..c4c543595 --- /dev/null +++ b/test/PostOrder/Types/GetShippingLabelResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetShippingLabelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetShippingLabelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetStoreCategoriesRestResponseTest.php b/test/PostOrder/Types/GetStoreCategoriesRestResponseTest.php new file mode 100644 index 000000000..7742f907b --- /dev/null +++ b/test/PostOrder/Types/GetStoreCategoriesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetStoreCategoriesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetStoreCategoriesRestResponse', $this->obj); + } + + public function testExtendsGetStoreCategoryResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetStoreCategoryResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetStoreCategoryResponseTest.php b/test/PostOrder/Types/GetStoreCategoryResponseTest.php new file mode 100644 index 000000000..b5e299b2e --- /dev/null +++ b/test/PostOrder/Types/GetStoreCategoryResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetStoreCategoryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetStoreCategoryResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetSummaryResponseTest.php b/test/PostOrder/Types/GetSummaryResponseTest.php new file mode 100644 index 000000000..b3d0ccda6 --- /dev/null +++ b/test/PostOrder/Types/GetSummaryResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetSummaryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetSummaryResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/GetTrackingHistoryResponseTest.php b/test/PostOrder/Types/GetTrackingHistoryResponseTest.php new file mode 100644 index 000000000..59e5c1e14 --- /dev/null +++ b/test/PostOrder/Types/GetTrackingHistoryResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetTrackingHistoryResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetTrackingHistoryResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InitiateShippingLabelResponseTest.php b/test/PostOrder/Types/InitiateShippingLabelResponseTest.php new file mode 100644 index 000000000..d0f9cc76f --- /dev/null +++ b/test/PostOrder/Types/InitiateShippingLabelResponseTest.php @@ -0,0 +1,33 @@ +obj = new InitiateShippingLabelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InitiateShippingLabelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquiryDetailsResponseTest.php b/test/PostOrder/Types/InquiryDetailsResponseTest.php new file mode 100644 index 000000000..c03213103 --- /dev/null +++ b/test/PostOrder/Types/InquiryDetailsResponseTest.php @@ -0,0 +1,33 @@ +obj = new InquiryDetailsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryDetailsResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquiryDetailsTest.php b/test/PostOrder/Types/InquiryDetailsTest.php new file mode 100644 index 000000000..acdb34a30 --- /dev/null +++ b/test/PostOrder/Types/InquiryDetailsTest.php @@ -0,0 +1,33 @@ +obj = new InquiryDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquirySearchResponseTest.php b/test/PostOrder/Types/InquirySearchResponseTest.php new file mode 100644 index 000000000..626de8de2 --- /dev/null +++ b/test/PostOrder/Types/InquirySearchResponseTest.php @@ -0,0 +1,33 @@ +obj = new InquirySearchResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquirySearchResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquiryStatusFilterTest.php b/test/PostOrder/Types/InquiryStatusFilterTest.php new file mode 100644 index 000000000..c0a4f7d7f --- /dev/null +++ b/test/PostOrder/Types/InquiryStatusFilterTest.php @@ -0,0 +1,33 @@ +obj = new InquiryStatusFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryStatusFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquirySummaryTypeTest.php b/test/PostOrder/Types/InquirySummaryTypeTest.php new file mode 100644 index 000000000..0a3af3ebe --- /dev/null +++ b/test/PostOrder/Types/InquirySummaryTypeTest.php @@ -0,0 +1,33 @@ +obj = new InquirySummaryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquirySummaryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/InquiryVoluntaryRefundRequestTest.php b/test/PostOrder/Types/InquiryVoluntaryRefundRequestTest.php new file mode 100644 index 000000000..d91003755 --- /dev/null +++ b/test/PostOrder/Types/InquiryVoluntaryRefundRequestTest.php @@ -0,0 +1,33 @@ +obj = new InquiryVoluntaryRefundRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryVoluntaryRefundRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueCaseRefundRestRequestTest.php b/test/PostOrder/Types/IssueCaseRefundRestRequestTest.php new file mode 100644 index 000000000..28a5f4d94 --- /dev/null +++ b/test/PostOrder/Types/IssueCaseRefundRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new IssueCaseRefundRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestRequest', $this->obj); + } + + public function testExtendsCaseVoluntaryRefundRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseVoluntaryRefundRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueCaseRefundRestResponseTest.php b/test/PostOrder/Types/IssueCaseRefundRestResponseTest.php new file mode 100644 index 000000000..7b573b009 --- /dev/null +++ b/test/PostOrder/Types/IssueCaseRefundRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new IssueCaseRefundRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueCaseRefundRestResponse', $this->obj); + } + + public function testExtendsVoluntaryRefundResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoluntaryRefundResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueInquiryRefundRestRequestTest.php b/test/PostOrder/Types/IssueInquiryRefundRestRequestTest.php new file mode 100644 index 000000000..84187a28f --- /dev/null +++ b/test/PostOrder/Types/IssueInquiryRefundRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new IssueInquiryRefundRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestRequest', $this->obj); + } + + public function testExtendsInquiryVoluntaryRefundRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquiryVoluntaryRefundRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueInquiryRefundRestResponseTest.php b/test/PostOrder/Types/IssueInquiryRefundRestResponseTest.php new file mode 100644 index 000000000..9b40ade42 --- /dev/null +++ b/test/PostOrder/Types/IssueInquiryRefundRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new IssueInquiryRefundRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueInquiryRefundRestResponse', $this->obj); + } + + public function testExtendsVoluntaryRefundResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoluntaryRefundResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueRefundRequestTest.php b/test/PostOrder/Types/IssueRefundRequestTest.php new file mode 100644 index 000000000..59c476d68 --- /dev/null +++ b/test/PostOrder/Types/IssueRefundRequestTest.php @@ -0,0 +1,33 @@ +obj = new IssueRefundRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueRefundRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueRefundResponseTest.php b/test/PostOrder/Types/IssueRefundResponseTest.php new file mode 100644 index 000000000..10b14739f --- /dev/null +++ b/test/PostOrder/Types/IssueRefundResponseTest.php @@ -0,0 +1,33 @@ +obj = new IssueRefundResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueRefundResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueReturnRefundRestRequestTest.php b/test/PostOrder/Types/IssueReturnRefundRestRequestTest.php new file mode 100644 index 000000000..9d90595cd --- /dev/null +++ b/test/PostOrder/Types/IssueReturnRefundRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new IssueReturnRefundRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestRequest', $this->obj); + } + + public function testExtendsIssueRefundRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueRefundRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/IssueReturnRefundRestResponseTest.php b/test/PostOrder/Types/IssueReturnRefundRestResponseTest.php new file mode 100644 index 000000000..22159c7da --- /dev/null +++ b/test/PostOrder/Types/IssueReturnRefundRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new IssueReturnRefundRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueReturnRefundRestResponse', $this->obj); + } + + public function testExtendsIssueRefundResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\IssueRefundResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/ItemDetailTypeTest.php b/test/PostOrder/Types/ItemDetailTypeTest.php new file mode 100644 index 000000000..76af97bc3 --- /dev/null +++ b/test/PostOrder/Types/ItemDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ItemDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ItemDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ItemDetailsTest.php b/test/PostOrder/Types/ItemDetailsTest.php new file mode 100644 index 000000000..90898a320 --- /dev/null +++ b/test/PostOrder/Types/ItemDetailsTest.php @@ -0,0 +1,33 @@ +obj = new ItemDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ItemDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ItemEligibilityResultTest.php b/test/PostOrder/Types/ItemEligibilityResultTest.php new file mode 100644 index 000000000..250c80d23 --- /dev/null +++ b/test/PostOrder/Types/ItemEligibilityResultTest.php @@ -0,0 +1,33 @@ +obj = new ItemEligibilityResult(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ItemEligibilityResult', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ItemizedRefundDetailTypeTest.php b/test/PostOrder/Types/ItemizedRefundDetailTypeTest.php new file mode 100644 index 000000000..9b022835d --- /dev/null +++ b/test/PostOrder/Types/ItemizedRefundDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ItemizedRefundDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ItemizedRefundDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ItemizedReturnShippingCostTypeTest.php b/test/PostOrder/Types/ItemizedReturnShippingCostTypeTest.php new file mode 100644 index 000000000..b20907f0b --- /dev/null +++ b/test/PostOrder/Types/ItemizedReturnShippingCostTypeTest.php @@ -0,0 +1,33 @@ +obj = new ItemizedReturnShippingCostType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ItemizedReturnShippingCostType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ListDataTypeTest.php b/test/PostOrder/Types/ListDataTypeTest.php new file mode 100644 index 000000000..bad7daa2d --- /dev/null +++ b/test/PostOrder/Types/ListDataTypeTest.php @@ -0,0 +1,33 @@ +obj = new ListDataType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ListDataType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkAsReceivedRequestTest.php b/test/PostOrder/Types/MarkAsReceivedRequestTest.php new file mode 100644 index 000000000..47bee261e --- /dev/null +++ b/test/PostOrder/Types/MarkAsReceivedRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkAsReceivedRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkAsReceivedRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkAsShippedRequestTest.php b/test/PostOrder/Types/MarkAsShippedRequestTest.php new file mode 100644 index 000000000..243f0c0db --- /dev/null +++ b/test/PostOrder/Types/MarkAsShippedRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkAsShippedRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkAsShippedRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkRefundSentRequestTest.php b/test/PostOrder/Types/MarkRefundSentRequestTest.php new file mode 100644 index 000000000..48a4eb052 --- /dev/null +++ b/test/PostOrder/Types/MarkRefundSentRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkRefundSentRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkRefundSentRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnReceivedRestRequestTest.php b/test/PostOrder/Types/MarkReturnReceivedRestRequestTest.php new file mode 100644 index 000000000..47c769fea --- /dev/null +++ b/test/PostOrder/Types/MarkReturnReceivedRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnReceivedRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestRequest', $this->obj); + } + + public function testExtendsMarkAsReceivedRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkAsReceivedRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnReceivedRestResponseTest.php b/test/PostOrder/Types/MarkReturnReceivedRestResponseTest.php new file mode 100644 index 000000000..f5ee90798 --- /dev/null +++ b/test/PostOrder/Types/MarkReturnReceivedRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnReceivedRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnReceivedRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnRefundReceivedRestRequestTest.php b/test/PostOrder/Types/MarkReturnRefundReceivedRestRequestTest.php new file mode 100644 index 000000000..32403b19c --- /dev/null +++ b/test/PostOrder/Types/MarkReturnRefundReceivedRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnRefundReceivedRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnRefundReceivedRestResponseTest.php b/test/PostOrder/Types/MarkReturnRefundReceivedRestResponseTest.php new file mode 100644 index 000000000..8f39b903a --- /dev/null +++ b/test/PostOrder/Types/MarkReturnRefundReceivedRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnRefundReceivedRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundReceivedRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnRefundSentRestRequestTest.php b/test/PostOrder/Types/MarkReturnRefundSentRestRequestTest.php new file mode 100644 index 000000000..ecb6710b1 --- /dev/null +++ b/test/PostOrder/Types/MarkReturnRefundSentRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnRefundSentRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestRequest', $this->obj); + } + + public function testExtendsMarkRefundSentRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkRefundSentRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnRefundSentRestResponseTest.php b/test/PostOrder/Types/MarkReturnRefundSentRestResponseTest.php new file mode 100644 index 000000000..ed0e09f03 --- /dev/null +++ b/test/PostOrder/Types/MarkReturnRefundSentRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnRefundSentRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnRefundSentRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnShippedRestRequestTest.php b/test/PostOrder/Types/MarkReturnShippedRestRequestTest.php new file mode 100644 index 000000000..201047049 --- /dev/null +++ b/test/PostOrder/Types/MarkReturnShippedRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnShippedRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestRequest', $this->obj); + } + + public function testExtendsMarkAsShippedRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkAsShippedRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/MarkReturnShippedRestResponseTest.php b/test/PostOrder/Types/MarkReturnShippedRestResponseTest.php new file mode 100644 index 000000000..78a6fcf0f --- /dev/null +++ b/test/PostOrder/Types/MarkReturnShippedRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new MarkReturnShippedRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MarkReturnShippedRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ModifyCustomListRequestTest.php b/test/PostOrder/Types/ModifyCustomListRequestTest.php new file mode 100644 index 000000000..1a92147f2 --- /dev/null +++ b/test/PostOrder/Types/ModifyCustomListRequestTest.php @@ -0,0 +1,33 @@ +obj = new ModifyCustomListRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyCustomListRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ModifyCustomListResponseTest.php b/test/PostOrder/Types/ModifyCustomListResponseTest.php new file mode 100644 index 000000000..8b110aa40 --- /dev/null +++ b/test/PostOrder/Types/ModifyCustomListResponseTest.php @@ -0,0 +1,33 @@ +obj = new ModifyCustomListResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyCustomListResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ModifyDispositionRuleRequestTest.php b/test/PostOrder/Types/ModifyDispositionRuleRequestTest.php new file mode 100644 index 000000000..4717a432e --- /dev/null +++ b/test/PostOrder/Types/ModifyDispositionRuleRequestTest.php @@ -0,0 +1,33 @@ +obj = new ModifyDispositionRuleRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyDispositionRuleRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MoneyMovementDetailTypeTest.php b/test/PostOrder/Types/MoneyMovementDetailTypeTest.php new file mode 100644 index 000000000..d91f985a4 --- /dev/null +++ b/test/PostOrder/Types/MoneyMovementDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new MoneyMovementDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MoneyMovementDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MoneyMovementEntriesTest.php b/test/PostOrder/Types/MoneyMovementEntriesTest.php new file mode 100644 index 000000000..a3f1b4d8a --- /dev/null +++ b/test/PostOrder/Types/MoneyMovementEntriesTest.php @@ -0,0 +1,33 @@ +obj = new MoneyMovementEntries(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MoneyMovementEntries', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MoneyMovementEntryTest.php b/test/PostOrder/Types/MoneyMovementEntryTest.php new file mode 100644 index 000000000..b66898068 --- /dev/null +++ b/test/PostOrder/Types/MoneyMovementEntryTest.php @@ -0,0 +1,33 @@ +obj = new MoneyMovementEntry(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MoneyMovementEntry', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/MoneyMovementRefTest.php b/test/PostOrder/Types/MoneyMovementRefTest.php new file mode 100644 index 000000000..8e06f6195 --- /dev/null +++ b/test/PostOrder/Types/MoneyMovementRefTest.php @@ -0,0 +1,33 @@ +obj = new MoneyMovementRef(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\MoneyMovementRef', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/OrderCancelLineItemTest.php b/test/PostOrder/Types/OrderCancelLineItemTest.php new file mode 100644 index 000000000..ef665d792 --- /dev/null +++ b/test/PostOrder/Types/OrderCancelLineItemTest.php @@ -0,0 +1,33 @@ +obj = new OrderCancelLineItem(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\OrderCancelLineItem', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/OrderEligibilityCheckInfoTest.php b/test/PostOrder/Types/OrderEligibilityCheckInfoTest.php new file mode 100644 index 000000000..d6ec5e6a5 --- /dev/null +++ b/test/PostOrder/Types/OrderEligibilityCheckInfoTest.php @@ -0,0 +1,33 @@ +obj = new OrderEligibilityCheckInfo(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\OrderEligibilityCheckInfo', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/OrderEligibilityResultTest.php b/test/PostOrder/Types/OrderEligibilityResultTest.php new file mode 100644 index 000000000..60ccae0be --- /dev/null +++ b/test/PostOrder/Types/OrderEligibilityResultTest.php @@ -0,0 +1,33 @@ +obj = new OrderEligibilityResult(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\OrderEligibilityResult', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/PaginationOutputTest.php b/test/PostOrder/Types/PaginationOutputTest.php new file mode 100644 index 000000000..9498bc4ab --- /dev/null +++ b/test/PostOrder/Types/PaginationOutputTest.php @@ -0,0 +1,33 @@ +obj = new PaginationOutput(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\PaginationOutput', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/PriorityListTypeTest.php b/test/PostOrder/Types/PriorityListTypeTest.php new file mode 100644 index 000000000..a91854f1a --- /dev/null +++ b/test/PostOrder/Types/PriorityListTypeTest.php @@ -0,0 +1,33 @@ +obj = new PriorityListType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\PriorityListType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProcessReturnRequestRestRequestTest.php b/test/PostOrder/Types/ProcessReturnRequestRestRequestTest.php new file mode 100644 index 000000000..2ffaabb84 --- /dev/null +++ b/test/PostOrder/Types/ProcessReturnRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProcessReturnRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestRequest', $this->obj); + } + + public function testExtendsDecideReturnRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DecideReturnRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProcessReturnRequestRestResponseTest.php b/test/PostOrder/Types/ProcessReturnRequestRestResponseTest.php new file mode 100644 index 000000000..3de468585 --- /dev/null +++ b/test/PostOrder/Types/ProcessReturnRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProcessReturnRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestResponse', $this->obj); + } + + public function testExtendsDecideReturnResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\DecideReturnResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideInquiryRefundInfoRestRequestTest.php b/test/PostOrder/Types/ProvideInquiryRefundInfoRestRequestTest.php new file mode 100644 index 000000000..025ba81e9 --- /dev/null +++ b/test/PostOrder/Types/ProvideInquiryRefundInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvideInquiryRefundInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestRequest', $this->obj); + } + + public function testExtendsSellerProvideRefundInfoRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SellerProvideRefundInfoRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideInquiryRefundInfoRestResponseTest.php b/test/PostOrder/Types/ProvideInquiryRefundInfoRestResponseTest.php new file mode 100644 index 000000000..c79e828cd --- /dev/null +++ b/test/PostOrder/Types/ProvideInquiryRefundInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProvideInquiryRefundInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideInquiryRefundInfoRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideInquiryShipmentInfoRestRequestTest.php b/test/PostOrder/Types/ProvideInquiryShipmentInfoRestRequestTest.php new file mode 100644 index 000000000..7071ef990 --- /dev/null +++ b/test/PostOrder/Types/ProvideInquiryShipmentInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvideInquiryShipmentInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestRequest', $this->obj); + } + + public function testExtendsShipmentInfoRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ShipmentInfoRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideInquiryShipmentInfoRestResponseTest.php b/test/PostOrder/Types/ProvideInquiryShipmentInfoRestResponseTest.php new file mode 100644 index 000000000..bfa26c95b --- /dev/null +++ b/test/PostOrder/Types/ProvideInquiryShipmentInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProvideInquiryShipmentInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideInquiryShipmentInfoRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideLabelRequestTest.php b/test/PostOrder/Types/ProvideLabelRequestTest.php new file mode 100644 index 000000000..b137f7e96 --- /dev/null +++ b/test/PostOrder/Types/ProvideLabelRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvideLabelRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideLabelRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideLabelResponseTest.php b/test/PostOrder/Types/ProvideLabelResponseTest.php new file mode 100644 index 000000000..1f534e74b --- /dev/null +++ b/test/PostOrder/Types/ProvideLabelResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProvideLabelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideLabelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideReturnShipmentInfoRestRequestTest.php b/test/PostOrder/Types/ProvideReturnShipmentInfoRestRequestTest.php new file mode 100644 index 000000000..c238f7710 --- /dev/null +++ b/test/PostOrder/Types/ProvideReturnShipmentInfoRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvideReturnShipmentInfoRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestRequest', $this->obj); + } + + public function testExtendsProvideShipmentInfoRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideShipmentInfoRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideReturnShipmentInfoRestResponseTest.php b/test/PostOrder/Types/ProvideReturnShipmentInfoRestResponseTest.php new file mode 100644 index 000000000..0ae21718e --- /dev/null +++ b/test/PostOrder/Types/ProvideReturnShipmentInfoRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProvideReturnShipmentInfoRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideReturnShipmentInfoRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvideShipmentInfoRequestTest.php b/test/PostOrder/Types/ProvideShipmentInfoRequestTest.php new file mode 100644 index 000000000..980371099 --- /dev/null +++ b/test/PostOrder/Types/ProvideShipmentInfoRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvideShipmentInfoRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvideShipmentInfoRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvidesReturnAddressRestRequestTest.php b/test/PostOrder/Types/ProvidesReturnAddressRestRequestTest.php new file mode 100644 index 000000000..f525b1778 --- /dev/null +++ b/test/PostOrder/Types/ProvidesReturnAddressRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProvidesReturnAddressRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestRequest', $this->obj); + } + + public function testExtendsReturnAddressRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnAddressRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/ProvidesReturnAddressRestResponseTest.php b/test/PostOrder/Types/ProvidesReturnAddressRestResponseTest.php new file mode 100644 index 000000000..8d3c98418 --- /dev/null +++ b/test/PostOrder/Types/ProvidesReturnAddressRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProvidesReturnAddressRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ProvidesReturnAddressRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RefundAmountsTest.php b/test/PostOrder/Types/RefundAmountsTest.php new file mode 100644 index 000000000..435ba0b58 --- /dev/null +++ b/test/PostOrder/Types/RefundAmountsTest.php @@ -0,0 +1,33 @@ +obj = new RefundAmounts(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RefundAmounts', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RefundDetailTypeTest.php b/test/PostOrder/Types/RefundDetailTypeTest.php new file mode 100644 index 000000000..bf979562c --- /dev/null +++ b/test/PostOrder/Types/RefundDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RefundDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RefundDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RefundInfoTypeTest.php b/test/PostOrder/Types/RefundInfoTypeTest.php new file mode 100644 index 000000000..5a308f2a1 --- /dev/null +++ b/test/PostOrder/Types/RefundInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new RefundInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RefundInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RefundTypeTest.php b/test/PostOrder/Types/RefundTypeTest.php new file mode 100644 index 000000000..58088549c --- /dev/null +++ b/test/PostOrder/Types/RefundTypeTest.php @@ -0,0 +1,33 @@ +obj = new RefundType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RefundType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RejectCancelRequestTest.php b/test/PostOrder/Types/RejectCancelRequestTest.php new file mode 100644 index 000000000..e8c4664fc --- /dev/null +++ b/test/PostOrder/Types/RejectCancelRequestTest.php @@ -0,0 +1,33 @@ +obj = new RejectCancelRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RejectCancelRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RejectCancellationRequestRestRequestTest.php b/test/PostOrder/Types/RejectCancellationRequestRestRequestTest.php new file mode 100644 index 000000000..417939f92 --- /dev/null +++ b/test/PostOrder/Types/RejectCancellationRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new RejectCancellationRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestRequest', $this->obj); + } + + public function testExtendsRejectCancelRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RejectCancelRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/RejectCancellationRequestRestResponseTest.php b/test/PostOrder/Types/RejectCancellationRequestRestResponseTest.php new file mode 100644 index 000000000..03b045b53 --- /dev/null +++ b/test/PostOrder/Types/RejectCancellationRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new RejectCancellationRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RejectCancellationRequestRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ResponseHistoryAttributesTypeTest.php b/test/PostOrder/Types/ResponseHistoryAttributesTypeTest.php new file mode 100644 index 000000000..34ba0e044 --- /dev/null +++ b/test/PostOrder/Types/ResponseHistoryAttributesTypeTest.php @@ -0,0 +1,33 @@ +obj = new ResponseHistoryAttributesType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ResponseHistoryAttributesType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnAddressRequestTest.php b/test/PostOrder/Types/ReturnAddressRequestTest.php new file mode 100644 index 000000000..aa1970098 --- /dev/null +++ b/test/PostOrder/Types/ReturnAddressRequestTest.php @@ -0,0 +1,33 @@ +obj = new ReturnAddressRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnAddressRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnAddressTest.php b/test/PostOrder/Types/ReturnAddressTest.php new file mode 100644 index 000000000..b97c2d809 --- /dev/null +++ b/test/PostOrder/Types/ReturnAddressTest.php @@ -0,0 +1,33 @@ +obj = new ReturnAddress(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnAddress', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnAddressTypeTest.php b/test/PostOrder/Types/ReturnAddressTypeTest.php new file mode 100644 index 000000000..86fc58513 --- /dev/null +++ b/test/PostOrder/Types/ReturnAddressTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnAddressType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnAddressType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnCloseInfoTypeTest.php b/test/PostOrder/Types/ReturnCloseInfoTypeTest.php new file mode 100644 index 000000000..b5bbc0fb2 --- /dev/null +++ b/test/PostOrder/Types/ReturnCloseInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnCloseInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnCloseInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnCreationInfoTypeTest.php b/test/PostOrder/Types/ReturnCreationInfoTypeTest.php new file mode 100644 index 000000000..874f2f5db --- /dev/null +++ b/test/PostOrder/Types/ReturnCreationInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnCreationInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnCreationInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnDetailTypeTest.php b/test/PostOrder/Types/ReturnDetailTypeTest.php new file mode 100644 index 000000000..5c101bac7 --- /dev/null +++ b/test/PostOrder/Types/ReturnDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnEligibilityErrorDetailTypeTest.php b/test/PostOrder/Types/ReturnEligibilityErrorDetailTypeTest.php new file mode 100644 index 000000000..af61b8880 --- /dev/null +++ b/test/PostOrder/Types/ReturnEligibilityErrorDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnEligibilityErrorDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnEligibilityErrorDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResultTest.php b/test/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResultTest.php new file mode 100644 index 000000000..81055516d --- /dev/null +++ b/test/PostOrder/Types/ReturnEligibilityItemPerCheckTypeResultTest.php @@ -0,0 +1,33 @@ +obj = new ReturnEligibilityItemPerCheckTypeResult(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnEligibilityItemPerCheckTypeResult', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnEligibilityItemTypeTest.php b/test/PostOrder/Types/ReturnEligibilityItemTypeTest.php new file mode 100644 index 000000000..00aa46790 --- /dev/null +++ b/test/PostOrder/Types/ReturnEligibilityItemTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnEligibilityItemType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnEligibilityItemType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnEligibilityPerItemTypeTest.php b/test/PostOrder/Types/ReturnEligibilityPerItemTypeTest.php new file mode 100644 index 000000000..b99016e66 --- /dev/null +++ b/test/PostOrder/Types/ReturnEligibilityPerItemTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnEligibilityPerItemType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnEligibilityPerItemType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnFileTypeTest.php b/test/PostOrder/Types/ReturnFileTypeTest.php new file mode 100644 index 000000000..478a1b6f7 --- /dev/null +++ b/test/PostOrder/Types/ReturnFileTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnFileType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnFileType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnHoldInfoTypeTest.php b/test/PostOrder/Types/ReturnHoldInfoTypeTest.php new file mode 100644 index 000000000..47dcc5ec2 --- /dev/null +++ b/test/PostOrder/Types/ReturnHoldInfoTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnHoldInfoType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnHoldInfoType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnItemTypeTest.php b/test/PostOrder/Types/ReturnItemTypeTest.php new file mode 100644 index 000000000..a62fce310 --- /dev/null +++ b/test/PostOrder/Types/ReturnItemTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnItemType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnItemType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnMetadataTypeTest.php b/test/PostOrder/Types/ReturnMetadataTypeTest.php new file mode 100644 index 000000000..88e0d450c --- /dev/null +++ b/test/PostOrder/Types/ReturnMetadataTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnMetadataType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnMetadataType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnPolicyTypeTest.php b/test/PostOrder/Types/ReturnPolicyTypeTest.php new file mode 100644 index 000000000..5e64a6062 --- /dev/null +++ b/test/PostOrder/Types/ReturnPolicyTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnPolicyType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnPolicyType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnRequestTypeTest.php b/test/PostOrder/Types/ReturnRequestTypeTest.php new file mode 100644 index 000000000..b367dfcc7 --- /dev/null +++ b/test/PostOrder/Types/ReturnRequestTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnRequestType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnRequestType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnResponseDueTypeTest.php b/test/PostOrder/Types/ReturnResponseDueTypeTest.php new file mode 100644 index 000000000..99604f2d1 --- /dev/null +++ b/test/PostOrder/Types/ReturnResponseDueTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnResponseDueType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnResponseDueType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnResponseHistoryTypeTest.php b/test/PostOrder/Types/ReturnResponseHistoryTypeTest.php new file mode 100644 index 000000000..de968dd0c --- /dev/null +++ b/test/PostOrder/Types/ReturnResponseHistoryTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnResponseHistoryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnResponseHistoryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnShippingCostDetailTypeTest.php b/test/PostOrder/Types/ReturnShippingCostDetailTypeTest.php new file mode 100644 index 000000000..467ec7aef --- /dev/null +++ b/test/PostOrder/Types/ReturnShippingCostDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnShippingCostDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnShippingCostDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnShippingCostTypeTest.php b/test/PostOrder/Types/ReturnShippingCostTypeTest.php new file mode 100644 index 000000000..75fdabc64 --- /dev/null +++ b/test/PostOrder/Types/ReturnShippingCostTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnShippingCostType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnShippingCostType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnSortFieldTest.php b/test/PostOrder/Types/ReturnSortFieldTest.php new file mode 100644 index 000000000..2724156d2 --- /dev/null +++ b/test/PostOrder/Types/ReturnSortFieldTest.php @@ -0,0 +1,33 @@ +obj = new ReturnSortField(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnSortField', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ReturnSummaryTypeTest.php b/test/PostOrder/Types/ReturnSummaryTypeTest.php new file mode 100644 index 000000000..7650f543c --- /dev/null +++ b/test/PostOrder/Types/ReturnSummaryTypeTest.php @@ -0,0 +1,33 @@ +obj = new ReturnSummaryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ReturnSummaryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleActionDataDetailTypeTest.php b/test/PostOrder/Types/RuleActionDataDetailTypeTest.php new file mode 100644 index 000000000..a3371b5de --- /dev/null +++ b/test/PostOrder/Types/RuleActionDataDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleActionDataDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleActionDataDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleActionDataTypeTest.php b/test/PostOrder/Types/RuleActionDataTypeTest.php new file mode 100644 index 000000000..085905c6c --- /dev/null +++ b/test/PostOrder/Types/RuleActionDataTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleActionDataType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleActionDataType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleActionDetailTypeTest.php b/test/PostOrder/Types/RuleActionDetailTypeTest.php new file mode 100644 index 000000000..5d0f573fb --- /dev/null +++ b/test/PostOrder/Types/RuleActionDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleActionDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleActionDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleActionInputTypeTest.php b/test/PostOrder/Types/RuleActionInputTypeTest.php new file mode 100644 index 000000000..b7aea6c1c --- /dev/null +++ b/test/PostOrder/Types/RuleActionInputTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleActionInputType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleActionInputType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleConditionDetailTypeTest.php b/test/PostOrder/Types/RuleConditionDetailTypeTest.php new file mode 100644 index 000000000..6d1ecead9 --- /dev/null +++ b/test/PostOrder/Types/RuleConditionDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleConditionDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleConditionDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleConditionInputTypeTest.php b/test/PostOrder/Types/RuleConditionInputTypeTest.php new file mode 100644 index 000000000..6243cdf56 --- /dev/null +++ b/test/PostOrder/Types/RuleConditionInputTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleConditionInputType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleConditionInputType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleDetailInputTypeTest.php b/test/PostOrder/Types/RuleDetailInputTypeTest.php new file mode 100644 index 000000000..dd3bf1205 --- /dev/null +++ b/test/PostOrder/Types/RuleDetailInputTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleDetailInputType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleDetailInputType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleDetailTypeTest.php b/test/PostOrder/Types/RuleDetailTypeTest.php new file mode 100644 index 000000000..e62837ab7 --- /dev/null +++ b/test/PostOrder/Types/RuleDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleModificationTypeTest.php b/test/PostOrder/Types/RuleModificationTypeTest.php new file mode 100644 index 000000000..c8773be15 --- /dev/null +++ b/test/PostOrder/Types/RuleModificationTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleModificationType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleModificationType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleSummaryTypeTest.php b/test/PostOrder/Types/RuleSummaryTypeTest.php new file mode 100644 index 000000000..f5abcb338 --- /dev/null +++ b/test/PostOrder/Types/RuleSummaryTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleSummaryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleSummaryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleTemplateDetailTypeTest.php b/test/PostOrder/Types/RuleTemplateDetailTypeTest.php new file mode 100644 index 000000000..2443727b4 --- /dev/null +++ b/test/PostOrder/Types/RuleTemplateDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleTemplateDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleTemplateDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/RuleTriggerHistDetailTypeTest.php b/test/PostOrder/Types/RuleTriggerHistDetailTypeTest.php new file mode 100644 index 000000000..05d7faf55 --- /dev/null +++ b/test/PostOrder/Types/RuleTriggerHistDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new RuleTriggerHistDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\RuleTriggerHistDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ScanDetailTypeTest.php b/test/PostOrder/Types/ScanDetailTypeTest.php new file mode 100644 index 000000000..07f3a9803 --- /dev/null +++ b/test/PostOrder/Types/ScanDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ScanDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ScanDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchCancellationsRestRequestTest.php b/test/PostOrder/Types/SearchCancellationsRestRequestTest.php new file mode 100644 index 000000000..44f467d5f --- /dev/null +++ b/test/PostOrder/Types/SearchCancellationsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SearchCancellationsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchCancellationsRestResponseTest.php b/test/PostOrder/Types/SearchCancellationsRestResponseTest.php new file mode 100644 index 000000000..a1bfa6ed4 --- /dev/null +++ b/test/PostOrder/Types/SearchCancellationsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SearchCancellationsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchCancellationsRestResponse', $this->obj); + } + + public function testExtendsFindCancelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\FindCancelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchCasesRestRequestTest.php b/test/PostOrder/Types/SearchCasesRestRequestTest.php new file mode 100644 index 000000000..0409fe4bc --- /dev/null +++ b/test/PostOrder/Types/SearchCasesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SearchCasesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchCasesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchCasesRestResponseTest.php b/test/PostOrder/Types/SearchCasesRestResponseTest.php new file mode 100644 index 000000000..e5281eb2d --- /dev/null +++ b/test/PostOrder/Types/SearchCasesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SearchCasesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchCasesRestResponse', $this->obj); + } + + public function testExtendsCaseSearchResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CaseSearchResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchInquiriesRestRequestTest.php b/test/PostOrder/Types/SearchInquiriesRestRequestTest.php new file mode 100644 index 000000000..4f9b67b0a --- /dev/null +++ b/test/PostOrder/Types/SearchInquiriesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SearchInquiriesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchInquiriesRestResponseTest.php b/test/PostOrder/Types/SearchInquiriesRestResponseTest.php new file mode 100644 index 000000000..d5fad90d9 --- /dev/null +++ b/test/PostOrder/Types/SearchInquiriesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SearchInquiriesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchInquiriesRestResponse', $this->obj); + } + + public function testExtendsInquirySearchResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\InquirySearchResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchReturnsRestRequestTest.php b/test/PostOrder/Types/SearchReturnsRestRequestTest.php new file mode 100644 index 000000000..aa149e6fb --- /dev/null +++ b/test/PostOrder/Types/SearchReturnsRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SearchReturnsRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchReturnsRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SearchReturnsRestResponseTest.php b/test/PostOrder/Types/SearchReturnsRestResponseTest.php new file mode 100644 index 000000000..42bf632c1 --- /dev/null +++ b/test/PostOrder/Types/SearchReturnsRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SearchReturnsRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SearchReturnsRestResponse', $this->obj); + } + + public function testExtendsGetSummaryResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\GetSummaryResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SellerProvideRefundInfoRequestTest.php b/test/PostOrder/Types/SellerProvideRefundInfoRequestTest.php new file mode 100644 index 000000000..a26704fca --- /dev/null +++ b/test/PostOrder/Types/SellerProvideRefundInfoRequestTest.php @@ -0,0 +1,33 @@ +obj = new SellerProvideRefundInfoRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SellerProvideRefundInfoRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendInquiryMessageRestRequestTest.php b/test/PostOrder/Types/SendInquiryMessageRestRequestTest.php new file mode 100644 index 000000000..ea3eed769 --- /dev/null +++ b/test/PostOrder/Types/SendInquiryMessageRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SendInquiryMessageRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestRequest', $this->obj); + } + + public function testExtendsSendMessageRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendMessageRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendInquiryMessageRestResponseTest.php b/test/PostOrder/Types/SendInquiryMessageRestResponseTest.php new file mode 100644 index 000000000..0de18b503 --- /dev/null +++ b/test/PostOrder/Types/SendInquiryMessageRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SendInquiryMessageRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendInquiryMessageRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendMessageRequestTest.php b/test/PostOrder/Types/SendMessageRequestTest.php new file mode 100644 index 000000000..00e3d2cae --- /dev/null +++ b/test/PostOrder/Types/SendMessageRequestTest.php @@ -0,0 +1,33 @@ +obj = new SendMessageRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendMessageRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendReturnMessageRestRequestTest.php b/test/PostOrder/Types/SendReturnMessageRestRequestTest.php new file mode 100644 index 000000000..c0391ea53 --- /dev/null +++ b/test/PostOrder/Types/SendReturnMessageRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SendReturnMessageRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestRequest', $this->obj); + } + + public function testExtendsSendMessageRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendMessageRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendReturnMessageRestResponseTest.php b/test/PostOrder/Types/SendReturnMessageRestResponseTest.php new file mode 100644 index 000000000..17321bd8c --- /dev/null +++ b/test/PostOrder/Types/SendReturnMessageRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SendReturnMessageRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendReturnMessageRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendReturnShippingLabelRestRequestTest.php b/test/PostOrder/Types/SendReturnShippingLabelRestRequestTest.php new file mode 100644 index 000000000..6993857ab --- /dev/null +++ b/test/PostOrder/Types/SendReturnShippingLabelRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SendReturnShippingLabelRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendReturnShippingLabelRestResponseTest.php b/test/PostOrder/Types/SendReturnShippingLabelRestResponseTest.php new file mode 100644 index 000000000..cfe22d69b --- /dev/null +++ b/test/PostOrder/Types/SendReturnShippingLabelRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SendReturnShippingLabelRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendReturnShippingLabelRestResponse', $this->obj); + } + + public function testExtendsSendShippingLabelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendShippingLabelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SendShippingLabelResponseTest.php b/test/PostOrder/Types/SendShippingLabelResponseTest.php new file mode 100644 index 000000000..401945004 --- /dev/null +++ b/test/PostOrder/Types/SendShippingLabelResponseTest.php @@ -0,0 +1,33 @@ +obj = new SendShippingLabelResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SendShippingLabelResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SetReturnCreationSessionRequestTest.php b/test/PostOrder/Types/SetReturnCreationSessionRequestTest.php new file mode 100644 index 000000000..6df09d220 --- /dev/null +++ b/test/PostOrder/Types/SetReturnCreationSessionRequestTest.php @@ -0,0 +1,33 @@ +obj = new SetReturnCreationSessionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SetReturnCreationSessionResponseTest.php b/test/PostOrder/Types/SetReturnCreationSessionResponseTest.php new file mode 100644 index 000000000..8224a3865 --- /dev/null +++ b/test/PostOrder/Types/SetReturnCreationSessionResponseTest.php @@ -0,0 +1,33 @@ +obj = new SetReturnCreationSessionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SetReturnPreferencesRestRequestTest.php b/test/PostOrder/Types/SetReturnPreferencesRestRequestTest.php new file mode 100644 index 000000000..365a60285 --- /dev/null +++ b/test/PostOrder/Types/SetReturnPreferencesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SetReturnPreferencesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestRequest', $this->obj); + } + + public function testExtendsSetSellerReturnPreferenceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetSellerReturnPreferenceRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/SetReturnPreferencesRestResponseTest.php b/test/PostOrder/Types/SetReturnPreferencesRestResponseTest.php new file mode 100644 index 000000000..d7fa3b5d3 --- /dev/null +++ b/test/PostOrder/Types/SetReturnPreferencesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SetReturnPreferencesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnPreferencesRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SetSellerReturnPreferenceRequestTest.php b/test/PostOrder/Types/SetSellerReturnPreferenceRequestTest.php new file mode 100644 index 000000000..74624bf28 --- /dev/null +++ b/test/PostOrder/Types/SetSellerReturnPreferenceRequestTest.php @@ -0,0 +1,33 @@ +obj = new SetSellerReturnPreferenceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetSellerReturnPreferenceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ShipmentInfoRequestTest.php b/test/PostOrder/Types/ShipmentInfoRequestTest.php new file mode 100644 index 000000000..4a0333bef --- /dev/null +++ b/test/PostOrder/Types/ShipmentInfoRequestTest.php @@ -0,0 +1,33 @@ +obj = new ShipmentInfoRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ShipmentInfoRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ShipmentTrackingDetailTypeTest.php b/test/PostOrder/Types/ShipmentTrackingDetailTypeTest.php new file mode 100644 index 000000000..4e67fd07a --- /dev/null +++ b/test/PostOrder/Types/ShipmentTrackingDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new ShipmentTrackingDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ShipmentTrackingDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ShipmentTrackingTypeTest.php b/test/PostOrder/Types/ShipmentTrackingTypeTest.php new file mode 100644 index 000000000..f89891130 --- /dev/null +++ b/test/PostOrder/Types/ShipmentTrackingTypeTest.php @@ -0,0 +1,33 @@ +obj = new ShipmentTrackingType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ShipmentTrackingType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/ShipmentTypeTest.php b/test/PostOrder/Types/ShipmentTypeTest.php new file mode 100644 index 000000000..c83af6239 --- /dev/null +++ b/test/PostOrder/Types/ShipmentTypeTest.php @@ -0,0 +1,33 @@ +obj = new ShipmentType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ShipmentType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/StatusTypeTest.php b/test/PostOrder/Types/StatusTypeTest.php new file mode 100644 index 000000000..8b8b32e3e --- /dev/null +++ b/test/PostOrder/Types/StatusTypeTest.php @@ -0,0 +1,33 @@ +obj = new StatusType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\StatusType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/StoreCategoryTypeTest.php b/test/PostOrder/Types/StoreCategoryTypeTest.php new file mode 100644 index 000000000..adb536f92 --- /dev/null +++ b/test/PostOrder/Types/StoreCategoryTypeTest.php @@ -0,0 +1,33 @@ +obj = new StoreCategoryType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\StoreCategoryType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitCancellationRequestRestRequestTest.php b/test/PostOrder/Types/SubmitCancellationRequestRestRequestTest.php new file mode 100644 index 000000000..dc0e0914b --- /dev/null +++ b/test/PostOrder/Types/SubmitCancellationRequestRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SubmitCancellationRequestRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestRequest', $this->obj); + } + + public function testExtendsCreateCancelRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCancelRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitCancellationRequestRestResponseTest.php b/test/PostOrder/Types/SubmitCancellationRequestRestResponseTest.php new file mode 100644 index 000000000..36ed25bb1 --- /dev/null +++ b/test/PostOrder/Types/SubmitCancellationRequestRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SubmitCancellationRequestRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitCancellationRequestRestResponse', $this->obj); + } + + public function testExtendsCreateCancelResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\CreateCancelResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitFileRequestTest.php b/test/PostOrder/Types/SubmitFileRequestTest.php new file mode 100644 index 000000000..919164a1e --- /dev/null +++ b/test/PostOrder/Types/SubmitFileRequestTest.php @@ -0,0 +1,33 @@ +obj = new SubmitFileRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitFileRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitFileResponseTest.php b/test/PostOrder/Types/SubmitFileResponseTest.php new file mode 100644 index 000000000..2e7387cb9 --- /dev/null +++ b/test/PostOrder/Types/SubmitFileResponseTest.php @@ -0,0 +1,33 @@ +obj = new SubmitFileResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitFileResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitReturnFileRestRequestTest.php b/test/PostOrder/Types/SubmitReturnFileRestRequestTest.php new file mode 100644 index 000000000..75c8ada35 --- /dev/null +++ b/test/PostOrder/Types/SubmitReturnFileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new SubmitReturnFileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestRequest', $this->obj); + } + + public function testExtendsSubmitFileRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitFileRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/SubmitReturnFileRestResponseTest.php b/test/PostOrder/Types/SubmitReturnFileRestResponseTest.php new file mode 100644 index 000000000..a1dd6ce2b --- /dev/null +++ b/test/PostOrder/Types/SubmitReturnFileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new SubmitReturnFileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitReturnFileRestResponse', $this->obj); + } + + public function testExtendsSubmitFileResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SubmitFileResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/TextTest.php b/test/PostOrder/Types/TextTest.php new file mode 100644 index 000000000..165f1fd2f --- /dev/null +++ b/test/PostOrder/Types/TextTest.php @@ -0,0 +1,33 @@ +obj = new Text(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\Text', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/TotalRefundAmountTypeTest.php b/test/PostOrder/Types/TotalRefundAmountTypeTest.php new file mode 100644 index 000000000..4ee5b1e4d --- /dev/null +++ b/test/PostOrder/Types/TotalRefundAmountTypeTest.php @@ -0,0 +1,33 @@ +obj = new TotalRefundAmountType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\TotalRefundAmountType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateCustomListRestRequestTest.php b/test/PostOrder/Types/UpdateCustomListRestRequestTest.php new file mode 100644 index 000000000..3aa5b39bc --- /dev/null +++ b/test/PostOrder/Types/UpdateCustomListRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateCustomListRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestRequest', $this->obj); + } + + public function testExtendsModifyCustomListRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyCustomListRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateCustomListRestResponseTest.php b/test/PostOrder/Types/UpdateCustomListRestResponseTest.php new file mode 100644 index 000000000..611a6ccf2 --- /dev/null +++ b/test/PostOrder/Types/UpdateCustomListRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateCustomListRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateCustomListRestResponse', $this->obj); + } + + public function testExtendsModifyCustomListResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyCustomListResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateReturnDraftRestRequestTest.php b/test/PostOrder/Types/UpdateReturnDraftRestRequestTest.php new file mode 100644 index 000000000..9cd6b7ffd --- /dev/null +++ b/test/PostOrder/Types/UpdateReturnDraftRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateReturnDraftRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestRequest', $this->obj); + } + + public function testExtendsSetReturnCreationSessionRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateReturnDraftRestResponseTest.php b/test/PostOrder/Types/UpdateReturnDraftRestResponseTest.php new file mode 100644 index 000000000..6dac41d4c --- /dev/null +++ b/test/PostOrder/Types/UpdateReturnDraftRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateReturnDraftRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateReturnDraftRestResponse', $this->obj); + } + + public function testExtendsSetReturnCreationSessionResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\SetReturnCreationSessionResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateReturnRulesRestRequestTest.php b/test/PostOrder/Types/UpdateReturnRulesRestRequestTest.php new file mode 100644 index 000000000..10a39cb40 --- /dev/null +++ b/test/PostOrder/Types/UpdateReturnRulesRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateReturnRulesRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestRequest', $this->obj); + } + + public function testExtendsModifyDispositionRuleRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\ModifyDispositionRuleRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateReturnRulesRestResponseTest.php b/test/PostOrder/Types/UpdateReturnRulesRestResponseTest.php new file mode 100644 index 000000000..0eef3762a --- /dev/null +++ b/test/PostOrder/Types/UpdateReturnRulesRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateReturnRulesRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateReturnRulesRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateShipmentTrackingRestRequestTest.php b/test/PostOrder/Types/UpdateShipmentTrackingRestRequestTest.php new file mode 100644 index 000000000..40be40044 --- /dev/null +++ b/test/PostOrder/Types/UpdateShipmentTrackingRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShipmentTrackingRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestRequest', $this->obj); + } + + public function testExtendsUpdateTrackingRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateTrackingRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateShipmentTrackingRestResponseTest.php b/test/PostOrder/Types/UpdateShipmentTrackingRestResponseTest.php new file mode 100644 index 000000000..f58c0c47e --- /dev/null +++ b/test/PostOrder/Types/UpdateShipmentTrackingRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateShipmentTrackingRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateShipmentTrackingRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UpdateTrackingRequestTest.php b/test/PostOrder/Types/UpdateTrackingRequestTest.php new file mode 100644 index 000000000..f9030d701 --- /dev/null +++ b/test/PostOrder/Types/UpdateTrackingRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateTrackingRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UpdateTrackingRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadFileRequestTest.php b/test/PostOrder/Types/UploadFileRequestTest.php new file mode 100644 index 000000000..0dff97791 --- /dev/null +++ b/test/PostOrder/Types/UploadFileRequestTest.php @@ -0,0 +1,33 @@ +obj = new UploadFileRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadFileResponseTest.php b/test/PostOrder/Types/UploadFileResponseTest.php new file mode 100644 index 000000000..3932daab3 --- /dev/null +++ b/test/PostOrder/Types/UploadFileResponseTest.php @@ -0,0 +1,33 @@ +obj = new UploadFileResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadReturnDraftFileRestRequestTest.php b/test/PostOrder/Types/UploadReturnDraftFileRestRequestTest.php new file mode 100644 index 000000000..e166c6bd3 --- /dev/null +++ b/test/PostOrder/Types/UploadReturnDraftFileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UploadReturnDraftFileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestRequest', $this->obj); + } + + public function testExtendsUploadFileRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadReturnDraftFileRestResponseTest.php b/test/PostOrder/Types/UploadReturnDraftFileRestResponseTest.php new file mode 100644 index 000000000..d1b0d5587 --- /dev/null +++ b/test/PostOrder/Types/UploadReturnDraftFileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UploadReturnDraftFileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadReturnDraftFileRestResponse', $this->obj); + } + + public function testExtendsUploadFileResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadReturnFileRestRequestTest.php b/test/PostOrder/Types/UploadReturnFileRestRequestTest.php new file mode 100644 index 000000000..599124754 --- /dev/null +++ b/test/PostOrder/Types/UploadReturnFileRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new UploadReturnFileRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestRequest', $this->obj); + } + + public function testExtendsUploadFileRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/UploadReturnFileRestResponseTest.php b/test/PostOrder/Types/UploadReturnFileRestResponseTest.php new file mode 100644 index 000000000..c486f90e2 --- /dev/null +++ b/test/PostOrder/Types/UploadReturnFileRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new UploadReturnFileRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadReturnFileRestResponse', $this->obj); + } + + public function testExtendsUploadFileResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\UploadFileResponse', $this->obj); + } +} diff --git a/test/PostOrder/Types/VoidLabelRequestTest.php b/test/PostOrder/Types/VoidLabelRequestTest.php new file mode 100644 index 000000000..cb1efffb1 --- /dev/null +++ b/test/PostOrder/Types/VoidLabelRequestTest.php @@ -0,0 +1,33 @@ +obj = new VoidLabelRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoidLabelRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/VoidShippingLabelRestRequestTest.php b/test/PostOrder/Types/VoidShippingLabelRestRequestTest.php new file mode 100644 index 000000000..3959c4841 --- /dev/null +++ b/test/PostOrder/Types/VoidShippingLabelRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new VoidShippingLabelRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestRequest', $this->obj); + } + + public function testExtendsVoidLabelRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoidLabelRequest', $this->obj); + } +} diff --git a/test/PostOrder/Types/VoidShippingLabelRestResponseTest.php b/test/PostOrder/Types/VoidShippingLabelRestResponseTest.php new file mode 100644 index 000000000..1b5190abd --- /dev/null +++ b/test/PostOrder/Types/VoidShippingLabelRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new VoidShippingLabelRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoidShippingLabelRestResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/VoluntaryRefundResponseTest.php b/test/PostOrder/Types/VoluntaryRefundResponseTest.php new file mode 100644 index 000000000..f63c3e757 --- /dev/null +++ b/test/PostOrder/Types/VoluntaryRefundResponseTest.php @@ -0,0 +1,33 @@ +obj = new VoluntaryRefundResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoluntaryRefundResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/PostOrder/Types/VoluntaryRefundResultTest.php b/test/PostOrder/Types/VoluntaryRefundResultTest.php new file mode 100644 index 000000000..8caf087b9 --- /dev/null +++ b/test/PostOrder/Types/VoluntaryRefundResultTest.php @@ -0,0 +1,33 @@ +obj = new VoluntaryRefundResult(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Types\VoluntaryRefundResult', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Enums/AckValueTest.php b/test/Product/Enums/AckValueTest.php new file mode 100644 index 000000000..ca199a16c --- /dev/null +++ b/test/Product/Enums/AckValueTest.php @@ -0,0 +1,28 @@ +obj = new AckValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\AckValue', $this->obj); + } +} diff --git a/test/Product/Enums/ErrorCategoryTest.php b/test/Product/Enums/ErrorCategoryTest.php new file mode 100644 index 000000000..42d69e4a4 --- /dev/null +++ b/test/Product/Enums/ErrorCategoryTest.php @@ -0,0 +1,28 @@ +obj = new ErrorCategory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\ErrorCategory', $this->obj); + } +} diff --git a/test/Product/Enums/ErrorSeverityTest.php b/test/Product/Enums/ErrorSeverityTest.php new file mode 100644 index 000000000..2df767804 --- /dev/null +++ b/test/Product/Enums/ErrorSeverityTest.php @@ -0,0 +1,28 @@ +obj = new ErrorSeverity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\ErrorSeverity', $this->obj); + } +} diff --git a/test/Product/Enums/MediaTypeTest.php b/test/Product/Enums/MediaTypeTest.php new file mode 100644 index 000000000..fdd916b3f --- /dev/null +++ b/test/Product/Enums/MediaTypeTest.php @@ -0,0 +1,28 @@ +obj = new MediaType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\MediaType', $this->obj); + } +} diff --git a/test/Product/Enums/OrderTypeTest.php b/test/Product/Enums/OrderTypeTest.php new file mode 100644 index 000000000..c43348c90 --- /dev/null +++ b/test/Product/Enums/OrderTypeTest.php @@ -0,0 +1,28 @@ +obj = new OrderType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\OrderType', $this->obj); + } +} diff --git a/test/Product/Enums/OutputSelectorTest.php b/test/Product/Enums/OutputSelectorTest.php new file mode 100644 index 000000000..6afdda6ea --- /dev/null +++ b/test/Product/Enums/OutputSelectorTest.php @@ -0,0 +1,28 @@ +obj = new OutputSelector(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\OutputSelector', $this->obj); + } +} diff --git a/test/Product/Enums/ProductSubmissionStatusCodeTest.php b/test/Product/Enums/ProductSubmissionStatusCodeTest.php new file mode 100644 index 000000000..92e27f873 --- /dev/null +++ b/test/Product/Enums/ProductSubmissionStatusCodeTest.php @@ -0,0 +1,28 @@ +obj = new ProductSubmissionStatusCode(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\ProductSubmissionStatusCode', $this->obj); + } +} diff --git a/test/Product/Enums/SortPriorityTest.php b/test/Product/Enums/SortPriorityTest.php new file mode 100644 index 000000000..f4d255c49 --- /dev/null +++ b/test/Product/Enums/SortPriorityTest.php @@ -0,0 +1,28 @@ +obj = new SortPriority(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\SortPriority', $this->obj); + } +} diff --git a/test/Product/Enums/SortTypeTest.php b/test/Product/Enums/SortTypeTest.php new file mode 100644 index 000000000..4aa7d17be --- /dev/null +++ b/test/Product/Enums/SortTypeTest.php @@ -0,0 +1,28 @@ +obj = new SortType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Enums\SortType', $this->obj); + } +} diff --git a/test/Product/Mocks/Service.php b/test/Product/Mocks/Service.php new file mode 100644 index 000000000..875af9382 --- /dev/null +++ b/test/Product/Mocks/Service.php @@ -0,0 +1,21 @@ +callOperationAsync( + 'testOperation', + new ComplexClass(), + '\DTS\eBaySDK\Test\Mocks\ComplexClass' + )->wait(); + } +} diff --git a/test/Product/Services/ServiceTest.php b/test/Product/Services/ServiceTest.php new file mode 100644 index 000000000..4769eced5 --- /dev/null +++ b/test/Product/Services/ServiceTest.php @@ -0,0 +1,71 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => ProductService::API_VERSION + ], $d['apiVersion']); + + $this->assertArrayHasKey('globalId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['globalId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'credentials' => ['appId' => '321', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(ProductBaseService::HDR_APP_ID, $h->headers); + $this->assertEquals('321', $h->headers[ProductBaseService::HDR_APP_ID]); + + $this->assertArrayHasKey(ProductBaseService::HDR_OPERATION_NAME, $h->headers); + $this->assertEquals('testOperation', $h->headers[ProductBaseService::HDR_OPERATION_NAME]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayHasKey(ProductBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals(ProductService::API_VERSION, $h->headers[ProductBaseService::HDR_API_VERSION]); + + $this->assertArrayNotHasKey(ProductBaseService::HDR_GLOBAL_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'apiVersion' => '123', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'globalId' => '999', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(ProductBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals('123', $h->headers[ProductBaseService::HDR_API_VERSION]); + + $this->assertArrayHasKey(ProductBaseService::HDR_GLOBAL_ID, $h->headers); + $this->assertEquals('999', $h->headers[ProductBaseService::HDR_GLOBAL_ID]); + } +} diff --git a/test/Product/Types/AddProductResponseTest.php b/test/Product/Types/AddProductResponseTest.php new file mode 100644 index 000000000..955e17b7a --- /dev/null +++ b/test/Product/Types/AddProductResponseTest.php @@ -0,0 +1,33 @@ +obj = new AddProductResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\AddProductResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/AddProductsRequestTest.php b/test/Product/Types/AddProductsRequestTest.php new file mode 100644 index 000000000..9a5b82d5e --- /dev/null +++ b/test/Product/Types/AddProductsRequestTest.php @@ -0,0 +1,33 @@ +obj = new AddProductsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\AddProductsRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/AddProductsResponseTest.php b/test/Product/Types/AddProductsResponseTest.php new file mode 100644 index 000000000..32a08bafe --- /dev/null +++ b/test/Product/Types/AddProductsResponseTest.php @@ -0,0 +1,33 @@ +obj = new AddProductsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\AddProductsResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/BaseServiceRequestTest.php b/test/Product/Types/BaseServiceRequestTest.php new file mode 100644 index 000000000..c645cef2b --- /dev/null +++ b/test/Product/Types/BaseServiceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/BaseServiceResponseTest.php b/test/Product/Types/BaseServiceResponseTest.php new file mode 100644 index 000000000..4218aec7e --- /dev/null +++ b/test/Product/Types/BaseServiceResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/CompatibilityDetailsTest.php b/test/Product/Types/CompatibilityDetailsTest.php new file mode 100644 index 000000000..2bbf37be5 --- /dev/null +++ b/test/Product/Types/CompatibilityDetailsTest.php @@ -0,0 +1,33 @@ +obj = new CompatibilityDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\CompatibilityDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/CompatibilityPropertyFilterTest.php b/test/Product/Types/CompatibilityPropertyFilterTest.php new file mode 100644 index 000000000..fd06ea10b --- /dev/null +++ b/test/Product/Types/CompatibilityPropertyFilterTest.php @@ -0,0 +1,33 @@ +obj = new CompatibilityPropertyFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\CompatibilityPropertyFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/CompatibilitySortTest.php b/test/Product/Types/CompatibilitySortTest.php new file mode 100644 index 000000000..082d55a3f --- /dev/null +++ b/test/Product/Types/CompatibilitySortTest.php @@ -0,0 +1,33 @@ +obj = new CompatibilitySort(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\CompatibilitySort', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ErrorDataTest.php b/test/Product/Types/ErrorDataTest.php new file mode 100644 index 000000000..035d4d11e --- /dev/null +++ b/test/Product/Types/ErrorDataTest.php @@ -0,0 +1,33 @@ +obj = new ErrorData(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ErrorData', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ErrorMessageTest.php b/test/Product/Types/ErrorMessageTest.php new file mode 100644 index 000000000..9508e89a4 --- /dev/null +++ b/test/Product/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ErrorParameterTest.php b/test/Product/Types/ErrorParameterTest.php new file mode 100644 index 000000000..e209269e1 --- /dev/null +++ b/test/Product/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ErrorParameter', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/Product/Types/FindCompatibilitiesBySpecificationRequestTest.php b/test/Product/Types/FindCompatibilitiesBySpecificationRequestTest.php new file mode 100644 index 000000000..9834369f2 --- /dev/null +++ b/test/Product/Types/FindCompatibilitiesBySpecificationRequestTest.php @@ -0,0 +1,33 @@ +obj = new FindCompatibilitiesBySpecificationRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/FindCompatibilitiesBySpecificationResponseTest.php b/test/Product/Types/FindCompatibilitiesBySpecificationResponseTest.php new file mode 100644 index 000000000..e20dc7972 --- /dev/null +++ b/test/Product/Types/FindCompatibilitiesBySpecificationResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindCompatibilitiesBySpecificationResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\FindCompatibilitiesBySpecificationResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/FindProductsByCompatibilityRequestTest.php b/test/Product/Types/FindProductsByCompatibilityRequestTest.php new file mode 100644 index 000000000..99b9dec2e --- /dev/null +++ b/test/Product/Types/FindProductsByCompatibilityRequestTest.php @@ -0,0 +1,33 @@ +obj = new FindProductsByCompatibilityRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\FindProductsByCompatibilityRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/FindProductsRequestTest.php b/test/Product/Types/FindProductsRequestTest.php new file mode 100644 index 000000000..af89eafb9 --- /dev/null +++ b/test/Product/Types/FindProductsRequestTest.php @@ -0,0 +1,33 @@ +obj = new FindProductsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\FindProductsRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/FindProductsResponseTest.php b/test/Product/Types/FindProductsResponseTest.php new file mode 100644 index 000000000..b3153f0a4 --- /dev/null +++ b/test/Product/Types/FindProductsResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindProductsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\FindProductsResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/GetProductCompatibilitiesRequestTest.php b/test/Product/Types/GetProductCompatibilitiesRequestTest.php new file mode 100644 index 000000000..c12c06817 --- /dev/null +++ b/test/Product/Types/GetProductCompatibilitiesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductCompatibilitiesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductCompatibilitiesRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/GetProductCompatiblitiesResponseTest.php b/test/Product/Types/GetProductCompatiblitiesResponseTest.php new file mode 100644 index 000000000..7e12be395 --- /dev/null +++ b/test/Product/Types/GetProductCompatiblitiesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductCompatiblitiesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductCompatiblitiesResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/GetProductDetailsRequestTest.php b/test/Product/Types/GetProductDetailsRequestTest.php new file mode 100644 index 000000000..24f49b152 --- /dev/null +++ b/test/Product/Types/GetProductDetailsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductDetailsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductDetailsRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/GetProductDetailsResponseTest.php b/test/Product/Types/GetProductDetailsResponseTest.php new file mode 100644 index 000000000..76c0ce7ce --- /dev/null +++ b/test/Product/Types/GetProductDetailsResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductDetailsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductDetailsResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/GetProductSubmissionsRequestTest.php b/test/Product/Types/GetProductSubmissionsRequestTest.php new file mode 100644 index 000000000..ac0a84ffc --- /dev/null +++ b/test/Product/Types/GetProductSubmissionsRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSubmissionsRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductSubmissionsRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/GetProductSubmissionsResponseTest.php b/test/Product/Types/GetProductSubmissionsResponseTest.php new file mode 100644 index 000000000..ef008274d --- /dev/null +++ b/test/Product/Types/GetProductSubmissionsResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSubmissionsResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\GetProductSubmissionsResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/MediaIdentifierTest.php b/test/Product/Types/MediaIdentifierTest.php new file mode 100644 index 000000000..3bdab3c93 --- /dev/null +++ b/test/Product/Types/MediaIdentifierTest.php @@ -0,0 +1,33 @@ +obj = new MediaIdentifier(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\MediaIdentifier', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/MediaTest.php b/test/Product/Types/MediaTest.php new file mode 100644 index 000000000..7f3eb275d --- /dev/null +++ b/test/Product/Types/MediaTest.php @@ -0,0 +1,33 @@ +obj = new Media(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\Media', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/NotesTest.php b/test/Product/Types/NotesTest.php new file mode 100644 index 000000000..e334a5bc3 --- /dev/null +++ b/test/Product/Types/NotesTest.php @@ -0,0 +1,33 @@ +obj = new Notes(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\Notes', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/NumericValueTest.php b/test/Product/Types/NumericValueTest.php new file mode 100644 index 000000000..3c63e3624 --- /dev/null +++ b/test/Product/Types/NumericValueTest.php @@ -0,0 +1,33 @@ +obj = new NumericValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\NumericValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/PaginationInputTest.php b/test/Product/Types/PaginationInputTest.php new file mode 100644 index 000000000..e00dce012 --- /dev/null +++ b/test/Product/Types/PaginationInputTest.php @@ -0,0 +1,33 @@ +obj = new PaginationInput(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\PaginationInput', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/PaginationOutputTest.php b/test/Product/Types/PaginationOutputTest.php new file mode 100644 index 000000000..b22befb79 --- /dev/null +++ b/test/Product/Types/PaginationOutputTest.php @@ -0,0 +1,33 @@ +obj = new PaginationOutput(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\PaginationOutput', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductByCompatibilityRequestTest.php b/test/Product/Types/ProductByCompatibilityRequestTest.php new file mode 100644 index 000000000..80305de88 --- /dev/null +++ b/test/Product/Types/ProductByCompatibilityRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProductByCompatibilityRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductByCompatibilityRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductDetailsRequestTypeTest.php b/test/Product/Types/ProductDetailsRequestTypeTest.php new file mode 100644 index 000000000..931f558c8 --- /dev/null +++ b/test/Product/Types/ProductDetailsRequestTypeTest.php @@ -0,0 +1,33 @@ +obj = new ProductDetailsRequestType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductDetailsRequestType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductIdentifierTest.php b/test/Product/Types/ProductIdentifierTest.php new file mode 100644 index 000000000..4992d82f9 --- /dev/null +++ b/test/Product/Types/ProductIdentifierTest.php @@ -0,0 +1,33 @@ +obj = new ProductIdentifier(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductIdentifier', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductRequestTest.php b/test/Product/Types/ProductRequestTest.php new file mode 100644 index 000000000..e7a76c0a4 --- /dev/null +++ b/test/Product/Types/ProductRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProductRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductResponseTest.php b/test/Product/Types/ProductResponseTest.php new file mode 100644 index 000000000..4c6dc1f72 --- /dev/null +++ b/test/Product/Types/ProductResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProductResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductStatusTest.php b/test/Product/Types/ProductStatusTest.php new file mode 100644 index 000000000..6eeb580c9 --- /dev/null +++ b/test/Product/Types/ProductStatusTest.php @@ -0,0 +1,33 @@ +obj = new ProductStatus(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductStatus', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductSubmissionFilterTest.php b/test/Product/Types/ProductSubmissionFilterTest.php new file mode 100644 index 000000000..5e954ca49 --- /dev/null +++ b/test/Product/Types/ProductSubmissionFilterTest.php @@ -0,0 +1,33 @@ +obj = new ProductSubmissionFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductSubmissionFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductSubmissionResultTest.php b/test/Product/Types/ProductSubmissionResultTest.php new file mode 100644 index 000000000..814cbaabf --- /dev/null +++ b/test/Product/Types/ProductSubmissionResultTest.php @@ -0,0 +1,33 @@ +obj = new ProductSubmissionResult(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductSubmissionResult', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/Product/Types/ProductSubmissionStatusTest.php b/test/Product/Types/ProductSubmissionStatusTest.php new file mode 100644 index 000000000..3e84e3fcb --- /dev/null +++ b/test/Product/Types/ProductSubmissionStatusTest.php @@ -0,0 +1,33 @@ +obj = new ProductSubmissionStatus(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductSubmissionStatus', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ProductSubmissionTest.php b/test/Product/Types/ProductSubmissionTest.php new file mode 100644 index 000000000..d93b13aac --- /dev/null +++ b/test/Product/Types/ProductSubmissionTest.php @@ -0,0 +1,33 @@ +obj = new ProductSubmission(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\ProductSubmission', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/Product/Types/ProductTest.php b/test/Product/Types/ProductTest.php new file mode 100644 index 000000000..1e327d742 --- /dev/null +++ b/test/Product/Types/ProductTest.php @@ -0,0 +1,33 @@ +obj = new Product(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\Product', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/PropertyValueTest.php b/test/Product/Types/PropertyValueTest.php new file mode 100644 index 000000000..031554c3f --- /dev/null +++ b/test/Product/Types/PropertyValueTest.php @@ -0,0 +1,33 @@ +obj = new PropertyValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\PropertyValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/SortOptionTest.php b/test/Product/Types/SortOptionTest.php new file mode 100644 index 000000000..73c55908a --- /dev/null +++ b/test/Product/Types/SortOptionTest.php @@ -0,0 +1,33 @@ +obj = new SortOption(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\SortOption', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/SortOrderTest.php b/test/Product/Types/SortOrderTest.php new file mode 100644 index 000000000..7767c77fa --- /dev/null +++ b/test/Product/Types/SortOrderTest.php @@ -0,0 +1,33 @@ +obj = new SortOrder(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\SortOrder', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/StockPhotoURLTest.php b/test/Product/Types/StockPhotoURLTest.php new file mode 100644 index 000000000..23b6db76b --- /dev/null +++ b/test/Product/Types/StockPhotoURLTest.php @@ -0,0 +1,33 @@ +obj = new StockPhotoURL(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\StockPhotoURL', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/StringValueTest.php b/test/Product/Types/StringValueTest.php new file mode 100644 index 000000000..b675d05aa --- /dev/null +++ b/test/Product/Types/StringValueTest.php @@ -0,0 +1,33 @@ +obj = new StringValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\StringValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/URIValueTest.php b/test/Product/Types/URIValueTest.php new file mode 100644 index 000000000..a1a3e67e0 --- /dev/null +++ b/test/Product/Types/URIValueTest.php @@ -0,0 +1,33 @@ +obj = new URIValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\URIValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Product/Types/ValueTest.php b/test/Product/Types/ValueTest.php new file mode 100644 index 000000000..6c7d4166f --- /dev/null +++ b/test/Product/Types/ValueTest.php @@ -0,0 +1,33 @@ +obj = new Value(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Types\Value', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Enums/AckValueTest.php b/test/ProductMetadata/Enums/AckValueTest.php new file mode 100644 index 000000000..3ac456170 --- /dev/null +++ b/test/ProductMetadata/Enums/AckValueTest.php @@ -0,0 +1,28 @@ +obj = new AckValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Enums\AckValue', $this->obj); + } +} diff --git a/test/ProductMetadata/Enums/DatasetValueTest.php b/test/ProductMetadata/Enums/DatasetValueTest.php new file mode 100644 index 000000000..65dc1ad37 --- /dev/null +++ b/test/ProductMetadata/Enums/DatasetValueTest.php @@ -0,0 +1,28 @@ +obj = new DatasetValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Enums\DatasetValue', $this->obj); + } +} diff --git a/test/ProductMetadata/Enums/ErrorCategoryTest.php b/test/ProductMetadata/Enums/ErrorCategoryTest.php new file mode 100644 index 000000000..5b79219eb --- /dev/null +++ b/test/ProductMetadata/Enums/ErrorCategoryTest.php @@ -0,0 +1,28 @@ +obj = new ErrorCategory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Enums\ErrorCategory', $this->obj); + } +} diff --git a/test/ProductMetadata/Enums/ErrorSeverityTest.php b/test/ProductMetadata/Enums/ErrorSeverityTest.php new file mode 100644 index 000000000..d060c3c2e --- /dev/null +++ b/test/ProductMetadata/Enums/ErrorSeverityTest.php @@ -0,0 +1,28 @@ +obj = new ErrorSeverity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Enums\ErrorSeverity', $this->obj); + } +} diff --git a/test/ProductMetadata/Enums/OrderTypeTest.php b/test/ProductMetadata/Enums/OrderTypeTest.php new file mode 100644 index 000000000..d62440740 --- /dev/null +++ b/test/ProductMetadata/Enums/OrderTypeTest.php @@ -0,0 +1,28 @@ +obj = new OrderType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Enums\OrderType', $this->obj); + } +} diff --git a/test/ProductMetadata/Mocks/Service.php b/test/ProductMetadata/Mocks/Service.php new file mode 100644 index 000000000..d2d059f72 --- /dev/null +++ b/test/ProductMetadata/Mocks/Service.php @@ -0,0 +1,21 @@ +callOperationAsync( + 'testOperation', + new ComplexClass(), + '\DTS\eBaySDK\Test\Mocks\ComplexClass' + )->wait(); + } +} diff --git a/test/ProductMetadata/Services/ServiceTest.php b/test/ProductMetadata/Services/ServiceTest.php new file mode 100644 index 000000000..0645595be --- /dev/null +++ b/test/ProductMetadata/Services/ServiceTest.php @@ -0,0 +1,71 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => ProductMetadataService::API_VERSION + ], $d['apiVersion']); + + $this->assertArrayHasKey('globalId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['globalId']); + } + + public function testRequiredEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'credentials' => ['appId' => '321', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(ProductMetadataBaseService::HDR_APP_ID, $h->headers); + $this->assertEquals('321', $h->headers[ProductMetadataBaseService::HDR_APP_ID]); + + $this->assertArrayHasKey(ProductMetadataBaseService::HDR_OPERATION_NAME, $h->headers); + $this->assertEquals('testOperation', $h->headers[ProductMetadataBaseService::HDR_OPERATION_NAME]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayHasKey(ProductMetadataBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals(ProductMetadataService::API_VERSION, $h->headers[ProductMetadataBaseService::HDR_API_VERSION]); + + $this->assertArrayNotHasKey(ProductMetadataBaseService::HDR_GLOBAL_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'apiVersion' => '123', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'globalId' => '999', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(ProductMetadataBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals('123', $h->headers[ProductMetadataBaseService::HDR_API_VERSION]); + + $this->assertArrayHasKey(ProductMetadataBaseService::HDR_GLOBAL_ID, $h->headers); + $this->assertEquals('999', $h->headers[ProductMetadataBaseService::HDR_GLOBAL_ID]); + } +} diff --git a/test/ProductMetadata/Types/BaseRequestTest.php b/test/ProductMetadata/Types/BaseRequestTest.php new file mode 100644 index 000000000..b4cfc384a --- /dev/null +++ b/test/ProductMetadata/Types/BaseRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/BaseResponseTest.php b/test/ProductMetadata/Types/BaseResponseTest.php new file mode 100644 index 000000000..733f98081 --- /dev/null +++ b/test/ProductMetadata/Types/BaseResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/BaseServiceRequestTest.php b/test/ProductMetadata/Types/BaseServiceRequestTest.php new file mode 100644 index 000000000..b94b710ee --- /dev/null +++ b/test/ProductMetadata/Types/BaseServiceRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/BaseServiceResponseTest.php b/test/ProductMetadata/Types/BaseServiceResponseTest.php new file mode 100644 index 000000000..c6115e87f --- /dev/null +++ b/test/ProductMetadata/Types/BaseServiceResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseServiceResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ErrorDataTest.php b/test/ProductMetadata/Types/ErrorDataTest.php new file mode 100644 index 000000000..135fb90d8 --- /dev/null +++ b/test/ProductMetadata/Types/ErrorDataTest.php @@ -0,0 +1,33 @@ +obj = new ErrorData(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ErrorData', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ErrorMessageTest.php b/test/ProductMetadata/Types/ErrorMessageTest.php new file mode 100644 index 000000000..5f728345d --- /dev/null +++ b/test/ProductMetadata/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ErrorParameterTest.php b/test/ProductMetadata/Types/ErrorParameterTest.php new file mode 100644 index 000000000..5b97b79ef --- /dev/null +++ b/test/ProductMetadata/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ErrorParameter', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ExtensionTypeTest.php b/test/ProductMetadata/Types/ExtensionTypeTest.php new file mode 100644 index 000000000..77e3c0bf7 --- /dev/null +++ b/test/ProductMetadata/Types/ExtensionTypeTest.php @@ -0,0 +1,33 @@ +obj = new ExtensionType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ExtensionType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequestTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequestTest.php new file mode 100644 index 000000000..847ef4a1c --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchDataVersionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponseTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponseTest.php new file mode 100644 index 000000000..adad79cfa --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchDataVersionResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchDataVersionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchDataVersionResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchNamesRequestTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchNamesRequestTest.php new file mode 100644 index 000000000..93b3bcfce --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchNamesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchNamesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchNamesResponseTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchNamesResponseTest.php new file mode 100644 index 000000000..53e7e791f --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchNamesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchNamesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchNamesResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequestTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequestTest.php new file mode 100644 index 000000000..bac4ce761 --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchValuesBulkRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkRequest', $this->obj); + } + + public function testExtendsGetProductSearchValuesBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponseTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponseTest.php new file mode 100644 index 000000000..33bf541c6 --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchValuesBulkResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchValuesBulkResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesBulkResponse', $this->obj); + } + + public function testExtendsGetProductSearchValuesResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchValuesRequestTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchValuesRequestTest.php new file mode 100644 index 000000000..8fc9d363f --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchValuesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchValuesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesRequest', $this->obj); + } + + public function testExtendsGetProductSearchValuesBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetCompatibilitySearchValuesResponseTest.php b/test/ProductMetadata/Types/GetCompatibilitySearchValuesResponseTest.php new file mode 100644 index 000000000..5a1efab16 --- /dev/null +++ b/test/ProductMetadata/Types/GetCompatibilitySearchValuesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetCompatibilitySearchValuesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetCompatibilitySearchValuesResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchDataVersionRequestTest.php b/test/ProductMetadata/Types/GetProductSearchDataVersionRequestTest.php new file mode 100644 index 000000000..009244e53 --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchDataVersionRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchDataVersionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchDataVersionResponseTest.php b/test/ProductMetadata/Types/GetProductSearchDataVersionResponseTest.php new file mode 100644 index 000000000..8f524ab2d --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchDataVersionResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchDataVersionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchDataVersionResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchNamesRequestTest.php b/test/ProductMetadata/Types/GetProductSearchNamesRequestTest.php new file mode 100644 index 000000000..144e4afb7 --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchNamesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchNamesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchNamesRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchNamesResponseTest.php b/test/ProductMetadata/Types/GetProductSearchNamesResponseTest.php new file mode 100644 index 000000000..b42d0b7ab --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchNamesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchNamesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchNamesResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchValuesBaseRequestTest.php b/test/ProductMetadata/Types/GetProductSearchValuesBaseRequestTest.php new file mode 100644 index 000000000..f5ae3982d --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchValuesBaseRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchValuesBaseRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBaseRequest', $this->obj); + } + + public function testExtendsBaseServiceRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchValuesBulkRequestTest.php b/test/ProductMetadata/Types/GetProductSearchValuesBulkRequestTest.php new file mode 100644 index 000000000..f34bed8fe --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchValuesBulkRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchValuesBulkRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkRequest', $this->obj); + } + + public function testExtendsGetProductSearchValuesBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchValuesBulkResponseTest.php b/test/ProductMetadata/Types/GetProductSearchValuesBulkResponseTest.php new file mode 100644 index 000000000..ddb7aab83 --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchValuesBulkResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchValuesBulkResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBulkResponse', $this->obj); + } + + public function testExtendsGetProductSearchValuesResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchValuesRequestTest.php b/test/ProductMetadata/Types/GetProductSearchValuesRequestTest.php new file mode 100644 index 000000000..d49236f88 --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchValuesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchValuesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesRequest', $this->obj); + } + + public function testExtendsGetProductSearchValuesBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesBaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GetProductSearchValuesResponseTest.php b/test/ProductMetadata/Types/GetProductSearchValuesResponseTest.php new file mode 100644 index 000000000..ef928aada --- /dev/null +++ b/test/ProductMetadata/Types/GetProductSearchValuesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetProductSearchValuesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GetProductSearchValuesResponse', $this->obj); + } + + public function testExtendsBaseServiceResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseServiceResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GroupPropertiesTest.php b/test/ProductMetadata/Types/GroupPropertiesTest.php new file mode 100644 index 000000000..1200ea9a6 --- /dev/null +++ b/test/ProductMetadata/Types/GroupPropertiesTest.php @@ -0,0 +1,33 @@ +obj = new GroupProperties(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GroupProperties', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/GroupPropertyTest.php b/test/ProductMetadata/Types/GroupPropertyTest.php new file mode 100644 index 000000000..89b8e5754 --- /dev/null +++ b/test/ProductMetadata/Types/GroupPropertyTest.php @@ -0,0 +1,33 @@ +obj = new GroupProperty(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\GroupProperty', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/MediaTypeSpecificInformationTest.php b/test/ProductMetadata/Types/MediaTypeSpecificInformationTest.php new file mode 100644 index 000000000..58b6e1601 --- /dev/null +++ b/test/ProductMetadata/Types/MediaTypeSpecificInformationTest.php @@ -0,0 +1,33 @@ +obj = new MediaTypeSpecificInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\MediaTypeSpecificInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/NumericTypeSpecificInformationTest.php b/test/ProductMetadata/Types/NumericTypeSpecificInformationTest.php new file mode 100644 index 000000000..490d54981 --- /dev/null +++ b/test/ProductMetadata/Types/NumericTypeSpecificInformationTest.php @@ -0,0 +1,33 @@ +obj = new NumericTypeSpecificInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\NumericTypeSpecificInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/NumericValueTest.php b/test/ProductMetadata/Types/NumericValueTest.php new file mode 100644 index 000000000..7fbfe54af --- /dev/null +++ b/test/ProductMetadata/Types/NumericValueTest.php @@ -0,0 +1,33 @@ +obj = new NumericValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\NumericValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ProductMetadataBulkRequestTest.php b/test/ProductMetadata/Types/ProductMetadataBulkRequestTest.php new file mode 100644 index 000000000..fa56928ef --- /dev/null +++ b/test/ProductMetadata/Types/ProductMetadataBulkRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProductMetadataBulkRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ProductMetadataBulkResponseTest.php b/test/ProductMetadata/Types/ProductMetadataBulkResponseTest.php new file mode 100644 index 000000000..af10db569 --- /dev/null +++ b/test/ProductMetadata/Types/ProductMetadataBulkResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProductMetadataBulkResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataBulkResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ProductMetadataRequestTest.php b/test/ProductMetadata/Types/ProductMetadataRequestTest.php new file mode 100644 index 000000000..c80782045 --- /dev/null +++ b/test/ProductMetadata/Types/ProductMetadataRequestTest.php @@ -0,0 +1,33 @@ +obj = new ProductMetadataRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseRequest', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ProductMetadataResponseTest.php b/test/ProductMetadata/Types/ProductMetadataResponseTest.php new file mode 100644 index 000000000..27223a4b1 --- /dev/null +++ b/test/ProductMetadata/Types/ProductMetadataResponseTest.php @@ -0,0 +1,33 @@ +obj = new ProductMetadataResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ProductMetadataResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\BaseResponse', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ProductMetadataTest.php b/test/ProductMetadata/Types/ProductMetadataTest.php new file mode 100644 index 000000000..11d157c8d --- /dev/null +++ b/test/ProductMetadata/Types/ProductMetadataTest.php @@ -0,0 +1,33 @@ +obj = new ProductMetadata(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\ProductMetadata', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertiesTest.php b/test/ProductMetadata/Types/PropertiesTest.php new file mode 100644 index 000000000..d9f95364f --- /dev/null +++ b/test/ProductMetadata/Types/PropertiesTest.php @@ -0,0 +1,33 @@ +obj = new Properties(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\Properties', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertyMetadataTest.php b/test/ProductMetadata/Types/PropertyMetadataTest.php new file mode 100644 index 000000000..06f6d4abd --- /dev/null +++ b/test/ProductMetadata/Types/PropertyMetadataTest.php @@ -0,0 +1,33 @@ +obj = new PropertyMetadata(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\PropertyMetadata', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertyNameMetadataTest.php b/test/ProductMetadata/Types/PropertyNameMetadataTest.php new file mode 100644 index 000000000..4a6b5e22c --- /dev/null +++ b/test/ProductMetadata/Types/PropertyNameMetadataTest.php @@ -0,0 +1,33 @@ +obj = new PropertyNameMetadata(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\PropertyNameMetadata', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertyNameValueTest.php b/test/ProductMetadata/Types/PropertyNameValueTest.php new file mode 100644 index 000000000..edbf24fd0 --- /dev/null +++ b/test/ProductMetadata/Types/PropertyNameValueTest.php @@ -0,0 +1,33 @@ +obj = new PropertyNameValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\PropertyNameValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertyTest.php b/test/ProductMetadata/Types/PropertyTest.php new file mode 100644 index 000000000..bd27b7f1c --- /dev/null +++ b/test/ProductMetadata/Types/PropertyTest.php @@ -0,0 +1,33 @@ +obj = new Property(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\Property', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/PropertyValueTest.php b/test/ProductMetadata/Types/PropertyValueTest.php new file mode 100644 index 000000000..ff5d42e72 --- /dev/null +++ b/test/ProductMetadata/Types/PropertyValueTest.php @@ -0,0 +1,33 @@ +obj = new PropertyValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\PropertyValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/SortOrderTest.php b/test/ProductMetadata/Types/SortOrderTest.php new file mode 100644 index 000000000..eb412ec3f --- /dev/null +++ b/test/ProductMetadata/Types/SortOrderTest.php @@ -0,0 +1,33 @@ +obj = new SortOrder(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\SortOrder', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/StringTypeSpecificInformationTest.php b/test/ProductMetadata/Types/StringTypeSpecificInformationTest.php new file mode 100644 index 000000000..9a23d45d0 --- /dev/null +++ b/test/ProductMetadata/Types/StringTypeSpecificInformationTest.php @@ -0,0 +1,33 @@ +obj = new StringTypeSpecificInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\StringTypeSpecificInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/StringValueTest.php b/test/ProductMetadata/Types/StringValueTest.php new file mode 100644 index 000000000..52da3df11 --- /dev/null +++ b/test/ProductMetadata/Types/StringValueTest.php @@ -0,0 +1,33 @@ +obj = new StringValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\StringValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/TagTest.php b/test/ProductMetadata/Types/TagTest.php new file mode 100644 index 000000000..8c282cf93 --- /dev/null +++ b/test/ProductMetadata/Types/TagTest.php @@ -0,0 +1,33 @@ +obj = new Tag(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\Tag', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/TypeSpecificInformationTest.php b/test/ProductMetadata/Types/TypeSpecificInformationTest.php new file mode 100644 index 000000000..70b55bf5f --- /dev/null +++ b/test/ProductMetadata/Types/TypeSpecificInformationTest.php @@ -0,0 +1,33 @@ +obj = new TypeSpecificInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\TypeSpecificInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/URITypeSpecificInformationTest.php b/test/ProductMetadata/Types/URITypeSpecificInformationTest.php new file mode 100644 index 000000000..1d8ca3016 --- /dev/null +++ b/test/ProductMetadata/Types/URITypeSpecificInformationTest.php @@ -0,0 +1,33 @@ +obj = new URITypeSpecificInformation(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\URITypeSpecificInformation', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/URIValueTest.php b/test/ProductMetadata/Types/URIValueTest.php new file mode 100644 index 000000000..6c69d4f14 --- /dev/null +++ b/test/ProductMetadata/Types/URIValueTest.php @@ -0,0 +1,33 @@ +obj = new URIValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\URIValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/ValueTest.php b/test/ProductMetadata/Types/ValueTest.php new file mode 100644 index 000000000..2a687409c --- /dev/null +++ b/test/ProductMetadata/Types/ValueTest.php @@ -0,0 +1,33 @@ +obj = new Value(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\Value', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ProductMetadata/Types/VersionDetailsTest.php b/test/ProductMetadata/Types/VersionDetailsTest.php new file mode 100644 index 000000000..584980063 --- /dev/null +++ b/test/ProductMetadata/Types/VersionDetailsTest.php @@ -0,0 +1,33 @@ +obj = new VersionDetails(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Types\VersionDetails', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/AckValueTest.php b/test/RelatedItemsManagement/Enums/AckValueTest.php new file mode 100644 index 000000000..ce3aae65f --- /dev/null +++ b/test/RelatedItemsManagement/Enums/AckValueTest.php @@ -0,0 +1,28 @@ +obj = new AckValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\AckValue', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/BundleDetailEnumTest.php b/test/RelatedItemsManagement/Enums/BundleDetailEnumTest.php new file mode 100644 index 000000000..3cb4bb585 --- /dev/null +++ b/test/RelatedItemsManagement/Enums/BundleDetailEnumTest.php @@ -0,0 +1,28 @@ +obj = new BundleDetailEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\BundleDetailEnum', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/BundleStatusEnumTest.php b/test/RelatedItemsManagement/Enums/BundleStatusEnumTest.php new file mode 100644 index 000000000..2c511dcfa --- /dev/null +++ b/test/RelatedItemsManagement/Enums/BundleStatusEnumTest.php @@ -0,0 +1,28 @@ +obj = new BundleStatusEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\BundleStatusEnum', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/DiscountTypeEnumTest.php b/test/RelatedItemsManagement/Enums/DiscountTypeEnumTest.php new file mode 100644 index 000000000..9caeacf5d --- /dev/null +++ b/test/RelatedItemsManagement/Enums/DiscountTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new DiscountTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\DiscountTypeEnum', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/ErrorCategoryTest.php b/test/RelatedItemsManagement/Enums/ErrorCategoryTest.php new file mode 100644 index 000000000..6a6b1f9e5 --- /dev/null +++ b/test/RelatedItemsManagement/Enums/ErrorCategoryTest.php @@ -0,0 +1,28 @@ +obj = new ErrorCategory(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\ErrorCategory', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Enums/ErrorSeverityTest.php b/test/RelatedItemsManagement/Enums/ErrorSeverityTest.php new file mode 100644 index 000000000..9e7018fe6 --- /dev/null +++ b/test/RelatedItemsManagement/Enums/ErrorSeverityTest.php @@ -0,0 +1,28 @@ +obj = new ErrorSeverity(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Enums\ErrorSeverity', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Mocks/Service.php b/test/RelatedItemsManagement/Mocks/Service.php new file mode 100644 index 000000000..ae1d48617 --- /dev/null +++ b/test/RelatedItemsManagement/Mocks/Service.php @@ -0,0 +1,21 @@ +callOperationAsync( + 'testOperation', + new ComplexClass(), + '\DTS\eBaySDK\Test\Mocks\ComplexClass' + )->wait(); + } +} diff --git a/test/RelatedItemsManagement/Services/ServiceTest.php b/test/RelatedItemsManagement/Services/ServiceTest.php new file mode 100644 index 000000000..7e49b5995 --- /dev/null +++ b/test/RelatedItemsManagement/Services/ServiceTest.php @@ -0,0 +1,79 @@ +assertArrayHasKey('apiVersion', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'default' => RelatedItemsManagementService::API_VERSION + ], $d['apiVersion']); + + $this->assertArrayHasKey('authToken', $d); + $this->assertEquals([ + 'valid' => ['string'], + 'required' => true + ], $d['authToken']); + + $this->assertArrayHasKey('globalId', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['globalId']); + } + + public function testEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'authToken' => '321', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'httpHandler' => $h + ]); + + $s->testOperation(); + + // Test required headers first. + $this->assertArrayHasKey(RelatedItemsManagementBaseService::HDR_AUTH_TOKEN, $h->headers); + $this->assertEquals('321', $h->headers[RelatedItemsManagementBaseService::HDR_AUTH_TOKEN]); + + $this->assertArrayHasKey(RelatedItemsManagementBaseService::HDR_OPERATION_NAME, $h->headers); + $this->assertEquals('testOperation', $h->headers[RelatedItemsManagementBaseService::HDR_OPERATION_NAME]); + + // Test that optional headers have not been set until they have been configured. + $this->assertArrayHasKey(RelatedItemsManagementBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals(RelatedItemsManagementService::API_VERSION, $h->headers[RelatedItemsManagementBaseService::HDR_API_VERSION]); + + $this->assertArrayNotHasKey(RelatedItemsManagementBaseService::HDR_GLOBAL_ID, $h->headers); + } + + public function testOptionalEbayHeaders() + { + $h = new HttpHandler(); + + $s = new Service([ + 'apiVersion' => '123', + 'authToken' => '321', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'globalId' => '999', + 'httpHandler' => $h + ]); + + $s->testOperation(); + + $this->assertArrayHasKey(RelatedItemsManagementBaseService::HDR_API_VERSION, $h->headers); + $this->assertEquals('123', $h->headers[RelatedItemsManagementBaseService::HDR_API_VERSION]); + + $this->assertArrayHasKey(RelatedItemsManagementBaseService::HDR_GLOBAL_ID, $h->headers); + $this->assertEquals('999', $h->headers[RelatedItemsManagementBaseService::HDR_GLOBAL_ID]); + } +} diff --git a/test/RelatedItemsManagement/Types/AmountTest.php b/test/RelatedItemsManagement/Types/AmountTest.php new file mode 100644 index 000000000..f6060300d --- /dev/null +++ b/test/RelatedItemsManagement/Types/AmountTest.php @@ -0,0 +1,33 @@ +obj = new Amount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\Amount', $this->obj); + } + + public function testExtendsDoubleType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\DoubleType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BaseRequestTest.php b/test/RelatedItemsManagement/Types/BaseRequestTest.php new file mode 100644 index 000000000..c38494c3e --- /dev/null +++ b/test/RelatedItemsManagement/Types/BaseRequestTest.php @@ -0,0 +1,33 @@ +obj = new BaseRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BaseResponseTest.php b/test/RelatedItemsManagement/Types/BaseResponseTest.php new file mode 100644 index 000000000..0135f7453 --- /dev/null +++ b/test/RelatedItemsManagement/Types/BaseResponseTest.php @@ -0,0 +1,33 @@ +obj = new BaseResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BundleFilterTest.php b/test/RelatedItemsManagement/Types/BundleFilterTest.php new file mode 100644 index 000000000..6c5c82e49 --- /dev/null +++ b/test/RelatedItemsManagement/Types/BundleFilterTest.php @@ -0,0 +1,33 @@ +obj = new BundleFilter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BundleFilter', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BundleStatusMapTest.php b/test/RelatedItemsManagement/Types/BundleStatusMapTest.php new file mode 100644 index 000000000..138457fc1 --- /dev/null +++ b/test/RelatedItemsManagement/Types/BundleStatusMapTest.php @@ -0,0 +1,33 @@ +obj = new BundleStatusMap(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatusMap', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BundleStatusTest.php b/test/RelatedItemsManagement/Types/BundleStatusTest.php new file mode 100644 index 000000000..51056f9df --- /dev/null +++ b/test/RelatedItemsManagement/Types/BundleStatusTest.php @@ -0,0 +1,33 @@ +obj = new BundleStatus(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BundleStatus', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/BundleTest.php b/test/RelatedItemsManagement/Types/BundleTest.php new file mode 100644 index 000000000..8f8e3d49a --- /dev/null +++ b/test/RelatedItemsManagement/Types/BundleTest.php @@ -0,0 +1,33 @@ +obj = new Bundle(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\Bundle', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/CreateBundlesRequestTest.php b/test/RelatedItemsManagement/Types/CreateBundlesRequestTest.php new file mode 100644 index 000000000..4ab5d1a44 --- /dev/null +++ b/test/RelatedItemsManagement/Types/CreateBundlesRequestTest.php @@ -0,0 +1,33 @@ +obj = new CreateBundlesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\CreateBundlesRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/CreateBundlesResponseTest.php b/test/RelatedItemsManagement/Types/CreateBundlesResponseTest.php new file mode 100644 index 000000000..b150dbc1c --- /dev/null +++ b/test/RelatedItemsManagement/Types/CreateBundlesResponseTest.php @@ -0,0 +1,33 @@ +obj = new CreateBundlesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\CreateBundlesResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/DeleteBundlesRequestTest.php b/test/RelatedItemsManagement/Types/DeleteBundlesRequestTest.php new file mode 100644 index 000000000..97392ea58 --- /dev/null +++ b/test/RelatedItemsManagement/Types/DeleteBundlesRequestTest.php @@ -0,0 +1,33 @@ +obj = new DeleteBundlesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/DeleteBundlesResponseTest.php b/test/RelatedItemsManagement/Types/DeleteBundlesResponseTest.php new file mode 100644 index 000000000..469f719e3 --- /dev/null +++ b/test/RelatedItemsManagement/Types/DeleteBundlesResponseTest.php @@ -0,0 +1,33 @@ +obj = new DeleteBundlesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\DeleteBundlesResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/DiscountTest.php b/test/RelatedItemsManagement/Types/DiscountTest.php new file mode 100644 index 000000000..028ecbdd8 --- /dev/null +++ b/test/RelatedItemsManagement/Types/DiscountTest.php @@ -0,0 +1,33 @@ +obj = new Discount(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\Discount', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/ErrorDataTest.php b/test/RelatedItemsManagement/Types/ErrorDataTest.php new file mode 100644 index 000000000..9a4196638 --- /dev/null +++ b/test/RelatedItemsManagement/Types/ErrorDataTest.php @@ -0,0 +1,33 @@ +obj = new ErrorData(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\ErrorData', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/ErrorMessageTest.php b/test/RelatedItemsManagement/Types/ErrorMessageTest.php new file mode 100644 index 000000000..6e877f41c --- /dev/null +++ b/test/RelatedItemsManagement/Types/ErrorMessageTest.php @@ -0,0 +1,33 @@ +obj = new ErrorMessage(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\ErrorMessage', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/ErrorParameterTest.php b/test/RelatedItemsManagement/Types/ErrorParameterTest.php new file mode 100644 index 000000000..92d00cc78 --- /dev/null +++ b/test/RelatedItemsManagement/Types/ErrorParameterTest.php @@ -0,0 +1,33 @@ +obj = new ErrorParameter(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\ErrorParameter', $this->obj); + } + + public function testExtendsStringType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\StringType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/ExtensionTypeTest.php b/test/RelatedItemsManagement/Types/ExtensionTypeTest.php new file mode 100644 index 000000000..e0128d16e --- /dev/null +++ b/test/RelatedItemsManagement/Types/ExtensionTypeTest.php @@ -0,0 +1,33 @@ +obj = new ExtensionType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\ExtensionType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/FindBundlesRequestTest.php b/test/RelatedItemsManagement/Types/FindBundlesRequestTest.php new file mode 100644 index 000000000..14b99aee5 --- /dev/null +++ b/test/RelatedItemsManagement/Types/FindBundlesRequestTest.php @@ -0,0 +1,33 @@ +obj = new FindBundlesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/FindBundlesResponseTest.php b/test/RelatedItemsManagement/Types/FindBundlesResponseTest.php new file mode 100644 index 000000000..c5edd0b35 --- /dev/null +++ b/test/RelatedItemsManagement/Types/FindBundlesResponseTest.php @@ -0,0 +1,33 @@ +obj = new FindBundlesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\FindBundlesResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/GetBundlesRequestTest.php b/test/RelatedItemsManagement/Types/GetBundlesRequestTest.php new file mode 100644 index 000000000..e3298c168 --- /dev/null +++ b/test/RelatedItemsManagement/Types/GetBundlesRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetBundlesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/GetBundlesResponseTest.php b/test/RelatedItemsManagement/Types/GetBundlesResponseTest.php new file mode 100644 index 000000000..fed4292e8 --- /dev/null +++ b/test/RelatedItemsManagement/Types/GetBundlesResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetBundlesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\GetBundlesResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/GetVersionRequestTest.php b/test/RelatedItemsManagement/Types/GetVersionRequestTest.php new file mode 100644 index 000000000..3a96f6454 --- /dev/null +++ b/test/RelatedItemsManagement/Types/GetVersionRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetVersionRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/GetVersionResponseTest.php b/test/RelatedItemsManagement/Types/GetVersionResponseTest.php new file mode 100644 index 000000000..c6183d7cb --- /dev/null +++ b/test/RelatedItemsManagement/Types/GetVersionResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetVersionResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\GetVersionResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/RelatedProductGroupTest.php b/test/RelatedItemsManagement/Types/RelatedProductGroupTest.php new file mode 100644 index 000000000..b8d06be45 --- /dev/null +++ b/test/RelatedItemsManagement/Types/RelatedProductGroupTest.php @@ -0,0 +1,33 @@ +obj = new RelatedProductGroup(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\RelatedProductGroup', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/RelatedProductTest.php b/test/RelatedItemsManagement/Types/RelatedProductTest.php new file mode 100644 index 000000000..bc8da2a79 --- /dev/null +++ b/test/RelatedItemsManagement/Types/RelatedProductTest.php @@ -0,0 +1,33 @@ +obj = new RelatedProduct(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\RelatedProduct', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/UpdateBundleStatusRequestTest.php b/test/RelatedItemsManagement/Types/UpdateBundleStatusRequestTest.php new file mode 100644 index 000000000..d8aaedf31 --- /dev/null +++ b/test/RelatedItemsManagement/Types/UpdateBundleStatusRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBundleStatusRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/UpdateBundleStatusResponseTest.php b/test/RelatedItemsManagement/Types/UpdateBundleStatusResponseTest.php new file mode 100644 index 000000000..222018f7b --- /dev/null +++ b/test/RelatedItemsManagement/Types/UpdateBundleStatusResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBundleStatusResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundleStatusResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/UpdateBundlesRequestTest.php b/test/RelatedItemsManagement/Types/UpdateBundlesRequestTest.php new file mode 100644 index 000000000..83800ce02 --- /dev/null +++ b/test/RelatedItemsManagement/Types/UpdateBundlesRequestTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBundlesRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesRequest', $this->obj); + } + + public function testExtendsBaseRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseRequest', $this->obj); + } +} diff --git a/test/RelatedItemsManagement/Types/UpdateBundlesResponseTest.php b/test/RelatedItemsManagement/Types/UpdateBundlesResponseTest.php new file mode 100644 index 000000000..bad4ff4a6 --- /dev/null +++ b/test/RelatedItemsManagement/Types/UpdateBundlesResponseTest.php @@ -0,0 +1,33 @@ +obj = new UpdateBundlesResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\UpdateBundlesResponse', $this->obj); + } + + public function testExtendsBaseResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Types\BaseResponse', $this->obj); + } +} diff --git a/test/ResolutionCaseManagement/Enums/AckValueTest.php b/test/ResolutionCaseManagement/Enums/AckValueTest.php index 359de5af8..642d13346 100644 --- a/test/ResolutionCaseManagement/Enums/AckValueTest.php +++ b/test/ResolutionCaseManagement/Enums/AckValueTest.php @@ -1,8 +1,11 @@ obj = new AppealRef(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ResolutionCaseManagement\Types\AppealRef', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionTypeTest.php b/test/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionTypeTest.php index 408f452fa..db8445c97 100644 --- a/test/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionTypeTest.php +++ b/test/ResolutionCaseManagement/Types/AppealToCustomerSupportOptionTypeTest.php @@ -1,8 +1,11 @@ obj = new MoneyMovementRef(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\ResolutionCaseManagement\Types\MoneyMovementRef', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/ResolutionCaseManagement/Types/MoneyTest.php b/test/ResolutionCaseManagement/Types/MoneyTest.php index 79e98c386..964b760c2 100644 --- a/test/ResolutionCaseManagement/Types/MoneyTest.php +++ b/test/ResolutionCaseManagement/Types/MoneyTest.php @@ -1,8 +1,11 @@ sdk = new Sdk([ 'apiVersion' => '', 'appId' => '', 'authToken' => '', + 'authorization' => '', 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], 'globalId' => '', 'siteId' => 0 @@ -61,6 +64,21 @@ public function testCallingUnknownMethod() $this->sdk->foo(); } + public function testCanCreateAccount() + { + $this->assertInstanceOf('\DTS\eBaySDK\Account\Services\AccountService', $this->sdk->createAccount()); + } + + public function testCanCreateAnalytics() + { + $this->assertInstanceOf('\DTS\eBaySDK\Analytics\Services\AnalyticsService', $this->sdk->createAnalytics()); + } + + public function testCanCreateBrowse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Browse\Services\BrowseService', $this->sdk->createBrowse()); + } + public function testCanCreateBulkDataExchange() { $this->assertInstanceOf('\DTS\eBaySDK\BulkDataExchange\Services\BulkDataExchangeService', $this->sdk->createBulkDataExchange()); @@ -71,6 +89,11 @@ public function testCanCreateBusinessPoliciesManagement() $this->assertInstanceOf('\DTS\eBaySDK\BusinessPoliciesManagement\Services\BusinessPoliciesManagementService', $this->sdk->createBusinessPoliciesManagement()); } + public function testCanCreateFeedback() + { + $this->assertInstanceOf('\DTS\eBaySDK\Feedback\Services\FeedbackService', $this->sdk->createFeedback()); + } + public function testCanCreateFileTransfer() { $this->assertInstanceOf('\DTS\eBaySDK\FileTransfer\Services\FileTransferService', $this->sdk->createFileTransfer()); @@ -81,11 +104,61 @@ public function testCanCreateFinding() $this->assertInstanceOf('\DTS\eBaySDK\Finding\Services\FindingService', $this->sdk->createFinding()); } + public function testCanCreateFulfillment() + { + $this->assertInstanceOf('\DTS\eBaySDK\Fulfillment\Services\FulfillmentService', $this->sdk->createFulfillment()); + } + public function testCanCreateHalfFinding() { $this->assertInstanceOf('\DTS\eBaySDK\HalfFinding\Services\HalfFindingService', $this->sdk->createHalfFinding()); } + public function testCanCreateInventory() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Services\InventoryService', $this->sdk->createInventory()); + } + + public function testCanCreateMarketing() + { + $this->assertInstanceOf('\DTS\eBaySDK\Marketing\Services\MarketingService', $this->sdk->createMarketing()); + } + + public function testCanCreateMetadata() + { + $this->assertInstanceOf('\DTS\eBaySDK\Metadata\Services\MetadataService', $this->sdk->createMetadata()); + } + + public function testCanCreateMerchandising() + { + $this->assertInstanceOf('\DTS\eBaySDK\Merchandising\Services\MerchandisingService', $this->sdk->createMerchandising()); + } + + public function testCanCreateOrder() + { + $this->assertInstanceOf('\DTS\eBaySDK\Order\Services\OrderService', $this->sdk->createOrder()); + } + + public function testCanCreatePostOrder() + { + $this->assertInstanceOf('\DTS\eBaySDK\PostOrder\Services\PostOrderService', $this->sdk->createPostOrder()); + } + + public function testCanCreateProduct() + { + $this->assertInstanceOf('\DTS\eBaySDK\Product\Services\ProductService', $this->sdk->createProduct()); + } + + public function testCanCreateProductMetadata() + { + $this->assertInstanceOf('\DTS\eBaySDK\ProductMetadata\Services\ProductMetadataService', $this->sdk->createProductMetadata()); + } + + public function testCanCreateRelatedItemsManagement() + { + $this->assertInstanceOf('\DTS\eBaySDK\RelatedItemsManagement\Services\RelatedItemsManagementService', $this->sdk->createRelatedItemsManagement()); + } + public function testCanCreateResolutionCaseManagement() { $this->assertInstanceOf('\DTS\eBaySDK\ResolutionCaseManagement\Services\ResolutionCaseManagementService', $this->sdk->createResolutionCaseManagement()); diff --git a/test/Services/RestServiceTest.php b/test/Services/RestServiceTest.php new file mode 100644 index 000000000..a94a1a894 --- /dev/null +++ b/test/Services/RestServiceTest.php @@ -0,0 +1,195 @@ +assertArrayHasKey('debug', $d); + $this->assertEquals([ + 'valid' => ['bool', 'array'], + 'fn' => 'DTS\eBaySDK\applyDebug', + 'default' => false + ], $d['debug']); + + $this->assertArrayHasKey('httpHandler', $d); + $this->assertEquals([ + 'valid' => ['callable'], + 'default' => 'DTS\eBaySDK\defaultHttpHandler' + ], $d['httpHandler']); + + $this->assertArrayHasKey('httpOptions', $d); + $this->assertEquals([ + 'valid' => ['array'], + 'default' => ['http_errors' => false] + ], $d['httpOptions']); + + $this->assertArrayHasKey('requestLanguage', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['requestLanguage']); + + $this->assertArrayHasKey('responseLanguage', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['responseLanguage']); + + $this->assertArrayHasKey('sandbox', $d); + $this->assertEquals([ + 'valid' => ['bool'], + 'default' => false + ], $d['sandbox']); + } + + public function testProductionUrlIsUsed() + { + // By default sandbox will be false. + $h = new HttpRestHandler(); + $s = new RestService([ + 'httpHandler' => $h + ]); + $s->foo(new ComplexClass()); + + $this->assertEquals('http://production.com/v1/', $h->url); + } + + public function testSandboxUrlIsUsed() + { + $h = new HttpRestHandler(); + $s = new RestService([ + 'sandbox' => true, + 'httpHandler' => $h + ]); + $s->foo(new ComplexClass()); + + $this->assertEquals('http://sandbox.com/v1/', $h->url); + } + + public function testHttpHeadersAreCreated() + { + $h = new HttpRestHandler(); + $s = new RestService([ + 'requestLanguage' => 'en-GB', + 'responseLanguage' => 'en-US', + 'sandbox' => true, + 'httpHandler' => $h + ]); + $s->foo(new ComplexClass()); + + $this->assertArrayHasKey('Accept', $h->headers); + $this->assertEquals('application/json', $h->headers['Accept']); + $this->assertArrayHasKey('Accept-Language', $h->headers); + $this->assertEquals('en-US', $h->headers['Accept-Language']); + $this->assertArrayHasKey('Content-Language', $h->headers); + $this->assertEquals('en-GB', $h->headers['Content-Language']); + $this->assertArrayHasKey('Content-Type', $h->headers); + $this->assertEquals('application/json', $h->headers['Content-Type']); + $this->assertArrayHasKey('Content-Length', $h->headers); + $this->assertEquals(0, $h->headers['Content-Length']); + } + + public function testJsonIsCreated() + { + $h = new HttpRestHandler(); + $s = new RestService([ + 'httpHandler' => $h + ]); + $r = new ComplexClass(); + $r->foo = 'foo'; + $s->foo($r); + + $this->assertEquals(json_encode($r->toArray()), $h->body); + } + + public function testJsonIsNotCreated() + { + $h = new HttpRestHandler(); + $s = new RestService([ + 'httpHandler' => $h + ]); + $s->foo(new ComplexClass()); + + $this->assertEquals('', $h->body); + } + + public function testResponseIsReturned() + { + $s = new RestService([ + 'httpHandler' => new HttpRestHandler() + ]); + $r = $s->foo(new ComplexClass()); + + $this->assertInstanceOf('\DTS\eBaySDK\Test\Mocks\ComplexClass', $r); + } + + public function testDebugging() + { + $str = ''; + $logfn = function ($value) use (&$str) { + $str .= $value; + }; + + $s = new RestService([ + 'debug' => ['logfn' => $logfn], + 'httpHandler' => new HttpRestHandler() + ]); + $r = new ComplexClass(); + $r->foo = 'foo'; + $s->foo($r); + + $this->assertContains('Content-Type: application/json', $str); + $this->assertContains('Content-Length: '.strlen(json_encode($r->toArray())), $str); + $this->assertContains('{', $str); + $this->assertContains('}', $str); + } + + public function testCanSetConfigurationOptionsAfterInstaniation() + { + $h = new HttpRestHandler(); + $s = new RestService([ + 'sandbox' => true, + 'httpHandler' => $h, + 'httpOptions' => [] + ]); + + $this->assertEquals([ + 'apiVersion' => 'v1', + 'sandbox' => true, + 'debug' => false, + 'httpHandler' => $h, + 'httpOptions' => [] + ], $s->getConfig()); + + $s->setConfig([ + 'sandbox' => false, + ]); + + $this->assertEquals([ + 'apiVersion' => 'v1', + 'sandbox' => false, + 'debug' => false, + 'httpHandler' => $h, + 'httpOptions' => [] + ], $s->getConfig()); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid configuration value provided for "sandbox". Expected bool, but got int(-1) + */ + public function testSetConfigWillThrow() + { + $s = new RestService([ + 'x'=> 1 + ]); + + $s->setConfig(['sandbox' => -1]); + } +} diff --git a/test/Services/ServiceTest.php b/test/Services/ServiceTest.php index 053268b3e..5ea669b90 100644 --- a/test/Services/ServiceTest.php +++ b/test/Services/ServiceTest.php @@ -222,8 +222,8 @@ public function testCredentialsIniWillThrowException() ]); try { - $c = $s->getCredentials(); - } catch (Exception $e) { + $s->getCredentials(); + } catch (\Exception $e) { unlink($dir . '/credentials'); throw $e; } @@ -235,7 +235,7 @@ public function testCredentialsIniWillThrowException() */ public function testCredentialsProviderThrowsIfCantProvide() { - $s = new Service([ + new Service([ 'credentials' => function () { return new \InvalidArgumentException('Cannot locate credentials'); }, diff --git a/test/Shopping/Enums/AckCodeTypeTest.php b/test/Shopping/Enums/AckCodeTypeTest.php index d253f1692..4aec341fe 100644 --- a/test/Shopping/Enums/AckCodeTypeTest.php +++ b/test/Shopping/Enums/AckCodeTypeTest.php @@ -1,8 +1,11 @@ assertEquals(200, $s->getStatusCode()); + } +} diff --git a/test/Trading/Enums/AccessRuleCurrentStatusCodeTypeTest.php b/test/Trading/Enums/AccessRuleCurrentStatusCodeTypeTest.php index b4bfe29a8..273e8f3df 100644 --- a/test/Trading/Enums/AccessRuleCurrentStatusCodeTypeTest.php +++ b/test/Trading/Enums/AccessRuleCurrentStatusCodeTypeTest.php @@ -1,8 +1,11 @@ callOperationAsync( 'testOperation', - new ComplexClass(), + new GeteBayOfficialTimeRequestType(), '\DTS\eBaySDK\Test\Mocks\ComplexClass' )->wait(); } diff --git a/test/Trading/Services/AuthTokenTest.php b/test/Trading/Services/AuthTokenTest.php index 0c9c37b81..7e16858f7 100644 --- a/test/Trading/Services/AuthTokenTest.php +++ b/test/Trading/Services/AuthTokenTest.php @@ -41,4 +41,37 @@ public function testAuthTokenIsUsedInRequst() $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\CustomSecurityHeaderType', $r->RequesterCredentials); $this->assertEquals('123', $r->RequesterCredentials->eBayAuthToken); } + + public function testAuthTokenIsNotUsedInRequst() + { + $s = new TradingService([ + 'apiVersion' => '', + 'authorization' => '123', + 'authToken' => '321', + 'credentials' => ['appId' => '', 'certId' => '', 'devId' => ''], + 'siteId' => 0, + 'httpHandler' => new HttpHandler() + ]); + + /** + * Calling an operation when using an OAUTH token should not + * result in ANY token appearing withing the body of the request. + */ + $r = new Types\GeteBayOfficialTimeRequestType(); + $this->assertEquals(null, $r->RequesterCredentials); + $s->geteBayOfficialTime($r); + $this->assertEquals(null, $r->RequesterCredentials); + + $r = new Types\GeteBayOfficialTimeRequestType(); + $r->RequesterCredentials = new Types\CustomSecurityHeaderType(); + $this->assertEquals(null, $r->RequesterCredentials->eBayAuthToken); + $s->geteBayOfficialTime($r); + $this->assertEquals(null, $r->RequesterCredentials); + + $r = new Types\GeteBayOfficialTimeRequestType(); + $r->RequesterCredentials = new Types\CustomSecurityHeaderType(); + $r->RequesterCredentials->eBayAuthToken = '123'; + $s->geteBayOfficialTime($r); + $this->assertEquals(null, $r->RequesterCredentials); + } } diff --git a/test/Trading/Services/ServiceTest.php b/test/Trading/Services/ServiceTest.php index 5e1188bdd..9b12057ad 100644 --- a/test/Trading/Services/ServiceTest.php +++ b/test/Trading/Services/ServiceTest.php @@ -19,6 +19,11 @@ public function testConfigDefinitions() 'required' => true ], $d['apiVersion']); + $this->assertArrayHasKey('authorization', $d); + $this->assertEquals([ + 'valid' => ['string'] + ], $d['authorization']); + $this->assertArrayHasKey('authToken', $d); $this->assertEquals([ 'valid' => ['string'] @@ -58,6 +63,7 @@ public function testRequiredEbayHeaders() $this->assertArrayNotHasKey(TradingBaseService::HDR_APP_ID, $h->headers); $this->assertArrayNotHasKey(TradingBaseService::HDR_CERT_ID, $h->headers); $this->assertArrayNotHasKey(TradingBaseService::HDR_DEV_ID, $h->headers); + $this->assertArrayNotHasKey(TradingBaseService::HDR_AUTHORIZATION, $h->headers); } public function testOptionalEbayHeaders() @@ -65,6 +71,7 @@ public function testOptionalEbayHeaders() $h = new HttpHandler(); $s = new Service([ + 'authorization' => 'foo', 'credentials' => ['appId' => 'appId', 'certId' => 'certId', 'devId' => 'devId'], 'siteId' => 999, 'httpHandler' => $h @@ -83,5 +90,9 @@ public function testOptionalEbayHeaders() $this->assertArrayHasKey(TradingBaseService::HDR_DEV_ID, $h->headers); $this->assertEquals('devId', $h->headers[TradingBaseService::HDR_DEV_ID]); + + $this->assertArrayHasKey(TradingBaseService::HDR_AUTHORIZATION, $h->headers); + $this->assertEquals('foo', $h->headers[TradingBaseService::HDR_AUTHORIZATION]); + } } diff --git a/test/Trading/Types/ASQPreferencesTypeTest.php b/test/Trading/Types/ASQPreferencesTypeTest.php index 3b915c1f0..01f850103 100644 --- a/test/Trading/Types/ASQPreferencesTypeTest.php +++ b/test/Trading/Types/ASQPreferencesTypeTest.php @@ -1,8 +1,11 @@ obj = new AmountClass(); diff --git a/test/Types/AttachmentTest.php b/test/Types/AttachmentTest.php index a85232720..73def3fc9 100644 --- a/test/Types/AttachmentTest.php +++ b/test/Types/AttachmentTest.php @@ -7,6 +7,11 @@ class AttachmentTest extends \PHPUnit_Framework_TestCase { + private $httpHandler; + private $service; + private $request; + private $requestXml; + protected function setUp() { /** diff --git a/test/Types/Base64BinaryTypeTest.php b/test/Types/Base64BinaryTypeTest.php index 08291ec31..edf75a8d2 100644 --- a/test/Types/Base64BinaryTypeTest.php +++ b/test/Types/Base64BinaryTypeTest.php @@ -5,6 +5,8 @@ class Base64BinaryTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new Base64BinaryType(); diff --git a/test/Types/BaseTypeTest.php b/test/Types/BaseTypeTest.php index 85ef54b62..898ea8eac 100644 --- a/test/Types/BaseTypeTest.php +++ b/test/Types/BaseTypeTest.php @@ -5,6 +5,8 @@ class BaseTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new BaseType(); diff --git a/test/Types/BooleanTypeTest.php b/test/Types/BooleanTypeTest.php index 79ddcb95a..cd10bc3d8 100644 --- a/test/Types/BooleanTypeTest.php +++ b/test/Types/BooleanTypeTest.php @@ -5,6 +5,8 @@ class BooleanTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new BooleanType(); diff --git a/test/Types/ComplexClassTest.php b/test/Types/ComplexClassTest.php index 602028962..ed0a0eedf 100644 --- a/test/Types/ComplexClassTest.php +++ b/test/Types/ComplexClassTest.php @@ -7,6 +7,8 @@ class ComplexClassTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new ComplexClass(); @@ -112,4 +114,45 @@ public function testToXml() $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../Mocks/ComplexClassXml.xml', $this->obj->toRequestXml()); } + + public function testToJson() + { + $this->obj->foo = 'foo'; + $this->obj->integer = 123; + $this->obj->string = '

Bits & Bobs

Just some <stuff> I found. ©

'; + $this->obj->double = 123.45; + $this->obj->DateTime = new \DateTime('2000-01-01', new \DateTimeZone("UTC")); + $this->obj->booleanTrue = true; + $this->obj->booleanFalse = false; + + $simpleClass = new SimpleClass(); + $simpleClass->integer = 321; + $simpleClass->string = 'another string'; + $this->obj->SimpleClass = $simpleClass; + + $amountClass = new AmountClass(); + $amountClass->value = 543.21; + $amountClass->AttributeOne = 'one'; + $this->obj->AmountClass = $amountClass; + + $this->obj->strings = ['foo', 'bar']; + $this->obj->integers = [1,2,3,4,5]; + + $this->obj->simpleClasses = [ + new SimpleClass(['integer' => 888]), + new SimpleClass(['integer' => 999]) + ]; + + $this->obj->anyType = 1; + $this->obj->anyTypes[] = 1; + $this->obj->anyTypes[] = 'foo'; + $this->obj->anyTypes[] = 1.23; + $this->obj->anyTypes[] = true; + $this->obj->anyTypes[] = false; + $date = new \DateTime('2000-01-01', new \DateTimeZone('UTC')); + $this->obj->anyTypes[] = $date; + $this->obj->anyTypes[] = [1, 2, 3]; + + $this->assertJsonStringEqualsJsonFile(__DIR__ . '/../Mocks/ComplexClassJson.json', json_encode($this->obj->toArray())); + } } diff --git a/test/Types/ConstructTest.php b/test/Types/ConstructTest.php index a365f52a0..b7855d2bb 100644 --- a/test/Types/ConstructTest.php +++ b/test/Types/ConstructTest.php @@ -15,20 +15,9 @@ public function testSettingPropertiesViaCtor() 'double' => 123.45, 'booleanTrue' => true, 'booleanFalse' => false, - 'DateTime' => '2000-01-01T00:00:00.000Z', - /** - * Wouldn't do this in client code. - * Can pass the same field multiple times. The value is just assigned over the previous one. - * All we are doing here is testing that different types can be passed to the field - * and it will be handled correctly by the code. - */ 'DateTime' => new \DateTime('2000-01-01T00:00:00.000Z', new \DateTimeZone('UTC')), 'strings' => ['foo', 'bar'], 'integers' => [111, 222], - 'AmountClass' => [ - 'value' => 543.21, - 'AttributeOne' => 'one' - ], 'AmountClass' => new AmountClass(['value' => 543.21, 'AttributeOne' => 'one']), 'SimpleClass' => [ 'integer' => 123, @@ -57,6 +46,11 @@ public function testSettingPropertiesViaCtor() 'decimalTypes' => [ ['value' => 1], ['value' => 2.34] + ], + 'anyType' => 1, + 'anyTypes' => [ + 1, + 'foo' ] ]; @@ -120,13 +114,18 @@ public function testSettingPropertiesViaCtor() $this->assertEquals(1, $obj->decimalTypes[0]->value); $this->assertEquals(2.34, $obj->decimalTypes[1]->value); $this->assertInstanceOf('\DTS\eBaySDK\Types\RepeatableType', $obj->strings); + + $this->assertEquals(1, $obj->anyType); + + $this->assertEquals(2, count($obj->anyTypes)); + $this->assertInstanceOf('\DTS\eBaySDK\Types\RepeatableType', $obj->anyTypes); } public function testSettingInvalidPropertyViaCtor() { $this->setExpectedException('\DTS\eBaySDK\Exceptions\UnknownPropertyException', 'Unknown property bar'); - $obj = new ComplexClass([ + new ComplexClass([ 'bar' => 'bar' ]); } @@ -135,8 +134,34 @@ public function testSettingInvalidPropertyTypeViaCtor() { $this->setExpectedException('\DTS\eBaySDK\Exceptions\InvalidPropertyTypeException', 'Invalid property type provided for string. Expected string but got integer'); - $obj = new ComplexClass([ + new ComplexClass([ 'string' => 123 ]); } + + /** + * This is to handle JSON responses such as + * { + * "foo": [null], + * "bar": null + * } + * The null object results in the SDK trying to pass null + * to the ctor of an object, which expects an array. + */ + public function testNullValuesWillNotSetProperties() + { + $obj = new ComplexClass([ + 'foo' => null, + 'strings' => [null, null], + 'decimalTypes' => [null, null], + 'simpleClasses' => [null, null, new SimpleClass()] + ]); + + $this->assertEquals(false, isset($obj->foo)); + $this->assertEquals(true, isset($obj->strings)); + $this->assertEquals(0, count($obj->strings)); + $this->assertEquals(false, isset($obj->decimalType)); + $this->assertEquals(true, isset($obj->simpleClasses)); + $this->assertEquals(1, count($obj->simpleClasses)); + } } diff --git a/test/Types/DecimalTypeTest.php b/test/Types/DecimalTypeTest.php index 05486cd65..e2494218b 100644 --- a/test/Types/DecimalTypeTest.php +++ b/test/Types/DecimalTypeTest.php @@ -5,6 +5,8 @@ class DecimalTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new DecimalType(); diff --git a/test/Types/DoubleTypeTest.php b/test/Types/DoubleTypeTest.php index 471888bfc..e6efddad0 100644 --- a/test/Types/DoubleTypeTest.php +++ b/test/Types/DoubleTypeTest.php @@ -5,6 +5,8 @@ class DoubleTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new DoubleType(); diff --git a/test/Types/IntegerTypeTest.php b/test/Types/IntegerTypeTest.php index 7470348ad..0ba6c8234 100644 --- a/test/Types/IntegerTypeTest.php +++ b/test/Types/IntegerTypeTest.php @@ -5,6 +5,8 @@ class IntegerTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new IntegerType(); diff --git a/test/Types/RepeatableTypeTest.php b/test/Types/RepeatableTypeTest.php index 4da112d2a..a5235eba1 100644 --- a/test/Types/RepeatableTypeTest.php +++ b/test/Types/RepeatableTypeTest.php @@ -5,6 +5,8 @@ class RepeatableTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new RepeatableType('', '', 'string'); diff --git a/test/Types/SimpleClassTest.php b/test/Types/SimpleClassTest.php index 7fc1c27c8..72a3b4857 100644 --- a/test/Types/SimpleClassTest.php +++ b/test/Types/SimpleClassTest.php @@ -13,6 +13,8 @@ class SimpleClassTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new SimpleClass(); @@ -128,6 +130,41 @@ public function testGettingSettingProperties() $this->obj->uriType = new URIType(); $this->obj->uriType->value = 'uri type'; $this->assertEquals('uri type', $this->obj->uriType->value); + + $this->obj->anyType = 1; + $this->assertEquals(1, $this->obj->anyType); + $this->obj->anyType = 'foo'; + $this->assertEquals('foo', $this->obj->anyType); + $this->obj->anyType = 1.23; + $this->assertEquals(1.23, $this->obj->anyType); + $this->obj->anyType = true; + $this->assertEquals(true, $this->obj->anyType); + $this->obj->anyType = false; + $this->assertEquals(false, $this->obj->anyType); + $date = new \DateTime('2000-01-01', new \DateTimeZone('UTC')); + $this->obj->anyType = $date; + $this->assertEquals($date, $this->obj->anyType); + $this->obj->anyType = [1, 2, 3]; + $this->assertEquals([1, 2, 3], $this->obj->anyType); + + $this->assertEquals(0, count($this->obj->anyTypes)); + $this->assertInstanceOf('\DTS\eBaySDK\Types\RepeatableType', $this->obj->anyTypes); + $this->obj->anyTypes[] = 1; + $this->obj->anyTypes[] = 'foo'; + $this->obj->anyTypes[] = 1.23; + $this->obj->anyTypes[] = true; + $this->obj->anyTypes[] = false; + $date = new \DateTime('2000-01-01', new \DateTimeZone('UTC')); + $this->obj->anyTypes[] = $date; + $this->obj->anyTypes[] = [1, 2, 3]; + $this->assertEquals(7, count($this->obj->anyTypes)); + $this->assertEquals(1, $this->obj->anyTypes[0]); + $this->assertEquals('foo', $this->obj->anyTypes[1]); + $this->assertEquals(1.23, $this->obj->anyTypes[2]); + $this->assertEquals(true, $this->obj->anyTypes[3]); + $this->assertEquals(false, $this->obj->anyTypes[4]); + $this->assertEquals($date, $this->obj->anyTypes[5]); + $this->assertEquals([1, 2, 3], $this->obj->anyTypes[6]); } public function testIsSet() @@ -201,7 +238,7 @@ public function testSettingRepeatablePropertyDirectly() public function testCanGetElementMeta() { - $meta = new \StdClass(); + $meta = new \stdClass(); $meta->propertyName = 'SimpleClass'; $meta->phpType = 'DTS\eBaySDK\Test\Mocks\SimpleClass'; $meta->repeatable = false; diff --git a/test/Types/StrictPropertyTypesTest.php b/test/Types/StrictPropertyTypesTest.php index 9801b6bed..8027c130e 100644 --- a/test/Types/StrictPropertyTypesTest.php +++ b/test/Types/StrictPropertyTypesTest.php @@ -5,6 +5,8 @@ class StrictPropertyTypesTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { \DTS\eBaySDK\Sdk::$STRICT_PROPERTY_TYPES = false; diff --git a/test/Types/StringTypeTest.php b/test/Types/StringTypeTest.php index 041620c73..fde41ccdb 100644 --- a/test/Types/StringTypeTest.php +++ b/test/Types/StringTypeTest.php @@ -5,6 +5,8 @@ class StringTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new StringType(); diff --git a/test/Types/ToArrayTest.php b/test/Types/ToArrayTest.php index e5af83bd9..89689e71d 100644 --- a/test/Types/ToArrayTest.php +++ b/test/Types/ToArrayTest.php @@ -15,6 +15,8 @@ class ToArrayTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new ComplexClass(); diff --git a/test/Types/TokenTypeTest.php b/test/Types/TokenTypeTest.php index 2253bf7c5..070d37c4e 100644 --- a/test/Types/TokenTypeTest.php +++ b/test/Types/TokenTypeTest.php @@ -5,6 +5,8 @@ class TokenTypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new TokenType(); diff --git a/test/Types/URITypeTest.php b/test/Types/URITypeTest.php index 138c68fa6..0196e3376 100644 --- a/test/Types/URITypeTest.php +++ b/test/Types/URITypeTest.php @@ -5,6 +5,8 @@ class URITypeTest extends \PHPUnit_Framework_TestCase { + private $obj; + protected function setUp() { $this->obj = new URIType(); diff --git a/test/UriResolverTest.php b/test/UriResolverTest.php new file mode 100644 index 000000000..b05712cac --- /dev/null +++ b/test/UriResolverTest.php @@ -0,0 +1,295 @@ + [ + 'valid' => ['array'], + 'default' => ['foo', 'bar'] + ], + 'bool' => [ + 'valid' => ['bool'], + 'default' => true + ], + 'callable' => [ + 'valid' => ['int'], + 'default' => [StaticMethods::class, 'defaultConfigValue'] + ], + 'int' => [ + 'valid' => ['int'], + 'default' => -1 + ], + 'string' => [ + 'valid' => ['string'], + 'default' => 'foo' + ] + ]; + + $paramValues = []; + + $this->assertEquals( + 'https://example.com/v1/item?array=foo%2Cbar&bool=true&callable=-1&int=-1&string=foo', + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues) + ); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Missing required uri parameters + */ + public function testRequired() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['int'], + 'required' => true + ] + ]; + + $paramValues = []; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid uri parameter value provided for "foo". Expected array, but got int(-1) + */ + public function testValidatesArray() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['array'] + ] + ]; + + $paramValues = [ + 'foo' => -1 + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid uri parameter value provided for "foo". Expected bool, but got int(-1) + */ + public function testValidatesBool() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['bool'] + ] + ]; + + $paramValues = [ + 'foo' => -1 + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid uri parameter value provided for "foo". Expected callable, but got int(-1) + */ + public function testValidatesCallable() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['callable'] + ] + ]; + + $paramValues = [ + 'foo' => -1 + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid uri parameter value provided for "foo". Expected int, but got string(3) + */ + public function testValidatesInt() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['int'] + ] + ]; + + $paramValues = [ + 'foo' => 'foo' + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Invalid uri parameter value provided for "foo". Expected string, but got int(-1) + */ + public function testValidatesStrings() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['string'] + ] + ]; + + $paramValues = [ + 'foo' => -1 + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + public function testAllowsValid() + { + $r = new UriResolver(); + + $paramDefs = [ + 'array' => [ + 'valid' => ['array'] + ], + 'bool' => [ + 'valid' => ['bool'] + ], + 'callable' => [ + 'valid' => ['callable'] + ], + 'int' => [ + 'valid' => ['int'] + ], + 'string' => [ + 'valid' => ['string'] + ] + ]; + + $paramValues = [ + 'array' => [], + 'bool' => true, + 'callable' => function () { + }, + 'int' => 1, + 'string' => 'foo' + ]; + + $this->assertEquals( + 'https://example.com/v1/item?array=&bool=true&callable=&int=1&string=foo', + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues) + ); + } + + public function testFn() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['int'], + 'fn' => [StaticMethods::class, 'applyConfigValue'] + ] + ]; + + $paramValues = [ + 'foo' => 1 + ]; + + $this->assertEquals( + 'https://example.com/v1/item?foo=3', + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues) + ); + } + + public function testFillsInPathParameters() + { + $r = new UriResolver(); + + $paramDefs = [ + 'path1' => [ + 'valid' => ['string'] + ], + 'path2' => [ + 'valid' => ['string'] + ], + 'param1' => [ + 'valid' => ['string'] + ], + 'param2' => [ + 'valid' => ['string'] + ] + ]; + + $paramValues = [ + 'path1' => 'foo', + 'path2' => 'bar', + 'param1' => 'baz', + 'param2' => 'shaz' + ]; + + $this->assertEquals( + 'https://example.com/v1/item/foo/bar?param1=baz¶m2=shaz', + $r->resolve('https://example.com', 'v1', 'item/{path1}/{path2}', $paramDefs, $paramValues) + ); + } + + /** + * @expectedException \InvalidArgumentException + * @expectedExceptionMessage Unknown uri parameter "bar" provided + */ + public function testParamMustExist() + { + $r = new UriResolver(); + + $paramDefs = [ + 'foo' => [ + 'valid' => ['string'] + ] + ]; + + $paramValues = [ + 'bar' => -1 + ]; + + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues); + } + + public function testNoParams() + { + $r = new UriResolver(); + + $paramDefs = [ + ]; + + $paramValues = [ + ]; + + $this->assertEquals( + 'https://example.com/v1/item', + $r->resolve('https://example.com', 'v1', 'item', $paramDefs, $paramValues) + ); + } +}